/* =============================================
   BROT CULTURE — Main Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
    --bg:           #F4EEE3;
    --bg-alt:       #FDFAF5;
    --brown-dark:   #3A1E0C;
    --brown-mid:    #7B4F28;
    --olive:        #5C6B3F;
    --tan:          #C4923E;
    --border:       #D9CEB8;
    --shadow:       rgba(58, 30, 12, 0.12);
    --shadow-md:    rgba(58, 30, 12, 0.2);
    --font-serif:   'Playfair Display', Georgia, serif;
    --font-script:  'Dancing Script', cursive;
    --font-sans:    'Lato', 'Helvetica Neue', Arial, sans-serif;
    --radius:       10px;
    --transition:   0.3s ease;
    --header-h:     88px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg);
    color: var(--brown-dark);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* --- Anchor jump offset --- */
section[id], footer[id] { scroll-margin-top: var(--header-h); }

/* --- Section shared --- */
section { padding: 80px 24px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-script {
    display: block;
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--olive);
    margin-bottom: 8px;
}
.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brown-dark);
}
.section-divider {
    width: 64px;
    height: 2px;
    background: var(--tan);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0s);
}
.reveal.reveal-left  { transform: translateX(-36px); }
.reveal.reveal-right { transform: translateX(36px); }
.reveal.revealed {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 238, 227, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 24px var(--shadow-md);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.logo-link { display: flex; align-items: center; }
.logo { height: 80px; width: auto; }

/* Nav links */
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brown-dark);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--olive);
    border-bottom-color: var(--olive);
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    z-index: 201;
    position: relative;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brown-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO / WELCOME SECTION
   ============================================= */
.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-alt);
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    min-height: max(600px, calc(90vh - var(--header-h)));
    display: flex;
    align-items: center;
}
.hero-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    object-fit: contain;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0;
}

/* Left: text */
.hero-script {
    display: block;
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--olive);
    margin-bottom: 8px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.05;
    color: var(--brown-dark);
    margin-bottom: 12px;
}
.hero-tagline {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tan);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    margin: 20px 0;
}
.hero-description {
    font-size: 1.05rem;
    color: var(--brown-mid);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Buttons */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-cta,
.hero-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 28px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
}
.hero-cta {
    background: var(--brown-dark);
    color: var(--bg);
    border: 2px solid var(--brown-dark);
}
.hero-cta:hover {
    background: var(--olive);
    border-color: var(--olive);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-md);
}
.hero-whatsapp {
    color: #25D366;
    border: 2px solid #25D366;
    background: transparent;
    letter-spacing: 0.06em;
    text-transform: none;
}
.hero-whatsapp:hover {
    background: #25D366;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}
.whatsapp-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Right: badges */
.hero-badges-col { display: flex; flex-direction: column; gap: 16px; }
.badge {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.badge:hover {
    box-shadow: 0 4px 18px var(--shadow);
    transform: translateX(4px);
}
.badge-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--olive);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}
.badge-body strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 4px;
}
.badge-body p {
    font-size: 0.88rem;
    color: var(--brown-mid);
    line-height: 1.5;
}

/* =============================================
   GALLERY / SLIDESHOW SECTION  (dark canvas)
   ============================================= */
.gallery-section {
    background: #2B1508;
    padding: 80px 24px 96px;
}
.gallery-section .section-script { color: var(--tan); }
.gallery-section .section-header h2 { color: var(--bg); }
.gallery-section .section-divider { background: var(--tan); }

.slideshow-container { max-width: 960px; margin: 0 auto; }

/* Wrapper */
.slideshow-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(0,0,0,0.5);
    background: #1A0C04;
}

/* Track */
.slideshow-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Slides */
.slide { flex: 0 0 100%; min-width: 100%; }
.slide-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}
.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder */
.slide-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, #3A2010 0%, #251205 60%, #301A0A 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.placeholder-icon svg { width: 72px; height: 72px; opacity: 0.4; }
.placeholder-text {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: rgba(196, 146, 62, 0.6);
    letter-spacing: 0.02em;
}

/* Arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(244, 238, 227, 0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(244, 238, 227, 0.85);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: background var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition);
    z-index: 10;
    backdrop-filter: blur(4px);
}
.slide-arrow:hover {
    background: var(--bg);
    color: var(--brown-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transform: translateY(-50%) scale(1.08);
}
.slide-arrow.prev { left: 16px; }
.slide-arrow.next { right: 16px; }
.slide-arrow svg { width: 20px; height: 20px; stroke-width: 2.5px; }

/* Controls row (dots + counter) */
.slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}
.slideshow-dots { display: flex; gap: 10px; }
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 0;
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.dot.active, .dot:hover {
    background: var(--tan);
    border-color: var(--tan);
    transform: scale(1.3);
}
.slideshow-counter {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(244, 238, 227, 0.45);
}

/* Range Slider */
.slideshow-slider { max-width: 320px; margin: 16px auto 0; padding: 0 4px; }
.slideshow-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.12);
    outline: none;
    cursor: pointer;
}
.slideshow-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tan);
    border: 2px solid #2B1508;
    box-shadow: 0 1px 6px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform var(--transition);
}
.slideshow-slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slideshow-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tan);
    border: 2px solid #2B1508;
    cursor: pointer;
}
.slideshow-slider input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--tan) var(--fill, 0%), rgba(255,255,255,0.12) var(--fill, 0%));
    height: 4px;
    border-radius: 2px;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px 28px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 16px var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--olive), var(--tan));
    border-radius: var(--radius) var(--radius) 0 0;
}
.feature-card:hover {
    box-shadow: 0 10px 36px var(--shadow-md);
    transform: translateY(-4px);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }
.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 0.92rem;
    color: var(--brown-mid);
    line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--brown-dark);
    color: rgba(244, 238, 227, 0.9);
    padding: 60px 24px 0;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-items: center;
}
.footer-logo-col   { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-text-col   { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-whatsapp-col { display: flex; flex-direction: column; align-items: flex-end; }
.footer-logo-img {
    height: 72px;
    width: auto;
    background: var(--bg);
    padding: 8px 14px;
    border-radius: var(--radius);
}
.footer-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tan);
    margin-top: 10px;
    font-weight: 700;
}
.footer-script {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--tan);
    margin-bottom: 12px;
    line-height: 1.3;
}
.footer-contact-text {
    font-size: 0.92rem;
    color: rgba(244, 238, 227, 0.7);
    line-height: 1.7;
}
.footer-contact-text strong { color: rgba(244, 238, 227, 0.95); }
.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 24px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #25D366;
    border: 2px solid #25D366;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.footer-whatsapp:hover {
    background: #25D366;
    color: #fff;
    transform: translateY(-2px);
}
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(244, 238, 227, 0.4);
}
.footer-love { color: var(--tan); font-size: 0.82rem; }

/* =============================================
   RESPONSIVE — Tablet  (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
    .hero { min-height: auto; padding: 60px 24px 56px; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 0; }
    .hero-bg-img {
        top: 0;
        transform: translateX(-50%);
        height: 35%;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-logo-col,
    .footer-text-col,
    .footer-whatsapp-col { align-items: center; }
    .footer-script { font-size: 1.4rem; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* =============================================
   RESPONSIVE — Mobile  (≤ 600px)
   ============================================= */
@media (max-width: 600px) {
    :root { --header-h: 64px; }

    /* Header */
    .header-inner { height: 64px; padding: 0 16px; }
    .logo { height: 48px; }

    /* Hamburger visible, desktop nav hidden by default */
    .hamburger { display: flex; }
    .main-nav {
        position: fixed;
        inset: 0;
        background: var(--bg-alt);
        z-index: 200;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s ease;
    }
    .main-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .main-nav ul { flex-direction: column; gap: 36px; text-align: center; }
    .main-nav a {
        font-size: 1.6rem;
        letter-spacing: 0.1em;
        border-bottom: none;
        padding-bottom: 0;
    }
    .main-nav a:hover, .main-nav a.active { border-bottom: none; color: var(--olive); }

    /* Sections */
    section { padding: 48px 16px; }
    .hero { padding: 48px 16px 44px; min-height: auto; }

    /* Hero text */
    .hero-script { font-size: 1.5rem; }
    .hero-description { font-size: 0.95rem; }

    /* Hero buttons: stack full-width */
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-cta, .hero-whatsapp { justify-content: center; width: 100%; }

    /* Slideshow arrows */
    .slide-arrow { width: 36px; height: 36px; }
    .slide-arrow svg { width: 16px; height: 16px; }
    .slide-arrow.prev { left: 8px; }
    .slide-arrow.next { right: 8px; }

    /* Footer */
    .site-footer { padding: 44px 16px 0; }
    .footer-logo-img { height: 58px; }
    .footer-script { font-size: 1.2rem; }
}

/* =============================================
   RESPONSIVE — Very small  (≤ 380px)
   ============================================= */
@media (max-width: 380px) {
    .logo { height: 40px; }
    .hero-title { font-size: 2rem; }
    .main-nav a { font-size: 1.3rem; }
}
