/* ======================
   CSS Variables - Wine Theme
   ====================== */
:root {
    /* Wine-themed colors */
    --color-primary: #722f37;        /* Deep burgundy - primary actions */
    --color-primary-dark: #5a1f28;   /* Darker burgundy - hover states */
    --color-accent: #c9a961;         /* Gold accent */
    --color-accent-light: #e8d5a8;   /* Light gold */
    --color-bg: #faf8f5;             /* Warm off-white background */
    --color-surface: #ffffff;        /* White cards/surfaces */
    --color-muted: #6b5d5a;          /* Muted brown text */
    --color-text: #2d1f1e;           /* Dark brown primary text */
    --color-border: #e8dfd8;         /* Warm border color */

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(114, 47, 55, 0.08);
    --shadow-md: 0 4px 12px rgba(114, 47, 55, 0.1);
    --shadow-lg: 0 12px 32px rgba(114, 47, 55, 0.15);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

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

ul {
    list-style: none;
}

/* ======================
   Container & Layout
   ====================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

/* ======================
   Buttons
   ====================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ======================
   Header & Navigation
   ====================== */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease;
}

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

/* ======================
   Hero Section
   ====================== */
.hero {
    padding: var(--spacing-3xl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-badge span {
    font-weight: 500;
    font-size: 0.9375rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.hero-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-card img {
    border-radius: var(--radius-md);
}

/* ======================
   Gallery
   ====================== */
.gallery {
    padding: var(--spacing-2xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* ======================
   Outcomes Section
   ====================== */
.outcomes {
    padding: var(--spacing-3xl) 0;
}

.outcomes-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.outcome {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.outcome-reverse {
    direction: rtl;
}

.outcome-reverse > * {
    direction: ltr;
}

.outcome-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.outcome-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: var(--spacing-md);
}

.outcome-description {
    font-size: 1.125rem;
    color: var(--color-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.outcome-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.stat {
    padding: var(--spacing-md);
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ======================
   How It Works
   ====================== */
.how-it-works {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-surface);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.step {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.step-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.step-description {
    color: var(--color-muted);
    line-height: 1.7;
}

/* ======================
   Testimonials
   ====================== */
.proof {
    padding: var(--spacing-3xl) 0;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.testimonial {
    background-color: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-rating {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ======================
   FAQ
   ====================== */
.faq {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-surface);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.faq-item {
    padding: var(--spacing-lg);
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.faq-question {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.faq-answer {
    color: var(--color-muted);
    line-height: 1.7;
}

/* ======================
   CTA Section
   ====================== */
.cta {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-md);
    color: white;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
}

.cta .btn-primary {
    background-color: white;
    color: var(--color-primary);
}

.cta .btn-primary:hover {
    background-color: var(--color-accent-light);
    color: var(--color-primary-dark);
}

.cta-note {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.cta-images img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ======================
   Footer
   ====================== */
.footer {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

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

.footer-copyright {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: var(--color-muted);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

/* ======================
   Modal
   ====================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 31, 30, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--color-surface);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: var(--color-muted);
    font-size: 2rem;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.modal-description {
    text-align: center;
    color: var(--color-muted);
    margin-bottom: var(--spacing-xl);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--color-text);
    color: white;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: var(--color-primary);
    transform: translateX(4px);
}

.download-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.download-btn-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.download-btn-store {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ======================
   Responsive Design
   ====================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-image {
        order: -1;
    }

    .outcome {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .outcome-reverse {
        direction: ltr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .nav .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .outcome-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}
