/* ==========================================================
   Helios Solar Engineering Solutions — stylesheet
   Palette and details follow the company's own documents
   (Site Survey & Load Assessment forms):
   orange #FF6624 · charcoal #4A4A4A · slate #2D3748
   ========================================================== */

:root {
  --orange: #FF6624;
  --orange-dark: #E0521A;
  --orange-soft: #FFF1EA;
  --charcoal: #4A4A4A;
  --charcoal-dark: #383838;
  --ink: #2D3748;
  --text: #4A5568;
  --muted: #718096;
  --faint: #A0AEC0;
  --line: #E2E8F0;
  --line-strong: #CBD5E0;
  --surface: #F7FAFC;
  --white: #ffffff;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(45, 55, 72, 0.06), 0 6px 18px rgba(45, 55, 72, 0.06);
  --shadow-lg: 0 18px 40px rgba(45, 55, 72, 0.14);
  --header-h: 78px;

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.accent { color: var(--orange); }

/* Label style used on the company forms: small, bold, uppercase, tracked */
.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Section tag — mirrors the numbered form headers with the orange side bar */
.tag-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border-left: 4px solid var(--orange);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.tag-bar .num { color: var(--orange); }
.section-alt .tag-bar { background: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-dark); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--orange);
}
.btn-link:hover { text-decoration: underline; }

/* ---------- Top bar (like the form letterhead) ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.topbar .container { display: flex; justify-content: flex-end; gap: 1.5rem; padding-block: 0.4rem; flex-wrap: wrap; }
.topbar a:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--orange);
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(45,55,72,.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.5rem; color: var(--charcoal); letter-spacing: 0.02em; }
.brand-sub { font-weight: 700; font-size: 0.6rem; color: var(--orange); letter-spacing: 0.12em; margin-top: 5px; text-transform: uppercase; }
.brand-light .brand-name { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
  position: relative;
  padding-block: 0.3rem;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--orange); transition: width .2s;
}
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247,250,252,1) 0%, rgba(247,250,252,1) 55%, rgba(255,241,234,.7) 100%);
  padding: 76px 0 88px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 2rem; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: 0; justify-content: start;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
  width: fit-content; max-width: 100%;
}
.hero-facts div { padding: 0.8rem 1.2rem; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 0; }
.hero-facts strong { display: block; color: var(--ink); font-size: 0.95rem; }
.hero-facts span { font-size: 0.72rem; }

.hero-photo { position: relative; max-width: 470px; margin-left: auto; width: 100%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--orange); border-radius: var(--radius-lg);
}
.hero-photo > img {
  position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 32% center;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -28px; bottom: 32px;
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); border-left: 4px solid var(--orange);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0.8rem 1.1rem 0.8rem 0.9rem;
}
.hero-badge img { width: 40px; height: 40px; }
.hero-badge strong { display: block; color: var(--ink); font-size: 0.95rem; }
.hero-badge .label { font-size: 0.64rem; }

/* ---------- Stats ---------- */
.stats {
  color: var(--white);
  background:
    linear-gradient(rgba(56,56,56,.86), rgba(56,56,56,.86)),
    url("../assets/photos/band-aerial.jpg") center 60% / cover var(--charcoal);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.8rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat-value { font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1; color: var(--white); }
.stat-value .unit { color: var(--orange); font-size: 0.6em; margin-left: 2px; }
.stat .label { display: block; margin-top: 0.6rem; color: #CBD5E0; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head.center { text-align: center; margin-inline: auto; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: -1px; top: 1.8rem; width: 4px; height: 36px;
  background: var(--orange); border-radius: 0 3px 3px 0;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--orange-soft);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg, .contact-list svg, .check-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.step-head {
  background: var(--charcoal); color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem;
}
.step-head .n { font-weight: 800; font-size: 1.1rem; }
.step-head .label { color: var(--orange); font-size: 0.66rem; }
.step-body { padding: 1.1rem 1rem 1.3rem; }
.step-body h3 { font-size: 1rem; }
.step-body p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.checks {
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.checks-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.checks-title h3 { margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.check-grid li { display: flex; gap: 0.8rem; align-items: flex-start; }
.check-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius); background: var(--orange-soft); display: grid; place-items: center; }
.check-icon svg { width: 20px; height: 20px; }
.check-grid strong { display: block; color: var(--ink); font-size: 0.93rem; }
.check-grid span { color: var(--muted); font-size: 0.86rem; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.why-copy { position: sticky; top: calc(var(--header-h) + 30px); }
.why-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.8rem; }
.why-photo {
  margin-top: 2rem; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg); border-bottom: 4px solid var(--orange);
}
.why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border-top: 3px solid var(--orange);
}
.why-list p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- Tools panel (styled like the form header bar) ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-bar {
  background: var(--charcoal);
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 1rem 1.4rem;
}
.panel-bar h3 { color: var(--white); margin: 0; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; }
.panel-bar .label { color: var(--orange); }

.tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface); }
.tab {
  flex: 1; background: none; border: 0; cursor: pointer;
  padding: 1rem; font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); background: var(--white); }
.tab-panel { padding: 1.8rem 1.6rem; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.field { margin-bottom: 1.1rem; }
.field > label, .field-label { display: block; margin-bottom: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-row { display: flex; gap: 0.6rem; }
.input-row input { flex: 1; min-width: 0; }
.input-row select { width: 96px; }

input, select, textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,102,36,.15); }
input[type="range"] { padding: 0; border: 0; box-shadow: none; accent-color: var(--orange); height: 6px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--orange); }
textarea { resize: vertical; }

.results { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); }
.result:nth-child(2n) { border-right: 0; }
.result.wide { grid-column: 1 / -1; border-right: 0; background: var(--orange-soft); }
.result:last-child { border-bottom: 0; }
.result .label { display: block; margin-bottom: 0.3rem; }
.result strong { font-size: 1.25rem; color: var(--ink); font-weight: 800; }
.result.wide strong { font-size: 1.7rem; color: var(--orange); }
.note { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; }

/* Load worksheet table — header row matches the form (charcoal, white caps) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.load-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.9rem; }
.load-table th {
  background: var(--charcoal); color: var(--white);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: left; padding: 0.7rem 0.6rem; white-space: nowrap;
}
.load-table td { padding: 0.35rem 0.4rem; border-top: 1px solid var(--line); vertical-align: middle; }
.load-table tbody tr:nth-child(even) td { background: var(--surface); }
.load-table td input { padding: 0.45rem 0.55rem; font-size: 0.88rem; }
.load-table td.num { width: 84px; }
.load-table td.center { text-align: center; width: 80px; }
.load-table td.wh { font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; padding-right: 0.8rem; }
.load-table td.del { width: 36px; text-align: center; }
.row-del { background: none; border: 0; color: var(--faint); font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0.2rem 0.4rem; }
.row-del:hover { color: #D93025; }
.load-table tfoot td { background: var(--line); font-weight: 700; color: var(--ink); padding: 0.75rem 0.6rem; }
.load-table tfoot td.wh { color: var(--orange); }
.table-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin: 0.9rem 0 1.6rem; }

.sizing { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sizing .result { border-bottom: 0; }
.sizing .result:nth-child(2n) { border-right: 1px solid var(--line); }
.sizing .result:last-child { border-right: 0; }
.sizing .result small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.2rem; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.project-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project-body { padding: 1.3rem 1.4rem 1.5rem; }
.project-body p { color: var(--muted); margin: 0; font-size: 0.93rem; }
.project-specs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.project-specs span { font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 0.2rem 0.55rem; border-radius: 4px; }
.pill {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--charcoal); color: var(--white);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 4px;
}
.project-img { background: var(--line); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project-img img { transform: scale(1.04); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote blockquote { margin: 0 0 1.4rem; color: var(--text); }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption .label { color: var(--orange); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  background: var(--white);
}
.faq details[open] { border-left: 4px solid var(--orange); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3.4rem 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 4px;
  background: var(--surface); color: var(--charcoal); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; background: var(--orange); color: var(--white); border-color: var(--orange); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list svg {
  flex-shrink: 0; width: 42px; height: 42px; padding: 10px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
}
.contact-list .label { display: block; }
.contact-list span:not(.label) { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--orange); }

.contact-form .tab-panel { padding: 1.8rem 1.6rem; }
.field.invalid input { border-color: #D93025; }
.form-status { margin: 1rem 0 0; font-weight: 600; text-align: center; min-height: 1.5em; font-size: 0.92rem; }
.form-status.ok { color: #1E8E3E; }
.form-status.err { color: #D93025; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-dark); color: #CBD5E0; padding: 64px 0 0; font-size: 0.93rem; border-top: 4px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 48px; }
.footer-brand p { margin-top: 1.1rem; max-width: 300px; }
.site-footer h4 { color: var(--white); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.3rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 1rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .contact-grid, .tool-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-copy { position: static; }
  .check-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 20px 30px rgba(0,0,0,.08);
    padding: 0.5rem 20px 1.2rem;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .2s, visibility .3s;
  }
  .site-nav.open { max-height: 540px; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; }

  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; margin: 1rem auto 0; }
  .hero-photo > img { aspect-ratio: 4 / 3; }
  .hero-badge { left: 12px; bottom: 16px; }
  .why-photo { display: none; }

  .cards, .projects, .quotes { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .sizing { grid-template-columns: 1fr 1fr; }
  .sizing .result:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sizing .result:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .cards, .projects, .quotes, .why-list, .field-row, .check-grid, .steps { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; width: 100%; }
  .hero-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-facts div:last-child { border-bottom: 0; }
  .tab-panel, .contact-form .tab-panel { padding: 1.3rem 1rem; }
  .results { grid-template-columns: 1fr; }
  .result { border-right: 0 !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { font-size: 0.52rem; }
}

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