/* =========================================
   JR SERVICE GROUP LLC — MAIN STYLES
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Color */
    --navy: #071d3a;
    --navy-deep: #041326;
    --navy-light: #0d2b52;
    --blue: #123866;
    --orange: #ff6a00;
    --orange-dark: #e85d00;
    --white: #ffffff;
    --light: #f4f6f8;
    --light-2: #eef1f5;
    --text: #172235;
    --muted: #647084;
    --muted-on-dark: #b7c2d1;
    --border: #e2e7ed;

    /* Typography */
    --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

    /* Layout */
    --container: min(1160px, 92%);
    --section-padding: 130px;
    --section-padding-mobile: 90px;

    /* Spacing scale */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 60px;
    --space-2xl: 90px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(7, 29, 58, 0.08);
    --shadow-md: 0 12px 32px rgba(7, 29, 58, 0.12);
    --shadow-lg: 0 20px 48px rgba(7, 29, 58, 0.18);
    --shadow-orange: 0 8px 24px rgba(255, 106, 0, 0.25);

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.2s;
    --duration-base: 0.3s;
    --duration-slow: 0.6s;

    /* Breakpoints (referenced in comments; media queries can't read vars) */
    --bp-tablet: 980px;
    --bp-mobile-nav: 860px;
    --bp-mobile: 640px;
}


/* =========================================
   RESET
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--navy);
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    background: var(--orange);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 16px;
}

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


/* =========================================
   CONTAINER / UTILITIES
   ========================================= */

.container {
    width: var(--container);
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--orange);
    display: inline-block;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.section-heading p {
    color: var(--muted);
    font-size: 17px;
    max-width: 540px;
}

.section-heading--light p {
    color: var(--muted-on-dark);
}

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

/* Reveal-on-scroll (progressive enhancement) */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}


/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 13px;
    border: 1px solid transparent;
    transition: background 0.25s var(--ease), color 0.25s var(--ease),
        border-color 0.25s var(--ease), transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.25);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 106, 0, 0.32);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
}

.btn-outline-light:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-outline-navy {
    border-color: rgba(7, 29, 58, 0.25);
    color: var(--navy);
}

.btn-outline-navy:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
}

.btn-block {
    width: 100%;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    background: var(--navy);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.header-logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12.5px;
    line-height: 1.35;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
}

/* Navigation */

.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--orange);
    transition: right 0.25s var(--ease);
}

.main-nav a:hover {
    color: var(--white);
}

.main-nav a:hover::after {
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-button {
    padding: 13px 22px;
}

/* Mobile nav toggle */

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(255, 106, 0, 0.12), transparent 60%),
        linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue) 100%);
    color: var(--white);
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 150px 0 130px;
}

/*
   Hero video sits behind the gradient's own ::after scanline layer so the
   overlay always reads on top of footage. Hidden by default; video.js adds
   .is-active only once the source has actually loaded, so a missing file
   never leaves a blank black rectangle.
*/
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s var(--ease);
}

.hero-video.is-active {
    opacity: 1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        180deg,
        rgba(4, 19, 38, 0.72) 0%,
        rgba(4, 19, 38, 0.55) 45%,
        rgba(4, 19, 38, 0.88) 100%
    );
    opacity: 0;
    transition: opacity 1s var(--ease);
    pointer-events: none;
}

.hero:has(.hero-video.is-active)::before,
.hero.has-video::before {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 42px;
    max-width: 780px;
}

/* Logo + company name treated as one signature unit, tightly grouped */
.hero-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-mark {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.hero-brandline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted-on-dark);
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.hero h1 em {
    font-style: normal;
    color: var(--orange);
}

.hero-description {
    max-width: 560px;
    color: var(--muted-on-dark);
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 6px;
}

.hero-trustbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
}

.hero-trustbar span {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted-on-dark);
    display: flex;
    align-items: center;
    gap: 9px;
}

.hero-trustbar span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
}


/* =========================================
   SERVICES
   ========================================= */

.services-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

/* Bento grid: 12-column base, each card spans by visual weight */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px;
    gap: var(--space-md);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--light);
    border: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
    transition: border-color var(--duration-base) var(--ease),
        box-shadow var(--duration-base) var(--ease);
}

/* Grid placement by editorial weight */
.service-card--sm  { grid-column: span 4; }
.service-card--md  { grid-column: span 6; }
.service-card--lg  { grid-column: span 8; }
.service-card--hero {
    grid-column: span 6;
    grid-row: span 2;
}

/* Media layer (real <img>, so the browser can lazy-load it; kept separate
   from the card so hover-zoom never affects the text overlay) */
.service-card-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: var(--navy);
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s var(--ease);
}

.service-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 29, 58, 0.15) 0%,
        rgba(7, 29, 58, 0.75) 100%
    );
}

.service-card:hover .service-card-media img {
    transform: scale(1.06);
}

.service-number {
    position: relative;
    display: block;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    margin-bottom: var(--space-sm);
    transition: color var(--duration-base) var(--ease);
}

.service-card--has-image .service-number {
    color: rgba(255, 255, 255, 0.35);
}

.service-card h3 {
    position: relative;
    font-size: 20px;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    transition: transform var(--duration-base) var(--ease);
}

.service-card--hero h3 {
    font-size: 26px;
}

.service-card--has-image h3 {
    color: var(--white);
}

.service-card p {
    position: relative;
    color: var(--muted);
    font-size: 14px;
    max-width: 32ch;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--duration-base) var(--ease),
        transform var(--duration-base) var(--ease);
}

.service-card--has-image p {
    color: var(--muted-on-dark);
}

.service-card--hero p {
    opacity: 1;
    transform: none;
}

.service-card:hover p {
    opacity: 1;
    transform: none;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
}

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

.service-card:hover .service-number {
    color: var(--orange);
}

.service-card:hover h3 {
    transform: translateX(4px);
}


/* =========================================
   ABOUT
   ========================================= */

.about-section {
    padding: var(--section-padding) 0;
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 70px;
    align-items: start;
}

.about-lede {
    font-size: 19px;
    color: var(--muted-on-dark);
    max-width: 46ch;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
}

.about-pillar {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-pillar h3 {
    color: var(--white);
    font-size: 17px;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
}

.about-pillar p {
    color: var(--muted-on-dark);
    font-size: 14.5px;
}

.about-note {
    margin-top: 36px;
    font-size: 13px;
    color: rgba(183, 194, 209, 0.65);
    font-style: italic;
}


/* =========================================
   PROJECTS / GALLERY
   ========================================= */

.gallery-section {
    padding: var(--section-padding) 0;
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    cursor: default;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

.gallery-item span {
    position: relative;
    color: var(--muted-on-dark);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 14px;
    border-radius: 100px;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.gallery-item:hover span {
    border-color: var(--orange);
    color: var(--white);
}

.gallery-item:hover {
    background: linear-gradient(150deg, var(--navy-light) 0%, var(--blue) 100%);
}

.gallery-item--a { grid-column: span 4; grid-row: span 2; }
.gallery-item--b { grid-column: span 2; grid-row: span 1; }
.gallery-item--c { grid-column: span 2; grid-row: span 1; }
.gallery-item--d { grid-column: span 3; grid-row: span 1; }
.gallery-item--e { grid-column: span 3; grid-row: span 1; }

.gallery-note,
.services-note {
    margin-top: 28px;
    font-size: 13.5px;
    color: var(--muted);
}


/* =========================================
   CTA BAND
   ========================================= */

.cta-band {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: var(--white);
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.22), transparent 70%);
}

.cta-band .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-copy h2 {
    color: var(--white);
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1px;
    line-height: 1.12;
    margin-bottom: 14px;
}

.cta-copy p {
    color: var(--muted-on-dark);
    font-size: 17px;
    max-width: 46ch;
}

.cta-band .btn {
    flex-shrink: 0;
}


/* =========================================
   CONTACT
   ========================================= */

.contact-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 8px;
}

.contact-info-item {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.contact-info-item h3 {
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
}

.contact-info-item a:hover {
    color: var(--orange);
}

/* Form */

.contact-form {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 44px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14);
}

.form-note {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    padding: 80px 0 0;
    background: var(--navy-deep);
    color: var(--muted-on-dark);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
}

.footer-brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--white);
    font-size: 16px;
}

.footer-brand-text span {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted-on-dark);
    margin-top: 2px;
}

.footer-col p {
    font-size: 14px;
    max-width: 32ch;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 14.5px;
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0;
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer-social a:hover {
    border-color: var(--orange);
    color: var(--orange);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 980px) {

    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
}

@media (max-width: 860px) {

    .main-nav {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--navy-deep);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 4px;
        padding: 20px 6%;
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
        z-index: 999;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav a {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 15px;
    }

    .main-nav .header-button {
        margin-top: 20px;
        text-align: center;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

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

    .service-card--sm,
    .service-card--md,
    .service-card--lg {
        grid-column: span 1;
    }

    .service-card--hero {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 260px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item--a,
    .gallery-item--b,
    .gallery-item--c,
    .gallery-item--d,
    .gallery-item--e {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item--a {
        grid-row: span 2;
    }

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

@media (max-width: 640px) {

    .site-header .container {
        min-height: 72px;
    }

    .header-logo img {
        width: 38px;
        height: 38px;
    }

    .header-logo-text {
        font-size: 10.5px;
    }

    .main-nav {
        top: 72px;
    }

    .hero {
        padding: 130px 0 80px;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-trustbar {
        flex-direction: column;
        gap: 12px;
    }

    .services-section,
    .about-section,
    .gallery-section,
    .contact-section {
        padding: var(--section-padding-mobile) 0;
    }

    .cta-band {
        padding: 80px 0;
    }

    .cta-band .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-band .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .service-card--sm,
    .service-card--md,
    .service-card--lg,
    .service-card--hero {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 200px;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }

    .gallery-item--a,
    .gallery-item--b,
    .gallery-item--c,
    .gallery-item--d,
    .gallery-item--e {
        grid-column: span 1;
        grid-row: span 1;
    }

    .contact-form {
        padding: 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
