@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&family=Roboto+Slab:wght@400;500;600;700&display=swap');

:root {
    --background: hsl(220 22% 9%);
    --foreground: hsl(45 10% 83%);
    --card: hsl(220 20% 12%);
    --muted: hsl(220 15% 17%);
    --muted-foreground: hsl(220 10% 58%);
    --accent: hsl(35 25% 45%);
    --primary: hsl(45 14% 68%);
    --primary-foreground: hsl(220 20% 10%);
    --border: hsla(220, 15%, 35%, 0.45);
    --stone: hsl(45 8% 55%);
    --parchment: hsl(45 15% 75%);
    --ivory: hsl(45 10% 88%);
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.28);
    --radius: 4px;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-brand: 'Roboto Slab', serif;
    /* Heavy slab-serif for IMPORBAC */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    font-weight: 500;
}

p {
    margin: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: var(--stone);
    font-weight: 300;
}

.display-xl {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    line-height: 1.05;
}

.display-lg {
    font-size: clamp(2.2rem, 4.3vw, 3.2rem);
    line-height: 1.05;
}

.display-md {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.1;
}

.display-sm {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.15;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-tight {
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.stack-12 {
    display: grid;
    gap: 3rem;
}

.stack-8 {
    display: grid;
    gap: 2rem;
}

.stack-6 {
    display: grid;
    gap: 1.5rem;
}

.stack-4 {
    display: grid;
    gap: 1rem;
}

.stack-2 {
    display: grid;
    gap: 0.5rem;
}

.grid-two {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.grid-two-balanced {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-cards {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 76px;
    background: rgba(15, 19, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #C9983A;
    /* Golden accent line */
    z-index: 20;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-brand);
    /* Roboto Slab - heavy slab-serif */
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: #754123;
    /* Warm reddish-brown to match logo */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
    font-weight: 700;
    /* Bold */
}

.brand-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    /* Brighten to match brand text color */
    filter: brightness(1.75) contrast(1.05) sepia(0.15) saturate(1.1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: hsla(45, 50%, 80%, 0.65);
    /* Subtle translucent yellow/gold */
    position: relative;
    padding-bottom: 6px;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--foreground);
}

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

.nav-link.is-active {
    color: var(--foreground);
}

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

.burger {
    display: none;
    background: none;
    border: none;
    color: rgba(240, 240, 240, 0.8);
}

.mobile-menu {
    display: none;
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.35rem;
    }

    .mobile-menu {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        background: rgba(17, 22, 30, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: none;
        flex-direction: column;
        padding: 1rem 1.5rem 1.75rem;
        gap: 1rem;
    }

    .mobile-menu.open {
        display: flex;
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--ivory);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.7) contrast(1.05) brightness(0.95);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 19, 26, 0.65), rgba(15, 19, 26, 0.92));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 1.5rem;
    margin-top: 40px;
}

.hero-lead {
    max-width: 540px;
    margin: 0 auto 1.75rem;
    color: rgba(240, 240, 240, 0.8);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.8rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    font-weight: 300;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
    border-color: rgba(232, 210, 152, 0.7);
}

.btn-primary:hover {
    background: rgba(232, 210, 152, 0.1);
    /* Subtle fill on hover */
    color: var(--primary);
}

.btn-ghost {
    color: rgba(240, 240, 240, 0.7);
    border: 1px solid transparent;
    /* Ensure it has a border box to avoid layout jump */
}

/* INTERACTIVE BORDER SWAP LOGIC */

/* 1. When hovering the container, turn OFF the default active state of the primary button */
.actions:hover .btn-primary {
    border-color: transparent;
    color: rgba(240, 240, 240, 0.7);
    /* Dim text like ghost */
}

/* 2. BUT, whichever button is actually hovered gets the active state */
.actions .btn:hover {
    border-color: rgba(232, 210, 152, 0.7) !important;
    color: var(--primary) !important;
    background: rgba(232, 210, 152, 0.1);
    /* Subtle fill */
}

.card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.surface {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
}

.surface-muted {
    background: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.image-frame {
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.78) contrast(1.05) brightness(0.94);
}

.image-border {
    display: none;
}

.text-dim {
    color: rgba(240, 240, 240, 0.65);
}

.text-muted {
    color: var(--muted-foreground);
}

.list-dash {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.list-dash li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    align-items: start;
    color: rgba(240, 240, 240, 0.75);
}

.list-dash span {
    color: var(--stone);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 0 0 0.35rem;
}

.stats p {
    color: var(--muted-foreground);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer {
    background: hsl(220 25% 8%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .brand {
    color: #754123;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.footer .brand-logo {
    filter: brightness(1.12);
    opacity: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer small {
    color: rgba(255, 255, 255, 0.55);
}

.top-offset {
    padding-top: 110px;
}

.divider {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.badge-outline {
    display: inline-flex;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.notice {
    text-align: center;
    color: rgba(240, 240, 240, 0.55);
    font-size: 0.95rem;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fade-up 0.8s ease both;
}

.fade-up.delay-1 {
    animation-delay: 0.15s;
}

.fade-up.delay-2 {
    animation-delay: 0.3s;
}

.fade-up.delay-3 {
    animation-delay: 0.45s;
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    width: 1px;
    height: 70px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent, rgba(232, 210, 152, 0.35), transparent);
    z-index: 3;
}

@media (max-width: 720px) {
    .hero {
        min-height: 90vh;
    }

    .hero-content {
        margin-top: 20px;
    }

    .actions {
        gap: 0.5rem;
        /* Reduced from 0.75rem to fit tight spaces */
    }

    /* Make buttons slightly more compact on mobile to prevent stacking */
    .btn {
        padding: 0.8rem 1rem;
        /* Reduced horizontal padding */
        font-size: 0.85rem;
    }
}

/* Language Suggestion Banner */
.lang-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 19, 26, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--accent);
    padding: 1.25rem;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.lang-banner.show {
    transform: translateY(0);
}

.lang-banner-text {
    font-size: 0.95rem;
    color: var(--ivory);
}

.lang-banner-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-xs {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accept {
    background: rgba(201, 152, 58, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-accept:hover {
    background: var(--accent);
    color: var(--background);
}

.btn-dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.btn-dismiss:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--ivory);
}

@media (max-width: 600px) {
    .lang-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
}