/* Vee Cee Engineering – Industrial Bold
   Photo-led construction style using only the logo palette (navy, blue, cyan):
   full-screen hero slideshow, condensed headings, zig-zag feature rows,
   photo service tiles, client list */
:root {
    /* Logo colours */
    --navy: #2a2b77;
    --blue: #0b5ea8;
    --cyan: #0099c8;
    /* Shades of the logo colours */
    --navy-dark: #1d1e5a;
    --ink: #141540;
    --cyan-dark: #007aa3;
    /* Sky blue for large surfaces that carry white text (deep enough for readable text) */
    --sky-deep: #007fab;
    --grad: linear-gradient(90deg, var(--navy) 0%, var(--blue) 45%, var(--cyan) 100%);
    /* Neutrals */
    --text: #3f4160;        /* all body copy on light backgrounds */
    --muted: #6b6e8c;       /* secondary text only */
    --accent-text: var(--navy); /* accent text on light backgrounds */
    --light: #f2f5fa;
    --line: #e1e5ef;
    --on-dark: #d4d6ee;     /* all body copy on dark backgrounds */
    --head: "Poppins", "Segoe UI", sans-serif;
    --body: "Inter", system-ui, "Segoe UI", sans-serif;
    /* Type scale */
    --fs-xs: .8125rem;
    --fs-sm: .875rem;
    --fs-base: 1rem;
    --fs-lead: 1.125rem;
    --fs-h4: 1.1rem;
    --fs-h3: 1.2rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: var(--fs-base); color: var(--text); line-height: 1.65; background: #fff; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; color: var(--ink); line-height: 1.25; }
/* Only page and section titles are in capitals */
h1, h2 { text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h2 span, h1 span { color: var(--sky-deep); }
.hero h1 span, .process h2 span { color: var(--cyan); }
.wrap { width: 1140px; margin: 0 auto; }
.section { padding: 60px 0; }
.section-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: var(--fs-xs); color: var(--accent-text); margin-bottom: 12px; }
.section-label::before { content: ""; width: 34px; height: 4px; background: var(--grad); }
.section-label.light { color: var(--cyan); }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle at center, var(--navy) 0%, var(--ink) 75%); transition: opacity .5s ease, visibility .5s ease; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader-mark { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.loader-mark img { width: 92px; height: 92px; object-fit: contain; background: #fff; border-radius: 50%; padding: 16px; animation: loader-pulse 1.6s ease-in-out infinite; }
.loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .1); border-top-color: var(--cyan); border-right-color: var(--blue); animation: loader-spin 1s linear infinite; }
.loader-name { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 1.1rem; color: #fff; }
.loader-bar { position: relative; width: 160px; height: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.loader-bar span { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--grad); animation: loader-slide 1.2s ease-in-out infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse { 50% { transform: scale(.92); } }
@keyframes loader-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: .875rem; padding: 15px 30px; transition: .25s; clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-line { color: #fff; box-shadow: inset 0 0 0 2px #fff; clip-path: none; }
.btn-line:hover { background: #fff; color: var(--navy); }
/* Solid brand button (sky blue) */
.btn-navy { background: var(--sky-deep); color: #fff; margin-top: 30px; }
.btn-navy:hover { background: var(--navy); }
.head-row .btn-navy { margin-top: 0; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.header-inner { display: flex; align-items: center; gap: 30px; height: 90px; transition: height .3s; }
.header.solid { background: var(--sky-deep); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header.solid .header-inner { height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-logo { flex: none; background: #fff; width: 54px; height: 54px; display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%); }
.brand-logo img { width: 42px; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.2rem; line-height: 1; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; font-size: .875rem; color: #fff; position: relative; padding: 6px 0; white-space: nowrap; }
/* Underline grows with scaleX so nothing renders while hidden */
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.burger { display: none; margin-left: auto; background: var(--navy); color: #fff; border: 0; width: 46px; height: 46px; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; padding: 140px 0 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 7s ease; }
.slide.active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 21, 64, .92) 0%, rgba(20, 21, 64, .65) 50%, rgba(20, 21, 64, .25) 100%); }
.hero-content { position: relative; z-index: 2; }
.stripe-label { display: inline-flex; align-items: center; gap: 14px; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: var(--fs-xs); padding: 6px 16px 6px 0; background: var(--ink); color: var(--cyan); margin-bottom: 22px; }
.stripe-label::before { content: ""; align-self: stretch; width: 44px; margin: -6px 0; background: repeating-linear-gradient(-45deg, var(--cyan) 0 7px, var(--ink) 7px 14px); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.15; }
.hero p { font-size: var(--fs-lead); max-width: 560px; margin: 20px 0 32px; color: var(--on-dark); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.slide-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; }
.slide-card { text-align: left; background: rgba(20, 21, 64, .55); backdrop-filter: blur(6px); border: 0; border-top: 1px solid rgba(255, 255, 255, .2); color: #fff; padding: 24px 26px 28px; cursor: pointer; position: relative; font-family: inherit; transition: background .3s; }
.slide-card + .slide-card { border-left: 1px solid rgba(255, 255, 255, .12); }
.slide-card:hover { background: rgba(20, 21, 64, .8); }
.slide-card .n { font-family: var(--head); font-weight: 700; color: var(--cyan); font-size: var(--fs-base); }
.slide-card strong { display: block; font-family: var(--head); font-weight: 600; font-size: var(--fs-h4); margin: 2px 0 4px; }
.slide-card small { color: var(--on-dark); font-size: var(--fs-sm); }
.slide-card .bar { position: absolute; left: 0; top: -1px; height: 4px; width: 0; background: var(--grad); }
.slide-card.active .bar { animation: progress 6s linear forwards; }
@keyframes progress { to { width: 100%; } }

/* Inner page banner */
.page-banner { position: relative; background-size: cover; background-position: center; color: #fff; padding: 170px 0 80px; min-height: 420px; display: flex; align-items: flex-end; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 21, 64, .94) 0%, rgba(42, 43, 119, .75) 55%, rgba(11, 94, 168, .45) 100%); }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--grad); }
.page-banner-inner { position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-banner p { max-width: 620px; margin-top: 12px; font-size: var(--fs-lead); color: var(--on-dark); }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: var(--fs-xs); margin-bottom: 14px; color: var(--on-dark); }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: .7rem; color: var(--cyan); }
.crumbs span { color: var(--cyan); }

/* Stats */
.stats-band { background: var(--grad); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 34px 24px; color: #fff; }
.stats div + div { border-left: 1px solid rgba(255, 255, 255, .2); }
.stats i { grid-row: span 2; font-size: 2rem; }
.stats strong { font-family: var(--head); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.stats span { font-weight: 500; font-size: var(--fs-sm); }

/* Intro (home) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-photos { position: relative; height: 560px; }
.about-photos > img { position: absolute; object-fit: cover; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.about-photos .p1 { left: 0; top: 0; width: 72%; height: 78%; }
.about-photos .p2 { right: 0; bottom: 0; width: 55%; height: 52%; border: 10px solid #fff; }
.about-photos::before { content: ""; position: absolute; left: -24px; bottom: 40px; width: 140px; height: 140px; background: repeating-linear-gradient(-45deg, var(--navy) 0 6px, transparent 6px 16px); }
.badge { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; background: var(--sky-deep); color: #fff; padding: 16px 20px; font-family: var(--head); font-weight: 600; font-size: .9375rem; line-height: 1.3; z-index: 2; }
.badge img { width: 44px; background: #fff; padding: 4px; }
.about p { margin: 20px 0; font-size: var(--fs-lead); }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checks li { display: flex; gap: 10px; }
.checks i { color: var(--navy); }

/* Featured zig-zag */
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img { background-size: cover; background-position: center; }
.feature-text { background: var(--light); padding: 70px 8%; display: flex; flex-direction: column; justify-content: center; }
.feature:nth-child(2) .feature-text { background: var(--sky-deep); }
.feature:nth-child(2) .feature-text h3, .feature:nth-child(2) .section-label { color: #fff; }
.feature:nth-child(2) .feature-text p, .feature:nth-child(2) .feature-text li { color: #fff; }
.feature:nth-child(2) .section-label::before, .feature:nth-child(2) li::before { background: var(--navy); }
.feature h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.feature p { margin: 16px 0 20px; }
.feature ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.feature li { padding-left: 18px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--navy); }

/* Service cards (home) */
.services { background: var(--light); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.head-row p { max-width: 380px; }
.head-side { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.head-side .btn-navy { margin-top: 0; }
.tile-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-card { display: flex; flex-direction: column; background: #fff; box-shadow: 0 10px 30px rgba(20, 21, 64, .06); transition: transform .3s, box-shadow .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(20, 21, 64, .14); }
.svc-photo { position: relative; height: 190px; overflow: hidden; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 21, 64, .55)); }
.svc-card:hover .svc-photo img { transform: scale(1.08); }
.svc-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 40px 24px 24px; border-bottom: 4px solid transparent; transition: border-color .3s; }
.svc-card:hover .svc-body { border-bottom-color: var(--navy); }
/* Icon sits half over the photo */
.svc-icon { position: absolute; top: -27px; left: 24px; width: 54px; height: 54px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.4rem; box-shadow: 0 8px 20px rgba(11, 94, 168, .35); }
.svc-body h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.svc-body p { font-size: var(--fs-sm); margin-bottom: 14px; }
.svc-body ul { list-style: none; margin-bottom: 18px; }
.svc-body li { display: flex; gap: 8px; font-size: var(--fs-sm); padding: 3px 0; }
.svc-body li i { color: var(--navy); }
.svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: .9375rem; color: var(--sky-deep); transition: gap .25s, color .25s; }
.svc-card:hover .svc-more { gap: 14px; color: var(--navy); }

/* Services page */
.service-row { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; padding: 60px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: 0; padding-bottom: 0; }
.service-row:nth-child(even) .service-photo { order: 2; }
.service-photo { position: relative; height: 100%; min-height: 340px; }
.service-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-info h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.service-info > p { margin: 12px 0 22px; font-size: var(--fs-lead); }
.service-info ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.service-info li { display: flex; gap: 10px; }
.service-info li i { color: var(--navy); }
.core { background: var(--light); }
.core h2 { margin-bottom: 40px; }
.core-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.core-grid span { display: flex; align-items: center; gap: 10px; background: #fff; padding: 14px 18px; border-left: 4px solid var(--navy); font-weight: 500; }
.core-grid i { color: var(--blue); }

/* Process */
.process { background: var(--navy) url("/images/stock/total-station.jpg") center / cover; position: relative; }
.process::before { content: ""; position: absolute; inset: 0; background: rgba(29, 30, 90, .9); }
.process .wrap { position: relative; }
.process h2 { color: #fff; margin-bottom: 50px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.step { background: rgba(255, 255, 255, .06); padding: 34px 26px; border-bottom: 4px solid transparent; transition: .3s; }
.step:hover { background: rgba(255, 255, 255, .12); border-bottom-color: var(--cyan); }
.step-n { font-family: var(--head); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--cyan); }
.step h4 { color: #fff; font-size: var(--fs-h3); margin: 10px 0 8px; }
.step p { color: var(--on-dark); font-size: var(--fs-sm); }

/* Clients */
/* Clients page */
.clients-intro { padding-bottom: 70px; }
.clients-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.clients-intro p { font-size: var(--fs-lead); margin-bottom: 30px; }
.clients-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.clients-stats div { padding: 22px 20px 0 0; }
.clients-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.clients-stats strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.9rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clients-stats span { font-size: var(--fs-sm); font-weight: 500; }
.client-wall { background: var(--light); }
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wall-card { position: relative; background: #fff; padding: 28px 28px 26px; text-align: center; border-top: 4px solid transparent; box-shadow: 0 10px 30px rgba(20, 21, 64, .06); transition: transform .3s, box-shadow .3s, border-color .3s; }
.wall-card:hover { transform: translateY(-6px); border-top-color: var(--navy); box-shadow: 0 22px 44px rgba(20, 21, 64, .12); }
.wall-logo { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.wall-logo img { max-width: 70%; max-height: 100%; object-fit: contain; transition: transform .3s; }
.wall-card:hover .wall-logo img { transform: scale(1.06); }
.wall-initials { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--head); font-weight: 600; font-size: 1.7rem; letter-spacing: .5px; }
.wall-card h3 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; }

/* Contact page */
.quick-contact { background: var(--grad); color: #fff; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.quick-grid > * { display: flex; align-items: center; gap: 16px; padding: 28px 24px; font-family: var(--head); font-weight: 500; font-size: 1.05rem; }
.quick-grid > * + * { border-left: 1px solid rgba(255, 255, 255, .2); }
.quick-grid i { flex: none; width: 50px; height: 50px; display: grid; place-items: center; background: #fff; color: var(--sky-deep); font-size: 1.2rem; }
.quick-grid small { display: block; font-family: var(--body); font-weight: 500; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px; color: var(--on-dark); }
.quick-grid a:hover { background: rgba(255, 255, 255, .08); }
.contact h2 { margin-bottom: 50px; }
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.office { border: 1px solid var(--line); border-top: 5px solid var(--sky-deep); padding: 32px 28px; transition: .3s; }
.office:hover { border-top-color: var(--navy); box-shadow: 0 16px 40px rgba(20, 21, 64, .08); transform: translateY(-4px); }
.office h3 { font-size: var(--fs-h3); margin-bottom: 18px; }
.office p { display: flex; gap: 14px; margin-bottom: 12px; }
.office i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--light); color: var(--sky-deep); }
.office span, .office a { padding-top: 4px; }
.office a:hover { color: var(--sky-deep); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }

/* About page */
.about-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.about-card { background: #fff; padding: 34px 28px; border-bottom: 4px solid transparent; box-shadow: 0 10px 30px rgba(20, 21, 64, .06); transition: .3s; }
.about-card:hover { border-bottom-color: var(--navy); transform: translateY(-4px); }
.about-card h3 { font-size: var(--fs-h3); margin: 6px 0 10px; }
.about-card p { font-size: var(--fs-sm); }
.mission { display: grid; grid-template-columns: 1fr 1fr; }
.mission-item { padding: 40px 8%; color: #fff; background: var(--sky-deep); }
.mission-item + .mission-item { color: var(--on-dark); background: var(--ink); }
.mission-item i { font-size: 2.2rem; color: #fff; }
.mission-item + .mission-item i { color: var(--cyan); }
.mission-item h3 { color: #fff; font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 14px 0 12px; }
.mission-item p { font-size: var(--fs-lead); max-width: 520px; }
.statement { padding: 60px 0; text-align: center; border-bottom: 1px solid var(--line); }
.statement p { font-family: var(--head); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.4; color: var(--ink); }
.statement span { color: var(--sky-deep); }

/* Error page */
.error-page { padding: 60px 0 110px; }
.error-page p { margin-bottom: 26px; font-size: var(--fs-lead); }

/* Footer */
/* Light footer with a brand-gradient line on top to separate it from light sections above */
.footer { background: #e9f4fa; color: var(--text); border-top: 4px solid; border-image: var(--grad) 1; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--sky-deep); }
.footer .brand { color: var(--ink); }
.footer .brand-logo { box-shadow: 0 4px 14px rgba(20, 21, 64, .12); }
/* Columns size to their content and spread evenly across the row */
.footer-grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 36px 48px; padding: clamp(48px, 6vw, 72px) 0 0; }
.footer-about .brand { margin-bottom: 22px; }
.footer-about p { font-size: var(--fs-sm); max-width: 330px; }
.footer h4 { position: relative; color: var(--ink); font-size: var(--fs-h4); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 24px; padding-bottom: 14px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; background: var(--grad); }
.footer-links, .footer-contact { list-style: none; }
.footer-links li { margin-bottom: 10px; white-space: nowrap; font-size: var(--fs-sm); }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; transition: transform .25s, color .25s; }
.footer-links a::before { content: "\F285"; font-family: "bootstrap-icons"; color: var(--sky-deep); font-size: var(--fs-xs); }
.footer-links a:hover { transform: translateX(4px); }
.footer-contact li { display: flex; gap: 13px; margin-bottom: 8px; font-size: var(--fs-sm); white-space: nowrap; }
.footer-contact i { color: var(--sky-deep); font-size: 1.05rem; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding: 22px 0; border-top: 1px solid rgba(20, 21, 64, .12); font-size: var(--fs-sm); }
.footer-bottom a { color: var(--navy); font-weight: 600; }
.footer-bottom a:hover { color: var(--sky-deep); }

/* Back to top */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 50px; height: 50px; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--grad); color: #fff; font-size: 1.3rem; box-shadow: 0 8px 20px rgba(11, 94, 168, .35); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, visibility .3s, transform .3s, background .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); }
.to-top:hover i { transform: translateY(-3px); }
.to-top i { transition: transform .25s; }
.to-top:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1100px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .about-grid { gap: 50px; }
    .service-row { gap: 40px; }
    .about-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1349px) {
    /* Four columns need the full 1240px wrap (1240 / 92%); below that the about block takes the first row */
    .footer-grid { grid-template-columns: repeat(3, auto); justify-content: space-between; }
    .footer-about { grid-column: 1 / -1; }
    .footer-about p { max-width: none; }
}
@media (max-width: 900px) {
    .burger { display: block; }
    .header { background: var(--sky-deep); }
    .header-inner { height: 74px; }
    .nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--sky-deep); max-height: 0; overflow: hidden; transition: max-height .3s; }
    .nav a { padding: 14px 4%; border-top: 1px solid rgba(255, 255, 255, .08); }
    .nav a::after { left: 0; bottom: auto; top: 0; width: 4px; height: 100%; transform: scaleY(0); transform-origin: top; }
    .nav a:hover::after, .nav a.active::after { transform: scaleY(1); }
    .nav-open .nav { max-height: 400px; }
    .slide-cards { grid-template-columns: 1fr; margin-top: 50px; }
    .slide-card:not(.active) { display: none; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats div:nth-child(3) { border-left: 0; }
    .about-grid, .feature, .service-row { grid-template-columns: 1fr; }
    .feature-img { min-height: 300px; }
    .feature:nth-child(even) .feature-img, .service-row:nth-child(even) .service-photo { order: 0; }
    .service-photo { min-height: 280px; }
    .wall-grid { grid-template-columns: repeat(2, 1fr); }
    /* Home preview has exactly three cards – keep them on one row */
    .client-wall .head-row + .wall-grid { grid-template-columns: repeat(3, 1fr); }
    .clients-intro-grid { grid-template-columns: 1fr; gap: 24px; }
    .offices, .quick-grid, .mission { grid-template-columns: 1fr; }
    .mission-item { padding: 40px 6%; }
    .quick-grid > * + * { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
    .page-banner { min-height: 340px; padding: 130px 0 60px; }
}
@media (max-width: 600px) {
    .section { padding: 70px 0; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 1.9rem; }
    .page-banner h1 { font-size: 1.7rem; }
    .about-photos { height: 400px; }
    .checks, .feature ul, .service-info ul { grid-template-columns: 1fr; }
    .svc-grid, .steps, .stats, .about-cards { grid-template-columns: 1fr; }
    .stats div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
    /* Two compact cards per row keeps the logo wall short on phones */
    .wall-grid { gap: 12px; }
    .client-wall .head-row + .wall-grid { gap: 8px; }
    .wall-card { padding: 22px 14px 18px; }
    .wall-logo { height: 90px; margin-bottom: 14px; padding-bottom: 14px; }
    .wall-logo img { max-width: 85%; }
    .wall-initials { width: 68px; height: 68px; font-size: 1.5rem; }
    .wall-card h3 { font-size: 1rem; }
    .clients-stats strong { font-size: 1.6rem; }
    .clients-stats div + div { padding-left: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; justify-content: stretch; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .brand-name { font-size: 1rem; }
    .brand-logo { width: 46px; height: 46px; }
    .brand-logo img { width: 36px; }
    .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    .loader-ring, .loader-mark img, .loader-bar span { animation: none; }
    html { scroll-behavior: auto; }
}
