/* Northbyte Web Studio — site styles (mobile first; one file, no build step) */

:root {
  --ground: #f3f5f7;
  --panel: #ffffff;
  --line: #dde2e8;
  --line-strong: #c3ccd6;
  --ink: #0c2236;
  --text: #2b3a4a;
  --muted: #56677a;
  --sub: #45607c;
  --link: #1a5aa6;
  --link-hover: #0f3f7a;
  --teal: #3aa9a4;
  --ink-soft: #16324d;
  --on-ink: #ffffff;
  --on-ink-muted: #b9c7d6;
  --ok: #1e6b4a;
  --error: #b42318;
  --error-bg: #fdf1f0;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 16px;
  --space-section: 56px;
}
@media (min-width: 768px) { :root { --gutter: 24px; --space-section: 72px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; --space-section: 88px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  border-top: 1px solid var(--teal);
  scrollbar-color: var(--line-strong) var(--ground);
}
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
::selection { background: var(--ink); color: var(--on-ink); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.25rem); line-height: 1.02; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font: 600 1.075rem/1.35 var(--font-body); }
h4 { font: 600 1rem/1.4 var(--font-body); }
strong { color: var(--ink); font-weight: 600; }
.wrap, .container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-ink); padding: 10px 14px; font-weight: 600; }
.skip-link:focus { top: 8px; }
.skip-link:hover, .closer a:hover, .cta-section a:hover { color: var(--on-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* mono labels: panel headers, data, counts */
.label {
  font: 500 .6875rem/1.4 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; }
.sub { color: var(--sub); font-size: 1.075rem; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn, .btn-primary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: 600 .9375rem/1.2 var(--font-body);
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.btn-solid, .btn-primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-solid:hover, .btn-primary:hover { background: var(--ink-soft); color: var(--on-ink); }
.btn-line, .btn-outline { background: var(--panel); color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover, .btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn[disabled], .btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-large { min-height: 52px; padding-inline: 24px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-bar { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font: 800 1.125rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { padding-inline: 12px; }
.header-phone .phone-text { display: none; }
.header-quote { padding-inline: 14px; white-space: nowrap; }
.header-quote .long { display: none; }
.header-quote .short { display: inline; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* mobile menu: a side-menu style panel with mono group labels */
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--panel); border-bottom: 1px solid var(--line);
  max-height: calc(100vh - 64px); overflow-y: auto; padding: 8px var(--gutter) 24px;
}
.nav-list, .nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-list a:hover { color: var(--link); }
.nav-list a[aria-current="page"] { color: var(--link); font-weight: 600; }
.nav-trigger { display: none; }
.nav-group-label { display: block; padding: 16px 0 4px; }
.nav-menu a { padding-left: 4px; }

@media (min-width: 560px) {
  .header-phone .phone-text { display: inline; }
  .header-quote .long { display: inline; }
  .header-quote .short { display: none; }
}
@media (min-width: 1100px) {
  .header-bar { min-height: 64px; gap: 20px; }
  .brand { margin-right: 8px; }
  .menu-btn { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; padding: 0; border: 0; max-height: none; overflow: visible; margin-right: auto; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a, .nav-trigger { min-height: 40px; padding: 0 10px; font: 500 .9375rem/1 var(--font-body); color: var(--ink); }
  .nav-group-label { display: none; }
  .nav-trigger { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; }
  .nav-trigger svg { width: 14px; height: 14px; transition: transform .15s ease-out; }
  .nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: var(--panel); border: 1px solid var(--line); }
  .nav-trigger[aria-expanded="true"] + .nav-menu { display: block; }
  .nav-menu li + li { border-top: 1px solid var(--line); }
  .nav-menu a { padding: 0 16px; font-size: .9375rem; }
  .nav-menu a:hover { background: var(--ground); }
}

/* ---------- panels: the core surface ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); }
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.panel-head .label { color: var(--ink); }
.panel-head .count { color: var(--muted); }
.panel-row { padding: 14px 16px; }
.panel-row + .panel-row { border-top: 1px solid var(--line); }
.panel-foot { padding: 14px 16px; border-top: 1px solid var(--line); }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { padding: 11px 16px; }
.panel-list li + li { border-top: 1px solid var(--line); }
.panel-list a { text-decoration: none; }
.panel-list a:hover { text-decoration: underline; }
.panel-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .panel-grid.cols-2, .panel-grid.cols-3, .panel-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .panel-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .panel-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.panel-grid.stretch { align-items: stretch; }
.panel-grid.stretch > .panel { display: flex; flex-direction: column; }
.panel-grid.stretch .panel-foot { margin-top: auto; }

/* segmented control (radio group) */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); background: var(--panel); margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  font: 500 .6875rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border-right: 1px solid var(--line);
}
.seg label:last-child span { border-right: 0; }
.seg input:hover + span { color: var(--ink); background: var(--ground); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--link); outline-offset: -2px; }

/* ---------- sections ---------- */
.section { padding-block: var(--space-section); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--sub); }

.page-head { padding-block: 40px 28px; }
.page-head .sub { margin-bottom: 0; }
@media (min-width: 1100px) { .page-head { padding-block: 64px 36px; } }

/* ---------- home: hero ---------- */
.hero-top { display: grid; gap: 20px; align-items: end; }
.hero-top h1 { margin-bottom: 12px; max-width: 24ch; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.hero-top .sub { margin: 0; }
.hero-switch { display: grid; gap: 8px; justify-items: start; }
@media (min-width: 1100px) {
  .hero-top { grid-template-columns: 1fr auto; gap: 40px; }
  .hero-switch { justify-items: end; }
}
.quote-bar { margin-top: 24px; display: grid; }
.quote-offer { padding: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.quote-price { font: 800 1.75rem/1.1 var(--font-display); color: var(--ink); text-transform: uppercase; }
.quote-meta { color: var(--sub); margin: 0; font-size: .9375rem; }
.quote-fields { padding: 16px; display: grid; gap: 12px; }
.quote-fields .field { display: grid; gap: 6px; }
.quote-fields label { font: 500 .6875rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote-alt { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .9375rem; }
.quote-alt a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.quote-alt a:hover { text-decoration: underline; }
.quote-alt svg { width: 16px; height: 16px; }
@media (min-width: 768px) {
  .quote-fields { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
@media (min-width: 1100px) {
  .quote-bar { grid-template-columns: minmax(240px, 300px) 1fr auto; align-items: stretch; }
  .quote-offer { border-bottom: 0; border-right: 1px solid var(--line); align-content: center; }
  .quote-alt { border-top: 0; border-left: 1px solid var(--line); flex-direction: column; align-items: flex-start; justify-content: center; }
}

.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { margin: 0; }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div { border-bottom: 0; border-right: 1px solid var(--line); }
  .facts div:last-child { border-right: 0; }
}

/* service panels */
.service-panel .panel-row p { margin: 0; }
.service-panel .price { font: 800 1.35rem/1.1 var(--font-display); color: var(--ink); text-transform: uppercase; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 10px 16px 10px 42px; }
.check-list li + li { border-top: 1px solid var(--line); }
.check-list li::before {
  content: ""; position: absolute; left: 16px; top: 14px; width: 14px; height: 14px;
  background: var(--link);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* data table rows (work, process, areas) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; gap: 4px; padding: 14px 16px; }
.rows > li + li { border-top: 1px solid var(--line); }
.rows .row-title { font-weight: 600; color: var(--ink); margin: 0; }
.rows .row-title a { text-decoration: none; }
.rows .row-title a:hover { text-decoration: underline; }
.rows p { margin: 0; }
@media (min-width: 768px) {
  .rows.cols > li { grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; }
  .rows.cols-3 > li { grid-template-columns: 180px 210px 1fr; gap: 24px; align-items: baseline; }
}

/* split panel: text + facts */
.split { display: grid; gap: 16px; }
@media (min-width: 1100px) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* closing contact block */
.closer { background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); }
.closer h2 { color: var(--on-ink); }
.closer .label { color: var(--on-ink-muted); }
.closer p { color: var(--on-ink-muted); }
.closer-grid { display: grid; }
.closer-main { padding: 28px 20px; }
.closer-ways { border-top: 1px solid var(--ink-soft); }
.closer-ways a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; color: var(--on-ink); text-decoration: none; border-bottom: 1px solid var(--ink-soft); }
.closer-ways a:last-child { border-bottom: 0; }
.closer-ways a:hover { background: var(--ink-soft); }
.closer-ways .big { font: 500 1.25rem/1.2 var(--font-mono); letter-spacing: .02em; }
.closer-ways svg { width: 18px; height: 18px; }
.closer .btn-solid, .cta-section .btn-primary { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.closer .btn-solid:hover, .cta-section .btn-primary:hover { background: #e6ecf2; color: var(--ink); }
@media (min-width: 1100px) {
  .closer-grid { grid-template-columns: 1.2fr 1fr; }
  .closer-main { padding: 40px; }
  .closer-ways { border-top: 0; border-left: 1px solid var(--ink-soft); display: flex; flex-direction: column; }
  .closer-ways a { flex: 1; padding-inline: 28px; }
}

/* ---------- home ---------- */
.home-hero { padding-top: 32px; }
@media (min-width: 1100px) { .home-hero { padding-top: 56px; } }
.hero-switch { border: 0; margin: 0; padding: 0; min-width: 0; }
.hero-switch legend { margin-bottom: 8px; float: left; width: 100%; }
.hero-switch .seg { clear: both; }
@media (max-width: 559px) {
  .hero-switch, .hero-switch .seg { width: 100%; }
  .hero-switch .seg { display: grid; grid-template-columns: repeat(4, auto); }
  .hero-switch .seg span { justify-content: center; padding: 0 6px; letter-spacing: .08em; }
}
@media (min-width: 1100px) { .hero-switch legend { text-align: right; } }
.facts { margin-top: -1px; }
.quote-offer .quote-price, .quote-offer .quote-meta { margin: 0; }
.area-rows > li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 0; }
.area-rows a { display: flex; align-items: center; min-height: 48px; flex: 1; font-weight: 600; text-decoration: none; }
.area-rows a:hover { text-decoration: underline; }
.area-rows .mono { color: var(--muted); font-size: .875rem; }
.panel-foot p { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details:first-child { margin-top: 0; border-top: 0; }
.faq-list { background: var(--panel); border: 1px solid var(--line); }
.faq-list details { border: 0; margin: 0; }
.faq-list details + details { border-top: 1px solid var(--line); }
.more-link { margin: 14px 0 0; }
.checklist-form { display: grid; gap: 8px; }
.checklist-form p { margin: 0 0 8px; }
.checklist-form .btn { justify-self: start; }
.small { font-size: .875rem; color: var(--muted); }
.checklist-form .small { margin: 4px 0 0; }
.closer-ways .label { color: var(--on-ink-muted); }
.split > aside { align-self: start; }
.rows.cols > li > div p + p { margin-top: 2px; }

.prose { padding: 18px 16px 4px; }
@media (min-width: 768px) { .prose { padding: 24px 28px 8px; } }
.panel-row + .panel-head, .panel-list + .panel-head { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .area-grid { display: grid; grid-template-columns: repeat(2, 1fr); } .area-grid > li:nth-child(2) { border-top: 0; } .area-grid > li:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (min-width: 1100px) { .area-grid { grid-template-columns: repeat(4, 1fr); } .area-grid > li:nth-child(-n+4) { border-top: 0; } .area-grid > li { border-right: 1px solid var(--line); } .area-grid > li:nth-child(4n) { border-right: 0; } }

/* mobile: keep the homepage short; details live on the service and portfolio pages */
@media (max-width: 767px) {
  .service-panel .check-list { display: none; }
  .rows.more-on-desktop > li:nth-child(n+5) { display: none; }
  .footer-grid nav[aria-label="Melbourne's north"], .footer-grid nav[aria-label="Regional Victoria"] { display: none; }
}
.rows .row-title a { text-decoration: none; }

/* contact details rows */
.contact-rows > li { display: grid; gap: 2px; }
.contact-rows a { font-weight: 600; text-decoration: none; }
.contact-rows a:hover { text-decoration: underline; }

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 0;
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; padding-right: 36px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2356677a' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 12px center/14px no-repeat; }
input::placeholder, textarea::placeholder { color: #5d6d7e; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--link); outline-offset: -1px; border-color: var(--link); }
input.error, select.error, textarea.error { border-color: var(--error); background: var(--error-bg); }
.field-error, .error-message { display: block; color: var(--error); font-size: .875rem; margin-top: 4px; }
.field-error:empty, .error-message:empty { display: none; }

/* legacy contact form (contact.html) */
.contact-form-section { padding-bottom: var(--space-section); }
.form-header { margin-bottom: 16px; }
.form-subtitle { color: var(--sub); }
.contact-form-improved { background: var(--panel); border: 1px solid var(--line); padding: 20px 16px; max-width: 760px; }
@media (min-width: 768px) { .contact-form-improved { padding: 28px; } }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font: 500 .6875rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label-icon { display: none; }
.required { color: var(--error); }
.char-count { display: block; text-align: right; font: 500 .75rem/1.4 var(--font-mono); color: var(--muted); margin-top: 4px; }
.btn-submit { width: 100%; min-height: 52px; }
.btn-submit .btn-loading { display: none; align-items: center; gap: 8px; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline-flex; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { margin: 16px 0 0; font-size: .875rem; color: var(--muted); }
.form-message.success { padding: 12px 14px; border: 1px solid var(--ok); color: var(--ok); }

/* ---------- inner pages (existing markup) ---------- */
.hero { padding: 40px 0 28px; }
@media (min-width: 1100px) { .hero { padding: 64px 0 36px; } }
.hero-heading { margin-bottom: 14px; max-width: 22ch; }
.hero-heading .gradient-text, .hero-heading .highlight { color: inherit; }
.hero-subtext { color: var(--sub); font-size: 1.075rem; max-width: 62ch; }
.hero-cta, .cta-buttons, .contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.overview, .features-section, .process, .faq, .about-story, .about-values, .about-why, .services-grid, .contact-info, .faq-section, .portfolio-section, .legal-section {
  padding-bottom: var(--space-section);
}
/* panel blocks sit inside the page gutter */
.overview .container, .cta-section .container { width: calc(100% - var(--gutter) * 2); max-width: var(--wrap); }
.overview .container, .legal-container { background: var(--panel); border: 1px solid var(--line); padding: 20px 16px; }
@media (min-width: 768px) { .overview .container, .legal-container { padding: 28px 32px; } }
.overview h2 { margin-bottom: 12px; }
.overview p:last-child { margin-bottom: 0; }
.subtitle { color: var(--sub); }

/* cards become cells of one hairline grid, not floating cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 16px; }
.grid > .card, .grid > article { background: var(--panel); padding: 18px 16px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid > .card, .grid > article { padding: 22px 24px; } }
@media (min-width: 1100px) { .features-section .grid, .about-values .grid, .services-grid .grid { grid-template-columns: repeat(4, 1fr); } .process .grid { grid-template-columns: repeat(3, 1fr); } }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card .btn-outline { margin-top: 12px; align-self: start; }
.services-grid .card { display: flex; flex-direction: column; }
.services-grid .card .btn-outline { margin-top: auto; }
.services-grid .card p { margin-bottom: 16px; }

.about-story .grid, .about-why .grid, .contact-info .grid { background: none; border: 0; gap: 24px; }
@media (min-width: 1100px) { .about-story .grid, .about-why .grid, .contact-info .grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.about-image { border: 1px solid var(--line); }

.features { list-style: none; padding: 0; margin: 0 0 1em; background: var(--panel); border: 1px solid var(--line); }
.features li { position: relative; padding: 12px 16px 12px 42px; }
.features li + li { border-top: 1px solid var(--line); }
.features li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; background: var(--link);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* FAQ: rows inside one panel */
.faq details, .faq-item, .faq-list details { background: var(--panel); border: 1px solid var(--line); margin-top: -1px; }
.faq h2, .faq-category h2 { margin-bottom: 14px; }
.faq-category { margin-bottom: 36px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; min-height: 48px; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; width: 14px; height: 14px; flex-shrink: 0; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2 8h12M8 2v12'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2 8h12M8 2v12'/%3E%3C/svg%3E") center/contain no-repeat;
}
details[open] > summary::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2 8h12'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2 8h12'/%3E%3C/svg%3E");
}
details > :not(summary) { padding-inline: 16px; }
details > :last-child { padding-bottom: 14px; }
details[open] > summary { border-bottom: 1px solid var(--line); }
details[open] > summary + * { padding-top: 12px; }

/* contact page */
.contact-list { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); }
.contact-list li { padding: 12px 16px; }
.contact-list li + li { border-top: 1px solid var(--line); }
.map-wrapper iframe { display: block; border: 1px solid var(--line) !important; }

/* closing CTA band on inner pages */
.cta-section { padding-bottom: var(--space-section); }
.cta-section .container > * { position: relative; }
.cta-section .container { background: var(--ink); color: var(--on-ink); padding: 28px 20px; border: 1px solid var(--ink); }
@media (min-width: 768px) { .cta-section .container { padding: 40px; } }
.cta-section h2 { color: var(--on-ink); }
.cta-section p { color: var(--on-ink-muted); }
.cta-section .btn-outline { background: transparent; color: var(--on-ink); border-color: var(--on-ink-muted); }
.cta-section .btn-outline:hover { border-color: var(--on-ink); color: var(--on-ink); }
.cta-section .hero-cta { margin-top: 8px; }

/* portfolio */
.page-hero { padding: 40px 0 28px; }
@media (min-width: 1100px) { .page-hero { padding: 64px 0 36px; } }
.breadcrumb { margin-bottom: 12px; font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.hero-subtitle { color: var(--sub); font-size: 1.075rem; }
.portfolio-section .container { display: grid; gap: 16px; }
.portfolio-item { background: var(--panel); border: 1px solid var(--line); display: grid; }
.portfolio-image { border-bottom: 1px solid var(--line); background: var(--ground); }
.portfolio-image img { width: 100%; }
.portfolio-content { padding: 18px 16px; }
.portfolio-content h2 { font-size: 1.35rem; margin-bottom: 4px; }
.portfolio-category { font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.portfolio-features { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.portfolio-features li { padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .portfolio-item { grid-template-columns: 1fr 1fr; }
  .portfolio-image { border-bottom: 0; border-right: 1px solid var(--line); }
  .portfolio-content { padding: 28px; align-self: center; }
}

/* legal pages */
.legal-section { padding-top: 40px; }
.legal-container { max-width: 820px; margin-inline: auto; }
.legal-container h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.legal-container h2 { font-size: 1.1rem; margin-top: 28px; }
.legal-meta { font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 28px; padding-block: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; } }
.footer-grid .label { margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0; }
.footer-grid li a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--text); text-decoration: none; }
.footer-grid li a:hover { color: var(--link); text-decoration: underline; }
.footer-grid li a svg { width: 16px; height: 16px; color: var(--muted); }
.footer-brand p { color: var(--text); font-size: .9375rem; }
.footer-brand .meta { font: 500 .75rem/1.7 var(--font-mono); letter-spacing: .02em; color: var(--muted); }
.footer-base { border-top: 1px solid var(--line); padding-block: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--muted); }
.footer-base a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
