/* ============================================================
   Jobisho Supplies and Construction — main stylesheet
   Palette: navy #1E3A8A | blue #2563EB (action) | tint #DBEAFE
            amber #F59E0B | yellow #FBBF24 | ink #1F2937 | line #E5E7EB
   ============================================================ */

:root {
  --navy: #1E3A8A;
  --navy-deep: #172B66;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --tint: #DBEAFE;
  --tint-soft: #EFF6FF;
  --amber: #F59E0B;
  --yellow: #FBBF24;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --line: #E5E7EB;
  --white: #FFFFFF;
  --danger: #B91C1C;
  --ok: #166534;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 72rem;

  /* Radius scale — one token per role */
  --r-card: 8px;    /* cards, panels, media frames */
  --r-btn: 6px;     /* buttons, inputs, small controls */
  --r-badge: 3px;   /* badges, tags, tooltips */
  --r-pill: 999px;  /* chips, status dots, circles */

  /* Image aspect ratios — one variable per slot, adjust when photos arrive */
  --ar-hero: 16 / 9;
  --ar-card: 4 / 3;
  --ar-service: 3 / 2;
  --ar-material: 4 / 3;
  --ar-about: 4 / 3;
  --ar-thumb: 16 / 10;

  --tap: 44px;
}

/* ---------- Reset & base ---------- */
*, *::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: 1rem; /* 16px on phones — keeps cards compact, prevents input zoom */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 3.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--navy); text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--r-badge);
}

.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 200;
  background: var(--navy); color: var(--white); padding: .6rem 1rem;
  font-weight: 700; text-decoration: none; border-radius: 0 0 var(--r-btn) var(--r-btn);
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.5rem, 84rem); margin-inline: auto; }

.eyebrow {
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .15em; color: var(--blue); margin: 0 0 .35rem;
}
.section { padding: 1.1rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--tint-soft); }
.section-line { background: var(--tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy p { color: #D7E1F6; }
.section-head { max-width: 46rem; margin-bottom: .9rem; }
.section-head h1, .section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-navy .section-head p { color: #D7E1F6; }

/* The roofline mark — signature element */
.roofline { width: 1.9rem; height: auto; color: var(--amber); }
.roofline-lg { width: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .7rem 1.35rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; border-radius: var(--r-btn); cursor: pointer;
  text-decoration: none; line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-amber:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-w { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-w:hover { background: var(--white); color: var(--navy); }
.btn-sm { min-height: 40px; padding: .45rem .9rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn .ic { width: 1.15em; height: 1.15em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; height: 100%; text-decoration: none; }
.brand-logo {
  display: block; height: 100%; width: auto;
  max-height: 44px; object-fit: contain;
}
.brand-logo-footer {
  display: block; height: 52px; width: auto; max-width: 100%;
  background: var(--white); padding: 7px 12px; border-radius: var(--r-btn);
}

.main-nav { margin-left: .5rem; }
.hdr-call { margin-left: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); padding: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-btn);
  color: var(--navy); cursor: pointer;
}
.nav-toggle .ic { width: 1.35rem; height: 1.35rem; }
.nav-toggle .i-x { display: none; }
.nav-toggle[aria-expanded="true"] .i-bars { display: none; }
.nav-toggle[aria-expanded="true"] .i-x { display: block; }
.hdr-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); flex: none;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--white); color: var(--navy);
}
.hdr-call .ic { width: 1.3rem; height: 1.3rem; }
.nav-list {
  display: none; list-style: none; margin: 0; padding: .35rem 0 .5rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.nav-list.open { display: block; }
.nav-list li { margin: 0; }
.nav-list a {
  display: flex; align-items: center;
  padding: .55rem 1.25rem; min-height: 42px;
  font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-list li:last-child > a { border-bottom: 0; }
.nav-list a:hover { background: var(--tint-soft); color: var(--navy); }
.nav-list a[aria-current="page"] { color: var(--navy); background: var(--tint-soft); }
.nav-list .drop { position: relative; }
.nav-sub { list-style: none; margin: 0; padding: .15rem 0 .4rem; }
.nav-sub a {
  padding: .45rem 1.25rem .45rem 1.9rem; min-height: 38px;
  font-weight: 500; font-size: .9rem; border-bottom: 0; color: var(--ink-soft);
}
.nav-sub a:hover { color: var(--navy); }
.nav-sub li:last-child a { font-weight: 700; color: var(--navy); }
.nav-only { display: block; }
.nav-list a.nav-quote { background: var(--navy); color: var(--white); font-weight: 700; }
.nav-list a.nav-wa { color: var(--navy); font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.nav-list a.nav-wa .ic { width: 1.15rem; height: 1.15rem; color: #25D366; }
.header-cta { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); }
.hero-grid { display: grid; }
.hero-copy { padding: 2.5rem 0 2rem; }
.hero-copy h1 { color: var(--white); }
.hero-copy .lede { font-size: 1.15rem; color: #D7E1F6; max-width: 34rem; }
.hero-tag {
  display: flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--yellow); margin: 0 0 .45rem;
}
.hero-tag::before, .hero-tag::after { content: ""; width: 1.6rem; height: 1px; background: rgba(251,191,36,.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-note { margin: 1rem 0 0; color: #D7E1F6; font-size: .92rem; }
.hero-note a { color: var(--white); font-weight: 700; white-space: nowrap; }
.hero-media {
  aspect-ratio: var(--ar-hero);
  background: var(--navy-deep) var(--hero-img) center / cover no-repeat;
}

/* ---------- Trust strip ---------- */
.trust { background: var(--white); }
.trust-grid { display: grid; gap: 0; }
.trust-item { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.trust-item:last-child { border-bottom: 0; }
.trust-item h3 { font-size: 1.02rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .3rem; }
.trust-item .tick { flex: none; color: var(--amber); }
.trust-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.4rem; display: flex; flex-direction: column;
}
.card-ic {
  width: 52px; height: 52px; border-radius: var(--r-card); flex: none;
  background: var(--tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card-ic .ic { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.card .card-link, .svc-card .card-link {
  margin-top: auto; font-weight: 700; color: var(--navy);
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
}
.card .card-link::after, .svc-card .card-link::after { content: "→"; color: var(--amber); }
.card:hover { border-color: var(--navy); }

/* Service media cards — real photo on top, copy below */
.svc-card {
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  background: var(--white); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.svc-card img { width: 100%; aspect-ratio: var(--ar-service); object-fit: cover; background: var(--tint); }
.svc-card .body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.svc-card p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 .9rem; }
.svc-card .card-link { margin-top: auto; }
.svc-card:hover { border-color: var(--navy); }
.svc-card:hover h3 { color: var(--blue); }

/* Arrow links + section heads with a trailing action */
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--navy); text-decoration: none; min-height: var(--tap); }
.link-arrow .ic { width: 1.1rem; height: 1.1rem; color: var(--amber); transition: transform .15s; }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover .ic { transform: translateX(3px); }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 2rem; margin-bottom: .9rem; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Specialist band ---------- */
.specialist { background: var(--navy); color: var(--white); }
.specialist .section-head h2 { color: var(--white); }
.specialist .section-head p { color: #D7E1F6; }
.spec-list { display: grid; gap: 1.5rem; }
.spec-item { display: flex; gap: 1rem; align-items: flex-start; }
.spec-item .card-ic { background: rgba(251,191,36,.16); color: var(--yellow); margin: 0; }
.spec-item h3 { color: var(--white); margin-bottom: .2rem; }
.spec-item p { color: #D7E1F6; margin-bottom: .5rem; font-size: .96rem; }
.spec-item a { color: var(--white); font-weight: 700; text-decoration-color: var(--amber); }

/* ---------- Materials block ---------- */
.mat-block { display: grid; gap: 2rem; align-items: center; }
.mat-chips { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.mat-chips li { margin: 0; }
.mat-chips a {
  display: inline-block; padding: .4rem .8rem; border: 1px solid var(--navy);
  border-radius: var(--r-pill); font-size: .88rem; font-weight: 600; color: var(--navy); text-decoration: none;
}
.mat-chips a:hover { background: var(--navy); color: var(--white); }
.media-frame { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--tint); }
.media-frame img { width: 100%; aspect-ratio: var(--ar-card); object-fit: cover; }

/* ---------- Projects ---------- */
.proj-grid { display: grid; gap: 1.25rem; }
.proj-card {
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  background: var(--white); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.proj-card img { width: 100%; aspect-ratio: var(--ar-thumb); object-fit: cover; background: var(--tint); }
.proj-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.proj-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.proj-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; font-weight: 600; }
.proj-meta .type { color: var(--white); background: var(--navy); padding: .15rem .55rem; border-radius: var(--r-badge); }
.proj-meta .loc { color: var(--ink-soft); padding: .15rem 0; display: inline-flex; align-items: center; gap: .3rem; }
.proj-card p { color: var(--ink-soft); font-size: .92rem; margin: .55rem 0 0; }
.proj-card:hover { border-color: var(--navy); }
.proj-card:hover h3 { color: var(--blue); }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; list-style: none; padding: 0; }
.chips li { margin: 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: .45rem .95rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--white);
}
.chips a:hover { border-color: var(--navy); color: var(--navy); }
.chips a.on { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.5rem; counter-reset: none; }
.step { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); padding: 1.3rem 1.4rem; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 1.25rem; }
.why-item h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; }
.why-item h3 .ic { width: 1.15rem; height: 1.15rem; color: var(--amber); flex: none; }
.why-item p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.5rem;
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field .req { color: var(--danger); }
.field .hint { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="date"], .field input[type="number"], .field select, .field textarea,
.field input[type="file"] {
  width: 100%; min-height: var(--tap);
  padding: .65rem .8rem; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-btn); background: var(--white);
}
.field input[type="file"] { padding: .5rem; min-height: auto; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231E3A8A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy); outline: 3px solid rgba(37,99,235,.25); outline-offset: 0;
}
.field.err input, .field.err select, .field.err textarea { border-color: var(--danger); }
.field .msg { color: var(--danger); font-size: .85rem; margin-top: .3rem; font-weight: 600; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--blue); }
.check span { font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; gap: 0 1.25rem; }
.form-note { font-size: .88rem; color: var(--ink-soft); }
.form-ok {
  border: 1px solid var(--ok); border-radius: var(--r-btn);
  background: #F0FDF4; color: var(--ok); padding: 1rem 1.2rem; margin-bottom: 1.5rem;
}
.form-ok h2, .form-ok h3 { color: var(--ok); font-size: 1.15rem; }
.form-error {
  border: 1px solid var(--danger); border-radius: var(--r-btn);
  background: #FEF2F2; color: var(--danger); padding: 1rem 1.2rem; margin-bottom: 1.5rem;
}

/* Contact aside */
.contact-aside { display: grid; gap: .75rem; align-content: start; }
.aside-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.15rem 1.25rem; background: var(--white); }
.aside-card h3 { font-size: 1rem; margin-bottom: .3rem; display: flex; align-items: center; gap: .5rem; }
.aside-card h3 .ic { width: 1.15rem; height: 1.15rem; color: var(--amber); }
.aside-card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.aside-card a { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: .75rem; background: var(--white); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 1.2rem; min-height: var(--tap);
  font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: .75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 600; color: var(--amber); flex: none;
}
.faq[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.faq .faq-body p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta-band .roofline-lg { margin: 0 auto 1rem; color: var(--amber); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #D7E1F6; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .tel { color: var(--white); font-weight: 700; text-decoration-color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #D7E1F6; margin-top: 0; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 1.75rem; padding: 2.5rem 0 1.5rem; align-items: start; }

/* Brand column — the logo is a fixed-height plate, never stretched by the grid */
.footer-brand .logo { height: auto; display: inline-flex; }
.footer-brand p { color: #9FB4E4; font-size: .92rem; margin: .9rem 0 0; max-width: 36ch; }

/* Link columns */
.footer-grid h3 {
  color: var(--white); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: .75rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.footer-grid li { margin: 0; }
.footer-grid a { display: inline-block; padding: .3rem 0; text-decoration: none; font-size: .95rem; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.footer-grid li:last-child { color: #9FB4E4; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18); padding: 1.1rem 0;
  font-size: .85rem; color: #9FB4E4; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
}
.footer-bottom a { color: #D7E1F6; }

/* ---------- Floating actions ---------- */
.float-actions {
  position: fixed; right: .9rem; bottom: calc(.9rem + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; flex-direction: column; gap: .6rem;
}
.float-btn {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white); text-decoration: none;
}
.float-btn .ic { width: 26px; height: 26px; }
.float-btn.wa { background: #25D366; color: var(--white); }
.float-btn.call { background: var(--amber); color: var(--ink); }

/* ---------- Page head ---------- */
.page-head { background: var(--tint); padding: 2rem 0; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .4rem; max-width: 24ch; }
.page-head .lede { color: var(--ink-soft); font-size: 1.08rem; margin: 0; max-width: 44rem; }
.page-head.has-img {
  position: relative; isolation: isolate; padding: 3rem 0;
  background-color: var(--navy-deep); background-image: var(--head-img);
  background-size: cover; background-position: center;
  color: var(--white); border-bottom: 0;
}
.page-head.has-img h1 { color: var(--white); }
.page-head.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy-deep); opacity: .82;
}
.page-head.has-img .lede { color: #D7E1F6; }
.page-head.has-img .crumbs a { color: #D7E1F6; }
.page-head.has-img .crumbs .sep,
.page-head.has-img .crumbs span { color: #AEC3EE; }
.crumbs { font-size: .85rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs .sep { color: var(--ink-soft); }

/* ---------- Service detail ---------- */
.svc-layout { display: grid; gap: 2.5rem; }
.svc-main > .media-frame { margin-bottom: 2rem; }
.svc-main h2 { font-size: 1.5rem; margin-top: 2rem; }
.svc-main h2:first-child { margin-top: 0; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.tick-list li { margin: 0; display: flex; gap: .6rem; align-items: flex-start; }
.tick-list .ic { width: 1.15rem; height: 1.15rem; color: var(--amber); flex: none; margin-top: .2rem; }
.proc-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.proc-list li {
  margin: 0; display: flex; gap: .7rem; align-items: flex-start;
  padding: .8rem 1rem; border: 1px solid var(--line);
  border-radius: var(--r-card); background: var(--white);
}
.proc-list li .ic { width: 1.1rem; height: 1.1rem; color: var(--amber); flex: none; margin-top: .15rem; }
.svc-side { position: static; display: grid; gap: 1rem; align-content: start; }
.side-cta { background: var(--navy); color: var(--white); border-radius: var(--r-card); padding: 1.4rem; }
.side-cta h3 { color: var(--white); }
.side-cta p { color: #D7E1F6; font-size: .92rem; }
.side-cta .btn { width: 100%; margin-bottom: .6rem; }
.side-cta .tel-link { color: var(--white); font-weight: 700; display: block; text-align: center; padding: .4rem; }

/* ---------- Materials page ---------- */
.mat-list { display: grid; gap: 1.25rem; }
.mat-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem;
  background: var(--white); align-items: start;
}
.mat-row img { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-btn); background: var(--tint); }
.mat-row h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.mat-row .examples { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .6rem; padding-left: 1.1rem; }
.mat-row .price-tag { font-size: .8rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Project detail ---------- */
.proj-hero img { width: 100%; aspect-ratio: var(--ar-hero); object-fit: cover; border-radius: var(--r-card); background: var(--tint); }
.meta-table { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.meta-table div { display: grid; grid-template-columns: 9rem 1fr; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.meta-table div:last-child { border-bottom: 0; }
.meta-table dt { font-weight: 700; color: var(--navy); margin: 0; }
.meta-table dd { margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2rem; align-items: center; }
.values-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.values-list li {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); padding: 1.1rem 1.2rem;
}
.values-list h3 { font-size: 1.02rem; margin-bottom: .2rem; display: flex; align-items: center; gap: .55rem; }
.values-list h3 .ic { width: 1.1rem; height: 1.1rem; color: var(--amber); flex: none; }
.values-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quote-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.4rem; background: var(--white); }
.quote-card blockquote { margin: 0 0 .9rem; font-size: 1rem; color: var(--ink); max-width: none; }
.quote-card blockquote::before { content: "\201C"; display: block; font-size: 2.4rem; font-weight: 800; line-height: .8; color: var(--amber); margin-bottom: .55rem; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: .95rem; }
.quote-card .role { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Reviews marquee ---------- */
.rev-marquee { overflow: hidden; }
.rev-track {
  display: flex; gap: 1rem; width: max-content;
  padding: .25rem 0;
  animation: rev-scroll 90s linear infinite;
}
.rev-marquee:hover .rev-track, .rev-marquee:focus-within .rev-track { animation-play-state: paused; }
@keyframes rev-scroll { to { transform: translateX(-50%); } }
.rev-card {
  flex: none; width: min(19rem, 78vw); margin: 0;
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.1rem 1.2rem; background: var(--white);
  display: flex; flex-direction: column; gap: .7rem;
}
.rev-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.rev-stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.rev-stars .ic { width: .95rem; height: .95rem; }
.rev-stars .ic.off { color: var(--line); }
.rev-svc {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--navy); background: var(--tint); border-radius: var(--r-badge); padding: .15rem .45rem;
}
.rev-text { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink); }
.rev-meta { margin-top: auto; font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .15rem .4rem; align-items: center; }
.rev-meta cite { font-style: normal; font-weight: 700; color: var(--navy); }
@media (prefers-reduced-motion: reduce) {
  .rev-track { animation: none; }
  .rev-marquee { overflow-x: auto; }
}

/* ---------- 404 ---------- */
.err-page { text-align: center; padding: 3.5rem 0; }
.err-page .code { font-size: 4rem; font-weight: 800; color: var(--tint); line-height: 1; }
.err-links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; gap: 0; }
.admin-nav { background: var(--navy); padding: 0; }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.admin-nav li { margin: 0; }
.admin-nav a {
  display: block; padding: .85rem 1.1rem; color: #D7E1F6; text-decoration: none;
  font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--amber); }
.admin-main { padding: 2rem 0 4rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem 1.2rem; }
.stat .n { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat .l { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
table.admin { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.admin th { text-align: left; padding: .7rem .9rem; background: var(--tint-soft); color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
table.admin td { padding: .7rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
.status {
  display: inline-block; padding: .2rem .6rem; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 700; background: var(--tint); color: var(--navy);
}
.status.new { background: var(--yellow); color: var(--ink); }
.status.won { background: #DCFCE7; color: var(--ok); }
.status.lost { background: #FEE2E2; color: var(--danger); }
.admin-form { max-width: 40rem; }
.admin-note { font-size: .88rem; color: var(--ink-soft); background: var(--tint-soft); border: 1px solid var(--line); border-radius: var(--r-card); padding: .9rem 1.1rem; }

/* ---------- Utilities ---------- */
.ic { width: 1.25rem; height: 1.25rem; flex: none; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.empty-state { border: 1px dashed var(--ink-soft); border-radius: var(--r-card); padding: 2rem; text-align: center; color: var(--ink-soft); }

/* ============================================================
   Breakpoints
   ============================================================ */

/* ---------- Mobile compact pass (phones, under 640px) ----------
   Button pairs share one line; card grids go 2-up where readable;
   gaps 6px; steps, forms and long-form blocks stay single column. */
@media (max-width: 639.98px) {

  /* Small screens get the softer end of each range — dense little
     cards read friendlier with fuller rounding */
  :root { --r-card: 8px; --r-btn: 6px; }

  /* One horizontal rhythm: screen edge = card gap = card padding = 6px */
  .wrap, .wrap-wide { width: calc(100% - 12px); }

  /* Button pairs — one line, one-line labels, compact height */
  .hero-actions { flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; }
  .hero-actions .btn {
    flex: 1 1 45%; max-width: 100%;
    min-height: var(--tap); padding: .55rem .5rem; gap: .4rem;
    font-size: .9rem; font-weight: 700; line-height: 1.15;
    white-space: nowrap;
  }
  .hero-actions .btn .ic { width: 1.05em; height: 1.05em; }

  /* 2-up card grids */
  .grid, .grid-2, .proj-grid, .why-grid, .spec-list, .trust-grid, .values-list {
    grid-template-columns: 1fr 1fr; gap: 6px;
  }
  .grid > .quote-card { grid-column: 1 / -1; }

  /* Card inner padding — horizontal side matches the 6px rhythm,
     vertical a touch taller so content doesn't touch the borders */
  .card { padding: .8rem 6px; }
  .card-ic { width: 40px; height: 40px; margin-bottom: .55rem; }
  .card-ic .ic { width: 22px; height: 22px; }
  .card h3 { font-size: 1rem; margin-bottom: .25rem; }
  .card p { font-size: .85rem; margin-bottom: .7rem; }
  .card .card-link { font-size: .88rem; }
  .step { padding: .9rem 6px; }
  .values-list li { padding: .9rem 6px; }
  .mat-row { padding: .8rem 6px; }
  .aside-card { padding: 1rem 6px; }
  .form-card { padding: 1.25rem 6px; }
  .quote-card { padding: 1.2rem 6px; }
  .faq summary { padding: 1rem 6px; }
  .faq .faq-body { padding: 0 6px 1rem; }

  /* Specialist band items — icon above text */
  .spec-item { flex-direction: column; gap: .5rem; }
  .spec-item .card-ic { margin-bottom: 0; }
  .spec-item h3 { font-size: 1rem; }
  .spec-item p { font-size: .85rem; }
  .spec-item a { font-size: .88rem; }

  /* Service media cards */
  .svc-card .body { padding: .7rem 6px .9rem; }
  .svc-card h3 { font-size: .95rem; }
  .svc-card p { font-size: .8rem; margin-bottom: .6rem; }
  .svc-card .card-link { font-size: .82rem; }

  /* Project cards */
  .proj-card .body { padding: .8rem 6px; }
  .proj-card h3 { font-size: .98rem; }
  .proj-meta { gap: 6px; font-size: .72rem; }
  .proj-card p { font-size: .8rem; margin-top: .45rem; }

  /* Trust strip */
  .trust-item { padding: .9rem 0; }
  .trust-item h3 { font-size: .92rem; }
  .trust-item p { font-size: .82rem; }

  /* Why / values items — compact icon rows */
  .why-item h3 { font-size: .95rem; }
  .why-item p { font-size: .82rem; }
  .values-list h3 { font-size: .95rem; }
  .values-list p { font-size: .82rem; }

  /* 404 link grid — two per row */
  .err-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .err-links .btn { font-size: .9rem; padding: .55rem .5rem; white-space: nowrap; }

  /* Marquee cards slightly narrower so the next review peeks */
  .rev-card { width: 17rem; padding: .9rem 6px; }
  .rev-track { gap: 6px; }

  /* Menu panel aligns to the same 6px page edge */
  .nav-list a { padding-left: 6px; padding-right: 6px; }
  .nav-sub a { padding-left: 14px; }

  /* Footer — brand row on top, link columns 2-up, contact row spans */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .brand-logo-footer { height: 48px; }
}

@media (min-width: 640px) {
  :root { --r-card: 7px; --r-btn: 5px; }
  body { font-size: 1.0625rem; }
  .brand-logo { max-height: 58px; }
  .section { padding: 1.6rem 0; }
  .section-head, .section-head-row { margin-bottom: 1.2rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .mat-row { grid-template-columns: 128px 1fr; }
  .mat-row img { width: 128px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }

}

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item { border-bottom: 0; border-left: 1px solid var(--line); padding: .25rem 1.5rem; }
  .trust-item:first-child { border-left: 0; padding-left: 0; }
  .trust { border-bottom: 1px solid var(--line); }
  .trust .section { padding: 1.2rem 0; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .hero-copy { padding: 4rem 3rem 4rem 0; display: flex; flex-direction: column; justify-content: center; }
  .hero-media { aspect-ratio: auto; min-height: 22rem; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .mat-block { grid-template-columns: 1fr 1fr; }
  .spec-list { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .spec-item { flex-direction: column; border-top: 0; padding: 0; }
  .float-actions { bottom: 1.25rem; }
  .footer-bottom { padding-bottom: 1.1rem; }
  .svc-layout { grid-template-columns: 1fr 20rem; gap: 3rem; }
  .svc-side { position: sticky; top: 84px; }
  .quote-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
}

@media (min-width: 1024px) {
  .nav-toggle, .hdr-call, .nav-only { display: none; }
  .main-nav { margin-left: auto; }
  .nav-list {
    display: flex; position: static; border: 0; padding: 0; align-items: center; gap: .15rem;
  }
  .nav-list a, .nav-list li:last-child > a { padding: .55rem .8rem; border-bottom: 3px solid transparent; border-radius: var(--r-badge); font-weight: 600; font-size: 1rem; color: var(--ink); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--amber); background: none; }
  .nav-list .drop:hover .nav-sub, .nav-list .drop:focus-within .nav-sub { display: block; }
  .nav-sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 15rem;
    background: var(--white); border: 1px solid var(--line);
    border-radius: 0 0 var(--r-card) var(--r-card); padding: .5rem 0; z-index: 95;
  }
  .nav-sub a { padding: .55rem 1rem; min-height: 40px; font-size: .92rem; color: var(--ink); border-bottom: 0; }
  .nav-sub li:last-child a { font-weight: 600; }
  .header-cta { display: inline-flex; margin-left: .25rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .proj-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
  .values-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (min-width: 1280px) {
  body { font-size: 1.09375rem; }
  .section { padding: 2rem 0; }
  .hero-copy { padding: 4.5rem 4rem 4.5rem 0; }
  .proj-grid { grid-template-columns: repeat(4, 1fr); }
  .proj-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1600px) {
  :root { --maxw: 78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .float-actions, .site-footer, .hero-actions { display: none; }
}
