/* WineBox Landing Page Styles */

:root {
    --primary-color: #8B1A4A;
    --primary-light: #B82860;
    --primary-dark: #5C0A2D;
    --secondary-color: #C49A3C;
    --background-color: #FAF7F2;
    --card-background: #ffffff;
    --text-color: #2c2c2c;
    --text-muted: #666666;
    --border-color: #e0dcd5;
    --success-color: #4a7c59;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: white;
}

.header-nav a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #d4aa4c;
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

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

.btn-light:hover {
    background: var(--background-color);
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--background-color) 0%, #f0ebe3 100%);
}

.hero-content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-actions .btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.hero-visual {
    display: none;
}

@media (min-width: 900px) {
    .hero {
        padding-top: 9rem;
        padding-bottom: 6rem;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        text-align: left;
        max-width: 540px;
        margin: 0;
    }

    .hero-visual {
        display: block;
        margin-left: 3rem;
    }
}

/* Card Preview in Hero */
.hero-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.card-preview {
    width: 320px;
}

.preview-header {
    background: var(--primary-color);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.preview-content {
    padding: 2rem;
    display: flex;
    justify-content: space-around;
}

.preview-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--card-background);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Database Section */
.database {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--background-color) 0%, #f0ebe3 100%);
}

.database-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.database-text h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.database-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.database-features {
    list-style: none;
    margin-bottom: 2rem;
}

.database-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.database-features li:last-child {
    border-bottom: none;
}

.database-features strong {
    color: var(--primary-color);
}

.database-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.wine-preview {
    padding: 1.5rem;
}

.wine-preview-header {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wine-preview-search {
    margin-bottom: 1rem;
}

.wine-preview-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--background-color);
}

.wine-preview-results {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.wine-result {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.wine-result:last-child {
    border-bottom: none;
}

.wine-result:first-child {
    background: rgba(139, 26, 74, 0.05);
}

.wine-name {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.wine-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.25rem;
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 32px;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-bottom .footer-feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-bottom .footer-feedback a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom .footer-feedback a:hover {
    color: #ffffff;
}

.landing-version {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Responsive */
@media (min-width: 900px) {
    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-visual {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .database-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .database-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }

    .header-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        display: none;
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        padding: 0.75rem;
        display: block;
        text-align: center;
    }

    .header-nav .btn {
        width: 100%;
    }

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

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features,
    .database,
    .cta {
        padding: 4rem 1.5rem;
    }

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

    .section-header h2,
    .database-text h2,
    .cta h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}
