/**
 * Les Amis du Midi - Parisian Classic Design
 * Typography: EB Garamond + Playfair Display
 * Palette: Burgundy, Cream, Black
 */

/* ============================================
   CSS Custom Properties
   ============================================ */

:root {
    --noir: #1a1a1a;
    --creme: #f9f8f5;
    --bordeaux: #8b2635;
    --or: #d4af37;
    --gris: #6b6b6b;
    --blanc: #ffffff;

    --font-serif: 'EB Garamond', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --max-width: 720px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--noir);
    background-color: var(--creme);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--bordeaux);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* ============================================
   Layout
   ============================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    margin: var(--spacing-xl) 0;
}

.divider {
    border: none;
    border-top: 1px solid rgba(139, 38, 53, 0.3);
    margin: var(--spacing-xl) 0;
}

/* Dividers with Icons */
.divider-with-icon {
    margin: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
}

.divider-with-icon::before,
.divider-with-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 50px);
    height: 1px;
    background: rgba(139, 38, 53, 0.3);
}

.divider-with-icon::before {
    left: 0;
}

.divider-with-icon::after {
    right: 0;
}

.divider-icon {
    width: 80px;
    height: auto;
    max-height: 60px;
    margin: 0 auto;
    display: block;
    opacity: 0.7;
}

/* ============================================
   Header
   ============================================ */

.site-header {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    border-bottom: 1px solid rgba(139, 38, 53, 0.2);
}

.site-title {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.hero-swoosh {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    opacity: 0.8;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--noir);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--bordeaux);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Hero Illustration
   ============================================ */

.hero-illustration {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 3rem auto 0;
    display: block;
    opacity: 0.75;
}

/* ============================================
   Vignette (Literary Moment)
   ============================================ */

.vignette {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: center;
    max-width: 600px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-md);
    border-top: 1px solid rgba(139, 38, 53, 0.3);
    border-bottom: 1px solid rgba(139, 38, 53, 0.3);
    position: relative;
}

.vignette p {
    margin-bottom: 1rem;
}

.vignette-closing {
    font-weight: 600;
    font-style: normal;
    color: var(--bordeaux);
}

/* Vignette Art Deco Corner Ornaments */
.vignette-ornament {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.6;
}

.vignette-ornament.top-left {
    top: -5px;
    left: -5px;
}

.vignette-ornament.top-right {
    top: -5px;
    right: -5px;
}

.vignette-ornament.bottom-left {
    bottom: -5px;
    left: -5px;
}

.vignette-ornament.bottom-right {
    bottom: -5px;
    right: -5px;
}

/* ============================================
   Sections
   ============================================ */

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
}

.ornament {
    color: var(--bordeaux);
    font-size: 1.2em;
    margin-right: 0.5rem;
}

/* ============================================
   How It Works
   ============================================ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-item {
    text-align: center;
    padding: var(--spacing-md);
}

.info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--bordeaux);
}

.info-item p {
    line-height: 1.6;
    margin: 0;
}

.process {
    max-width: 500px;
    margin: 0 auto;
}

.process-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.process-list li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.process-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: var(--bordeaux);
    color: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   Ecosystem
   ============================================ */

.ecosystem-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.ecosystem-item {
    padding: var(--spacing-md);
    border: 1px solid rgba(139, 38, 53, 0.2);
    border-radius: 2px;
}

.ecosystem-item h3 {
    font-size: 1.25rem;
    color: var(--bordeaux);
    margin-bottom: 0.75rem;
}

.ecosystem-item p {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.ecosystem-item a {
    font-size: 0.95rem;
    text-decoration: underline;
}

/* ============================================
   Signup Form
   ============================================ */

.signup {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.signup-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.signup-form {
    background-color: var(--blanc);
    padding: var(--spacing-lg);
    border: 1px solid rgba(139, 38, 53, 0.2);
    border-radius: 2px;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--noir);
}

.required {
    color: var(--bordeaux);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gris);
    border-radius: 2px;
    font-family: var(--font-serif);
    font-size: 1rem;
    background-color: var(--blanc);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bordeaux);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.help-text {
    display: block;
    font-size: 0.9rem;
    color: var(--gris);
    margin-top: 0.25rem;
    font-style: italic;
}

.checkbox-group {
    margin-top: var(--spacing-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    line-height: 1.6;
}

.privacy-link {
    text-decoration: underline;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    display: inline-block;
    background-color: var(--bordeaux);
    color: var(--blanc);
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 2px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: #6d1e28;
    opacity: 1;
    transform: translateY(-1px);
}

.btn-large {
    width: 100%;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    margin-top: var(--spacing-md);
}

/* ============================================
   Messages
   ============================================ */

.error-message,
.success-message {
    padding: 1rem;
    border-radius: 2px;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.error-message {
    background-color: #ffebee;
    border: 1px solid #d32f2f;
    color: #d32f2f;
}

.success-message {
    background-color: #e8f5e9;
    border: 1px solid #27ae60;
    color: #27ae60;
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.faq-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    opacity: 0.8;
}

.faq-content {
    flex: 1;
}

.faq-question {
    font-size: 1.25rem;
    color: var(--bordeaux);
    margin-bottom: 0.75rem;
}

.faq-answer {
    line-height: 1.8;
    margin-bottom: 0;
}

.faq-answer a {
    text-decoration: underline;
}

/* ============================================
   Partners
   ============================================ */

.partners {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.partners-intro {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.partners-intro strong {
    display: block;
    margin-bottom: 0.5rem;
}

.partners-intro a {
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    border-top: 1px solid rgba(139, 38, 53, 0.2);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-xl);
}

.footer-philosophy {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--bordeaux);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.footer-links a {
    margin: 0 0.5rem;
}

.footer-credit {
    font-size: 0.9rem;
    color: var(--gris);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .site-title {
        font-size: 1.75rem;
    }

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

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

    .section-title {
        font-size: 1.5rem;
    }

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

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

    .signup-form {
        padding: var(--spacing-md);
    }

    .vignette {
        font-size: 1rem;
        padding: var(--spacing-sm);
    }

    /* SVG adjustments for mobile */
    .hero-illustration {
        max-width: 320px;
        margin: 2rem auto 0;
    }

    .vignette-ornament {
        width: 30px;
        height: 30px;
    }

    .divider-icon {
        width: 60px;
        max-height: 50px;
    }

    .divider-with-icon::before,
    .divider-with-icon::after {
        width: calc(50% - 40px);
    }

    .faq-item {
        gap: 1rem;
    }

    .faq-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 0.75rem 1.5rem;
    }

    .process-list li {
        padding-left: 2.5rem;
    }

    .process-list li::before {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9rem;
    }

    /* Smaller SVGs on very small screens */
    .hero-illustration {
        max-width: 280px;
    }

    .vignette-ornament {
        width: 25px;
        height: 25px;
    }

    .faq-item {
        gap: 0.75rem;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
    }

    .divider-with-icon::before,
    .divider-with-icon::after {
        display: none; /* Hide connecting lines on very small screens */
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    body {
        background-color: white;
        color: black;
    }

    .btn-primary {
        display: none;
    }

    .signup-form {
        border: 1px solid black;
    }
}
