/*
Theme Name: RBR Automation
Theme URI: https://rbrautomation.com
Author: RBR Automation
Description: Custom theme for RBR Automation. Servo-driven custom machine building for the filtration industry. Clean, fast, no page-builder dependency.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rbr-automation
*/

/* ---------- Tokens ---------- */
:root {
  --navy: #293b51;
  --navy-900: #1b2838;
  --navy-700: #35506f;
  --navy-100: #e8edf3;
  --gold: #ca8523;
  --gold-600: #a5732d;
  --gold-200: #e5c59a;
  --gold-100: #f6ecda;
  --ink: #16202c;
  --text: #34414f;
  --muted: #6b7a8c;
  --line: #e2e7ed;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(27, 40, 56, .08);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: 500; line-height: 1.1;
  color: var(--ink); margin: 0 0 .5em; letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  font-size: .95rem; font-weight: 500; padding: 13px 24px; border-radius: 6px;
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease; line-height: 1;
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(27,40,56,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
@media (max-width: 480px) { .brand img { height: 38px; } }
.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav-primary a {
  display: block; padding: 10px 14px; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .06em; font-size: .95rem; color: var(--navy); border-radius: 6px;
}
.nav-primary a:hover, .nav-primary .current-menu-item > a, .nav-primary .current_page_item > a { color: var(--gold-600); }
.nav-primary .menu-item-cta > a { background: var(--gold); color: #fff; margin-left: 8px; }
.nav-primary .menu-item-cta > a:hover { background: var(--gold-600); }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); transition: transform .2s, top .2s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-primary { position: absolute; inset: 100% 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(27,40,56,.12); display: none; padding: 10px var(--gutter) 20px; }
  .nav-open .nav-primary { display: block; }
  .nav-primary ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-primary a { padding: 12px 10px; font-size: 1.05rem; }
  .nav-primary .menu-item-cta > a { margin: 10px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  padding: clamp(70px, 10vw, 130px) 0 clamp(70px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 85%);
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(202,133,35,.28), transparent 62%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .14em; font-size: .85rem; color: var(--gold-200); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .lede { font-size: 1.18rem; color: rgba(255,255,255,.82); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-chips li {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
  border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; color: rgba(255,255,255,.85);
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--gold-600); }
.section-navy .eyebrow { color: var(--gold-200); }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-navy .section-head p { color: rgba(255,255,255,.78); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-200); }
.card .icon { width: 52px; height: 52px; color: var(--gold); }
.card .icon svg { width: 100%; height: 100%; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--gold-600); }
.card .more::after { content: " \2192"; }
.card-link { position: absolute; inset: 0; }
.card-navy { background: var(--navy); border-color: var(--navy); color: #fff; justify-content: center; }
.card-navy h3 { color: #fff; }
.card-navy p { color: rgba(255,255,255,.78); }
.card-navy .btn { align-self: flex-start; }

/* ---------- Process ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 2.6rem; line-height: 1;
  color: var(--gold-200); display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.25rem; }
.step p { color: rgba(255,255,255,.78); margin: 0; }

/* ---------- Split / why ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split h2 { margin-bottom: .6em; }
.split .lead { font-size: 1.15rem; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background-color: var(--gold-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5732d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center; margin-top: 3px;
}
.checklist strong { color: var(--ink); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(202,133,35,.45), transparent 70%); }
.stat b { display: block; font-family: var(--font-head); font-size: 2.3rem; line-height: 1; color: var(--gold-200); margin-bottom: 8px; font-weight: 500; }
.stat span { color: rgba(255,255,255,.8); font-size: .95rem; }

/* ---------- Platforms ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 14px; }
.platform { flex: 1 1 200px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.platform b { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; color: var(--navy); }
.platform span { color: var(--muted); font-size: .92rem; }
.platform.primary { border-color: var(--gold-200); background: var(--gold-100); }
.platform.primary b { color: var(--gold-600); }

/* ---------- Projects ---------- */
.project-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; position: relative; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-media { aspect-ratio: 16 / 10; background: var(--navy); position: relative; overflow: hidden; }
.project-media img, .project-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { margin: 0; font-size: 1.25rem; }
.project-body p { margin: 0; color: var(--muted); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: .74rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; background: var(--navy-100); color: var(--navy); padding: 4px 9px; border-radius: 4px; }
.tags li.gold { background: var(--gold-100); color: var(--gold-600); }
.nda-note { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-100); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 6px; color: var(--gold-600); margin-top: 36px; font-size: .95rem; }

/* ---------- Services page ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) .service-visual { order: -1; }
.service-visual { background: var(--navy); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden; }
.service-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(0deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 40px 40px; }
.service-visual::after { content: ""; position: absolute; right: -25%; bottom: -35%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(202,133,35,.35), transparent 65%); }
.service-visual svg { width: 42%; height: auto; color: var(--gold-200); position: relative; z-index: 1; }
.service-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.service-copy .eyebrow { color: var(--gold-600); }
.service-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.service-copy .lead { font-size: 1.1rem; color: var(--ink); }
.features { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: .6em; width: 14px; height: 2px; background: var(--gold); }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; gap: 28px; } .service-row:nth-child(even) .service-visual { order: 0; } }
.service-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.service-jump a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; }
.service-jump a:hover { border-color: var(--gold-200); color: var(--gold-200); }

/* ---------- Page header ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 90px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -8%; top: -40%; width: 45%; aspect-ratio: 1; background: radial-gradient(circle, rgba(202,133,35,.3), transparent 62%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 62ch; margin: 0; }

/* ---------- Content ---------- */
.entry-content { max-width: 760px; }
.entry-content h2 { font-size: 1.7rem; margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { border-left: 4px solid var(--gold); margin: 1.5em 0; padding: .4em 0 .4em 1.2em; color: var(--muted); font-style: italic; }
.wp-block-image img { border-radius: var(--radius); }
.alignwide { width: min(1180px, 100%); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dl { margin: 24px 0 0; display: grid; gap: 18px; }
.contact-info dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--gold-600); }
.contact-info dd { margin: 2px 0 0; font-size: 1.1rem; }
.contact-info dd a { color: var(--ink); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form { padding: 24px 20px; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; border: 1px solid #cfd7e0; border-radius: 6px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold-200); border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: 6px; margin-bottom: 22px; font-weight: 500; }
.notice-ok { background: #e8f5ec; color: #1f6b3a; border-left: 4px solid #2f9e57; }
.notice-err { background: #fdecec; color: #8f2626; border-left: 4px solid #d64545; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, var(--navy-700)); color: #fff; padding: clamp(56px, 7vw, 90px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); max-width: 54ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .footer-logo { height: 110px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold-200); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Single project ---------- */
.project-hero-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--navy); margin-bottom: 36px; }
.project-hero-media img, .project-hero-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0 0 32px; }
.project-meta div { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--bg-alt); }
.project-meta dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--gold-600); }
.project-meta dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.back-link { display: inline-block; margin-top: 32px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.back-link::before { content: "\2190  "; }

/* ---------- Utilities ---------- */
.mt-lg { margin-top: 36px; }
.center { text-align: center; }

/* ---------- Real photos (optional, set in Customize > RBR Photos) ---------- */
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.about-side { display: grid; gap: 18px; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
#quote-form { scroll-margin-top: 90px; }

/* ---------- Sticky mobile action bar (hidden on desktop) ---------- */
.mobile-bar { display: none; }

/* ---------- Tablet and phone refinements ---------- */
@media (max-width: 900px) {
  .service-row .service-visual, .service-row:nth-child(even) .service-visual { order: -1; aspect-ratio: 16 / 9; }
  .service-visual svg { width: 28%; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; line-height: 1.6; padding-bottom: 68px; }
  h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 1.95rem); }

  /* Header */
  .header-inner { min-height: 62px; }
  .brand img { height: 36px; }

  /* Hero: fits in about one screen */
  .hero { padding: 40px 0 44px; }
  .hero .wrap { gap: 28px; }
  .eyebrow { font-size: .74rem; letter-spacing: .12em; margin-bottom: 12px; }
  .eyebrow::before { width: 20px; }
  .hero .lede { font-size: 1rem; }
  .hero-actions { margin: 22px 0 22px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .btn, .cta-actions .btn { justify-content: center; padding: 15px 18px; }
  .hero-chips { gap: 6px; }
  .hero-chips li { font-size: .68rem; padding: 5px 10px; }
  .hero-art:not(.hero-photo) { display: none; }
  .hero-photo { max-width: none; }
  .hero-photo img { aspect-ratio: 16 / 10; }

  /* Sections */
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 1rem; }
  .page-hero { padding: 40px 0 44px; }
  .page-hero p { font-size: 1rem; }
  .grid { gap: 14px; }

  /* Service cards: icon beside the title */
  .card { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 10px; padding: 20px; align-items: center; }
  .card > * { grid-column: 1 / -1; }
  .card .icon { grid-column: 1; width: 40px; height: 40px; }
  .card .icon + h3 { grid-column: 2; }
  .card h3 { font-size: 1.2rem; }
  .card p { font-size: .95rem; }
  .card-navy .btn { justify-self: start; }

  /* Process steps: number beside the text */
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; padding: 18px; }
  .step::before { grid-row: 1 / span 2; font-size: 2rem; margin: 0; }
  .step h3 { margin-bottom: .2em; font-size: 1.15rem; }
  .step p { font-size: .95rem; }

  /* Stats */
  .stat-grid { gap: 12px; }
  .stat { padding: 18px 16px; }
  .stat b { font-size: 1.9rem; }
  .stat span { font-size: .85rem; line-height: 1.45; display: block; }
  .checklist { gap: 10px; }

  /* Home projects: swipe sideways instead of a long stack */
  .swipe-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > * { flex: 0 0 84%; scroll-snap-align: center; }
  .swipe-row .project-card:hover { transform: none; }
  .project-body { padding: 18px; }
  .project-body h3 { font-size: 1.15rem; }

  /* Services page */
  .service-row { padding: 40px 0; gap: 22px; scroll-margin-top: 70px; }
  .service-copy .lead { font-size: 1rem; }
  .service-jump { gap: 6px; margin-top: 20px; }
  .service-jump a { font-size: .72rem; padding: 7px 11px; }

  /* Contact */
  .contact-grid { gap: 32px; }
  .contact-info dl { gap: 12px; margin-top: 18px; }
  .contact-info dd { font-size: 1rem; }

  /* CTA band */
  .cta-band { padding: 48px 0; }
  .cta-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Footer: compact, links side by side */
  .site-footer { padding: 44px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer .footer-logo { height: 72px; margin-bottom: 12px; }
  .site-footer ul { gap: 2px; }
  .site-footer li a { display: inline-block; padding: 5px 0; }
  .footer-bottom { margin-top: 28px; flex-direction: column; gap: 4px; }

  /* Sticky call / quote bar */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(27,40,56,.08);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 6px;
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .92rem;
  }
  .mobile-bar-call { border: 2px solid var(--navy); color: var(--navy); }
  .mobile-bar-quote { background: var(--gold); color: #fff; }
  .mobile-bar-quote:hover { color: #fff; background: var(--gold-600); }
  .nav-open .mobile-bar { display: none; }
}
