/* ============================================
   GERALD EXIL MEDICAL — PREMIUM DARK LUXURY
   Color Palette: Terracotta + Sand on Deep Charcoal
   ============================================ */

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

:root {
    /* Backgrounds */
    --bg-deep: #0F0C09;
    --bg-primary: #1A1410;
    --bg-elevated: #231C16;
    --bg-card: #2A2018;
    --bg-card-hover: #332820;
    
    /* Terracotta */
    --terra-50: #FFF5F0;
    --terra-100: #FFE8DC;
    --terra-200: #FFD0B8;
    --terra-300: #FFB08A;
    --terra-400: #FF8A5C;
    --terra-500: #E87340;
    --terra-600: #C85828;
    --terra-700: #A8441C;
    --terra-800: #8A3616;
    --terra-900: #6E2B12;
    
    /* Sand / Gold accent */
    --sand-100: #FDF8F0;
    --sand-200: #F5E6D0;
    --sand-300: #E8C9A0;
    --sand-400: #D4A574;
    --sand-500: #C8956C;
    --sand-600: #B8845A;
    --sand-700: #9A6D48;
    --sand-800: #7D5738;
    --sand-900: #5E4028;
    
    /* Text */
    --text-primary: #F5EDE4;
    --text-secondary: #C4B5A4;
    --text-muted: #8A7E72;
    --text-inverse: #1A1410;
    
    /* Borders */
    --border-subtle: rgba(200, 149, 108, 0.12);
    --border-medium: rgba(200, 149, 108, 0.25);
    --border-strong: rgba(200, 149, 108, 0.4);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(200, 149, 108, 0.15);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-slower: 600ms ease;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 12, 9, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--sand-500);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--sand-500);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sand-500);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--sand-400);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--sand-600);
    border-radius: 6px;
    color: var(--sand-400);
    transition: all var(--transition-fast);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--sand-600);
    color: var(--text-inverse);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px var(--space-xl) 80px;
    background: var(--bg-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(200, 149, 108, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(200, 88, 40, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(200, 149, 108, 0.04) 0%, transparent 60%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8956C' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.eyebrow-line {
    width: 40px;
    height: 1px;
    background: var(--sand-500);
    flex-shrink: 0;
}

.eyebrow-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sand-500);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-2xl);
    max-width: 800px;
}

.headline-line {
    display: block;
}

.accent-text {
    font-style: italic;
    color: var(--sand-400);
    font-weight: 500;
}

.hero-sub {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: var(--space-3xl);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--sand-500);
    color: var(--text-inverse);
    box-shadow: 0 4px 20px rgba(200, 149, 108, 0.3);
}

.btn-primary:hover {
    background: var(--sand-400);
    box-shadow: 0 6px 28px rgba(200, 149, 108, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--sand-500);
    color: var(--sand-400);
    background: rgba(200, 149, 108, 0.06);
}

.btn-outline-light {
    background: transparent;
    color: var(--sand-300);
    border: 1px solid var(--border-medium);
}

.btn-outline-light:hover {
    border-color: var(--sand-500);
    color: var(--sand-400);
    background: rgba(200, 149, 108, 0.08);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--sand-500);
    padding: var(--space-sm) 0;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-text:hover {
    color: var(--sand-400);
}

/* ============================================
   FLOATING STAT CARDS
   ============================================ */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-4xl);
    max-width: 900px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sand-600), var(--sand-400));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(200, 149, 108, 0.1);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sand-400);
    flex-shrink: 0;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sand-500);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.section-sub {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--terra-600), var(--sand-500));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(200, 149, 108, 0.15), rgba(200, 88, 40, 0.08));
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sand-400);
    margin-bottom: var(--space-xl);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(200, 149, 108, 0.25), rgba(200, 88, 40, 0.15));
    border-color: var(--border-medium);
}

.service-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

.service-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sand-600);
    background: rgba(200, 149, 108, 0.08);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-4xl) 0;
    background: var(--bg-deep);
    position: relative;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    aspect-ratio: 4/5;
}

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

.about-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.5;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.value-item {
    display: flex;
    gap: var(--space-lg);
    align-items: baseline;
}

.value-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 120px;
    flex-shrink: 0;
}

.value-text {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
}

/* ============================================
   APPROACH / PILLARS
   ============================================ */
.approach {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

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

.pillar {
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    position: relative;
    transition: all var(--transition-base);
}

.pillar:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.pillar-number {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--sand-700);
    line-height: 1;
    margin-bottom: var(--space-lg);
    opacity: 0.6;
}

.pillar-name {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.pillar-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: var(--space-4xl) 0;
    background: var(--bg-deep);
    position: relative;
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    margin-bottom: var(--space-lg);
    line-height: 1;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    flex: 1;
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.testimonial-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.testimonial-detail {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   LOCATION
   ============================================ */
.location {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.location-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.location-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(200, 149, 108, 0.08);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sand-500);
    flex-shrink: 0;
}

.location-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.location-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.location-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
}

.location-value a {
    color: var(--sand-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.location-value a:hover {
    color: var(--sand-300);
    text-decoration: underline;
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.map-placeholder {
    position: relative;
    aspect-ratio: 4/3;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.6) brightness(0.7);
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: rgba(15, 12, 9, 0.4);
}

.map-pin {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.map-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(15, 12, 9, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--bg-deep);
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(200, 149, 108, 0.08);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sand-500);
    flex-shrink: 0;
}

.contact-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
}

.contact-value a {
    color: var(--sand-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-value a:hover {
    color: var(--sand-300);
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: var(--space-2xl);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2xl);
    line-height: 1.3;
}

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--sand-500);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23C8956C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

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

/* Form Success */
.form-success {
    text-align: center;
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(200, 149, 108, 0.1);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.success-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.success-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    max-width: 320px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-xl);
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--sand-600);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 600;
    color: var(--sand-500);
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 400;
}

.footer-nav a:hover {
    color: var(--sand-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
    opacity: 0.7;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Initial state for revealed elements — visible by default for accessibility */
.reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        border-left: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 80px var(--space-2xl) var(--space-2xl);
        gap: var(--space-lg);
        transition: right var(--transition-slow);
        z-index: 999;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px var(--space-lg) 60px;
    }
    
    .hero-headline {
        font-size: clamp(28px, 8vw, 48px);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: var(--space-3xl);
    }
    
    .stat-card {
        padding: var(--space-lg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .about-image-wrapper {
        max-width: 400px;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .location-layout {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
