/* ==========================================================================
   Hermes Oliver Fotografia - Premium Landing Page Design System
   ========================================================================== */

/* Design Tokens & Custom Properties */
:root {
    --bg-color: #FAF8F5;          /* Warm Off-White */
    --card-bg: #FFFFFF;
    
    /* Brand Colors */
    --champagne: #D5C3B3;         /* Accent gold-like champagne */
    --champagne-light: #E3D5CA;   /* Highlight champagne */
    --champagne-pale: #F3ECE7;    /* Subtle background accent */
    --coffee: #4E3629;            /* Primary dark / headings */
    --coffee-dark: #2F1F17;       /* Dark coffee deep */
    --graphite: #3A3A3A;          /* Body text color */
    --graphite-light: #6A6A6A;    /* Muted text color */
    
    /* Layout */
    --container-max-width: 1100px;
    --container-narrow-width: 680px; /* Refined for readability */
    
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base size */
    -webkit-text-size-adjust: 100%;
}

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

/* Typography Base */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--coffee);
    line-height: 1.25;
    font-weight: 600;
}

p {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--graphite);
}

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

/* Reusable Containers */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.25rem; /* Better mobile gutter spacing */
}

.container-narrow {
    max-width: var(--container-narrow-width);
}

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

/* Badge Accent */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--coffee);
    background-color: var(--champagne-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.badge-accent {
    background-color: var(--champagne-pale);
    border: 1px solid var(--champagne);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.02rem;
    padding: 1.1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-bounce);
    width: 100%; /* Mobile first: full width */
    text-align: center;
    border: 1px solid transparent;
}

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

.btn-primary:hover, .btn-primary:active {
    background-color: var(--coffee-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 54, 41, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--coffee);
    border: 1px solid var(--champagne);
}

.btn-secondary:hover, .btn-secondary:active {
    background-color: var(--champagne-pale);
    border-color: var(--coffee);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.2rem;
    font-size: 1.08rem;
}

.btn-center {
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 3.5rem 0 3rem; /* Tighter mobile top padding */
    background: radial-gradient(circle at 10% 20%, rgba(243, 236, 231, 0.5) 0%, rgba(250, 248, 245, 0.5) 90%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 2.1rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    max-width: 640px;
}

.hero-subtitle {
    max-width: 600px;
    margin-bottom: 1.25rem;
    color: var(--graphite);
    font-size: 1.15rem;
    font-weight: 400;
}

.hero-complement {
    max-width: 620px;
    margin-bottom: 2.5rem;
    color: var(--graphite-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 440px;
}

/* Hero Section Grid/Split Layout */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.hero-text-content {
    width: 100%;
}

.hero-image-content {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(78, 54, 41, 0.06);
    border: 4px solid var(--champagne-light);
}

.hero-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.hero-image-content:hover img {
    transform: scale(1.03);
}

.section-title {
    font-size: 1.65rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* Gallery Section */
.gallery-section {
    padding: 3.5rem 0;
    background-color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 5; /* Elegant portrait crop */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(78, 54, 41, 0.03);
    background-color: var(--champagne-pale);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Error/Fallback display state */
.gallery-fallback {
    display: none; /* Hidden unless .fallback-active is applied */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--champagne-light) 0%, var(--champagne) 100%);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px dashed rgba(78, 54, 41, 0.15);
}

.gallery-fallback span {
    font-family: var(--font-heading);
    color: var(--coffee);
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
}

.gallery-item.fallback-active img {
    display: none !important;
}

.gallery-item.fallback-active .gallery-fallback {
    display: flex !important;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #F6F3EE;
    border-top: 1px solid #ECE7E0;
    border-bottom: 1px solid #ECE7E0;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--champagne-light);
    box-shadow: 0 10px 25px rgba(78, 54, 41, 0.08);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text-content {
    width: 100%;
    text-align: center;
}

.section-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--champagne);
    margin-bottom: 0.75rem;
}

.about-content p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--graphite);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Differentials Section */
.differentials-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.differentials-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.diff-card {
    background-color: var(--card-bg);
    border: 1px solid #ECE7E0;
    padding: 2.25rem 1.75rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(78, 54, 41, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centralize elements */
    text-align: center;   /* Centralize text */
    flex: 1;
}

.diff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(78, 54, 41, 0.05);
    border-color: var(--champagne);
}

.diff-icon-wrapper {
    color: var(--coffee);
    background-color: var(--champagne-pale);
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.diff-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.diff-title {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.diff-text {
    font-size: 0.95rem;
    color: var(--graphite-light);
    line-height: 1.55;
}

/* Final CTA Section */
.cta-final-section {
    padding: 4.5rem 0;
    background-color: #F6F3EE;
    border-top: 1px solid #ECE7E0;
}

.cta-final-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-final-subtitle {
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 2.25rem;
    color: var(--graphite);
}

/* Form Section */
.form-section {
    padding: 0 0 5rem; /* Continues CTA visual flow */
    background-color: #F6F3EE;
}

.form-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 2.25rem 1.5rem;
    border: 1px solid #EAE3DC;
    box-shadow: 0 15px 35px rgba(78, 54, 41, 0.04);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--coffee);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--champagne-light);
    background-color: var(--bg-color);
    color: var(--graphite);
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--coffee);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(78, 54, 41, 0.06);
}

/* Input Error display styling */
.form-group input.input-error {
    border-color: #D32F2F;
    background-color: #FFEBEE;
}

.error-feedback {
    display: none;
    color: #D32F2F;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.btn-submit {
    margin-top: 1rem;
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success UI */
.form-success-container {
    display: none;
    padding: 2rem 1rem;
}

.form-success-container.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrapper {
    color: #4CAF50;
    background-color: #E8F5E9;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.form-success-container h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.form-success-container p {
    font-size: 1.05rem;
    color: var(--graphite-light);
}

/* Footer Section */
.footer {
    padding: 3rem 0;
    background-color: var(--coffee-dark);
    color: var(--bg-color);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--champagne-light);
    margin-bottom: 0.75rem;
}

.footer-credits {
    font-size: 0.82rem;
    color: var(--champagne);
    opacity: 0.75;
    max-width: 450px;
    margin: 0 auto;
}

/* ==========================================================================
   Media Queries for Responsiveness (Desktop Layouts)
   ========================================================================== */

@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
    
    .hero-section {
        padding: 6.5rem 0 4.5rem;
    }
    
    .hero-title {
        font-size: 3.3rem;
        max-width: 850px;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-complement {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        width: auto;
        max-width: none;
    }
    
    .btn {
        width: auto;
        min-width: 240px;
    }
    
    .section-title {
        font-size: 2.3rem;
        margin-bottom: 2.5rem;
    }
    
    .video-section {
        padding: 4.5rem 0;
    }
    
    /* Gallery grid updates on desktop */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
        gap: 1.5rem;
    }
    
    .about-section {
        padding: 6rem 0;
    }

    .about-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
    }
    
    .about-image {
        flex-shrink: 0;
        max-width: 360px;
        aspect-ratio: 4 / 5;
        border-radius: 20px;
    }
    
    .about-text-content {
        text-align: left;
    }
    
    .differentials-section {
        padding: 6rem 0;
    }
    
    /* Differentials flex structure changes to desktop row layout */
    .differentials-grid {
        flex-direction: row;
        gap: 2rem;
    }
    
    .diff-card {
        padding: 3rem 2.25rem;
    }
    
    .cta-final-section {
        padding: 6.5rem 0 3.5rem;
    }
    
    .cta-final-title {
        font-size: 3rem;
    }
    
    /* Form card changes */
    .form-section {
        padding: 0 0 6.5rem;
    }
    
    .form-card {
        padding: 3.5rem;
        border-radius: 24px;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 0.95rem 1.5rem;
    }
}
