/* Sommwise - Wine Education Platform */
/* Color palette: Cool blue-green / glass & clarity */
/* Emotional role: understanding, perception, learning */
/* Material reference: glass, mineral water, clarity */

:root {
    /* Primary: Cool blue-gray / mineral teal */
    --sommwise-primary: #3d5a6c;
    --sommwise-primary-light: #4a6b7d;
    --sommwise-primary-dark: #2d4452;

    /* Accent: Pale sea-glass green / slate blue */
    --sommwise-accent: #6b8f9c;
    --sommwise-accent-light: #8bb3c1;
    --sommwise-glass: #a8c5ce;

    /* Backgrounds */
    --sommwise-dark: #1e2d36;
    --sommwise-darker: #151f26;
    --sommwise-surface: #243640;

    /* Neutrals */
    --sommwise-light: #f8fafb;
    --sommwise-text: #e8eef1;
    --sommwise-text-muted: rgba(232, 238, 241, 0.7);

    /* Semantic */
    --sommwise-gold: #c9a84c;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--sommwise-darker);
    color: var(--sommwise-text);
    margin: 0;
    min-height: 100vh;
}

.sommwise-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
    padding: 1.5rem 0;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -1px;
    color: white !important;
}

.nav-link {
    color: var(--sommwise-text-muted) !important;
}

.nav-link:hover {
    color: white !important;
}

/* Hero Section - Teal anchor with warm undertones */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg,
        #1e2d36 0%,      /* deep teal-grey - anchor */
        #2d4452 25%,     /* mineral teal */
        #3d4a52 50%,     /* teal-grey transition */
        #4a4d52 75%,     /* neutral stone */
        #5a5258 100%);   /* warm grey-plum endpoint */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(107, 143, 156, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(168, 197, 206, 0.1) 0%, transparent 40%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--sommwise-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Newsletter Form */
.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
}

.newsletter-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(107, 143, 156, 0.3);
}

.newsletter-form .btn-primary {
    background: var(--sommwise-accent);
    border-color: var(--sommwise-accent);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
}

.newsletter-form .btn-primary:hover {
    background: var(--sommwise-accent-light);
    border-color: var(--sommwise-accent-light);
}

/* Features Section */
.features-section {
    background: var(--sommwise-dark);
}

.feature-card {
    background: var(--sommwise-surface);
    border: 1px solid rgba(107, 143, 156, 0.2);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 143, 156, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--sommwise-glass);
    margin-bottom: 1rem;
}

.feature-icon i {
    display: inline-block;
}

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

.feature-card p {
    color: var(--sommwise-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--sommwise-darker);
}

.cta-section h2 {
    font-weight: 200;
    letter-spacing: -1px;
}

/* Footer - Brand Family */
.footer-brand-family {
    margin-top: auto;
    padding: 3rem 0 1.5rem;
    background: var(--sommwise-darker);
    border-top: 1px solid rgba(107, 143, 156, 0.15);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(107, 143, 156, 0.15);
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-text {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--sommwise-text);
    letter-spacing: -0.5px;
}

.footer-tagline {
    color: var(--sommwise-text-muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

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

.footer-column h6 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sommwise-text-muted);
    margin-bottom: 0.75rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--sommwise-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--sommwise-accent-light);
}

/* Brand Family Section */
.footer-family {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

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

.family-brands {
    display: flex;
    gap: 1.5rem;
}

.family-brand {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.family-brand:hover {
    background: rgba(255, 255, 255, 0.08);
}

.family-brand .brand-icon {
    font-size: 1rem;
}

.family-brand.vinelog .brand-name {
    color: #c17ba0;
    font-weight: 500;
}

.family-brand.ensalle .brand-name {
    color: #c9884a;
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-bottom p {
    color: var(--sommwise-text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand-section {
        align-items: center;
    }

    .footer-links-section {
        gap: 2rem;
    }

    .footer-family {
        flex-direction: column;
        gap: 0.75rem;
    }

    .family-brands {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Alert overrides */
.alert-success {
    background: rgba(107, 143, 156, 0.2);
    border-color: var(--sommwise-accent);
    color: var(--sommwise-glass);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .form-control,
    .newsletter-form .btn {
        width: 100%;
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
}
