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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2f2a28;
    background: linear-gradient(180deg, #fffdf9 0%, #f7efe8 100%);
    line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

/* Variables */
:root {
    --cream: #f8efe8;
    --ivory: #fffdf9;
    --soft-white: #fcf8f3;
    --rose-gold: #c79a7d;
    --champagne: #dcbf92;
    --burgundy: #5a2328;
    --charcoal: #2f2a28;
    --muted-blush: #e8d6cc;
    --border: rgba(90, 35, 40, 0.12);
    --shadow: 0 16px 40px rgba(47, 42, 40, 0.08);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--burgundy);
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.3rem, 4vw, 4.4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.65rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    color: #5f5954;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rose-gold);
    margin-bottom: 0.7rem;
}

/* Layout */
main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.page-intro {
    padding: 4rem 0 2rem;
}

.page-intro h1 {
    margin-bottom: 1rem;
}

.section {
    padding: 4.5rem 0;
}

.section-light {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    box-shadow: var(--shadow);
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.card,
.info-card,
.step-card,
.testimonial-card,
.product-card,
.filter-card,
.contact-card,
.course-card,
.gallery-item,
.story-card {
    background: rgba(255, 253, 249, 0.95);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--burgundy);
}

.brand span {
    color: var(--rose-gold);
}

.site-nav {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--rose-gold);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.2rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 4px 0;
    background: var(--burgundy);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0 4rem;
}

.hero-home {
    min-height: 82vh;
}

.hero-content {
    padding: 1rem 0;
}

.hero-text {
    font-size: 1.06rem;
    max-width: 580px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
}

.hero-highlights li {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--burgundy);
    border: 1px solid var(--border);
}

.hero-visual img {
    min-height: 520px;
    object-fit: cover;
    border-radius: 1.8rem;
    box-shadow: var(--shadow);
}

/* Sections */
.feature-grid,
.steps-grid,
.testimonial-grid,
.gallery-preview,
.product-grid,
.course-grid,
.story-grid {
    display: grid;
    gap: 1.3rem;
}

.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card img,
.product-card img,
.gallery-item img,
.detail-gallery img {
    height: 250px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.feature-card,
.product-card,
.gallery-item,
.story-card,
.course-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.product-card:hover,
.gallery-item:hover,
.story-card:hover,
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(47, 42, 40, 0.14);
}

.feature-card h3,
.info-card h3,
.step-card h3,
.product-card h3,
.course-card h3,
.story-card h3 {
    padding: 1rem 1rem 0.25rem;
}

.feature-card p,
.info-card p,
.step-card p,
.product-card p,
.course-card p,
.story-card p {
    padding: 0 1rem 1rem;
}

.info-card,
.step-card,
.testimonial-card,
.filter-card,
.contact-card,
.course-card {
    padding: 1.25rem;
}

.steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card span {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rose-gold);
    margin-bottom: 0.8rem;
}

.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '“';
    font-size: 3rem;
    color: var(--champagne);
    position: absolute;
    top: 0.4rem;
    left: 1rem;
}

.testimonial-card p {
    padding: 1.4rem 1rem 0.7rem;
}

.testimonial-meta {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    color: var(--burgundy);
}

.gallery-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-preview img {
    height: 280px;
    object-fit: cover;
    border-radius: 1rem;
}

.academy-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.cta-banner {
    background: linear-gradient(135deg, var(--burgundy) 0%, #7b3540 100%);
    color: white;
    border-radius: 1.5rem;
    padding: 2.4rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-banner h2,
.cta-banner p {
    color: white;
}

/* Components */
.whatsapp-float {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #1fbf5d 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.3);
    z-index: 1200;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 24px 48px rgba(37, 211, 102, 0.38);
    outline: none;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 78px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(47, 42, 40, 0.95);
    color: white;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
    opacity: 1;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 16px 40px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 18px 44px rgba(37, 211, 102, 0.42); }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--champagne), var(--rose-gold));
    color: white;
}

.btn-secondary {
    border: 1px solid var(--burgundy);
    color: var(--burgundy);
    background: rgba(255, 255, 255, 0.9);
}

.filter-bar,
.detail-actions,
.contact-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.filter-bar input,
.filter-bar select,
.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.8rem 1rem;
    background: white;
    color: var(--charcoal);
}

.filter-bar select {
    min-width: 140px;
}

.filter-chip {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--burgundy);
    color: white;
}

.product-card .card-body,
.course-card .card-body,
.story-card .card-body,
.contact-card .card-body {
    padding: 0 1rem 1rem;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.6rem 0;
}

.product-meta span,
.badge {
    display: inline-block;
    background: var(--cream);
    color: var(--burgundy);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.product-actions {
    display: flex;
    gap: 0.7rem;
    padding: 0 1rem 1rem;
    flex-wrap: wrap;
}

.product-actions a {
    flex: 1;
    text-align: center;
}

.accordion {
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
}

.accordion-item + .accordion-item {
    border-top: 1px solid var(--border);
}

.accordion-toggle {
    width: 100%;
    background: white;
    border: 0;
    text-align: left;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--burgundy);
}

.accordion-content {
    display: none;
    padding: 0 1.2rem 1rem;
}

.accordion-content.open {
    display: block;
}

.gallery-toolbar {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(47, 42, 40, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox img {
    max-width: min(900px, 100%);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.detail-gallery {
    display: grid;
    gap: 1rem;
}

.thumb-row {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.thumb-row button {
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 0.8rem;
    overflow: hidden;
}

.thumb-row button.active {
    border-color: var(--rose-gold);
}

.thumb-row img {
    width: 90px;
    height: 70px;
    object-fit: cover;
}

.detail-copy ul {
    padding-left: 1.2rem;
    color: #5f5954;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.table-grid div {
    background: white;
    padding: 0.8rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border);
}

.measurement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.measurement-card {
    padding: 1rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
    border-radius: 1rem;
}

.contact-form button {
    border: 0;
    cursor: pointer;
}

.map-placeholder {
    min-height: 260px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--cream), var(--muted-blush));
    color: var(--burgundy);
    border: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
}

/* Footer */
.site-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    padding: 3rem 1.5rem 2rem;
    background: var(--burgundy);
    color: white;
    margin-top: 2rem;
}

.site-footer h3,
.site-footer h4 {
    color: white;
}

.site-footer p {
    color: rgba(255,255,255,0.82);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 960px) {
    .hero,
    .detail-layout,
    .contact-grid,
    .three-up,
    .four-up,
    .steps-grid,
    .testimonial-grid,
    .gallery-preview,
    .measurement-grid {
        grid-template-columns: 1fr 1fr;
    }

    .academy-preview {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 780px) {
    .site-header {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0.7rem;
    }

    .site-nav.open {
        display: flex;
    }

    .hero,
    .detail-layout,
    .contact-grid,
    .three-up,
    .four-up,
    .steps-grid,
    .testimonial-grid,
    .gallery-preview,
    .measurement-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero-visual img {
        min-height: 320px;
    }

    .section-light {
        padding: 2rem 1rem;
    }

    .site-footer {
        padding: 2rem 1rem;
    }
}
