@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    /* Color Palette */
    --primary: #4A2511;       /* Deep Mahogany */
    --primary-light: #6A391D; /* Warm Walnut */
    --secondary: #8C3F1D;     /* Sienna/Auburn */
    --accent: #D4AF37;        /* Gold/Brass */
    --accent-light: #E8C85A;  /* Soft Gold */
    --bg-cream: #FAF6F0;      /* Warm Ivory */
    --bg-white: #FFFFFF;      /* Clean White */
    --text-espresso: #2A160C; /* Deep Espresso */
    --text-muted: #6B5B52;     /* Muted Charcoal Brown */
    --border-color: #E6DDD0;  /* Soft Warm Border */
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --wood-gradient: linear-gradient(135deg, #4A2511 0%, #6A391D 50%, #8C3F1D 100%);

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px rgba(42, 22, 12, 0.05);
    --shadow-md: 0 8px 30px rgba(42, 22, 12, 0.08);
    --shadow-lg: 0 16px 40px rgba(42, 22, 12, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Header height */
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-espresso);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
}

p {
    color: var(--text-muted);
}

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

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-cream);
}

.btn-primary:hover {
    background-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-cream);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--wood-gradient);
    color: #FFF8DC;
    border: 1px solid var(--accent);
}

.btn-gold:hover {
    background: var(--primary-light);
    color: #FFF;
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Sticky Header */
.top-bar {
    background-color: var(--primary);
    color: var(--bg-cream);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 101;
}

.top-bar a {
    color: var(--bg-cream) !important;
}

.top-bar a:hover {
    color: var(--accent) !important;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 5px 0;
        font-size: 0.72rem;
    }
    .top-bar-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }
    .top-bar-left {
        display: none;
    }
    .top-bar-right {
        gap: 12px;
        justify-content: center;
        white-space: nowrap;
    }
    .top-bar-right a {
        white-space: nowrap;
        font-size: 0.72rem;
        display: inline-flex;
        align-items: center;
    }
}

.header {
    height: var(--header-height);
    background-color: var(--bg-cream);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header .logo-text,
.header .nav-link,
.header .icon-btn {
    color: var(--primary);
}

.header .menu-toggle span {
    background-color: var(--primary);
}

/* Transparent layout (used on Home Page hero overlay) */
.header.header-transparent {
    position: absolute;
    top: 36px;
    left: 0;
    background-color: transparent;
    border-bottom: none;
}

@media (max-width: 768px) {
    .header {
        height: 60px;
    }
    .header.header-transparent {
        position: relative;
        top: 0;
        background-color: var(--primary);
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
}

.header.header-transparent .logo-text,
.header.header-transparent .nav-link,
.header.header-transparent .icon-btn {
    color: #FFFDF9; /* Light cream/white */
}

.header.header-transparent .menu-toggle span {
    background-color: #FFFDF9;
}

/* Sticky state (applied by JS scroll trigger) */
.header.is-sticky {
    position: sticky;
    top: 0;
    background-color: rgba(250, 246, 240, 0.98);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

/* Only absolute headers need fixed position on scroll to sit over standard sections */
.header.header-transparent.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
}

/* Force dark brown text in sticky state for both default and transparent headers */
.header.is-sticky .logo-text,
.header.is-sticky .nav-link,
.header.is-sticky .icon-btn {
    color: var(--primary) !important;
}

.header.is-sticky .menu-toggle span {
    background-color: var(--primary) !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.logo-accent {
    color: var(--accent);
}

.logo-tagline {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: -4px;
    display: block;
}

@media (max-width: 768px) {
    .logo svg {
        width: 24px;
        height: 24px;
    }
    .logo-text {
        font-size: 1.15rem;
    }
    .logo-tagline {
        display: none;
    }
    .header-actions {
        gap: 8px;
    }
    .icon-btn {
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.05rem;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-smooth);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    color: var(--primary);
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.icon-btn:hover {
    background-color: rgba(74, 37, 17, 0.05);
    color: var(--secondary);
}

.bag-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--secondary);
    color: var(--bg-cream);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-cream);
}

/* Backdrop Overlay for Mobile Navigation */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile-header {
    display: none;
}

/* Hamburger Menu button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(74, 37, 17, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 105;
    padding: 6px;
    width: 40px;
    height: 40px;
    transition: var(--transition-smooth);
}

.header.header-transparent .menu-toggle {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 248, 220, 0.4);
}

.header.is-sticky .menu-toggle {
    background: rgba(74, 37, 17, 0.08);
    border-color: var(--border-color);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
    display: block;
}

.header.header-transparent .menu-toggle span {
    background-color: #FFF8DC;
}

.header.is-sticky .menu-toggle span {
    background-color: var(--primary) !important;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background-color: #FFFFFF !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 20px 16px 40px;
        gap: 6px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transition: var(--transition-smooth);
        z-index: 105;
        overflow-y: auto;
        border-left: 3px solid var(--accent);
    }

    .nav.is-open {
        right: 0;
    }

    .nav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        margin-bottom: 14px;
        border-bottom: 2px solid var(--accent);
        background: var(--wood-gradient);
        color: #FFF8DC;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
    }

    .nav-mobile-title {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        font-weight: 700;
        color: #FFF8DC;
        letter-spacing: 0.05em;
    }

    .nav-close-btn {
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 248, 220, 0.4);
        color: #FFF8DC;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition-smooth);
    }

    .nav-close-btn:hover {
        background: var(--accent);
        color: var(--primary);
    }

    .nav-link {
        color: var(--primary) !important;
        font-size: 1.05rem;
        font-weight: 700;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: var(--radius-sm);
        transition: var(--transition-smooth);
        background-color: transparent;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active, .nav-link:hover {
        color: var(--secondary) !important;
        background-color: rgba(74, 37, 17, 0.08);
        padding-left: 20px;
    }
}

/* Footer Section */
.footer {
    background-color: #1F120A;
    color: var(--bg-cream);
    padding: 80px 0 30px;
    font-size: 0.95rem;
    border-top: 2px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

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

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

.footer-brand .logo-text {
    color: var(--bg-cream);
    font-size: 1.8rem;
}

.footer-brand p {
    color: var(--text-light);
    margin: 20px 0;
    opacity: 0.8;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-cream);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--accent);
    position: relative;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--bg-cream);
    opacity: 0.75;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 1;
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.footer-contact li svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Section Heading styles */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-header .tagline {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
}

.section-header p {
    font-size: 1.05rem;
}

.divider-gold {
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 20px auto 0;
}
