/* ═══════════════════════════════════════════════════════════
   EMILY OBERMAN DESIGN SYSTEM — CULLARI & WARDELL
   Wit and Heart. Confident, Not Cocky. Human, Not Corporate.
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Primary Brand */
    --signal-red: #E63946;
    --warm-gold: #D4A84B;
    --deep-navy: #1D3557;

    /* Neutrals - Warm, Never Sterile */
    --cream: #FAF8F5;
    --warm-white: #FFFFFF;
    --soft-gray: #6B7280;
    --charcoal: #2D3748;

    /* Supporting */
    --blush: #FDF2F0;
    --sage: #E8F0E8;
    --slate: #64748B;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Space Grotesk', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --max-width-wide: 1400px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 24px rgba(230,57,70,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

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

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

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
}

h4 {
    font-size: 20px;
}

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--signal-red);
}

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

.text-large {
    font-size: 18px;
    line-height: 1.7;
}

.text-small {
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-2xl);
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--deep-navy);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--signal-red);
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--signal-red);
}

.nav-cta {
    background: var(--signal-red) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.nav-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-mobile svg {
    width: 24px;
    height: 24px;
    stroke: var(--charcoal);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 999;
    padding: 100px var(--space-2xl) var(--space-2xl);
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--charcoal);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn-primary {
    background: var(--signal-red);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    padding: 18px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--deep-navy);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 34px;
    border: 2px solid var(--deep-navy);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--deep-navy);
    color: white;
}

.btn-white {
    background: white;
    color: var(--deep-navy);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    padding: 18px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    background: white;
    color: var(--deep-navy);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    padding: 18px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--cream);
}

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--warm-gold);
    color: white;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 18px;
    border-radius: 100px;
}

.badge svg {
    width: 14px;
    height: 14px;
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--warm-gold);
    color: var(--warm-gold);
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */

section {
    padding: var(--space-4xl) var(--space-2xl);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.section-wide {
    max-width: var(--max-width-wide);
}

.section-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--signal-red);
    margin-bottom: var(--space-md);
}

.section-headline {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
    max-width: 700px;
}

.section-intro {
    font-size: 18px;
    color: var(--soft-gray);
    max-width: 600px;
    margin-bottom: var(--space-2xl);
}

/* Background variations */
.bg-cream { background: var(--cream); }
.bg-white { background: var(--warm-white); }
.bg-blush { background: var(--blush); }
.bg-navy { background: var(--deep-navy); color: white; }

.bg-navy .section-label { color: var(--warm-gold); }
.bg-navy .section-headline { color: white; }
.bg-navy .section-headline em { color: var(--warm-gold); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-4xl) var(--space-2xl);
    padding-top: 120px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(212, 168, 75, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--soft-gray);
    max-width: 600px;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* Page Hero (shorter) */
.page-hero {
    padding: 160px var(--space-2xl) var(--space-3xl);
    background: var(--cream);
}

.page-hero .hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════ */

.proof-strip {
    background: var(--warm-white);
    padding: var(--space-3xl) var(--space-2xl);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.proof-strip-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.proof-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--slate);
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

.stat-item {
    padding: var(--space-lg);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--signal-red);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--soft-gray);
    margin-top: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */

.card {
    background: var(--warm-white);
    border-radius: 16px;
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--blush);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--signal-red);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.card p {
    font-size: 15px;
    color: var(--soft-gray);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Service Cards Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

/* Portfolio Card */
.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29, 53, 87, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    transition: background 0.3s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
    background: linear-gradient(to top, rgba(29, 53, 87, 0.95) 0%, rgba(29, 53, 87, 0.3) 100%);
}

.portfolio-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: white;
    margin-bottom: var(--space-xs);
}

.portfolio-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

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

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */

.testimonial-card {
    background: var(--warm-white);
    border-radius: 16px;
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 22px;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.5;
    margin-bottom: var(--space-xl);
    position: relative;
    padding-left: var(--space-xl);
}

.testimonial-quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--warm-gold);
    border-radius: 2px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--deep-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
}

.testimonial-info h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
}

.testimonial-info p {
    font-size: 14px;
    color: var(--slate);
    margin-bottom: 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

/* ═══════════════════════════════════════════════════════════
   TEAM
   ═══════════════════════════════════════════════════════════ */

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

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

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-md);
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: var(--space-xs);
}

.team-card .role {
    font-size: 14px;
    color: var(--signal-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.team-card p {
    font-size: 15px;
    color: var(--soft-gray);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════ */

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

.timeline-item {
    display: flex;
    gap: var(--space-lg);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--signal-red);
    min-width: 80px;
}

.timeline-content h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--soft-gray);
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */

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

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
}

.cta-headline em {
    font-style: italic;
    color: var(--signal-red);
}

.cta-text {
    font-size: 20px;
    color: var(--soft-gray);
    margin-bottom: var(--space-2xl);
}

/* Navy CTA */
.bg-navy .cta-headline {
    color: white;
}

.bg-navy .cta-headline em {
    color: var(--warm-gold);
}

.bg-navy .cta-text {
    color: rgba(255,255,255,0.8);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
    background: var(--deep-navy);
    color: white;
    padding: var(--space-3xl) var(--space-2xl);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: #ffffff !important;
}

.footer-brand h3 span {
    color: var(--signal-red);
}

.footer-brand p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--warm-gold);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border-radius: 100px;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-lg);
}

.footer-column a {
    display: block;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-bottom: var(--space-md);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--warm-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════ */

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

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-body);
    font-size: 16px;
    padding: var(--space-md);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: var(--warm-white);
    transition: border-color 0.2s ease;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════
   INDUSTRY PAGE HERO
   ═══════════════════════════════════════════════════════════ */

.industry-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: 160px var(--space-2xl) var(--space-4xl);
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.industry-hero-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.industry-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════
   FEATURE LIST
   ═══════════════════════════════════════════════════════════ */

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

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

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--signal-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.feature-text h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: var(--soft-gray);
    margin-bottom: 0;
}

/* Navy background feature list */
.bg-navy .feature-icon {
    background: var(--warm-gold);
}

.bg-navy .feature-text h4 {
    color: white;
}

.bg-navy .feature-text p {
    color: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════════════
   VIDEO EMBED
   ═══════════════════════════════════════════════════════════ */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

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

.fade-in {
    animation: fadeInUp 0.6s ease both;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .industry-hero {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile {
        display: block;
    }

    section {
        padding: var(--space-3xl) var(--space-lg);
    }

    .hero {
        padding: var(--space-3xl) var(--space-lg);
        padding-top: 100px;
    }

    .page-hero {
        padding: 120px var(--space-lg) var(--space-2xl);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-ctas {
        flex-direction: column;
    }
}

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

/* ==========================================================================
   ENHANCED MOBILE OPTIMIZATION - Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   ACCESSIBILITY: Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        animation: none;
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   TOUCH TARGETS: 44px Minimum
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-white,
    .btn-light,
    .nav-cta,
    .nav-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .badge {
        min-height: 36px;
        padding: 10px 16px;
    }

    /* Cards should be easily tappable */
    .card {
        min-height: 44px;
    }

    .portfolio-card {
        min-height: 200px;
    }

    /* Footer links */
    .footer-column a {
        padding: 10px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY: Mobile Readability
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    .text-large {
        font-size: 17px;
    }

    .text-small {
        font-size: 13px;
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .section-headline {
        margin-bottom: var(--space-lg);
    }

    .section-intro {
        font-size: 16px;
        margin-bottom: var(--space-xl);
    }

    /* Stat numbers */
    .stat-number {
        font-size: clamp(28px, 8vw, 40px);
    }

    .stat-label {
        font-size: 13px;
    }

    /* Testimonials */
    .testimonial-quote {
        font-size: 18px;
        padding-left: var(--space-md);
    }

    /* Cards */
    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 14px;
    }

    /* Timeline */
    .timeline-year {
        font-size: 20px;
        min-width: 60px;
    }
}

/* --------------------------------------------------------------------------
   FORM INPUTS: iOS Zoom Prevention
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
        padding: var(--space-md);
        -webkit-appearance: none;
        border-radius: 8px;
    }

    .contact-form {
        gap: var(--space-md);
    }
}

/* --------------------------------------------------------------------------
   SPACING: Mobile Optimized
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --space-4xl: 64px;
        --space-5xl: 96px;
    }

    section {
        padding: var(--space-3xl) var(--space-lg);
    }

    .section-inner {
        padding: 0;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: var(--space-xl);
    }

    .page-hero {
        padding: 100px var(--space-lg) var(--space-2xl);
    }

    /* Industry hero */
    .industry-hero {
        padding: 100px var(--space-lg) var(--space-2xl);
        gap: var(--space-xl);
    }

    /* Cards and grids */
    .card {
        padding: var(--space-xl);
    }

    /* Proof strip */
    .proof-strip {
        padding: var(--space-2xl) var(--space-lg);
    }

    /* CTA section */
    .cta-text {
        font-size: 17px;
        margin-bottom: var(--space-xl);
    }

    /* Footer */
    .footer {
        padding: var(--space-2xl) var(--space-lg);
    }

    .footer-main {
        gap: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    .footer-bottom {
        padding-top: var(--space-lg);
    }
}

/* --------------------------------------------------------------------------
   SAFE AREA INSETS: Notched Devices
   -------------------------------------------------------------------------- */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .nav {
            padding-left: max(var(--space-lg), env(safe-area-inset-left));
            padding-right: max(var(--space-lg), env(safe-area-inset-right));
        }

        section {
            padding-left: max(var(--space-lg), env(safe-area-inset-left));
            padding-right: max(var(--space-lg), env(safe-area-inset-right));
        }

        .footer {
            padding-left: max(var(--space-lg), env(safe-area-inset-left));
            padding-right: max(var(--space-lg), env(safe-area-inset-right));
            padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom));
        }
    }
}

/* --------------------------------------------------------------------------
   LANDSCAPE MODE
   -------------------------------------------------------------------------- */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: var(--space-xl);
    }

    section {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .industry-hero {
        grid-template-columns: 1fr 1fr;
        padding-top: 80px;
    }
}

/* --------------------------------------------------------------------------
   EXTRA SMALL SCREENS (320px - 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: clamp(32px, 10vw, 42px);
    }

    h2 {
        font-size: clamp(26px, 7vw, 32px);
    }

    h3 {
        font-size: clamp(20px, 5vw, 24px);
    }

    section {
        padding: var(--space-2xl) var(--space-md);
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 15px;
    }

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

    .stat-number {
        font-size: 28px;
    }

    .testimonial-quote {
        font-size: 16px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .footer-brand h3 {
        font-size: 20px;
    }
}

/* --------------------------------------------------------------------------
   PERFORMANCE: Mobile Optimization
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Simplify hover effects for touch devices */
    .card:hover {
        transform: none;
    }

    .portfolio-card:hover img {
        transform: none;
    }

    .portfolio-card-overlay {
        background: linear-gradient(to top, rgba(29, 53, 87, 0.85) 0%, transparent 50%);
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-white:hover,
    .btn-light:hover {
        transform: none;
    }

    /* Ensure visibility of overlay content */
    .portfolio-card h3,
    .portfolio-card p {
        opacity: 1;
    }
}
