/* ============================================================
   FILOSOFÍA DE LA ANTIGUA GRECIA — styles.css
   Ancient Greek aesthetic · Marble · Gold · Classical columns
   ============================================================ */


/* ── Custom Properties ─────────────────────────────────────── */
:root {
    /* Palette */
    --marble-white  : #f8f4ec;
    --parchment     : #f0e8d0;
    --warm-cream    : #e8dcc0;
    --stone-light   : #d8cdb0;
    --stone-mid     : #c4b890;
    --stone-dark    : #8c7d5c;

    --gold          : #c9a84c;
    --gold-light    : #e8c870;
    --gold-dark     : #9a7a28;

    --text-dark     : #2c2010;
    --text-mid      : #4a3c20;
    --text-light    : #7a6840;

    --col-highlight : #f4efe0;
    --col-mid       : #ddd0b0;
    --col-shadow    : #b8a880;

    /* Shadows */
    --shadow-soft   : 0 4px 24px rgba(100, 80, 40, 0.10);
    --shadow-mid    : 0 10px 40px rgba(80, 60, 20, 0.18);

    /* Transition */
    --ease          : all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'EB Garamond', Georgia, serif;
    background-color: var(--marble-white);
    color: var(--text-dark);
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
}


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 64px;
    height: 68px;
    background: rgba(248, 244, 236, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 20px rgba(100, 80, 30, 0.10);
    transition: var(--ease);
}

.navbar.scrolled {
    height: 58px;
    background: rgba(240, 232, 208, 0.98);
}

.navbar-brand {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 44px;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-mid);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 68px;                    /* offset for fixed navbar */
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%,  rgba(200, 168, 76, 0.13) 0%, transparent 100%),
        linear-gradient(180deg,
            #ccc4aa 0%,
            #ddd5bf 6%,
            #eae2cc 20%,
            #f2ede2 45%,
            #ede8da 75%,
            #e0d8c4 100%
        );
}

/* Subtle marble vein overlay */
.hero-bg-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            98deg,
            transparent,
            transparent 90px,
            rgba(180, 160, 100, 0.035) 90px,
            rgba(180, 160, 100, 0.035) 92px
        ),
        repeating-linear-gradient(
            168deg,
            transparent,
            transparent 70px,
            rgba(140, 120, 70, 0.025) 70px,
            rgba(140, 120, 70, 0.025) 72px
        );
}

/* Three-column layout: column | content | column */
.hero-layout {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 68px - 52px);   /* subtract navbar + floor */
}


/* ── Greek Column ─────────────────────────────────────────── */
.greek-column {
    width: 148px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 1s ease-out 0.15s both;
}

/* Entablature — the wide horizontal beam at the very top */
.col-entablature {
    width: 100%;
    height: 58px;
    flex-shrink: 0;
    background: linear-gradient(180deg,
        #c0b898 0%,
        #ccc0a0 35%,
        #d4c8a8 60%,
        #bfb38a 100%
    );
    border-bottom: 2px solid var(--stone-dark);
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.12), 0 3px 10px rgba(0,0,0,0.10);
}

/* Capital — flares outward above the shaft */
.col-capital {
    width: 100%;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(180deg,
        #ddd0b0 0%,
        #ccc0a0 50%,
        #bfb28c 100%
    );
    /* bottom edge = (80-20)% × 100% = 60% — matches desktop shaft width exactly */
    clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
}

/* Shaft — the tall body with fluting lines */
.col-shaft {
    width: 60%;
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #e4dcc4 0%, #d8d0b8 100%);
    /* Outer ambient shadow gives a cylindrical impression */
    box-shadow:
        inset -9px 0 14px rgba(90, 70, 30, 0.22),
        inset  9px 0 14px rgba(90, 70, 30, 0.22),
        inset  0  0 22px rgba(160, 140, 90, 0.08);
}

/* Individual flute — each spans an equal width slice */
.flute {
    flex: 1;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(90,  70, 30, 0.18) 0%,
        rgba(230, 220, 195, 0.9) 20%,
        rgba(252, 248, 235, 1.0) 50%,
        rgba(230, 220, 195, 0.9) 80%,
        rgba(90,  70, 30, 0.18) 100%
    );
}

/* Base neck — slight taper between shaft and wider base */
.col-base-neck {
    width: 86%;
    height: 20px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #ccc0a0 0%, #bfb38a 100%);
    /* top edge = 72% × 86% ≈ 62% — matches shaft width */
    clip-path: polygon(14% 0%, 86% 0%, 100% 100%, 0% 100%);
}

/* Base step — the wide plinth the column stands on */
.col-base-step {
    width: 96%;
    height: 22px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #c0b48e 0%, #b0a47e 100%);
    box-shadow: 0 5px 12px rgba(0,0,0,0.14);
}


/* ── Hero Center Content ──────────────────────────────────── */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 48px;
    gap: 20px;
    animation: fadeUp 1s ease-out 0.45s both;
}

.hero-ornament-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px;
}

.ornament-line,
.rule-line {
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.75;
}

.ornament-star {
    color: var(--gold);
    font-size: 0.9rem;
    opacity: 0.85;
}

.hero-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.42em;
    color: var(--gold-dark);
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(1.9rem, 4vw, 3.3rem);
    font-weight: 700;
    color: var(--text-dark);
    text-shadow: 1px 2px 10px rgba(180, 140, 40, 0.18);
}

.hero-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 230px;
}

.rule-diamond {
    color: var(--gold);
    font-size: 0.55rem;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-mid);
    max-width: 500px;
    font-style: italic;
    line-height: 1.85;
}

.hero-thinkers {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.hero-thinkers .dot {
    color: var(--gold);
    font-size: 1.3rem;
    line-height: 1;
}

/* Call-to-action button with sliding gold fill */
.hero-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 14px 44px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dark);
    border: 1.5px solid var(--gold);
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease;
    cursor: pointer;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.36s ease;
    z-index: -1;
}

.hero-cta:hover {
    color: #fff;
}

.hero-cta:hover::before {
    transform: scaleX(1);
}


/* ── Stylobate Floor ─────────────────────────────────────── */
.hero-floor {
    height: 52px;
    background: linear-gradient(180deg,
        #c8bc98 0%,
        #bdb090 45%,
        #a8a07e 100%
    );
    border-top: 2px solid var(--stone-dark);
    box-shadow: inset 0 10px 22px rgba(0,0,0,0.10);
}


/* ── Scroll hint ─────────────────────────────────────────── */
.scroll-hint {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-light);
    animation: floatBounce 2.2s ease-in-out infinite;
    opacity: 0.75;
}

.scroll-hint-arrow {
    font-size: 1.1rem;
    color: var(--gold);
}

@keyframes floatBounce {
    0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.65; }
    50%       { transform: translateX(-50%) translateY(7px); opacity: 1.00; }
}


/* ── Entrance animation ──────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0);    }
}


/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
    display: flex;
    align-items: center;
    padding: 28px 80px;
    background: var(--parchment);
    border-top:    1px solid rgba(200, 168, 76, 0.28);
    border-bottom: 1px solid rgba(200, 168, 76, 0.28);
}

.sdiv-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.sdiv-symbol {
    padding: 0 28px;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 4px;
}


/* ============================================================
   QUOTES / FRASES SECTION
   ============================================================ */
.quotes-section {
    background: var(--parchment);
    padding: 88px 64px 100px;
}


/* Shared section header */
.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.38em;
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    color: var(--text-dark);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    font-style: italic;
    max-width: 540px;
    margin: 0 auto;
}


/* ── Quote Card ──────────────────────────────────────────── */
.quote-card {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 52px 56px;
    background: var(--marble-white);
    border: 1px solid rgba(200, 168, 76, 0.22);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* Top gold accent line */
.quote-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.quote-card:hover {
    box-shadow: var(--shadow-mid);
    transform: translateY(-5px);
}

/* Reversed layout: image left, text right */
.quote-card.reverse {
    flex-direction: row-reverse;
}

/* Text side */
.quote-body {
    flex: 1;
    padding: 8px 0;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 7rem;
    line-height: 0.55;
    color: var(--gold);
    opacity: 0.35;
    margin-bottom: 14px;
    font-weight: 400;
    user-select: none;
}

.quote-text {
    font-size: 1.38rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.65;
    margin-bottom: 22px;
    font-weight: 500;
}

.quote-attr {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.attr-rule {
    width: 36px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.quote-author {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold-dark);
    font-style: normal;
}

.quote-desc {
    font-size: 0.96rem;
    color: var(--text-light);
    line-height: 1.82;
    max-width: 400px;
}

/* Image side */
.quote-img-wrap {
    flex-shrink: 0;
    width: 380px;
    height: 280px;
    position: relative;
}

.quote-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(14%) contrast(1.06) brightness(0.97);
    transition: filter 0.45s ease;
}

.quote-img-wrap:hover img {
    filter: sepia(0%) contrast(1.05) brightness(1.0);
}

/* Offset decorative frame border */
.img-frame-border {
    position: absolute;
    top: 10px; left: 10px;
    right: -12px; bottom: -12px;
    border: 1.5px solid var(--gold);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}


/* ── Scroll fade-in (triggered by JS) ────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.72s ease, transform 0.72s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   GALLERY / FOTOS SECTION
   ============================================================ */
.gallery-section {
    background: var(--marble-white);
    padding: 88px 0 104px;
}

.gallery-section .section-header {
    padding: 0 64px;
}


/* ── Carousel ────────────────────────────────────────────── */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 44px;
    margin-bottom: 24px;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    flex-shrink: 0;
    /* Width is set dynamically by JS */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(200, 168, 76, 0.22);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    background: var(--stone-light);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.carousel-slide:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-mid);
}

.carousel-slide img {
    width: 100%;
    height: 248px;
    object-fit: cover;
    display: block;
    filter: sepia(12%) contrast(1.06);
    transition: transform 0.5s ease, filter 0.4s ease;
}

.carousel-slide:hover img {
    transform: scale(1.06);
    filter: sepia(0%) contrast(1.08);
}

.slide-caption {
    padding: 13px 18px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--text-mid);
    background: var(--parchment);
    border-top: 1px solid rgba(200, 168, 76, 0.22);
    text-align: center;
}


/* ── Carousel Buttons ────────────────────────────────────── */
.carousel-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--marble-white);
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: Georgia, serif;
    transition: var(--ease);
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--marble-white);
}

.carousel-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
}


/* ── Carousel Dots ───────────────────────────────────────── */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
}

.dot-btn {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--stone-mid);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.dot-btn.active {
    background: var(--gold);
    transform: scale(1.45);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--text-dark);
    color: var(--stone-light);
    text-align: center;
    padding: 52px 64px 44px;
}

.footer-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-divider .sdiv-line {
    background: rgba(200, 168, 76, 0.35);
}

.footer-phi {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold);
    flex-shrink: 0;
    line-height: 1;
}

.footer-logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.9rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--stone-mid);
    margin-bottom: 6px;
}

.footer-sub {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--stone-dark);
    margin-bottom: 32px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 44px;
}

.footer-nav a {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--stone-mid);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--gold);
}


/* ============================================================
   RESPONSIVE — Tablet (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
    .navbar        { padding: 0 32px; }
    .nav-links     { gap: 26px; }

    .greek-column  { width: 108px; }
    .col-shaft     { width: 62%; }
    /* bottom = (81-19)% × 100% = 62% — matches tablet shaft */
    .col-capital   { clip-path: polygon(0% 0%, 100% 0%, 81% 100%, 19% 100%); }
    /* 72% × 90% ≈ 65% — keeps neck top flush with shaft at this breakpoint */
    .col-base-neck { width: 90%; }

    .hero-content  { padding: 40px 24px; gap: 16px; }
    .hero-title    { font-size: 1.9rem; }

    .quotes-section { padding: 64px 36px 80px; }

    /* Stack quote cards vertically */
    .quote-card {
        flex-direction: column !important;
        padding: 38px 32px;
        gap: 32px;
        margin-bottom: 56px;
    }

    .quote-img-wrap {
        width: 100%;
        height: 256px;
    }

    .img-frame-border { display: none; }

    .gallery-section .section-header { padding: 0 36px; }
    .carousel-wrapper { padding: 0 32px; }

    .section-divider { padding: 22px 44px; }
}


/* ============================================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
    .navbar        { padding: 0 20px; height: 60px; }
    .navbar-brand  { font-size: 1rem; }
    .nav-links     { gap: 18px; }
    .nav-link      { font-size: 0.74rem; }

    .hero-section  { padding-top: 60px; }
    .hero-layout   { min-height: calc(100vh - 60px - 44px); }

    .greek-column  { width: 72px; }
    .col-shaft     { width: 68%; }
    /* 72% × 96% ≈ 69% — keeps neck top flush with shaft at mobile */
    .col-base-neck { width: 96%; }
    .col-entablature { height: 40px; }
    /* bottom = (84-16)% × 100% = 68% — matches mobile shaft; reduce height too */
    .col-capital   { height: 30px; clip-path: polygon(0% 0%, 100% 0%, 84% 100%, 16% 100%); }

    .hero-content  { padding: 24px 12px; gap: 13px; }
    .hero-subtitle br { display: none; }

    .hero-floor    { height: 44px; }

    .quotes-section { padding: 50px 20px 64px; }
    .quote-card     { padding: 26px 20px; margin-bottom: 40px; }
    .quote-text     { font-size: 1.15rem; }

    .gallery-section .section-header { padding: 0 24px; }
    .carousel-wrapper { padding: 0 20px; gap: 8px; }
    .carousel-btn  { width: 40px; height: 40px; font-size: 1.8rem; }

    .section-divider { padding: 18px 28px; }
    .sdiv-symbol   { padding: 0 16px; }

    .site-footer   { padding: 40px 28px 36px; }
    .footer-nav    { gap: 22px; }
}
