/* G-Force Digital Solutions — site styles
   Palette is canonical from branding/brand-guide.md. Do not tweak hex values from AI imagery. */
:root {
  --navy: #142B49;
  --navy-deep: #0F2139;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-tint: #EAF1FE;
  --gray: #F3F6FA;
  --white: #FFFFFF;
  --teal: #14B8A6;
  --ink: #142B49;
  --ink-2: #405571;
  --line: #DCE4EF;
  --focus: #2563EB;
  --error: #B42318;
  --success: #067647;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(20, 43, 73, .08);
  --shadow-hover: 0 12px 28px rgba(20, 43, 73, .14);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: var(--radius-sm); font: 700 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-tint); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-tint); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(20,43,73,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.brand-divider { width: 1px; height: 28px; background: var(--line); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 8px; position: relative; }
.primary-nav a:hover { color: var(--blue); }
.primary-nav a[aria-current="page"] { color: var(--blue); }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--blue); border-radius: 2px; }
.header-cta { flex: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-cta { display: none; }

@media (max-width: 960px) {
  .brand-divider { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .js .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(20,43,73,.08); padding: 8px var(--gutter) 20px; }
  .js .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { width: 100%; min-height: 52px; font-size: 1.1rem; padding: 0 8px; border-bottom: 1px solid var(--gray); border-radius: 0; }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .mobile-cta { display: flex; margin-top: 16px; }
  .mobile-cta .btn { width: 100%; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .primary-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .primary-nav a { border: 0; width: auto; }
}
@media (max-width: 380px) { .brand-name { font-size: 1rem; } .brand img { width: 34px; height: 34px; } }

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 34em; margin-bottom: 1.8em; }
.hero-art { min-width: 0; }
.hero-art img { width: 100%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) { .hero .btn-row .btn { flex: 1 1 100%; } }

/* Page hero (inner pages) */
.page-hero { background: var(--gray); padding-block: clamp(40px, 6vw, 72px); }
.page-hero .eyebrow { margin-bottom: .6em; }
.page-hero p { color: var(--ink-2); font-size: 1.15rem; max-width: 40em; margin: 0; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-gray { background: var(--gray); }
.section-head { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head h2 { margin: 0; }
.section-head .divider { width: 1px; align-self: stretch; min-height: 32px; background: var(--line); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 36em; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; gap: 8px; } .section-head .divider { display: none; } }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.service-card { background: #fff; border: 1px solid #E5EDF7; border-radius: var(--radius); padding: 0 0 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; position: relative; overflow: hidden; }
.service-card:hover, .service-card:focus-within { border-color: var(--blue); }
.service-card .card-art { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; margin-bottom: 6px; }
.service-card h3, .service-card p { padding-inline: 22px; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-card h3 a:hover { color: var(--blue); }
.service-card h3 a:focus-visible { outline: none; }
.service-card h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.service-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--blue-tint); display: grid; place-items: center; color: var(--blue); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin: 0; font-size: 1.08rem; }
.service-card p { margin: 0; color: var(--ink-2); font-size: .98rem; flex: 1; }
@media (max-width: 1060px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* About strip */
.about-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 340px); gap: clamp(20px, 3vw, 40px); align-items: center; }
.about-strip .pin { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.about-strip .pin svg { width: 28px; height: 28px; }
.about-strip h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: .35em; }
.about-strip p { color: var(--ink-2); margin: 0 0 .8em; max-width: 40em; }
.about-strip a { font-weight: 700; }
@media (max-width: 860px) { .about-strip { grid-template-columns: auto minmax(0, 1fr); } .about-strip .skyline { grid-column: 1 / -1; max-width: 420px; } }
@media (max-width: 520px) { .about-strip { grid-template-columns: minmax(0, 1fr); } }
.about-strip .skyline { width: 100%; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding-block: clamp(36px, 5vw, 56px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #CFDCEF; }
@media (max-width: 520px) { .cta-band .btn-row .btn { flex: 1 1 100%; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B7C6DB; padding-block: 44px 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name { color: #fff; }
.footer-tag { margin: 12px 0 0; max-width: 28em; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: #DCE6F4; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: #7FB0FF; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* Services page */
.service-detail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; padding-block: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.service-detail:last-child { border-bottom: 0; }
.detail-art { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid #E5EDF7; background: #fff; }
.service-detail .service-icon { width: 64px; height: 64px; border-radius: 16px; }
.service-detail .service-icon svg { width: 34px; height: 34px; }
.service-detail h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin-bottom: .35em; }
.service-detail > div > p { color: var(--ink-2); max-width: 44em; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; max-width: 46em; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232563EB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
@media (max-width: 640px) { .service-detail { grid-template-columns: 1fr; gap: 14px; } .detail-art { max-width: 280px; } .check-list { grid-template-columns: 1fr; } }

/* About page */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split p { color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid #E5EDF7; border-radius: var(--radius); padding: 24px 22px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.values li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.values .service-icon { width: 44px; height: 44px; border-radius: 10px; }
.values .service-icon svg { width: 22px; height: 22px; }
.values h3 { margin: 0 0 .15em; font-size: 1.05rem; }
.values p { margin: 0; color: var(--ink-2); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid #E5EDF7; border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.intent-toggle { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.intent-toggle legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.intent-option { position: relative; }
.intent-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.intent-option label { display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; min-height: 64px; }
.intent-option label strong { color: var(--navy); }
.intent-option label span { color: var(--ink-2); font-size: .9rem; line-height: 1.35; }
.intent-option input:checked + label { border-color: var(--blue); background: var(--blue-tint); }
.intent-option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 460px) { .intent-toggle { grid-template-columns: 1fr; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 500; color: var(--ink-2); font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #B9C7DA; border-radius: 10px; padding: 12px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .92rem; font-weight: 600; margin-top: 6px; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--ink-2); font-size: .92rem; margin: 4px 0 18px; }
.form-status { border-radius: 12px; padding: 14px 16px; margin-top: 18px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { background: #ECFDF3; color: var(--success); border: 1px solid #ABEFC6; }
.form-status.is-error { background: #FEF3F2; color: var(--error); border: 1px solid #FECDCA; }
.form-card button[type="submit"] { width: 100%; }
.form-card button[aria-busy="true"] { opacity: .75; cursor: progress; }
.info-card { background: var(--gray); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.info-card h2 { font-size: 1.3rem; }
.info-card ul { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 14px; }
.info-card li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.info-card li svg { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.info-card strong { color: var(--navy); display: block; }
.email-line { word-break: break-word; }

/* Prose (privacy etc.) */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }

/* 404 */
.center-block { text-align: center; max-width: 36em; margin: 0 auto; }
.center-block .btn-row { justify-content: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 860px) { .about-strip .skyline { max-width: 300px; } }
