/* Shriram Fabrications & Constructions
   Palette: plaster, graphite, red oxide (the primer on fresh steel work).
   Graphite = what we build. Red oxide = what we fabricate. */

@font-face {
  font-family: "Anek";
  src: url("assets/fonts/anek-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Anek Kannada";
  src: url("assets/fonts/anek-kannada-tagline.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0C80-0CFF, U+200C-200D;
}

:root {
  --plaster: #f1f3f0;
  --sheet: #ffffff;
  --graphite: #262b30;
  --muted: #4c555d;
  --rule: #cdd3cf;
  --rule-strong: #9aa39e;
  --oxide: #9e3b26;
  --oxide-dark: #84301f;
  --oxide-deep: #5e2216;
  --oxide-soft: #e9c9be;
  --wa: #167c4b;
  --wa-dark: #10633b;
  --wrap: 1160px;
  --header-h: 64px;
  --font: "Anek", "Anek Kannada", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  font-family: var(--font);
  font-size: 1.0625rem;           /* 17px */
  font-weight: 420;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
h1, h2, h3 { line-height: 1.05; font-weight: 760; text-wrap: balance; }
p { text-wrap: pretty; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--graphite); color: #fff; padding: 10px 14px; border-radius: 4px;
  text-decoration: none; font-weight: 650;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--oxide); outline-offset: 3px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 4px 20px 0;
  border-radius: 6px; border: 1.5px solid transparent;
  font-size: 1.0625rem; font-weight: 650; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 42px; padding: 3px 14px 0; font-size: 1rem; gap: 8px; }
.btn .icon { position: relative; top: -2px; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-line { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn-line:hover { background: var(--graphite); color: #fff; }
.btn-light { background: #fff; color: var(--graphite); }
.btn-light:hover { background: var(--oxide-soft); }
.btn-light-wa .icon { color: var(--wa); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-name {
  display: flex; flex-direction: column;
  font-size: 1.3rem; font-weight: 800; font-stretch: 80%; line-height: 1;
  letter-spacing: .005em;
}
.brand-name span { font-size: .78rem; font-weight: 560; font-stretch: 92%; color: var(--muted); letter-spacing: .01em; margin-top: 3px; }

.site-nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--rule);
  padding: 6px 1rem 16px;
  box-shadow: 0 16px 24px -16px rgba(38, 43, 48, .25);
}
.site-nav.is-open { display: block; }
.site-nav a {
  display: block; padding: 13px 2px; border-bottom: 1px solid var(--rule);
  text-decoration: none; font-weight: 600; font-size: 1.125rem;
}
.site-nav a:last-child { border-bottom: 0; }

.header-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--oxide); color: #fff; text-decoration: none; font-weight: 650;
}
.header-call:hover { background: var(--oxide-dark); }
.header-call .icon { width: 22px; height: 22px; }
.header-call-text { display: none; }

.menu-btn {
  width: 44px; height: 44px; border: 1.5px solid var(--graphite); border-radius: 6px;
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 20px; height: 2px; background: var(--graphite); position: relative;
  transition: transform .2s, background-color .2s;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 56px; }
.hero-grid { display: grid; gap: 36px; }
.hero-place {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--muted); font-size: 1rem;
}
.hero-place .icon { color: var(--oxide); }
.hero h1 {
  font-size: clamp(3.1rem, 12.5vw, 5.6rem);
  font-weight: 800; font-stretch: 75%;
  line-height: .92; letter-spacing: -.005em;
  margin: 14px 0 14px;
}
.kn {
  font-family: "Anek Kannada", var(--font);
  font-weight: 600; font-size: 1.35rem; line-height: 1.4;
  color: var(--oxide);
}
.lead { font-size: 1.1875rem; line-height: 1.5; max-width: 34em; margin-top: 14px; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-points { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-weight: 600; font-size: 1rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--wa); width: 1.1em; height: 1.1em; }

/* The drawing sheet */
.sheet {
  position: relative;
  background: var(--sheet);
  border: 1.5px solid var(--graphite);
  padding: 10px 10px 0;
}
.sheet::before {
  content: ""; position: absolute; inset: 4px; pointer-events: none;
  border: 1px solid var(--rule);
}
.dwg { width: 100%; height: auto; position: relative; }
.title-block {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--graphite);
  margin: 6px -10px 0;
  font-size: .95rem; line-height: 1.25; font-weight: 600;
}
.tb-cell { padding: 9px 12px; border-right: 1px solid var(--rule-strong); }
.tb-cell:nth-child(3) { border-right: 0; }
.tb-cell small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.tb-key {
  grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--rule-strong);
  display: flex; flex-wrap: wrap; gap: 4px 22px;
}
.tb-key span { display: inline-flex; align-items: center; }
.key {
  display: inline-block; width: 22px; height: 4px; margin-right: 8px;
  background: var(--graphite); vertical-align: middle;
}
.key-fab { background: var(--oxide); }

/* SVG line work */
.dwg path { fill: none; stroke-linejoin: round; }
.dwg .d-ground { stroke: var(--graphite); stroke-width: 2.6; }
.dwg .d-hatch { stroke: var(--graphite); stroke-width: 1; opacity: .45; }
.dwg .d-str { stroke: var(--graphite); stroke-width: 2; fill: #fff; }
.dwg .d-fine { stroke: var(--graphite); stroke-width: 1.1; }
.dwg .d-fab { stroke: var(--oxide); stroke-width: 1.9; }
.dwg .d-fab-fine { stroke: var(--oxide); stroke-width: 1.2; }
.dwg .d-hidden { stroke: var(--graphite); stroke-width: 1.1; stroke-dasharray: 5 4; opacity: .7; }
.dwg .d-level { stroke: var(--rule-strong); stroke-width: 1; }
.dwg .d-level-mark { fill: var(--graphite); stroke: none; }
.dwg .d-level-text { font-family: var(--font); font-size: 13px; font-weight: 600; fill: var(--muted); }
.dwg .d-lead { stroke-width: 1.1; }
.dwg .d-label { font-family: var(--font); font-size: 16px; font-weight: 680; font-stretch: 85%; }
.callout-build .d-lead { stroke: var(--graphite); }
.callout-build .d-dot, .callout-build .d-label { fill: var(--graphite); }
.callout-fab .d-lead { stroke: var(--oxide); }
.callout-fab .d-dot, .callout-fab .d-label { fill: var(--oxide); }

/* Drafting the drawing on load: one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .dwg path[pathLength] { stroke-dasharray: 1 2; animation: draft 1s cubic-bezier(.55, .1, .3, 1) both; }
  .dwg .g-ground path { animation-duration: .7s; }
  .dwg .g-struct path { animation-delay: .25s; }
  .dwg .g-open path { animation-delay: .7s; animation-duration: .8s; }
  .dwg .g-fab path { animation-delay: 1.05s; animation-duration: .9s; }
  .dwg .g-hidden, .dwg .g-levels, .dwg .g-callouts { animation: appear .5s ease both; }
  .dwg .g-hidden { animation-delay: 1.3s; }
  .dwg .g-levels { animation-delay: 1.5s; }
  .dwg .g-callouts { animation-delay: 1.85s; }
}
@keyframes draft { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-sheet { background: var(--sheet); border-block: 1px solid var(--rule); }
.section-head { margin-bottom: 32px; max-width: 40em; }
.section-head h2, .about-copy h2, .contact-intro h2 {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 790; font-stretch: 78%;
  line-height: .98; letter-spacing: -.003em;
}
.section-head p { margin-top: 12px; font-size: 1.125rem; color: var(--muted); max-width: 36em; }

/* Services: two schedules, colour-keyed like the drawing */
.schedules { display: grid; gap: 44px; }
.schedule h3 {
  display: flex; align-items: center;
  font-size: 1.45rem; font-stretch: 85%; font-weight: 760;
  padding-bottom: 12px; border-bottom: 2.5px solid var(--graphite);
}
.schedule-fab h3 { border-bottom-color: var(--oxide); color: var(--oxide); }
.schedule li {
  display: grid; gap: 2px;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
}
.schedule li strong { font-size: 1.125rem; font-weight: 680; line-height: 1.25; }
.schedule li span { color: var(--muted); font-size: 1rem; line-height: 1.45; }

/* Why us */
.reasons { display: grid; gap: 0 32px; }
.reasons li {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-content: start;
  padding: 18px 0; border-top: 1px solid var(--rule-strong);
}
.reasons .icon { grid-row: span 2; width: 30px; height: 30px; color: var(--oxide); margin-top: 1px; }
.reasons h3 { font-size: 1.25rem; font-stretch: 88%; font-weight: 740; line-height: 1.2; }
.reasons p { color: var(--muted); font-size: 1rem; margin-top: 4px; }

/* About */
.about-grid { display: grid; gap: 36px; }
.photo-frame { background: #fff; border: 1.5px solid var(--graphite); padding: 8px; position: relative; max-width: 520px; }
.photo-frame::before {
  content: ""; position: absolute; inset: 3px; border: 1px solid var(--rule); pointer-events: none;
}
.photo-frame img { width: 100%; height: auto; position: relative; }
.about-copy p { margin-top: 16px; max-width: 36em; font-size: 1.0625rem; }
.about-copy p:first-of-type { font-size: 1.1875rem; margin-top: 20px; }
.people { margin-top: 28px; border-bottom: 1px solid var(--rule-strong); }
.person {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 16px 0; border-top: 1px solid var(--rule-strong);
}
.person-name { display: grid; }
.person-name strong { font-size: 1.3rem; font-stretch: 88%; font-weight: 760; line-height: 1.2; }
.person-name span { color: var(--muted); font-size: .98rem; }
.person-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Reviews */
.review-grid { display: grid; gap: 28px; align-items: start; }
.reviews { display: grid; gap: 48px; }
.review { position: relative; padding-top: 52px; }
.review::before {
  content: "\201C"; position: absolute; top: -4px; left: -4px;
  font-size: 6.5rem; line-height: 1; font-weight: 800; color: var(--oxide);
}
.review blockquote p { font-size: 1.35rem; line-height: 1.45; font-weight: 500; max-width: 32em; }
.review figcaption { display: grid; margin-top: 18px; padding-top: 14px; border-top: 2.5px solid var(--graphite); max-width: 22rem; }
.review figcaption strong { font-size: 1.15rem; font-weight: 720; }
.review figcaption span { color: var(--muted); }
.feedback {
  border: 1.5px dashed var(--rule-strong); padding: 22px 20px 24px; background: var(--sheet);
}
.feedback h3 { font-size: 1.5rem; font-stretch: 85%; font-weight: 760; }
.feedback p { margin-top: 8px; color: var(--muted); }
.feedback-actions { display: grid; gap: 10px; margin-top: 18px; }

/* How we work: grid bubbles on a line, like a drawing's grid */
.steps { display: grid; gap: 0; counter-reset: step; position: relative; }
.steps li {
  position: relative; counter-increment: step;
  padding: 0 0 28px 62px; min-height: 64px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--graphite); background: var(--sheet);
  display: grid; place-items: center;
  font-weight: 760; font-size: 1.2rem; font-stretch: 85%;
}
.steps li::after {
  content: ""; position: absolute; left: 21.5px; top: 42px; bottom: 0; width: 1.5px;
  background: var(--graphite);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--oxide); border-color: var(--oxide); color: #fff; }
.steps h3 { font-size: 1.3rem; font-stretch: 88%; font-weight: 740; line-height: 1.2; padding-top: 6px; }
.steps p { color: var(--muted); margin-top: 4px; max-width: 28em; }

/* Visit us */
.route { position: relative; height: 74px; margin: 8px 12px 30px 8px; }
.route::before {
  content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--graphite) 0 14px, transparent 14px 20px);
}
.stop {
  position: absolute; left: var(--at); transform: translateX(-50%);
  font-weight: 700; font-size: 1rem; white-space: nowrap;
}
.stop::before {
  content: ""; position: absolute; left: 50%; top: 30px; transform: translateX(-50%);
  width: 14px; height: 14px; background: var(--graphite);
}
.stop-office, .stop-works { top: 52px; }
.stop-office::before, .stop-works::before { top: -22px; }
.stop-works::before { background: var(--oxide); }
.stop-town { top: 0; color: var(--muted); font-weight: 600; }
.stop-town::before { width: 12px; height: 12px; border-radius: 50%; background: var(--plaster); border: 2px solid var(--graphite); top: 30px; }
.stop-office { transform: translateX(-7px); }
.stop-office::before { left: 7px; }
.stop-works { transform: translateX(calc(-100% + 7px)); }
.stop-works::before { left: auto; right: 0; transform: none; }

.places { display: grid; gap: 20px; }
.place { background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--graphite); padding: 20px 20px 22px; }
.place-fab { border-top-color: var(--oxide); }
.place h3 { font-size: 2rem; font-stretch: 78%; font-weight: 790; }
.place-kind { color: var(--muted); font-weight: 600; margin-top: 2px; }
.place address { margin: 14px 0 18px; font-size: 1.0625rem; }

/* Contact */
.contact { background: var(--oxide-deep); color: #fff; padding: 64px 0 72px; }
.contact :focus-visible { outline-color: #fff; }
.contact-grid { display: grid; gap: 36px; align-items: start; }
.contact-intro > p { margin-top: 14px; color: var(--oxide-soft); font-size: 1.125rem; max-width: 32em; }
.contact-people { margin-top: 26px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.contact-people li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .25);
}
.contact-who { display: grid; }
.contact-who strong { font-size: 1.3rem; font-stretch: 88%; font-weight: 760; line-height: 1.2; }
.contact-number { color: var(--oxide-soft); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-number:hover { color: #fff; text-decoration: underline; }

.enquiry { background: var(--sheet); color: var(--graphite); padding: 22px 18px 20px; border-radius: 4px; }
.enquiry :focus-visible { outline-color: var(--oxide); }
.enquiry h3 { font-size: 1.6rem; font-stretch: 82%; font-weight: 780; margin-bottom: 6px; }
.field { margin-top: 14px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 650; font-size: 1rem; margin-bottom: 6px; padding: 0; }
.field > label span { font-weight: 450; color: var(--muted); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid var(--rule-strong); border-radius: 4px; background: #fff;
  font-size: 1.0625rem;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262b30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--graphite); }
.send-to { display: flex; flex-wrap: wrap; gap: 8px; }
.send-to legend { width: 100%; }
.send-to label {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--rule-strong); border-radius: 999px;
  font-weight: 600; cursor: pointer;
}
.send-to input { accent-color: var(--oxide); width: 18px; height: 18px; margin: 0; }
.send-to label:has(input:checked) { border-color: var(--graphite); background: var(--plaster); }
.form-error { margin-top: 14px; color: #a1281b; font-weight: 600; }
.enquiry .btn-block { margin-top: 18px; }
.form-note { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--plaster); border-top: 1.5px solid var(--graphite); padding-top: 40px; font-size: 1rem; }
.footer-grid { display: grid; gap: 24px; padding-bottom: 32px; }
.footer-brand .brand { margin-right: 0; }
.footer-grid p { color: var(--muted); margin-top: 8px; max-width: 30em; }
.footer-grid h3 { font-size: 1.05rem; font-weight: 720; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  border-top: 1px solid var(--rule); padding: 18px 0 96px; color: var(--muted); font-size: .95rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; z-index: 50;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}
.wa-fab {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 20px -6px rgba(16, 60, 38, .55), 0 2px 4px rgba(0, 0, 0, .12);
}
.wa-fab:hover { background: var(--wa-dark); }
.wa-fab .icon { width: 30px; height: 30px; }
.wa-panel {
  position: absolute; right: 0; bottom: 70px; width: min(280px, calc(100vw - 32px));
  background: #fff; border: 1.5px solid var(--graphite); border-radius: 6px;
  padding: 12px; box-shadow: 0 18px 36px -18px rgba(38, 43, 48, .45);
}
.wa-panel p { font-weight: 700; font-size: 1rem; padding: 2px 4px 8px; }
.wa-panel a {
  display: grid; padding: 10px 12px; border-radius: 4px; text-decoration: none;
  border-top: 1px solid var(--rule);
}
.wa-panel a:hover { background: var(--plaster); }
.wa-panel a strong { font-weight: 700; }
.wa-panel a span { color: var(--muted); font-size: .95rem; }

/* Our work: photo gallery (masonry columns keep each photo's own shape) */
.work-group { display: flex; align-items: center; font-size: 1.35rem; font-stretch: 88%; font-weight: 740; margin-bottom: 20px; }
.work-grid { columns: 2; column-gap: 12px; }
.work-grid + .work-group { margin-top: 36px; }
.work-item { break-inside: avoid; margin-bottom: 18px; }
.work-item a { display: block; position: relative; overflow: hidden; background: var(--rule); border-radius: 3px; }
.work-item img, .work-item video { width: 100%; height: auto; display: block; }
.work-item img { transition: transform .35s ease; }
.work-item a:hover img { transform: scale(1.035); }
.work-item video { background: #000; border-radius: 3px; }
.work-item p { margin-top: 7px; font-size: .95rem; line-height: 1.3; color: var(--muted); padding-left: 10px; border-left: 3px solid var(--oxide); }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 16, 18, .94); color: #fff; }
.lightbox::backdrop { background: rgba(14, 16, 18, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 12px; padding: 56px 12px 20px; }
.lightbox img { max-width: min(100vw - 24px, 1400px); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; }
.lightbox figcaption { font-size: 1.05rem; text-align: center; max-width: 40em; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 10px; right: 10px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
body.lb-open { overflow: hidden; }

/* ---------- Small phones: drawing legibility ---------- */
@media (max-width: 639px) {
  .dwg .d-label { font-size: 25px; }
  .dwg .d-level-text { display: none; }
  .dwg .d-str { stroke-width: 2.6; }
  .dwg .d-fine { stroke-width: 1.6; }
  .dwg .d-fab { stroke-width: 2.5; }
  .dwg .d-fab-fine { stroke-width: 1.7; }
  .dwg .d-hatch { stroke-width: 1.4; }
  .dwg .d-lead { stroke-width: 1.6; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .wrap { width: min(100% - 3rem, var(--wrap)); }
  .title-block { grid-template-columns: 1.5fr 1fr 1fr; }
  .tb-key { grid-column: auto; border-bottom: 0; border-right: 1px solid var(--rule-strong); align-content: center; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .feedback-actions { display: flex; flex-wrap: wrap; }
  .places { grid-template-columns: 1fr 1fr; }
  .work-grid { columns: 3; column-gap: 18px; }
  .work-item { margin-bottom: 22px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .enquiry { padding: 28px 26px 24px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .site-nav {
    display: flex; position: static; gap: 26px; padding: 0; margin-right: 8px;
    background: none; border: 0; box-shadow: none;
  }
  .site-nav a { padding: 0; border: 0; font-size: 1.0625rem; }
  .site-nav a:hover { color: var(--oxide); }
  .menu-btn { display: none; }
  .header-call { width: auto; height: 44px; border-radius: 6px; padding: 3px 16px 0; }
  .header-call .icon { width: 20px; height: 20px; position: relative; top: -1.5px; }
  .header-call-text { display: inline; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.45rem; }

  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(3.8rem, 5.4vw, 5.1rem); }

  .section { padding: 104px 0; }
  .section-head { margin-bottom: 44px; }

  .schedules { grid-template-columns: 2fr 1fr; gap: 56px; }
  .schedule-build ul { columns: 2; column-gap: 40px; }
  .schedule-build li { break-inside: avoid; }

  .reasons { grid-template-columns: repeat(4, 1fr); }
  .work-grid { column-gap: 24px; }
  .work-item { margin-bottom: 26px; }

  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }

  .review-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; }
  .review blockquote p { font-size: 1.6rem; }
  .feedback-actions { display: grid; }

  .steps { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .steps li { padding: 66px 0 0; min-height: 0; }
  .steps li::before { top: 0; }
  .steps li::after { left: 44px; right: -28px; top: 21.5px; bottom: auto; width: auto; height: 1.5px; }
  .steps h3 { padding-top: 0; }

  .route { margin: 12px 24px 40px 8px; }

  .contact { padding: 104px 0; }
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer-base { padding-bottom: 24px; }
}

/* Narrow desktop: keep the 7 nav links on one line */
@media (min-width: 960px) {
  .site-nav a { white-space: nowrap; }
}
@media (min-width: 960px) and (max-width: 1179px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 1rem; }
  .header-call { width: 44px; padding: 0; }
  .header-call-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
