/* ========================================
   THE CODE TACO — Enterprise Design System
   ========================================
   Mobile-first, WCAG AA compliant
   Optimized for Core Web Vitals
   ======================================== */

/* ----------------------------------------
   CSS CUSTOM PROPERTIES
   Brand tokens defined once, used everywhere
   ---------------------------------------- */
:root {
    /* Brand palette */
    --primary: #f9a31a;
    --primary-dark: #d98a0e;
    --primary-light: #fdb94d;
    --navy: #14213d;
    --navy-light: #1c2d52;
    --navy-deep: #0d1628;
    --sand: #b4ac90;
    --sand-light: #cec8b3;
    --light: #e5e5e5;

    /* Semantic colors */
    --text: #14213d;
    --text-secondary: #3d4f6f;
    --text-muted: #6b7a96;
    --bg: #ffffff;
    --bg-warm: #faf9f7;
    --bg-dark: #14213d;
    --border: #ddd8ce;
    --border-light: #eae7e0;

    /* Typography */
    --font: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing scale (8px base) */
    --s1: 0.25rem;   /* 4 */
    --s2: 0.5rem;    /* 8 */
    --s3: 0.75rem;   /* 12 */
    --s4: 1rem;      /* 16 */
    --s5: 1.5rem;    /* 24 */
    --s6: 2rem;      /* 32 */
    --s7: 3rem;      /* 48 */
    --s8: 4rem;      /* 64 */
    --s9: 6rem;      /* 96 */
    --s10: 8rem;     /* 128 */

    /* Layout */
    --max-w: 1200px;
    --header-h: 80px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(20,33,61,.06), 0 1px 2px rgba(20,33,61,.04);
    --shadow-md: 0 4px 16px rgba(20,33,61,.08);
    --shadow-lg: 0 12px 40px rgba(20,33,61,.12);
    --shadow-xl: 0 20px 60px rgba(20,33,61,.16);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --dur: 0.3s;
}

/* ----------------------------------------
   RESET & BASE
   Minimal reset for consistent rendering
   ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }

/* Accessibility: Visible focus for keyboard users */
:focus-visible {
    outline: 2.5px solid var(--primary);
    outline-offset: 3px;
}

/* Performance: Respect user motion preferences */
@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; }
}

::selection {
    background: var(--primary);
    color: var(--navy);
}

/* ----------------------------------------
   LAYOUT
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--s5);
}

/* ----------------------------------------
   TYPOGRAPHY
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
}

/* Section header pattern used throughout */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--s7);
}

.section-header--left {
    text-align: left;
    margin-left: 0;
}

.section-header__label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: var(--s2);
}

.section-header__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
}

/* ----------------------------------------
   BUTTONS
   Consistent, high-contrast interaction patterns
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: 0.8125rem 1.625rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    line-height: 1;
    position: relative;
}

.btn--primary {
    background: var(--primary);
    color: var(--navy);
    box-shadow: 0 2px 12px rgba(249, 163, 26, .3);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(249, 163, 26, .4);
}

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

.btn--outline:hover {
    border-color: var(--navy);
    background: var(--bg-warm);
}

.btn--outline-light {
    background: transparent;
    color: rgba(255,255,255,.9);
    border: 2px solid rgba(255,255,255,.25);
}

.btn--outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* ----------------------------------------
   SKIP LINK (Accessibility)
   ---------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--s4);
    z-index: 9999;
    padding: var(--s3) var(--s5);
    background: var(--primary);
    color: var(--navy);
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(20, 33, 61, .97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: box-shadow var(--dur) var(--ease);
}

/* Subtle bottom accent line */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,163,26,.3), transparent);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--s3);
    z-index: 10;
}

.logo__img {
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.logo__text {
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

/* Navigation */
.nav__list {
    display: flex;
    align-items: center;
    gap: var(--s6);
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    transition: color var(--dur) var(--ease);
    position: relative;
    padding: var(--s1) 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link.active {
    color: #fff;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__cta {
    font-size: 0.875rem;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: var(--s4);
}

.lang-switch__link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.lang-switch__link:hover {
    color: rgba(255,255,255,.85);
}

.lang-switch__link--active {
    color: var(--navy);
    background: var(--primary);
    pointer-events: none;
}

.lang-switch__sep {
    color: rgba(255,255,255,.2);
    font-size: 0.75rem;
    user-select: none;
}

/* Hamburger — Mobile only */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    z-index: 10;
}

.hamburger__line {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--dur) var(--ease);
    transform-origin: center;
}

.hamburger.active .hamburger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   HERO
   Dark Navy background with subtle golden accents
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + var(--s8)) 0 var(--s8);
    background: var(--navy);
    overflow: hidden;
}

/* Background effects */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Subtle grid overlay for technical feel */
.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(249,163,26,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,163,26,.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Warm glow accents */
.hero__glow--1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,163,26,.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero__glow--2 {
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249,163,26,.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s7);
    align-items: center;
}

.hero__content {
    max-width: 640px;
}

.hero__title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin-bottom: var(--s5);
    letter-spacing: -0.02em;
}

.hero__title-accent {
    color: var(--primary);
    position: relative;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin-bottom: var(--s5);
    max-width: 540px;
}

.hero__bullets {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    margin-bottom: var(--s6);
}

.hero__bullet {
    display: flex;
    align-items: center;
    gap: var(--s3);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
}

.hero__check {
    color: var(--primary);
    flex-shrink: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s4);
}

/* Expected outcomes card */
.hero__outcomes {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: var(--s6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero__outcomes-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: var(--s5);
}

.hero__outcomes-list {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
}

.hero__outcomes-list li {
    display: flex;
    align-items: center;
    gap: var(--s3);
    font-size: 0.9375rem;
    color: rgba(255,255,255,.8);
}

.hero__outcomes-list svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Hero entrance animations */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroCardReveal {
    from {
        opacity: 0;
        transform: translateY(48px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.08); }
}

/* Initial hidden state — elements animate in on load */
.hero__title,
.hero__subtitle,
.hero__bullets,
.hero__actions,
.hero__outcomes {
    opacity: 0;
}

.hero__title {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero__subtitle {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.hero__bullet {
    opacity: 0;
    animation: heroSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__bullet:nth-child(1) { animation-delay: 0.5s; }
.hero__bullet:nth-child(2) { animation-delay: 0.6s; }
.hero__bullet:nth-child(3) { animation-delay: 0.7s; }

.hero__bullets {
    animation: heroFadeIn 0.01s 0.5s forwards;
}

.hero__actions {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.hero__outcomes {
    animation: heroCardReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

/* Subtle looping glow pulse for ambient depth */
.hero__glow--1 {
    animation: glowPulse 6s ease-in-out infinite;
}

.hero__glow--2 {
    animation: glowPulse 8s ease-in-out 2s infinite;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: var(--s9) 0;
    background: var(--bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}

/* Service & Case cards share base styles */
.card {
    position: relative;
    border-radius: var(--radius-lg);
    transition: all var(--dur) var(--ease);
}

.card--service {
    padding: var(--s6);
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.card--service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249,163,26,.1), rgba(249,163,26,.05));
    border: 1px solid rgba(249,163,26,.15);
    border-radius: var(--radius);
    margin-bottom: var(--s5);
    color: var(--primary-dark);
}

.card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--s3);
}

.card__desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--s4);
}

.card__features {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    margin-bottom: var(--s5);
}

.card__features li {
    display: flex;
    align-items: center;
    gap: var(--s2);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.card__features li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--sand);
    border-radius: 50%;
    flex-shrink: 0;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-dark);
    transition: gap var(--dur) var(--ease);
}

.card__link:hover {
    gap: var(--s3);
}

/* ========================================
   PROCESS
   ======================================== */
.process {
    padding: var(--s9) 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(249,163,26,.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.process .section-header__label {
    color: var(--primary);
}

.process .section-header__title {
    color: #fff;
}

.process__timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s5);
    position: relative;
    z-index: 1;
}

/* Connecting line between steps */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(249,163,26,.2));
}

.process__step {
    text-align: center;
    position: relative;
}

.process__marker {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto var(--s5);
    position: relative;
    z-index: 2;
    transition: all var(--dur) var(--ease);
}

.process__marker span {
    font-family: var(--font);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary);
    transition: color var(--dur) var(--ease);
}

.process__step:hover .process__marker {
    background: var(--primary);
    box-shadow: 0 0 24px rgba(249,163,26,.3);
}

.process__step:hover .process__marker span {
    color: var(--navy);
}

.process__body h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--s2);
}

.process__body p {
    color: rgba(255,255,255,.6);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* ========================================
   SOLUTIONS / CASES
   ======================================== */
.solutions {
    padding: var(--s9) 0;
    background: var(--bg-warm);
}

.solutions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}

.card--case {
    padding: var(--s6);
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.card--case:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card__badge {
    display: inline-block;
    padding: var(--s1) var(--s3);
    background: rgba(249,163,26,.1);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: var(--s4);
    letter-spacing: 0.03em;
}

.card--case .card__title {
    margin-bottom: var(--s4);
}

.card__meta {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
}

.card__meta > div {
    padding-left: var(--s4);
    border-left: 2px solid var(--border-light);
}

.card__meta dt {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--s1);
}

.card__meta dd {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   BOT / CHAT
   ======================================== */
.bot {
    padding: var(--s9) 0;
    background: var(--bg);
}

.bot__wrapper {
    max-width: 560px;
    margin: 0 auto;
}

.bot__window {
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Window title bar */
.bot__window::before {
    content: 'The Code Taco Assistant';
    display: block;
    padding: var(--s3) var(--s5);
    background: var(--navy);
    color: rgba(255,255,255,.8);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bot__messages {
    padding: var(--s5);
    min-height: 280px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--s4);
}

/* Bot message bubble */
.bot__msg {
    max-width: 85%;
    padding: var(--s3) var(--s4);
    border-radius: var(--radius) var(--radius) var(--radius) var(--radius-sm);
    font-size: 0.9375rem;
    line-height: 1.6;
    animation: msgIn 0.3s var(--ease-spring) both;
}

.bot__msg--bot {
    background: var(--navy);
    color: rgba(255,255,255,.9);
    align-self: flex-start;
}

.bot__msg--user {
    background: var(--primary);
    color: var(--navy);
    align-self: flex-end;
    border-radius: var(--radius) var(--radius) var(--radius-sm) var(--radius);
    font-weight: 600;
}

/* Bot summary */
.bot__summary {
    background: rgba(249,163,26,.08);
    border: 1px solid rgba(249,163,26,.2);
    border-radius: var(--radius);
    padding: var(--s4);
    margin-top: var(--s2);
    font-size: 0.875rem;
    line-height: 1.7;
}

.bot__summary strong {
    display: block;
    margin-bottom: var(--s2);
    font-size: 0.9375rem;
    color: var(--navy);
}

.bot__summary p {
    color: var(--text-secondary);
    margin-bottom: var(--s1);
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat input area with option buttons */
.bot__input-area {
    padding: var(--s4) var(--s5);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
}

.bot__option {
    padding: var(--s2) var(--s4);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}

.bot__option:hover {
    border-color: var(--primary);
    background: rgba(249,163,26,.06);
    color: var(--primary-dark);
}

/* ========================================
   SCHEDULE / CALENDLY
   ======================================== */
.schedule {
    padding: var(--s9) 0;
    background: var(--navy);
    position: relative;
}

.schedule .section-header__label {
    color: var(--primary);
}

.schedule .section-header__title {
    color: #fff;
}

.schedule__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--s7);
    align-items: start;
}

.schedule__desc {
    color: rgba(255,255,255,.7);
    font-size: 1.0625rem;
    margin-bottom: var(--s5);
}

.schedule__expect {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.schedule__expect li {
    display: flex;
    align-items: center;
    gap: var(--s3);
    color: rgba(255,255,255,.85);
    font-size: 0.9375rem;
    font-weight: 500;
}

.schedule__expect svg {
    color: var(--primary);
    flex-shrink: 0;
}

.schedule__embed {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 500px;
}

.schedule__calendly {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.schedule__calendly iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
}

.schedule__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: var(--s9) 0;
    background: var(--bg-warm);
}

.contact__inner {
    max-width: 640px;
    margin: 0 auto;
}

.contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    background: var(--bg);
    padding: var(--s7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.form-group--full {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.form-group label span {
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.8125rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: all var(--dur) var(--ease);
    color: var(--text);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249,163,26,.12);
}

/* Validation error state */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #d93025;
}

.form-group__error {
    font-size: 0.75rem;
    color: #d93025;
    min-height: 1rem;
}

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

.contact__actions {
    grid-column: span 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--s4);
    padding-top: var(--s2);
}

.contact__privacy {
    grid-column: span 2;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,.7);
    padding: var(--s8) 0 var(--s5);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--s7);
    padding-bottom: var(--s7);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer .logo__text {
    font-size: 1rem;
}

.footer__brand .logo {
    margin-bottom: var(--s4);
}

.footer__brand > p {
    color: rgba(255,255,255,.5);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer__nav h3,
.footer__contact h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,.4);
    margin-bottom: var(--s4);
}

.footer__nav ul,
.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.footer__nav a,
.footer__contact a {
    font-size: 0.875rem;
    color: rgba(255,255,255,.6);
    transition: color var(--dur) var(--ease);
}

.footer__nav a:hover,
.footer__contact a:hover {
    color: var(--primary);
}

.footer__bottom {
    padding-top: var(--s5);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,.3);
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--dur) var(--ease);
}

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

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20,33,61,.6);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--bg);
    padding: var(--s7);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: scale(.92);
    transition: transform var(--dur) var(--ease-spring);
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__icon {
    margin: 0 auto var(--s5);
    display: block;
}

.modal__content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--s2);
}

.modal__content p {
    color: var(--text-secondary);
    margin-bottom: var(--s5);
    font-size: 0.9375rem;
}

/* ========================================
   SCROLL ANIMATIONS
   IntersectionObserver-triggered reveals
   ======================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state for buttons */
.btn.loading {
    pointer-events: none;
    opacity: .7;
}

.btn.loading span {
    visibility: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE
   Mobile-first breakpoints
   ======================================== */

/* Tablet: 768px and below */
@media (max-width: 768px) {
    :root {
        --header-h: 70px;
    }

    /* Mobile nav overlay */
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--navy);
        padding: var(--s6);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--dur) var(--ease);
        z-index: 5;
    }

    .nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--s4);
    }

    .nav__link {
        font-size: 1.125rem;
        padding: var(--s3) 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .nav__link::after { display: none; }

    .nav__cta {
        text-align: center;
        margin-top: var(--s4);
    }

    .lang-switch {
        margin-left: auto;
        margin-right: var(--s3);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + var(--s7)) 0 var(--s7);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--s6);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Process */
    .process__timeline {
        grid-template-columns: 1fr 1fr;
        gap: var(--s6);
    }

    .process__timeline::before { display: none; }

    /* Solutions */
    .solutions__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Schedule */
    .schedule__inner {
        grid-template-columns: 1fr;
    }

    .schedule__embed {
        min-height: 400px;
    }

    .schedule__calendly {
        min-height: 400px;
    }

    /* Contact */
    .contact__form {
        grid-template-columns: 1fr;
        padding: var(--s5);
    }

    .form-group--full,
    .contact__actions,
    .contact__privacy {
        grid-column: span 1;
    }

    .contact__actions {
        flex-direction: column;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--s6);
    }

    .footer__brand .logo {
        justify-content: center;
    }

    .footer__brand > p {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Small mobile: 480px and below */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.875rem;
    }

    .hero__subtitle {
        font-size: 0.9375rem;
    }

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

    .card--service,
    .card--case {
        padding: var(--s5);
    }

    .bot__messages {
        min-height: 200px;
    }
}

/* Tablet landscape & wider adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr 1fr;
    }

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

    /* Third card spans full width at tablet */
    .solutions__grid .card--case:last-child {
        grid-column: span 2;
        max-width: 480px;
        justify-self: center;
    }

    .services__grid .card--service:last-child {
        grid-column: span 2;
        max-width: 480px;
        justify-self: center;
    }
}
