/* ============================================
   The Oliveras Group - Brand Styles
   ============================================ */

/* CSS Custom Properties (Brand Colors & Typography) */
:root {
    /* Brand Colors */
    --hunter-green: #1B4332;
    --hunter-green-dark: #152f24;
    --hunter-green-light: #234a3d;
    --gold: #C9A227;
    --gold-light: #d4b44a;
    --gold-dark: #a8861f;
    --ivory: #FAF9F6;
    --ivory-dark: #f0efe9;
    --charcoal: #2F2F2F;
    --charcoal-light: #4a4a4a;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--ivory);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: linear-gradient(145deg, #e6c54a 0%, #d4af37 50%, #c9a227 100%);
    color: var(--hunter-green);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(145deg, #f0d860 0%, #e6c54a 50%, #d4af37 100%);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--hunter-green);
    color: var(--ivory);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-base);
}

.header.scrolled {
    background-color: rgba(17, 43, 32, 0.95);
    backdrop-filter: blur(10px);
}

.header.menu-open {
    background-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

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

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ivory);
    letter-spacing: 0.02em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--ivory);
    transition: all var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ivory);
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a:focus {
    opacity: 1;
}

.lang-toggle {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0.2rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.5;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.lang-btn:hover {
    opacity: 0.85;
}

.lang-btn:active {
    transform: scale(0.95);
}

.lang-btn.active {
    opacity: 1;
    color: var(--hunter-green);
}

.lang-toggle::before {
    content: '';
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: calc(50% - 0.2rem);
    height: calc(100% - 0.4rem);
    background: linear-gradient(145deg, #d4af37 0%, #c9a227 50%, #b8960f 100%);
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

.lang-toggle.es-active::before {
    transform: translateX(100%);
}

.lang-divider {
    display: none;
}

.lang-toggle-wrapper {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.lang-flag {
    font-size: 0.85rem;
    line-height: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lang-flag-us {
    opacity: 1;
    transform: scale(1);
}

.lang-flag-pr {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.lang-toggle-wrapper.es-active .lang-flag-us {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.lang-toggle-wrapper.es-active .lang-flag-pr {
    opacity: 1;
    transform: scale(1);
    position: relative;
    pointer-events: auto;
}

.nav-cta {
    padding: 0.5rem 1rem;
    border: 1px solid #d4af37;
    color: #d4af37 !important;
    opacity: 1 !important;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    cursor: pointer;
}

.nav-cta:hover,
.nav-cta:focus {
    background: linear-gradient(145deg, #e6c54a 0%, #d4af37 45%, #f0d860 55%, #c9a227 100%);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
    border-color: transparent !important;
    color: var(--hunter-green) !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 0.75rem;
        background: none;
        padding: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: none;
    }

    /* Hide section links on mobile */
    .nav-menu li[role="none"]:has(a[href^="#"]) {
        display: none;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-menu .nav-cta {
        font-size: 0.6rem;
        padding: 0.3rem 0.7rem;
    }

    .nav-menu .lang-toggle-wrapper {
        transform: scale(0.7);
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
    background: #0d2018;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: none;
    padding: var(--space-4xl) var(--space-md);
    width: 100%;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: var(--space-md);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
}

.hero-subheadline {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--ivory);
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at center bottom, rgba(201, 162, 39, 0.08) 0%, transparent 70%),
        rgba(13, 32, 24, 0.2);
    z-index: 1;
}

/* Hero Responsive Overrides */
@media (max-width: 1024px) {
    .hero-content {
        padding: var(--space-2xl) var(--space-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-headline {
        white-space: normal;
        overflow: visible;
    }

    .hero-content {
        padding: var(--space-lg) var(--space-md);
    }
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
    background-color: var(--ivory);
    padding: var(--space-xl) 0 2rem 0;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #1a4a35 0%, var(--hunter-green) 50%, #112b20 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-base);
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
}

.video-placeholder:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(201, 162, 39, 0.12);
}

.video-play-btn {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #d4af37 0%, #c9a227 50%, #b8960f 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.4);
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
    color: var(--hunter-green);
    margin-left: 4px;
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #e6c54a 0%, #d4af37 45%, #f0d860 55%, #c9a227 100%);
    box-shadow: 0 12px 40px rgba(201, 162, 39, 0.5);
}

.video-caption {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ivory);
    opacity: 0.8;
}

/* When video is embedded */
.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* ============================================
   Thesis Section (AIDA Framework)
   ============================================ */
.thesis {
    background-color: var(--ivory);
    padding: 0 0 var(--space-4xl) 0;
}

.thesis-block {
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-3xl);
    text-align: center;
}

.thesis-block:last-of-type {
    margin-bottom: var(--space-2xl);
}

.thesis-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.thesis-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
}

.thesis-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--charcoal-light);
}

.thesis-content p {
    margin-bottom: var(--space-md);
}

.thesis-emphasis {
    font-weight: 500;
    color: var(--charcoal);
    font-style: italic;
}

.thesis-cta {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.thesis-cta p {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    margin-bottom: var(--space-lg);
}

/* ============================================
   Investment Focus Section
   ============================================ */
.focus {
    background-color: var(--hunter-green);
    padding: var(--space-4xl) 0;
}

.focus .section-headline {
    color: var(--ivory);
    text-align: center;
    margin-bottom: var(--space-3xl);
}

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

@media (max-width: 900px) {
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }
}

.focus-card {
    text-align: center;
    padding: var(--space-xl);
    border: 1px solid rgba(201, 162, 39, 0.2);
    transition: border-color var(--transition-base);
}

.focus-card:hover {
    border-color: var(--gold);
}

.focus-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-lg);
    color: var(--gold);
}

.focus-icon svg {
    width: 100%;
    height: 100%;
}

.focus-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: var(--space-sm);
}

.focus-description {
    font-size: 0.95rem;
    color: var(--ivory);
    opacity: 0.8;
    line-height: 1.6;
}

/* ============================================
   Our Edge Section
   ============================================ */
.edge {
    background-color: var(--ivory-dark);
    padding: var(--space-4xl) 0;
}

.edge .section-headline {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.edge-list {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.edge-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.edge-item:last-child {
    border-bottom: none;
}

.edge-label {
    flex-shrink: 0;
    width: 140px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hunter-green);
}

.edge-description {
    flex: 1;
    font-size: 1rem;
    color: var(--charcoal-light);
    margin: 0;
}

@media (max-width: 600px) {
    .edge-item {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .edge-label {
        width: auto;
    }
}

/* ============================================
   Insights Section
   ============================================ */
.insights {
    background-color: var(--ivory);
    padding: var(--space-4xl) 0;
}

.insights-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.insights-subheadline {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    margin-top: var(--space-sm);
}

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

@media (max-width: 900px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

.insight-card {
    background-color: white;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.insight-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.insight-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--hunter-green) 0%, var(--hunter-green-light) 100%);
}

.insight-content {
    padding: var(--space-lg);
}

.insight-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.insight-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.insight-date {
    display: block;
    font-size: 0.875rem;
    color: var(--charcoal-light);
    margin-bottom: var(--space-sm);
}

.insight-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hunter-green);
    transition: color var(--transition-fast);
}

.insight-link:hover {
    color: var(--gold);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background-color: var(--hunter-green);
    padding: var(--space-4xl) 0;
}

.contact .container {
    max-width: 600px;
}

.contact .section-headline {
    color: var(--ivory);
    text-align: center;
    margin-bottom: var(--space-md);
}

.contact-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--ivory);
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.03);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: var(--space-xs);
    opacity: 0.9;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--charcoal);
    background-color: var(--ivory);
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

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

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

.contact-form .btn {
    width: 100%;
    margin-top: var(--space-sm);
}

.contact-alt {
    text-align: center;
    margin-top: var(--space-xl);
}

.contact-divider {
    display: block;
    font-size: 0.875rem;
    color: var(--ivory);
    opacity: 0.6;
    margin-bottom: var(--space-sm);
}

.contact-email {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold);
    transition: opacity var(--transition-fast);
}

.contact-email:hover {
    opacity: 0.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--hunter-green-dark);
    padding: var(--space-xl) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

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

.footer-location {
    font-size: 0.875rem;
    font-style: normal;
    color: var(--ivory);
    opacity: 0.7;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.footer-social a {
    color: var(--ivory);
    opacity: 0.6;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--gold);
}

/* ============================================
   Utility Classes
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Section headline helper */
.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(165deg, #1a4a35 0%, var(--hunter-green) 40%, #112b20 100%);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--ivory);
    opacity: 0.7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

.modal-content {
    padding: var(--space-2xl) var(--space-xl);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: var(--space-md);
    text-align: center;
    line-height: 1.2;
}

.modal-subtitle {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ivory);
    opacity: 0.85;
    text-align: center;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.modal-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--charcoal);
    background-color: var(--ivory);
    border: 2px solid transparent;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

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

.modal-btn {
    width: 100%;
    margin-top: var(--space-md);
}

/* Thank You State Styles */
.modal-thankyou-state {
    border: 2px solid var(--gold);
    margin: var(--space-md);
    padding: var(--space-xl);
}

.modal-thankyou-state .modal-subtitle {
    margin-bottom: var(--space-lg);
}

/* Modal Mobile Styles */
@media (max-width: 600px) {
    .modal-overlay {
        padding: var(--space-sm);
        align-items: flex-end;
    }

    .modal-container {
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content {
        padding: var(--space-xl) var(--space-md);
    }

    .modal-title {
        font-size: 1.5rem;
        padding-right: var(--space-lg);
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }

    .modal-close {
        top: var(--space-md);
        right: var(--space-md);
    }

    .modal-thankyou-state {
        margin: var(--space-sm);
        padding: var(--space-lg);
    }
}

/* ============================================
   Animations & Transitions
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Fade in animation for page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}
