@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #F5F0E8;
    --cream-dark: #EAE2CE;
    --green: #5C7A4E;
    --green-mid: #7A9E6A;
    --green-pale: #E8EFE4;
    --green-bg: #DFE9D8;
    --brown: #8B6F47;
    --brown-light: #B09060;
    --dark: #2C2416;
    --dark-soft: #4A3C28;
    --terra: #C4956A;
    --terra-light: #D9B48C;
    --white: #FDFAF5;
    --transition: all 0.28s ease;
    --shadow: 0 4px 24px rgba(44, 36, 22, 0.1);
    --shadow-hover: 0 8px 32px rgba(44, 36, 22, 0.18);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--cream);
    color: var(--dark);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--brown); }

/* ─── NAVIGATION ─── */

.main-nav {
    background-color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(44, 36, 22, 0.35);
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px 10px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.nav-brand a {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.06em;
}

.nav-brand a:hover { color: var(--terra-light); }

.nav-tabs-wrapper {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--brown) transparent;
}

.nav-tabs-wrapper::-webkit-scrollbar { height: 3px; }
.nav-tabs-wrapper::-webkit-scrollbar-track { background: transparent; }
.nav-tabs-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--brown);
    border-radius: 3px;
}

.nav-tabs {
    display: flex;
    align-items: stretch;
    padding: 0 12px;
    min-width: max-content;
}

.nav-tab {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    padding: 11px 13px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-tab:hover {
    color: var(--terra-light);
    border-bottom-color: var(--terra);
}

.nav-tab.active {
    color: var(--cream);
    border-bottom-color: var(--green-mid);
    background-color: rgba(92, 122, 78, 0.14);
}

.nav-tab.home-tab {
    color: rgba(245, 240, 232, 0.45);
    padding-right: 18px;
    border-right: 1px solid rgba(245, 240, 232, 0.1);
    margin-right: 6px;
}

.nav-tab.home-tab:hover {
    color: var(--terra-light);
    border-bottom-color: var(--terra);
}

.nav-tab.home-tab.active {
    color: var(--cream);
    border-bottom-color: var(--green-mid);
    background-color: rgba(92, 122, 78, 0.14);
}

/* ─── HERO ─── */

.hero {
    background: linear-gradient(145deg, var(--green-pale) 0%, var(--cream) 45%, var(--cream-dark) 100%);
    padding: 100px 24px 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -15%;
    width: 55%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(92, 122, 78, 0.09) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 45%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(196, 149, 106, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    animation: fadeInUp 0.9s ease both;
}

.hero-eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--green);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 22px;
    opacity: 0.8;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

.hero-title em {
    font-style: italic;
    color: var(--green);
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 26px;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    height: 1px;
    width: 72px;
    background: linear-gradient(to right, transparent, var(--brown-light));
}

.hero-divider::after {
    background: linear-gradient(to left, transparent, var(--brown-light));
}

.hero-divider-icon {
    color: var(--terra);
    font-size: 0.9rem;
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--dark-soft);
    letter-spacing: 0.12em;
    animation: fadeInUp 0.9s ease 0.18s both;
}

/* ─── SECTIONS ─── */

.section {
    padding: 72px 24px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--green);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--brown);
    opacity: 0.75;
}

.section-divider {
    max-width: 1100px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid rgba(139, 111, 71, 0.18);
}

/* ─── PHOTO GRID ─── */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.photo-placeholder {
    aspect-ratio: 4 / 3;
    background-color: var(--green-pale);
    border: 2px dashed rgba(92, 122, 78, 0.32);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.photo-placeholder:hover {
    border-color: var(--green);
    background-color: var(--green-bg);
}

.photo-placeholder-icon {
    width: 40px;
    height: 40px;
    color: var(--green);
    opacity: 0.38;
}

.photo-placeholder-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--green);
    opacity: 0.55;
    letter-spacing: 0.04em;
}

/* ─── AUDIO SECTION ─── */

.audio-bg {
    background-color: var(--green-pale);
    padding: 72px 24px;
}

.audio-bg .section-header {
    max-width: 1100px;
    margin: 0 auto 52px;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.audio-placeholder {
    background-color: var(--white);
    border: 2px dashed rgba(139, 111, 71, 0.28);
    border-radius: 8px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}

.audio-placeholder:hover {
    border-color: var(--brown);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.audio-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 42px;
    opacity: 0.32;
}

.audio-waveform span {
    display: block;
    width: 4px;
    background-color: var(--green);
    border-radius: 2px;
}

.audio-waveform span:nth-child(1)  { height: 55%; }
.audio-waveform span:nth-child(2)  { height: 90%; }
.audio-waveform span:nth-child(3)  { height: 65%; }
.audio-waveform span:nth-child(4)  { height: 40%; }
.audio-waveform span:nth-child(5)  { height: 80%; }
.audio-waveform span:nth-child(6)  { height: 100%; }
.audio-waveform span:nth-child(7)  { height: 50%; }
.audio-waveform span:nth-child(8)  { height: 75%; }
.audio-waveform span:nth-child(9)  { height: 45%; }
.audio-waveform span:nth-child(10) { height: 62%; }
.audio-waveform span:nth-child(11) { height: 88%; }
.audio-waveform span:nth-child(12) { height: 55%; }

.audio-clip-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brown);
    opacity: 0.65;
}

.audio-placeholder-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--dark-soft);
    opacity: 0.6;
    text-align: center;
}

/* ─── FOOTER ─── */

.footer {
    background-color: var(--dark);
    color: rgba(245, 240, 232, 0.55);
    padding: 44px 24px;
    text-align: center;
    margin-top: auto;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

.footer-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.92rem;
    font-style: italic;
    letter-spacing: 0.1em;
}

/* ─── COMPANY PAGES ─── */

.back-link-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brown);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--green);
    gap: 12px;
}

.company-header {
    padding: 56px 24px 44px;
    text-align: center;
    background: linear-gradient(145deg, var(--green-pale) 0%, var(--cream) 55%, var(--cream-dark) 100%);
    animation: fadeInUp 0.75s ease both;
    position: relative;
    overflow: hidden;
}

.company-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 40%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(196, 149, 106, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.company-eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--green);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.78;
}

.company-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.company-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 24px 80px;
}

/* Image placeholder — replace this div with an <img> tag when ready */
.company-img-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--green-pale);
    border: 2px dashed rgba(92, 122, 78, 0.38);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 44px 0 40px;
    transition: var(--transition);
}

.company-img-placeholder:hover {
    background-color: var(--green-bg);
    border-color: var(--green);
}

.img-placeholder-icon {
    color: var(--green);
    opacity: 0.38;
    width: 52px;
    height: 52px;
}

.img-placeholder-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--green);
    opacity: 0.55;
}

.img-placeholder-hint {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    opacity: 0.38;
}

/* Photo (use for real photographs — object-fit: cover) */
.company-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    margin: 44px 0 40px;
    display: block;
}

/* Logo (use for logos — object-fit: contain with neutral background) */
.company-img-logo {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    margin: 44px 0 40px;
    display: block;
    background-color: var(--cream-dark);
}

/* Logo on dark background (for light/white logos) */
.company-img-logo-dark {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    margin: 44px 0 40px;
    display: block;
    background-color: var(--dark);
}

.company-info {
    padding: 0 0 48px;
}

.info-divider {
    border: none;
    border-top: 1px solid rgba(139, 111, 71, 0.2);
    margin: 0 0 32px;
}

.company-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.25;
}

.company-bio {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--dark-soft);
    margin-bottom: 44px;
}

.bio-lang-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--green);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: block;
    margin: 28px 0 10px;
    opacity: 0.72;
}

.company-bio-es {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--dark-soft);
    margin-bottom: 44px;
    padding-top: 16px;
    border-top: 1px solid rgba(139, 111, 71, 0.15);
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--green);
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 34px;
    border-radius: 3px;
    transition: var(--transition);
    box-shadow: 0 4px 18px rgba(92, 122, 78, 0.22);
}

.btn-visit:hover {
    background-color: var(--dark);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(44, 36, 22, 0.22);
}

.btn-visit svg {
    width: 15px;
    height: 15px;
    transition: transform 0.28s ease;
}

.btn-visit:hover svg { transform: translateX(4px); }

/* ─── ANIMATIONS ─── */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
    .hero { padding: 72px 20px 60px; }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .audio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .company-img-placeholder,
    .company-img {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .photo-grid { grid-template-columns: 1fr; }

    .nav-tab {
        font-size: 0.65rem;
        padding: 10px 10px;
    }
}
