@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
    /* ═══════════════════════════════════════════
       KAIRIVA — Exact Logo Color System
       ① Maroon   #5D2119  (K letterform & wordmark)
       ② Gold     #F0C472  (Lotus flower accent)
       ③ Charcoal #2B2828  (Dark background)
    ═══════════════════════════════════════════ */

    /* ① MAROON #5D2119 — Primary Brand Color */
    --brand-primary:       #5D2119;
    --brand-primary-dark:  #b15e58;
    --brand-primary-light: #bb807b;
    --brand-primary-soft:  rgba(93, 33, 25, 0.10);

    /* ② GOLD #F0C472 — Accent / Lotus Color */
    --brand-accent:        #F0C472;
    --brand-accent-dark:   #C49A40;
    --brand-accent-light:  #F7D99A;
    --brand-accent-soft:   rgba(240, 196, 114, 0.18);

    /* ③ CHARCOAL #2B2828 — Dark / Text / Footer */
    --brand-dark:          #2B2828;
    --brand-mid:           #3D3838;
    --brand-dark-soft:     rgba(43, 40, 40, 0.08);

    /* ── Surfaces (warm cream tinted from maroon) */
    --brand-surface:       #FCF6F4;
    --brand-surface-cream: #FEF9F6;
    --brand-surface-alt:   #F6EDEA;

    /* ── Text */
    --brand-text:          #2B2828;
    --brand-muted:         #7A6560;

    /* ── Whites / Blacks */
    --brand-white:         #ffffff;
    --brand-black:         #000000;

    /* ── RGB versions (for rgba() usage) */
    --brand-dark-rgb:      43, 40, 40;
    --brand-white-rgb:     255, 255, 255;
    --brand-black-rgb:     0, 0, 0;
    --brand-primary-rgb:   93, 33, 25;
    --brand-accent-rgb:    240, 196, 114;

    /* ── Semantic / Utility */
    --brand-success:       #10b981;
    --brand-rating:        #F0C472;
    --brand-footer-bg:     #1C1919;
    --brand-surface-input: #FCF6F4;
    --brand-surface-form:  #FEF9F6;
    --brand-border-form:   #EADAD6;
    --brand-eyebrow:       #F0C472;
    --brand-link-warm:     #C49A40;
    --brand-border:        rgba(197, 180, 178, 0.12);

    /* ── Typography */
    --font-display: "Cormorant Garamond", serif;
    --font-body:    "DM Sans", sans-serif;

    /* ── Bootstrap 5 Global Overrides */
    --bs-primary:          #5D2119;
    --bs-primary-rgb:      93, 33, 25;
    --bs-link-color:       #5D2119;
    --bs-link-hover-color: #e8d5d4;
    --bs-focus-ring-color: rgba(191, 182, 181, 0.25);

    /* Native browser element override */
    accent-color: var(--brand-primary);

    --transition:      all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1400px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--brand-white);
    color: var(--brand-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-width);
    z-index: 1000;
    padding: 6px 32px;
    border-radius: 8px;
    transition: var(--transition);
    background: rgba(var(--brand-white-rgb), 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--brand-white-rgb), 0.55);
}

header.scrolled {
    top: 10px;
    background: rgba(var(--brand-white-rgb), 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--brand-white-rgb), 0.2);
    box-shadow: 0 8px 32px 0 rgba(var(--brand-black-rgb), 0.1);
    padding: 6px 40px;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    line-height: normal;
}

/* Navbar logo image */
.logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Footer logo image */
.footer-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

/* Suppress text underline decoration on footer logo */
a.footer-logo::after {
    display: none !important;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    height: 100%;
    margin: 0;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-primary);
}

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

.nav-icons {
    display: flex;
    gap: 24px;
    justify-self: end;
}

.nav-icons span {
    cursor: pointer;
    font-size: 18px;
}

/* Global Button */
.btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--brand-dark);
    color: var(--brand-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover,
.btn:focus,
.btn:active {
    background: var(--brand-primary);
    color: var(--brand-white) !important;
    transform: translateY(-5px);
}

/* Section Global */
.section {
    padding: 120px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 24px;
}

.section-title h2 {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--brand-white);
    z-index: 2000;
    transition: var(--transition);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.subtotal-price {
    font-weight: 600;
}

.cart-drawer.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--brand-black-rgb), 0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--brand-border-form);
}

.cart-items {
    flex: 1;
}

.cart-footer {
    padding-top: 20px;
    border-top: 1px solid var(--brand-border-form);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2100;
    width: min(calc(100% - 48px), 760px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px;
    background: rgba(var(--brand-white-rgb), 0.94);
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(var(--brand-black-rgb), 0.16);
    transform: translate(-50%, 24px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cookie-banner.active {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.cookie-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-copy strong {
    font-family: var(--font-display);
    font-size: 15px;
    text-transform: uppercase;
}

.cookie-copy span {
    color: var(--brand-muted);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    min-width: 96px;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-primary {
    background: var(--brand-dark);
    color: var(--brand-white);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--brand-dark);
}

.cookie-btn:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--brand-white);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: var(--brand-text);
    color: var(--brand-white);
    padding: 100px 0 40px;
    border-top: 1px solid var(--brand-border);
}

.footer-logo {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    display: inline-block;
    font-family: var(--font-display);
    letter-spacing: -1px;
    position: relative;
}

.footer-logo::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 3px;
    bottom: -8px;
    left: 0;
    background: var(--brand-primary);
    border-radius: 2px;
}

.footer-text {
    color: var(--brand-muted);
    max-width: 350px;
    font-size: 15px;
    line-height: 1.8;
}

.footer-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 2px;
    color: var(--brand-white);
    text-transform: uppercase;
}

.footer-links {
    padding: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--brand-muted);
    font-size: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-primary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--brand-white);
}

.footer-links a:hover::after {
    width: 100%;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--brand-muted);
    padding-bottom: 8px;
    transition: var(--transition);
    margin-top: 20px;
}

.newsletter-form:focus-within {
    border-bottom-color: var(--brand-white);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: var(--brand-white);
    flex: 1;
    outline: none;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: var(--brand-muted);
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--brand-accent);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    padding-left: 15px;
}

.newsletter-form button:hover {
    color: var(--brand-white);
}

.footer-bottom p a {
    color: var(--brand-accent) !important;
    transition: var(--transition);
}

.footer-bottom p a:hover {
    color: var(--brand-white) !important;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(var(--brand-white-rgb), 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--brand-muted);
    font-size: 14px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--brand-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--brand-white-rgb), 0.05);
}

.footer-social a:hover {
    color: var(--brand-white);
    background: var(--brand-primary);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    /* Keep logo balanced on mobile screens */
    .logo-img {
        height: 52px;
    }

    header {
        top: 0;
        width: 100%;
        border-radius: 0;
        padding: 10px 24px;
        background: rgba(var(--brand-white-rgb), 0.82);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    header.scrolled {
        top: 0;
        padding: 10px 24px;
    }

    /* .footer-grid removed */
    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 12px;
        background: rgba(var(--brand-white-rgb), 0.96);
        border: 1px solid var(--brand-border);
        border-radius: 8px;
        box-shadow: 0 18px 40px rgba(var(--brand-black-rgb), 0.12);
        height: auto;
        align-items: flex-start;
        justify-content: flex-start;
        z-index: 1001;
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active li a {
        display: inline-block;
        padding: 14px 10px;
    }

    .nav-icons {
        margin: 0;
    }

    .mobile-menu-toggle {
        cursor: pointer;
        font-size: 20px;
        order: -1;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 36px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .cookie-banner {
        bottom: 16px;
        width: calc(100% - 32px);
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
