@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --cream: #f8f0dc;
    --sand: #edd7a2;
    --gold: #d6ae57;
    --gold-deep: #b8892d;
    --teal: #1d9eb0;
    --emerald: #0e5b4d;
    --forest: #083a33;
    --ink: #13211d;
    --white: #ffffff;
    --shadow-lg: 0 24px 60px rgba(10, 44, 36, 0.18);
    --shadow-md: 0 14px 36px rgba(11, 48, 40, 0.14);
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 214, 112, 0.42), transparent 34%),
        linear-gradient(180deg, #fff7e8 0%, #f6edd7 42%, #f8f3e8 100%);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(29, 158, 176, 0.12), transparent 20%),
        radial-gradient(circle at 80% 12%, rgba(214, 174, 87, 0.18), transparent 22%),
        radial-gradient(circle at 50% 90%, rgba(14, 91, 77, 0.09), transparent 26%);
    pointer-events: none;
    z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(6, 40, 36, 0.92), rgba(9, 52, 47, 0.78));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 34px rgba(4, 29, 26, 0.18);
}

.topbar::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 224, 158, 0.48), transparent);
}

.topbar-inner {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    min-height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-mark {
    width: 74px;
    height: 52px;
    display: flex;
    align-items: center;
}

.brand-mark img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(2, 21, 20, 0.16));
}

.brand-copy strong,
.brand-copy span { display: block; }

.brand-copy strong {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-copy span {
    color: rgba(255, 248, 233, 0.74);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end;
}

.nav a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 251, 243, 0.9);
    font-size: 0.94rem;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 240, 211, 0.16);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 248, 233, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font: inherit;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.nav-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 22px;
    height: 22px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > summary {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 251, 243, 0.9);
    font: 700 0.94rem "Manrope", sans-serif;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::marker { display: none; }

.nav-dropdown > summary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 240, 211, 0.16);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 290px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 8px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(9, 52, 47, 0.98), rgba(7, 42, 39, 0.96));
    border: 1px solid rgba(255, 248, 233, 0.12);
    box-shadow: 0 20px 40px rgba(4, 29, 26, 0.28);
    backdrop-filter: blur(18px);
    display: grid;
    gap: 4px;
    z-index: 100;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 14px;
    color: rgba(255, 251, 243, 0.86) !important;
    font-size: 0.88rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease;
    transform: none !important;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

/* Page layout */
main { padding: 48px 0 64px; }

.page-hero {
    padding: 48px 42px;
    border-radius: 40px;
    background:
        linear-gradient(130deg, rgba(8, 58, 51, 0.96), rgba(23, 111, 113, 0.9) 56%, rgba(246, 202, 96, 0.36));
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 194, 126, 0.35);
    color: var(--white);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -120px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 212, 109, 0.6), transparent 66%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 247, 228, 0.12);
    border: 1px solid rgba(248, 217, 152, 0.25);
    color: #fff5d6;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-hero h1 {
    position: relative;
    margin: 0 0 16px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 0.95;
    color: var(--white);
}

.page-hero p {
    position: relative;
    margin: 0;
    color: rgba(255, 248, 236, 0.9);
    font-size: 1.06rem;
    max-width: 680px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 248, 236, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.back-link:hover { color: var(--white); }

.section { margin-bottom: 36px; }

.kicker {
    color: var(--gold-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section h2 {
    margin: 0 0 16px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--forest);
    line-height: 1.05;
}

.section > p, .section-intro {
    color: rgba(19, 33, 29, 0.76);
    font-size: 1.04rem;
    margin: 0 0 22px;
    max-width: 720px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 254, 251, 0.88), rgba(248, 240, 220, 0.88));
    border: 1px solid rgba(213, 185, 130, 0.28);
    box-shadow: var(--shadow-md);
}

.card .label {
    color: var(--gold-deep);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.78rem;
    font-weight: 800;
}

.card h3 {
    margin: 10px 0 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    color: var(--forest);
    font-weight: 700;
}

.card p { margin: 0; color: rgba(19, 33, 29, 0.8); }

/* Footer */
.footer {
    padding: 24px 0 42px;
    border-top: 1px solid rgba(19, 33, 29, 0.1);
    margin-top: 48px;
    font-size: 0.92rem;
    color: rgba(19, 33, 29, 0.7);
    text-align: center;
}

/* Mobile */
@media (max-width: 760px) {
    .topbar-inner { flex-wrap: nowrap; padding: 14px 0; gap: 14px; }
    .brand { max-width: calc(100% - 76px); }
    .nav-toggle { display: inline-flex; flex: 0 0 auto; }

    .nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0; right: 0;
        padding: 14px;
        border: 1px solid rgba(255, 248, 233, 0.12);
        border-top: none;
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(9, 52, 47, 0.96), rgba(7, 42, 39, 0.94));
        box-shadow: 0 20px 40px rgba(4, 29, 26, 0.22);
        backdrop-filter: blur(18px);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .topbar.nav-open .nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav a {
        width: 100%;
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown { position: static; }

    .nav-dropdown > summary {
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        max-height: none;
        border-radius: 14px;
        margin-top: 6px;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
    }

    .page-hero { padding: 28px 22px; border-radius: 24px; }
    .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .shell, .topbar-inner { width: min(var(--container), calc(100% - 28px)); }
}

/* --- Compatibility aliases for category page markup --- */

.brand-logo {
    width: 74px;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(2, 21, 20, 0.16));
}

.nav-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 251, 243, 0.9);
    font-size: 0.94rem;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 240, 211, 0.16);
    color: var(--white);
    transform: translateY(-1px);
}

.topic-grid, .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.topic-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 254, 251, 0.88), rgba(248, 240, 220, 0.88));
    border: 1px solid rgba(213, 185, 130, 0.28);
    box-shadow: var(--shadow-md);
}

.topic-meta {
    color: var(--gold-deep);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.topic-card h3 {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    color: var(--forest);
    font-weight: 700;
}

.topic-card p { margin: 0; color: rgba(19, 33, 29, 0.8); }

.page-layout { padding-bottom: 56px; }

.lead {
    color: rgba(255, 248, 236, 0.9);
    font-size: 1.06rem;
    margin: 12px 0 0;
}

.crumbs {
    margin-bottom: 20px;
    color: rgba(255, 248, 236, 0.62);
    font-size: 0.9rem;
}

.crumbs a {
    color: rgba(255, 220, 150, 0.9);
    font-weight: 700;
}

@media (max-width: 760px) {
    .nav-link {
        width: 100%;
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.08);
    }
    .topic-grid, .cards-grid { grid-template-columns: 1fr; }
}

/* Mobile enhancements */
@media (max-width: 480px) {
    .shell, .topbar-inner { width: min(var(--container), calc(100% - 24px)); }
    .page-hero { padding: 22px 16px; border-radius: 18px; }
    .page-hero h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
    .page-hero p, .lead { font-size: 0.97rem; }
    .eyebrow { font-size: 0.75rem; padding: 6px 12px; }
    .topic-card { padding: 18px; }
    .section h2 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
    .brand-copy strong { font-size: 0.88rem; }
    .brand-copy span { display: none; }
    .brand-mark { width: 52px; height: 40px; }
    .footer { padding: 20px 0 32px; font-size: 0.84rem; }
}
