/* Nunito (SIL Open Font License, see fonts/OFL.txt), self-hosted variable font */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Brand tokens (from brand-kit/README.md). Blue = what's already built,
   apricot = what's being printed right now. Keep that meaning.
   ========================================================================== */
:root {
  --brand: #0062D1;          /* Azure (text): buttons/links, passes contrast on light */
  --brand-dark: #004FA8;
  --azure: #0A7CFF;          /* Azure: decorative lines, focus rings */
  --azure-on-dark: #5AA9FF;
  --apricot: #FF8A3D;        /* the "live" extrusion: rules, highlights */
  --brand-soft: #E8F2FF;
  --ink: #111418;            /* text + dark backgrounds */
  --text: #3A414B;
  --muted: #6B7280;
  --bg: #ffffff;
  --bg-alt: #F4F5F7;         /* light ground */
  --line: #E3E6EA;
  --dashed: #A3A9B3;
  --dark: #111418;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17,20,24,.06), 0 8px 24px rgba(17,20,24,.06);
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; color: var(--ink); line-height: 1.15; margin: 0 0 .6rem; }
h1 { font-weight: 900; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .85rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header ------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand-dark); }
.menu-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.hero h1 .accent { display: inline-block; }
.hero { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: .8rem; }
.accent {
  color: var(--brand);
  /* apricot "being printed" underline, echoing the logo's rule */
  text-decoration: underline var(--apricot);
  text-decoration-thickness: .12em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}
.hero-logo {
  --logo-w: clamp(160px, 20vw, 220px);
  width: var(--logo-w); height: auto;
  /* the SVG has built-in clear space; pull its left edge in line with the headline */
  margin: 0 0 1.5rem calc(var(--logo-w) * -0.075);
}
.lead { font-size: 1.15rem; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2rem; }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }
.stats span { font-size: .9rem; color: var(--muted); }
.hero-media { margin: 0; }
.hero-media img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Sections ----------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--azure); }
.card p { margin: 0; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); font-size: 1.4rem; margin-bottom: 1rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem;
  color: #fff; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: none; }
.steps li { position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-alt); }
.steps p { margin: 0; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1.1rem var(--font-head); margin-bottom: 1rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { margin: 0; }
.about-media img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; display: grid; place-items: center; margin-top: .2rem; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.quotes blockquote { margin: 0; display: flex; flex-direction: column; border-top: 4px solid var(--apricot); }
.quotes p { font-size: 1.05rem; color: var(--ink); margin-bottom: 1.25rem; flex: 1; }
.quotes footer { display: grid; gap: .15rem; font-size: .92rem; }
.quotes footer strong { color: var(--ink); font-weight: 800; }
.quotes footer span { color: var(--brand); font-weight: 600; }

/* FAQ */
details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--apricot); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.3rem 1.1rem; margin: 0; }

/* Quote form */
.quote { background: var(--dark); color: #C9CED6; }
.quote h2 { color: #fff; }
.quote .eyebrow { color: var(--apricot); }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--azure-on-dark); }
.quote-form { background: var(--bg); color: var(--text); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 1rem; }
label em { font-style: normal; font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--azure); outline-offset: 1px; border-color: transparent; }
input[type="file"] { padding: .55rem; background: var(--bg-alt); }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { background: #ecfdf5; border: 1px solid #10b981; color: #065f46; border-radius: 10px; padding: .8rem 1rem; }

/* Footer */
.footer { background: var(--dark); color: #A3A9B3; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo img { width: 140px; height: auto; display: block; }
.footer-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--apricot); margin: 0 0 .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { color: #E3E6EA; text-decoration: none; }
.footer-links a:hover { color: var(--azure-on-dark); }
.footer p { margin: 0; font-size: .9rem; }
.footer p.footer-area { color: #E3E6EA; font-weight: 600; margin-top: 1rem; max-width: 26ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.25rem; }

/* Inner pages (service pages, case studies) ------------------------------ */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero-grid.no-media { grid-template-columns: 1fr; }
.page-hero-grid.no-media > div { max-width: 820px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero .cta-row { margin-bottom: 0; }
.page-hero figure { margin: 0; }
.page-hero figure img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.content-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ol { padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose ol li::marker { color: var(--brand); font-weight: 800; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 0; }
.photo-pair img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.aside-stack { display: grid; gap: 1.25rem; position: sticky; top: 96px; }
.aside-card { background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; }
.aside-card h3 { margin-bottom: .8rem; }
.aside-card .checks { margin-top: 0; }
.quote-card { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--apricot); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin: 0; }
.quote-card p { color: var(--ink); font-size: 1.05rem; }
.quote-card footer { display: grid; gap: .15rem; font-size: .92rem; }
.quote-card footer strong { color: var(--ink); font-weight: 800; }
.quote-card footer span { color: var(--brand); font-weight: 600; }
.cta-band { background: var(--dark); color: #C9CED6; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band .cta-row { margin-bottom: 0; }
.btn-outline-light { border-color: #E3E6EA; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.related { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.related a { color: #E3E6EA; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .4rem .9rem; text-decoration: none; font-weight: 600; font-size: .92rem; }
.related a:hover { border-color: var(--azure-on-dark); color: var(--azure-on-dark); }
.card-link { display: inline-block; margin-top: .9rem; font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.gallery figcaption a { color: #fff; }

/* Mobile quick-contact bar ----------------------------------------------- */
.action-bar { display: none; }
@media (max-width: 860px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .7rem .5rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); }
  .action-bar a.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .page-hero-grid, .content-grid { grid-template-columns: 1fr; }
  .aside-stack { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
  .hero-grid, .about-grid, .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid, .photo-pair { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 4 / 3; }
  .gallery img.focus-top { object-position: 50% 15%; }
  .form-grid, .steps, .quotes { grid-template-columns: 1fr; }
  .stats { gap: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.notice-error { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
