/* ============================================
   JERSEY SHORE MAINTENANCE SERVICE
   Premium "Steel & Onyx" design system
   Palette tuned to the black + steel-blue logo
   ============================================ */
:root {
    /* Onyx / black base — lets the black logo sit naturally */
    --black: #05070A;
    --onyx: #0A0E14;
    --onyx-alt: #11161F;
    --onyx-lighter: #1A212D;
    --onyx-card: #141A24;

    /* Steel-blue accent (pulled from the logo emblem) */
    --steel: #5B7DA8;
    --steel-hover: #7396C2;
    --steel-dark: #3F5C82;
    --steel-deep: #2A405C;
    --steel-glow: rgba(91, 125, 168, 0.32);

    /* Neutral palette */
    --white: #FFFFFF;
    --off-white: #F4F6F9;
    --light: #E6EAF0;
    --light-dim: #C5CCD8;
    --medium: #8A95A6;
    --medium-dark: #6B7488;
    --dark-text: #2D3748;
    --body-text: #4A5568;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

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

    /* Borders */
    --border-thin: 1px solid rgba(255, 255, 255, 0.08);
    --border-steel: 2px solid var(--steel);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-steel: 0 8px 28px var(--steel-glow);

    /* Container */
    --container-max: 1240px;
    --container-pad: 1.5rem;

    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
}


/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--body-text);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* NOTE: do NOT set overflow-x:hidden on body — it breaks position:sticky on iOS Safari */
}

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

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

ul {
    list-style: none;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}


/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.text-accent {
    color: var(--steel);
}

/* Technical section label */
.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 2px;
    background: var(--steel);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--onyx);
    margin-bottom: var(--space-lg);
}

.section-title--light {
    color: var(--white);
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--body-text);
    max-width: 620px;
}

.section-desc--light {
    color: var(--light-dim);
}

.section-header {
    margin-bottom: var(--space-4xl);
}

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

.section-header--center .section-label {
    padding-left: 0;
}

.section-header--center .section-label::before {
    display: none;
}

.section-header--center .section-desc {
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.btn--primary:hover {
    background: var(--steel-hover);
    border-color: var(--steel-hover);
    box-shadow: var(--shadow-steel);
    transform: translateY(-2px);
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn--primary:hover::after {
    width: 320px;
    height: 320px;
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--onyx);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}


/* ============================================
   DIVIDERS
   ============================================ */
.divider--steel {
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--steel-deep),
        var(--steel),
        var(--steel-hover),
        var(--steel),
        var(--steel-deep)
    );
}

.divider--angle {
    height: 80px;
    position: relative;
    z-index: 2;
}

.divider--angle-to-dark {
    background: var(--onyx);
    clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

.divider--angle-to-light {
    background: var(--off-white);
    clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
}

.divider--angle-to-light-2 {
    background: var(--off-white);
    clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}


/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Do NOT add transform/will-change here — it creates a new stacking
       context that makes position:fixed children (mobile nav drawer) fail on iOS */
}

/* Top contact bar */
.header__topbar {
    background: var(--black);
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header__topbar-left {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.header__topbar-item {
    font-size: 0.8rem;
    color: var(--medium);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.header__topbar-item a {
    color: var(--medium);
}

.header__topbar-item a:hover {
    color: var(--steel-hover);
}

.header__topbar-icon {
    color: var(--steel);
    font-size: 0.85rem;
}

.header__badge {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--steel-hover);
    border: 1px solid var(--steel-dark);
    padding: 0.22rem 0.75rem;
    border-radius: 2px;
}

/* Main nav */
.header__nav {
    background: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow var(--transition-base);
}

.header__nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

/* Brand / Logo (image) */
.header__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.header__brand-logo {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(91, 125, 168, 0.08);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.header__brand:hover .header__brand-logo {
    box-shadow: 0 0 0 5px rgba(91, 125, 168, 0.18);
    transform: scale(1.03);
}

.header__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.header__brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    text-transform: uppercase;
}

.header__brand-tag {
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--steel);
    margin-top: 2px;
}

/* Mobile toggle (checkbox hack) */
.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle-label span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.header__menu li a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--light-dim);
    padding: 0.5rem 0.9rem;
    transition: color var(--transition-fast);
    position: relative;
}

.header__menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.9rem;
    right: 0.9rem;
    height: 2px;
    background: var(--steel);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.header__menu li a:hover {
    color: var(--white);
}

.header__menu li a:hover::after {
    transform: scaleX(1);
}

.header__menu-cta {
    background: var(--steel) !important;
    color: var(--white) !important;
    padding: 0.55rem 1.3rem !important;
    margin-left: 0.6rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast) !important;
}

.header__menu-cta::after {
    display: none !important;
}

.header__menu-cta:hover {
    background: var(--steel-hover) !important;
}


/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--black);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(91, 125, 168, 0.18), transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(63, 92, 130, 0.16), transparent 50%),
        linear-gradient(135deg, #05070A 0%, #0C111A 45%, #11161F 100%);
    z-index: 0;
    animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
    z-index: 1;
}

/* Decorative floating emblem ghost (the logo, large + faded) */
.hero__emblem {
    position: absolute;
    top: 50%;
    right: -4%;
    transform: translateY(-50%);
    width: min(46vw, 620px);
    aspect-ratio: 1;
    opacity: 0.5;
    z-index: 1;
    background: url('assets/logo.jpeg') center / cover no-repeat;
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%);
    mask-image: radial-gradient(circle, #000 52%, transparent 70%);
    filter: grayscale(0.2);
    animation: floatY 9s ease-in-out infinite;
    pointer-events: none;
}

.hero__corner {
    position: absolute;
    width: 64px;
    height: 64px;
    z-index: 3;
}

.hero__corner--tl {
    top: 2rem;
    left: 2rem;
    border-top: 3px solid var(--steel);
    border-left: 3px solid var(--steel);
}

.hero__corner--br {
    bottom: 2rem;
    right: 2rem;
    border-bottom: 3px solid var(--steel);
    border-right: 3px solid var(--steel);
}

.hero__content {
    position: relative;
    z-index: 5;
    padding: var(--space-5xl) 0;
    max-width: 760px;
    animation: fadeInUp 1s ease forwards;
}

.hero__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--steel-hover);
    margin-bottom: var(--space-lg);
    padding: 0.35rem 1.1rem;
    border: 1px solid var(--steel-dark);
    border-radius: 2px;
    background: rgba(91, 125, 168, 0.06);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: var(--space-xl);
}

.hero__title-accent {
    background: linear-gradient(120deg, var(--steel-hover), var(--steel));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--light-dim);
    max-width: 580px;
    margin-bottom: var(--space-2xl);
}

.hero__actions {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-4xl);
    flex-wrap: wrap;
}

.hero__stats-bar {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--steel-hover);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.78rem;
    color: var(--medium);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.35rem;
}

.hero__stat-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.12);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
}

.hero__scroll-text {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    color: var(--medium);
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 42px;
    background: linear-gradient(to bottom, var(--steel), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}


/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-5xl) 0;
    background: var(--off-white);
}

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

.about__text {
    margin-bottom: var(--space-lg);
    color: var(--body-text);
    line-height: 1.85;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--onyx);
}

.about__feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--steel);
    color: var(--white);
    font-size: 0.7rem;
    border-radius: 3px;
    flex-shrink: 0;
}

/* About visual — logo emblem panel */
.about__visual {
    position: relative;
}

.about__visual-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background:
        radial-gradient(circle at 70% 25%, rgba(91, 125, 168, 0.22), transparent 55%),
        linear-gradient(150deg, #0A0E14, #161D29);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.about__visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
}

.about__visual-logo {
    position: relative;
    width: 62%;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: floatY 7s ease-in-out infinite;
}

.about__visual-accent {
    position: absolute;
    top: 22px;
    right: -18px;
    width: 100%;
    height: 100%;
    background: var(--steel);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.85;
}

.about__visual-badge {
    position: absolute;
    bottom: -22px;
    left: -22px;
    background: var(--black);
    color: var(--white);
    padding: 1.4rem 1.6rem;
    text-align: center;
    border-left: 4px solid var(--steel);
    border-radius: var(--radius-sm);
    z-index: 2;
    box-shadow: var(--shadow-card);
}

.about__visual-badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--steel-hover);
}

.about__visual-badge-text {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--medium);
    line-height: 1.4;
}


/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-5xl) 0 var(--space-4xl);
    background: var(--onyx);
    position: relative;
    overflow: hidden;
}

.services__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

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

.service-card {
    background: var(--onyx-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.service-card:nth-child(even) {
    margin-top: var(--space-2xl);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--steel), var(--steel-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    background: var(--onyx-lighter);
    border-color: rgba(91, 125, 168, 0.35);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-base);
}

.service-card:hover .service-card__number {
    color: rgba(91, 125, 168, 0.28);
}

.service-card__line {
    width: 32px;
    height: 2px;
    background: var(--steel);
    margin-bottom: var(--space-lg);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--white);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.service-card__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--medium);
}


/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us {
    padding: var(--space-5xl) 0;
    background: var(--off-white);
}

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

.why-card {
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--steel), var(--steel-hover));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.why-card:hover::after {
    transform: scaleX(1);
}

.why-card__icon {
    width: 58px;
    height: 58px;
    background: var(--black);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.why-card__icon-shape {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--steel);
    border-right: 2px solid var(--steel);
}

.why-card__icon-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--steel-hover);
}

.why-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--onyx);
    margin-bottom: var(--space-md);
}

.why-card__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--body-text);
}


/* ============================================
   WORKFLOW
   ============================================ */
.workflow {
    padding: var(--space-5xl) 0;
    background: var(--onyx-alt);
    position: relative;
    overflow: hidden;
}

.workflow__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.workflow__steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.workflow__line {
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--steel-dark) 12%,
        var(--steel) 50%,
        var(--steel-dark) 88%,
        transparent
    );
    z-index: 0;
}

.workflow-step {
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Body wrapper — transparent on desktop, styled on mobile via breakpoint */
.workflow-step__body {
    width: 100%;
}

.workflow-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--black);
    border: 2px solid var(--steel);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--steel-hover);
    margin-bottom: var(--space-xl);
    position: relative;
    transition: all var(--transition-base);
}

.workflow-step__number::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(91, 125, 168, 0.25);
    border-radius: 50%;
    transition: border-color var(--transition-base);
}

.workflow-step:hover .workflow-step__number {
    background: var(--steel);
    color: var(--white);
}

.workflow-step:hover .workflow-step__number::before {
    border-color: var(--steel);
}

.workflow-step__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.workflow-step__desc {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--medium);
}


/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: var(--space-5xl) 0;
    background: var(--onyx);
}

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

.testimonial-card {
    background: var(--onyx-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    border-color: rgba(91, 125, 168, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.testimonial-card__quote {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--steel);
    line-height: 0.8;
    opacity: 0.45;
    margin-bottom: var(--space-md);
}

.testimonial-card__text {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--light-dim);
    margin-bottom: var(--space-xl);
}

.testimonial-card__author {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: var(--space-lg);
}

.testimonial-card__name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.testimonial-card__role {
    font-size: 0.8rem;
    color: var(--medium);
}


/* ============================================
   COVERAGE
   ============================================ */
.coverage {
    padding: var(--space-5xl) 0;
    background: var(--off-white);
}

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

.coverage__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.coverage__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--light);
    border-left: 3px solid var(--steel);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--onyx);
    transition: all var(--transition-base);
}

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

.coverage__item-dot {
    width: 8px;
    height: 8px;
    background: var(--steel);
    border-radius: 50%;
    flex-shrink: 0;
}

.coverage__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--light);
    box-shadow: var(--shadow-card);
}

.coverage__map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}


/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--space-5xl) 0;
    background: var(--onyx);
    position: relative;
    overflow: hidden;
}

.contact__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact .section-title {
    color: var(--white);
}

.contact__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--light-dim);
    margin-bottom: var(--space-2xl);
}

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

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

.contact-item__icon {
    color: var(--steel);
    font-size: 0.6rem;
    margin-top: 0.55rem;
    flex-shrink: 0;
}

.contact-item__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel-hover);
    margin-bottom: 0.2rem;
}

.contact-item__value {
    font-size: 0.95rem;
    color: var(--light-dim);
    line-height: 1.6;
}

.contact-item__value a {
    color: var(--light-dim);
}

.contact-item__value a:hover {
    color: var(--steel-hover);
}

.contact__form-wrapper {
    position: relative;
}

.contact__form-frame {
    background: var(--onyx-card);
    padding: var(--space-3xl);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
}

.contact__form-frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 62px;
    height: 62px;
    border-top: 4px solid var(--steel);
    border-left: 4px solid var(--steel);
    border-top-left-radius: var(--radius-md);
}

.contact__form-frame::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 62px;
    height: 62px;
    border-bottom: 4px solid var(--steel);
    border-right: 4px solid var(--steel);
    border-bottom-right-radius: var(--radius-md);
}

.contact__form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-bottom: var(--space-2xl);
}

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

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--medium);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-color: var(--steel);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(91, 125, 168, 0.14);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B7DA8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: var(--onyx);
    color: var(--white);
}

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


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black);
    padding-top: var(--space-4xl);
}

.footer__container {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand-logo-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: var(--space-lg);
}

.footer__logo-img {
    height: 58px;
    width: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.2;
}

.footer__logo-tag {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--steel);
    margin-top: 3px;
}

.footer__brand-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--medium);
    margin-bottom: var(--space-lg);
}

.footer__badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--steel-hover);
    border: 1px solid var(--steel-dark);
    padding: 0.25rem 0.8rem;
    border-radius: 2px;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-md);
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--steel);
}

.footer__list li {
    margin-bottom: 0.6rem;
}

.footer__list a {
    font-size: 0.88rem;
    color: var(--medium);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__list a:hover {
    color: var(--steel-hover);
    padding-left: 4px;
}

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

.footer__contact-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--steel-hover);
    margin-bottom: 0.2rem;
}

.footer__contact-value {
    font-size: 0.88rem;
    color: var(--medium);
    line-height: 1.6;
}

.footer__contact-value a {
    color: var(--medium);
}

.footer__contact-value a:hover {
    color: var(--steel-hover);
}

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

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.32);
}

.footer__license {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.22);
}

.dev-credit {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

.dev-credit a {
    color: var(--steel);
}

.dev-credit a:hover {
    color: var(--steel-hover);
}


/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.06) translate(-1%, -1%); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.4; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 125, 168, 0.3); }
    50% { box-shadow: 0 0 24px 5px rgba(91, 125, 168, 0.15); }
}

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

.service-card:nth-child(1) { animation: cardFadeIn 0.6s 0.1s ease both; }
.service-card:nth-child(2) { animation: cardFadeIn 0.6s 0.2s ease both; }
.service-card:nth-child(3) { animation: cardFadeIn 0.6s 0.3s ease both; }
.service-card:nth-child(4) { animation: cardFadeIn 0.6s 0.4s ease both; }
.service-card:nth-child(5) { animation: cardFadeIn 0.6s 0.5s ease both; }
.service-card:nth-child(6) { animation: cardFadeIn 0.6s 0.6s ease both; }
.service-card:nth-child(7) { animation: cardFadeIn 0.6s 0.7s ease both; }
.service-card:nth-child(8) { animation: cardFadeIn 0.6s 0.8s ease both; }

.why-card:nth-child(1) { animation: cardFadeIn 0.6s 0.1s ease both; }
.why-card:nth-child(2) { animation: cardFadeIn 0.6s 0.2s ease both; }
.why-card:nth-child(3) { animation: cardFadeIn 0.6s 0.3s ease both; }
.why-card:nth-child(4) { animation: cardFadeIn 0.6s 0.4s ease both; }
.why-card:nth-child(5) { animation: cardFadeIn 0.6s 0.5s ease both; }
.why-card:nth-child(6) { animation: cardFadeIn 0.6s 0.6s ease both; }

.workflow-step:nth-child(2) { animation: cardFadeIn 0.6s 0.15s ease both; }
.workflow-step:nth-child(3) { animation: cardFadeIn 0.6s 0.3s ease both; }
.workflow-step:nth-child(4) { animation: cardFadeIn 0.6s 0.45s ease both; }
.workflow-step:nth-child(5) { animation: cardFadeIn 0.6s 0.6s ease both; }
.workflow-step:nth-child(6) { animation: cardFadeIn 0.6s 0.75s ease both; }

.testimonial-card:nth-child(1) { animation: cardFadeIn 0.6s 0.15s ease both; }
.testimonial-card:nth-child(2) { animation: cardFadeIn 0.6s 0.3s ease both; }
.testimonial-card:nth-child(3) { animation: cardFadeIn 0.6s 0.45s ease both; }

.btn--primary {
    animation: pulseGlow 3s ease-in-out infinite;
}

.btn--primary:hover {
    animation: none;
}


/* ============================================
   iOS / SAFARI GLOBAL FIXES
   ============================================ */

/* Prevent iOS from inflating font-size on landscape */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Clip horizontal overflow at the root without breaking sticky */
    overflow-x: clip;
}

/* Kill the grey tap flash on all interactive elements */
a,
button,
input,
select,
textarea,
label,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent double-tap zoom on buttons/links */
a,
button {
    touch-action: manipulation;
}

/* Safe-area insets — requires viewport-fit=cover in <meta> */
.header__topbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

.footer__bottom {
    padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
}

/* Fix iOS Safari 100vh bug — use svh/dvh with vh fallback */
.hero {
    min-height: 100vh;
    min-height: 100svh;
}

/* Ensure form inputs don't zoom on iOS (must be ≥16px) */
.form-input,
select.form-input {
    font-size: 16px;
}

/* Fix iOS select appearance */
select.form-input {
    -webkit-appearance: none;
    appearance: none;
}

/* Minimum 44×44px touch targets (Apple HIG) */
.header__menu li a,
.header__menu-cta,
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
/* nav-toggle-label touch target is set inside the mobile breakpoint only,
   so it stays display:none on desktop */

.footer__list a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}


/* ============================================
   RESPONSIVE — Large tablet / small desktop
   (max 1180px) — catches 11" iPads in landscape
   ============================================ */
@media (max-width: 1180px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .service-card:nth-child(even) {
        margin-top: 0;
    }

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

    /* Move the last footer column to span full width */
    .footer__contact {
        grid-column: 1 / -1;
    }
}


/* ============================================
   RESPONSIVE — Tablet (max 1024px)
   iPad Pro 12.9" portrait, iPad Air landscape
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --space-4xl: 4.5rem;
        --space-5xl: 6rem;
    }

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

    .service-card:nth-child(even) {
        margin-top: 0;
    }

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

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

    .workflow__line {
        display: none;
    }

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

    .testimonials__grid .testimonial-card:last-child {
        grid-column: 1 / -1;
        max-width: 540px;
        margin: 0 auto;
    }

    .coverage__container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .coverage__map iframe {
        height: 320px;
    }

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

    .footer__contact {
        grid-column: auto;
    }
}


/* ============================================
   RESPONSIVE — Mobile nav trigger point
   (max 820px) — show hamburger, collapse menu
   ============================================ */
@media (max-width: 820px) {
    .header__topbar-item--email {
        display: none;
    }

    /* Show the hamburger button */
    .nav-toggle-label {
        display: flex;
        position: relative;
        z-index: 1002;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    /* Dropdown menu — max-height collapse (reliable on all iOS versions) */
    .header__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--black);
        border-top: 2px solid var(--steel-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        z-index: 1001;
        /* account for home indicator */
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Open state */
    .nav-toggle:checked ~ .header__menu {
        max-height: 600px;
    }

    .header__menu li {
        width: 100%;
    }

    .header__menu li a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.95rem;
        letter-spacing: 0.05em;
        color: var(--light-dim);
        min-height: 52px;
    }

    .header__menu li a:active {
        color: var(--steel-hover);
        background: rgba(91, 125, 168, 0.08);
    }

    .header__menu li a::after {
        display: none;
    }

    .header__menu-cta {
        margin: 0.75rem 1.25rem 1rem !important;
        width: calc(100% - 2.5rem) !important;
        justify-content: center;
        border-radius: var(--radius-sm) !important;
        min-height: 52px;
        display: flex !important;
    }

    /* Hamburger → X animation */
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Layout fixes */
    .about__container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .about__visual {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .about__visual-accent {
        display: none;
    }

    .about__visual-badge {
        bottom: -16px;
        left: -16px;
    }

    .contact__container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .contact__form-frame {
        padding: var(--space-xl);
    }

    .hero__emblem {
        opacity: 0.15;
        right: -20%;
        width: min(55vw, 380px);
    }

    .hero__corner {
        width: 40px;
        height: 40px;
    }

    .hero__stats-bar {
        gap: var(--space-lg);
    }

    .about,
    .services,
    .why-us,
    .workflow,
    .testimonials,
    .coverage,
    .contact {
        padding: var(--space-3xl) 0;
    }

    .divider--angle {
        height: 50px;
    }

    .workflow__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

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

    .footer__contact {
        grid-column: 1 / -1;
    }
}


/* ============================================
   RESPONSIVE — Mobile (max 600px)
   Large Android phones
   ============================================ */
@media (max-width: 600px) {
    :root {
        --container-pad: 1.1rem;
        --space-4xl: 3rem;
        --space-5xl: 4.5rem;
    }

    .header__topbar-right {
        display: none;
    }

    /* Hero — reduce padding so content fits on screen, add side breathing room */
    .hero__content {
        padding: 3.5rem 1.25rem 3rem;
    }

    .hero__title {
        font-size: clamp(1.95rem, 8.5vw, 2.8rem);
        margin-bottom: 1rem;
    }

    .hero__subtitle {
        font-size: 0.975rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .hero__label {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        margin-bottom: 1rem;
        padding: 0.3rem 0.8rem;
    }

    .hero__actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__stats-bar {
        gap: 1rem;
        flex-wrap: wrap;
        padding-top: 1rem;
    }

    .hero__stat-number {
        font-size: 1.65rem;
    }

    .hero__stat-label {
        font-size: 0.7rem;
    }

    .hero__scroll {
        display: none;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .why-us__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Workflow — clean stacked cards on mobile */
    .workflow__line {
        display: none;
    }

    .workflow__steps {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .workflow-step {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        text-align: left;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(91, 125, 168, 0.18);
        border-left: 3px solid var(--steel);
        border-radius: var(--radius-md);
        padding: 1rem 1.1rem;
    }

    .workflow-step__number {
        width: 52px;
        height: 52px;
        min-width: 52px;
        font-size: 1.1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .workflow-step__number::before {
        display: none;
    }

    .workflow-step__body {
        flex: 1;
        min-width: 0;
    }

    .workflow-step__title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
        color: var(--white);
    }

    .workflow-step__desc {
        font-size: 0.83rem;
        line-height: 1.6;
        color: var(--medium);
        margin: 0;
    }

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

    .testimonials__grid .testimonial-card:last-child {
        max-width: 100%;
        grid-column: auto;
    }

    .about__features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .coverage__list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .coverage__map iframe {
        height: 250px;
    }

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

    .contact__form-frame::before,
    .contact__form-frame::after {
        width: 40px;
        height: 40px;
    }

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

    .footer__contact {
        grid-column: auto;
    }

    .footer__bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .section-title {
        font-size: clamp(1.7rem, 7vw, 2.3rem);
    }

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


/* ============================================
   RESPONSIVE — iPhone 14 / standard (max 430px)
   390–430px wide: iPhone 14, 15, Pro, Plus
   ============================================ */
@media (max-width: 430px) {
    :root {
        --container-pad: 1rem;
    }

    /* Topbar: single line, phone only */
    .header__topbar-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .header__topbar-item--email {
        display: none;
    }

    .header__topbar-right {
        display: none;
    }

    /* Compact brand */
    .header__brand-logo {
        width: 42px;
        height: 42px;
    }

    .header__brand-name {
        font-size: 0.95rem;
    }

    .header__brand-tag {
        font-size: 0.55rem;
        letter-spacing: 0.18em;
    }

    /* Hero — iPhone 14 viewport is 844px tall, header ~100px
       Available: ~744px. Side padding keeps text off screen edges. */
    .hero__content {
        padding: 2.5rem 1rem 2.5rem;
    }

    .hero__title {
        font-size: clamp(1.85rem, 9.5vw, 2.6rem);
        line-height: 1.06;
        margin-bottom: 0.85rem;
    }

    .hero__title-accent {
        /* Ensure gradient text renders on iOS Safari */
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero__label {
        font-size: 0.58rem;
        padding: 0.28rem 0.75rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.85rem;
    }

    .hero__subtitle {
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }

    .hero__actions {
        gap: 0.65rem;
        margin-bottom: 1.5rem;
    }

    .hero__stats-bar {
        padding-top: 1rem;
        gap: 0.85rem;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .hero__stat-number {
        font-size: 1.5rem;
    }

    .hero__stat-label {
        font-size: 0.68rem;
        margin-top: 0.2rem;
    }

    /* Hide emblem on small screens — it overlaps text */
    .hero__emblem {
        display: none;
    }

    .hero__corner {
        width: 28px;
        height: 28px;
    }

    .hero__corner--tl {
        top: 0.75rem;
        left: 0.75rem;
    }

    .hero__corner--br {
        bottom: 0.75rem;
        right: 0.75rem;
    }

    /* About section */
    .about__visual-frame {
        aspect-ratio: 1 / 1;
    }

    .about__visual-badge {
        padding: 0.85rem 1rem;
        bottom: -10px;
        left: -10px;
    }

    .about__visual-badge-number {
        font-size: 1.8rem;
    }

    /* Cards */
    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .service-card__number {
        font-size: 2rem;
    }

    .why-card {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .contact__form-frame {
        padding: 1.25rem;
    }

    .coverage__item {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
    }

    .footer__brand-logo-row {
        gap: 0.6rem;
    }

    .footer__logo-img {
        width: 46px;
        height: 46px;
    }

    .footer__logo-name {
        font-size: 0.92rem;
    }
}


/* ============================================
   RESPONSIVE — iPhone SE / mini (max 375px)
   iPhone SE 3rd gen, iPhone 12/13 mini
   ============================================ */
@media (max-width: 375px) {
    :root {
        --container-pad: 0.9rem;
    }

    .hero__content {
        padding: 2rem 0.9rem 2rem;
    }

    .hero__title {
        font-size: clamp(1.65rem, 10.5vw, 2.2rem);
    }

    .hero__subtitle {
        font-size: 0.88rem;
    }

    .hero__actions .btn {
        padding: 0.8rem 1.1rem;
        font-size: 0.83rem;
    }

    .hero__stat-number {
        font-size: 1.35rem;
    }

    .header__brand-logo {
        width: 38px;
        height: 38px;
    }

    .header__brand-name {
        font-size: 0.88rem;
    }

    .workflow-step__number {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 0.95rem;
    }

    .workflow-step__title {
        font-size: 0.88rem;
    }

    .workflow-step__desc {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: clamp(1.45rem, 9vw, 1.95rem);
    }

    .service-card,
    .why-card,
    .testimonial-card {
        padding: 1.25rem 1rem;
    }
}


/* ============================================
   iOS LANDSCAPE FIXES
   Targets iPhone landscape via aspect-ratio +
   pointer:coarse (touch device, not iPad which
   has pointer:fine with Apple Pencil)
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
    .hero {
        min-height: 100svh;
        align-items: flex-start;
        padding-top: 5rem;
    }

    .hero__content {
        padding: var(--space-xl) 0;
    }

    .hero__scroll {
        display: none;
    }

    .hero__stats-bar {
        display: none;
    }

    .hero__title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: var(--space-md);
    }

    .hero__subtitle {
        display: none;
    }

    .hero__actions {
        flex-direction: row;
        margin-bottom: var(--space-xl);
    }

    .hero__emblem {
        display: none;
    }
}


/* ============================================
   iPad-specific fixes
   Targets iPad devices (hover: none, pointer: coarse,
   but screen wider than phone landscape)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) and (pointer: coarse) {
    /* iPad portrait — ensure nav drawer works cleanly */
    .header__nav-inner {
        min-height: 72px;
    }

    .header__brand-logo {
        width: 52px;
        height: 52px;
    }

    /* Increase tap targets for iPad */
    .header__menu li a {
        min-height: 52px;
        font-size: 1.05rem;
    }

    /* About: keep 2-col on iPad landscape if possible */
    .about__container {
        grid-template-columns: 1fr;
    }

    .about__visual {
        max-width: 360px;
        margin: 0 auto;
    }

    /* Services: 2-col grid on iPad */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Why us: 2-col */
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Workflow: 3-col on iPad, 2 on narrow */
    .workflow__steps {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Larger coverage map on iPad */
    .coverage__map iframe {
        height: 400px;
    }

    /* Footer: 2-col on iPad */
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }

    .footer__contact {
        grid-column: 1 / -1;
    }
}


/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--steel);
    outline-offset: 2px;
}

@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;
    }
}


/* ============================================
   PRINT
   ============================================ */
@media print {
    .header,
    .hero__scroll,
    .hero__grid-pattern,
    .hero__corner,
    .hero__emblem,
    .hero__bg,
    .services__grid-pattern,
    .workflow__grid-pattern,
    .contact__grid-pattern,
    .divider--angle,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .services,
    .workflow,
    .testimonials,
    .contact,
    .footer {
        background: white;
    }

    .service-card,
    .why-card,
    .testimonial-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
