/**
 * SPEC SOLUTIONS - Main Stylesheet
 *
 * A minimalist, mobile-first CSS architecture using CSS custom properties
 * for consistent theming and easy maintenance.
 *
 * Organisation:
 * 1. CSS Custom Properties (Design Tokens)
 * 2. Reset & Base Styles
 * 3. Typography
 * 4. Layout Utilities
 * 5. Components
 * 6. Section Styles
 * 7. Animations
 * 8. Media Queries
 */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
    /* Colour Palette - Primary brand colours */
    --blue-primary: #002D9C;
    --blue-secondary: #293467;
    --blue-light: #E8EDF8;
    --charcoal: #141414;
    --charcoal-light: #333333;
    --grey-dark: #666666;
    --grey-medium: #999999;
    --light-grey: #F2F2F2;
    --lighter-grey: #F8F8F8;
    --white: #FFFFFF;

    /* Semantic colours */
    --color-text: var(--charcoal);
    --color-text-muted: var(--grey-dark);
    --color-text-light: var(--grey-medium);
    --color-bg: var(--white);
    --color-bg-alt: var(--light-grey);
    --color-accent: var(--blue-primary);
    --color-accent-hover: var(--blue-secondary);
    --color-success: #0A7B3E;
    --color-error: #C41E3A;

    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-family-heading: var(--font-family-base);

    /* Font sizes - Mobile first (scaled up in media queries) */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 2rem;      /* 32px */
    --font-size-3xl: 2.5rem;    /* 40px */
    --font-size-4xl: 3rem;      /* 48px */

    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line heights */
    --line-height-tight: 1.2;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.8;

    /* Spacing scale */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    --space-4xl: 6rem;     /* 96px */

    /* Layout */
    --container-max: 1200px;
    --container-padding: var(--space-md);

    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-width: 1px;
    --border-color: #E0E0E0;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

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

    /* Z-index scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

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

* {
    margin: 0;
    padding: 0;
}

html {
    /* Prevent font size inflation on mobile */
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Remove list styles on ul, ol with class */
ul[class],
ol[class] {
    list-style: none;
}

/* Set shorter line heights on headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

/* Sensible defaults for links */
a {
    color: var(--color-accent);
    text-decoration: none;
    text-decoration-skip-ink: auto;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

.section-title {
    font-size: 1.875rem; /* 30px */
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.section-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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


/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    z-index: var(--z-popover);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}


/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: var(--border-width) solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--blue-light);
    color: var(--color-accent);
}

/* Submit button states */
.btn-submit {
    position: relative;
    min-width: 160px;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.is-loading .btn-text {
    visibility: hidden;
}

.btn-submit.is-loading .btn-loading {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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


/* ---------- Form Elements ---------- */
.form-group {
    margin-bottom: var(--space-lg);
}

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

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.form-label .required {
    color: var(--color-error);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--white);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.form-input:hover {
    border-color: var(--grey-medium);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 45, 156, 0.1);
}

.form-input.is-invalid {
    border-color: var(--color-error);
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

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

.form-error {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-error);
    min-height: 1.25rem;
}

.form-actions {
    margin-top: var(--space-xl);
}

.form-status {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--border-radius-sm);
    text-align: center;
    display: none;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    background-color: #E8F5E9;
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.form-status.is-error {
    background-color: #FFEBEE;
    color: var(--color-error);
    border: 1px solid var(--color-error);
}


/* ==========================================================================
   6. SECTION STYLES
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 600;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border-color);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}


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

.logo-img {
    height: 50px;
    width: auto;
}

@media (min-width: 768px) {
    .logo-img {
        height: 90px;
    }

    .site-header .container {
        height: 110px;
    }
}

.logo-text {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.logo-accent {
    color: var(--color-accent);
}

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

.nav-link {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.nav-link.cta-link {
    background-color: var(--color-accent);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link.cta-link:hover {
    background-color: var(--blue-light);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    position: relative;
    z-index: 700;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform var(--transition-fast);
}

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

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

/* Mobile menu open state */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile navigation overlay */
/* Mobile dropdown menu - slides down from header */
.main-nav.is-open {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #E0E0E0;
}

.main-nav.is-open .nav-link {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid #F2F2F2;
    text-align: left;
    color: #141414;
    background: transparent;
}

.main-nav.is-open .nav-link:hover {
    color: #002D9C;
}

.main-nav.is-open .nav-link.cta-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #002D9C;
    color: #FFFFFF;
    border: 1px solid #002D9C;
    text-align: center;
}

.main-nav.is-open .nav-link.cta-link:hover {
    background-color: #293467;
    color: #FFFFFF;
}

/* Mobile menu contact links - hidden by default, shown only when menu is open */
.mobile-contact {
    display: none;
}

.main-nav.is-open .mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E0E0E0;
}

.mobile-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666666;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.15s ease;
}

.mobile-contact-link:hover {
    color: #002D9C;
}

.mobile-contact-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* ---------- Hero Section ---------- */
.hero {
    padding-top: calc(70px + var(--space-3xl));
    padding-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        padding-top: calc(110px + var(--space-3xl));
    }
}

/* Dark overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 45, 156, 0.85) 0%,
        rgba(41, 52, 103, 0.8) 50%,
        rgba(20, 20, 20, 0.75) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
}

.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.title-accent {
    color: var(--white);
    opacity: 0.9;
}

.hero-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-relaxed);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Hero buttons on dark background */
.hero .btn-primary {
    background-color: var(--white);
    color: var(--color-accent);
}

.hero .btn-primary:hover {
    background-color: var(--light-grey);
    color: var(--color-accent-hover);
}

.hero .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--white);
}

.hero-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--blue-secondary), var(--color-accent));
    background-size: 200% 100%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-accent {
        animation: none;
        background: var(--color-accent);
    }
}


/* ---------- Services Section ---------- */
.services {
    padding: var(--space-3xl) 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    gap: var(--space-xl);
}

.service-card {
    padding: var(--space-xl);
    background-color: var(--lighter-grey);
    border-radius: var(--border-radius-md);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

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

@media (prefers-reduced-motion: reduce) {
    .service-card:hover {
        transform: none;
    }
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

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

.service-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}


/* ---------- Process Section ---------- */
.process {
    padding: var(--space-3xl) 0;
    background-color: var(--light-grey);
}

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

.process-step {
    display: flex;
    gap: var(--space-lg);
    position: relative;
}

/* Vertical line connecting steps */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 60px;
    bottom: calc(-1 * var(--space-xl));
    width: 2px;
    background-color: var(--border-color);
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    background-color: var(--white);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
}

.step-content {
    padding-top: var(--space-sm);
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}


/* ---------- Value Props Section ---------- */
.value-props {
    padding: var(--space-3xl) 0;
    background-color: var(--white);
}

.value-grid {
    display: grid;
    gap: var(--space-xl);
}

.value-item {
    text-align: center;
    padding: var(--space-lg);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--color-accent);
}

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

.value-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

.value-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}


/* ---------- Contact Section ---------- */
.contact {
    padding: var(--space-3xl) 0;
    background-color: var(--light-grey);
}

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

.contact-form {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}


/* ---------- Footer ---------- */
.site-footer {
    padding: 2.5rem 0 1.5rem;
    background-color: #141414;
    color: #FFFFFF;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #999999;
    font-style: italic;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #999999;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.footer-contact-link:hover {
    color: #FFFFFF;
}

.footer-contact-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333333;
    text-align: center;
}

.copyright {
    font-size: 0.8125rem;
    color: #666666;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-logo {
        height: 75px;
    }

    .footer-contact {
        align-items: flex-end;
        text-align: right;
    }
}

.copyright {
    font-size: var(--font-size-sm);
    color: var(--grey-medium);
}


/* ==========================================================================
   7. ANIMATIONS
   ========================================================================== */

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for grid items */
.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.services-grid .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }

.process-timeline .animate-on-scroll:nth-child(2) { transition-delay: 150ms; }
.process-timeline .animate-on-scroll:nth-child(3) { transition-delay: 300ms; }

.value-grid .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.value-grid .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.value-grid .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }

/* Disable animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */

/* Small tablets and up */
@media (min-width: 640px) {
    :root {
        --container-padding: var(--space-lg);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-cta {
        flex-direction: row;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets and up */
@media (min-width: 768px) {
    :root {
        --container-padding: var(--space-xl);
    }

    .section-title {
        font-size: 2.5rem; /* 40px */
    }

    .section-subtitle {
        font-size: var(--font-size-md);
    }

    .hero {
        padding-top: calc(64px + var(--space-4xl));
        padding-bottom: var(--space-4xl);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-md);
    }

    .services,
    .process,
    .value-props,
    .contact {
        padding: var(--space-4xl) 0;
    }

    /* Process timeline horizontal layout */
    .process-timeline {
        flex-direction: row;
        gap: var(--space-lg);
    }

    .process-step {
        flex: 1;
        flex-direction: column;
        text-align: center;
    }

    .process-step:not(:last-child)::after {
        left: calc(50% + 28px);
        top: 28px;
        bottom: auto;
        width: calc(100% - 56px);
        height: 2px;
    }

    .step-number {
        margin: 0 auto var(--space-md);
    }

    .step-content {
        padding-top: 0;
    }

    .contact-form {
        padding: var(--space-2xl);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-logo {
        height: 75px;
    }
}

/* Desktop navigation */
@media (min-width: 900px) {
    .main-nav {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .value-item {
        padding: var(--space-xl);
    }
}
