:root {
  --brand: #A61E24;
  --brand-dark: #750710;
  --brand-soft: #f9e9ea;
  --ink: #17242b;
  --ink-soft: #44535a;
  --technical: #073c58;
  --technical-light: #e5f0f6;
  --accent: #f0b323;
  --paper: #fff;
  --canvas: #f5f4f1;
  --line: #d7dcde;
  --success: #176b47;
  --success-bg: #e6f5ed;
  --warning: #7a5000;
  --warning-bg: #fff3d6;
  --error: #9b1c1c;
  --error-bg: #fdeaea;
  --radius: .75rem;
  --shadow: 0 1rem 3rem rgba(21, 59, 74, .12);
  --max: 75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; hyphens: auto; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-underline-offset: .18em; }
a:hover { color: var(--technical); }
:focus-visible { outline: .2rem solid var(--accent); outline-offset: .2rem; border-radius: .2rem; }
h1, h2, h3 { margin: 0 0 .7em; font-family: Arial, sans-serif; line-height: 1.12; }
h1 { width: 100%; max-width: 100%; font-size: 4.4rem; }
h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p, ul, ol { margin-top: 0; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: .5rem; left: .5rem; transform: translateY(-150%); background: var(--paper); color: var(--ink); padding: .7rem 1rem; font-weight: 700; }
.skip-link:focus { transform: none; }
.topbar { background: var(--technical); color: #fff; font-size: .875rem; }
.topbar__inner { min-height: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--brand); border-bottom: 1px solid var(--brand-dark); }
.header__inner { min-height: 6.7rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--brand); }
.brand { display: inline-flex; width: min(11.75rem, 44vw); }
.brand img { display: block; width: 100%; object-fit: contain; object-position: left center; }
.main-nav ul { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .45rem .8rem; color: #fff; text-decoration: none; font-weight: 700; border-bottom: .18rem solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.main-nav .nav-cta { margin-left: .45rem; padding-inline: 1.1rem; border: 2px solid #fff; border-radius: .35rem; color: #fff; }
.main-nav .nav-cta:hover, .main-nav .nav-cta.is-current { background: #fff; color: var(--brand-dark); }
.menu-toggle { display: none; min-width: 3rem; min-height: 3rem; padding: .45rem; color: #fff; background: transparent; border: 2px solid #fff; border-radius: .35rem; font-weight: 800; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 1.4rem; height: .13rem; background: currentColor; content: ""; }
.menu-toggle__bars { margin: auto; position: relative; }
.menu-toggle__bars::before { position: absolute; top: -.4rem; }
.menu-toggle__bars::after { position: absolute; top: .4rem; }
.breadcrumbs { padding-block: 1rem; font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; color: #78868c; margin-right: .35rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .78rem; }
.eyebrow::before { width: 2rem; height: .18rem; background: var(--brand); content: ""; }
.lead { max-width: 50rem; color: var(--ink-soft); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .55rem; padding: .65rem 1.15rem; border: 2px solid var(--brand); border-radius: .35rem; background: var(--brand); color: #fff; text-decoration: none; font-weight: 800; cursor: pointer; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button--secondary { background: transparent; color: var(--brand-dark); }
.button--secondary:hover { background: var(--brand-soft); color: var(--brand-dark); }
.button--light { background: #fff; border-color: #fff; color: var(--technical); }
.button--light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--muted { background: var(--canvas); }
.section--technical { background: var(--technical); color: #fff; }
.section--technical .eyebrow, .section--technical a:not(.button) { color: #fff; }
.section--technical h2 { color: #fff; }
.section--technical .lead { color: #eaf2f5; }
.section-heading { display: grid; grid-template-columns: minmax(0, .75fr) minmax(18rem, .55fr); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-heading p { color: var(--ink-soft); }
.section--technical .section-heading p { color: #d6e3e7; }
.hero { position: relative; overflow: hidden; background: var(--canvas); }
.hero::after { position: absolute; z-index: 0; inset: auto -8rem -9rem auto; width: 32rem; height: 32rem; border: 5rem solid rgba(166,30,36,.08); border-radius: 50%; content: ""; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; min-height: min(47rem, calc(100vh - 7.6rem)); padding-block: clamp(4rem, 8vw, 7rem); }
.hero h1 strong { color: var(--brand); font-weight: inherit; }
.hero__panel { position: relative; min-height: 28rem; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background-color: var(--technical); background-image: linear-gradient(180deg, rgba(5,35,49,.03) 0%, rgba(5,35,49,.26) 43%, rgba(5,28,40,.88) 100%), url("/assets/images/hero-smart-home-sunset-v2.jpg"); background-position: center; background-size: cover; background-repeat: no-repeat; border-radius: 0 0 4.5rem 0; color: #fff; box-shadow: var(--shadow); }
.hero__panel > * { position: relative; z-index: 1; }
.hero__panel-label { color: #b9d0d8; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.hero__panel strong { font-size: 1.65rem; line-height: 1.2; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.hero__facts li { border-top: 2px solid var(--brand); padding-top: .7rem; font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { position: relative; min-height: 100%; padding: 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .18s ease, border-color .18s ease; }
.card:hover { border-color: #aeb9bd; box-shadow: 0 .8rem 2rem rgba(21,59,74,.1); }
.card__icon { display: grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: 1.25rem; background: var(--brand-soft); border-radius: 50%; color: var(--brand-dark); font-size: 1.35rem; font-weight: 900; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { position: absolute; inset: 0; content: ""; }
.card p { color: var(--ink-soft); }
.card__link { color: var(--brand-dark); font-weight: 800; }
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.advantage { border-top: .2rem solid var(--brand); padding-top: 1rem; }
.advantage p { color: var(--ink-soft); }
.page-hero { padding-block: clamp(3rem, 7vw, 6rem); background: var(--canvas); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 100%; }
.page-hero--service { padding-block: clamp(2.5rem, 6vw, 5rem); }
.service-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(19rem, .7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.service-hero__content { min-width: 0; }
.service-hero__media { position: relative; min-height: 30rem; height: min(36rem, 64vh); margin: 0; overflow: hidden; border-radius: 0 0 4.5rem 0; background: var(--technical-light); box-shadow: var(--shadow); }
.service-hero__media::after { position: absolute; inset: 0; border: 1px solid rgba(7,60,88,.12); border-radius: inherit; content: ""; pointer-events: none; }
.service-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(17rem, .55fr); gap: clamp(2rem, 7vw, 6rem); }
.content-grid aside { align-self: start; padding: 1.5rem; background: var(--technical-light); border-radius: var(--radius); }
.prose { max-width: 48rem; }
.prose h2 { margin-top: 1.7em; }
.prose h2:first-of-type { margin-top: .1em; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .45rem; }
.checklist { display: grid; gap: .65rem; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { position: absolute; left: 0; top: .12rem; color: var(--brand); content: "✓"; font-weight: 900; }
.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { counter-increment: steps; padding: 1.3rem; border-left: .2rem solid var(--brand); background: var(--paper); }
.step::before { display: block; color: var(--brand-dark); content: "0" counter(steps); font-weight: 900; letter-spacing: .1em; }
.cta-band { background: var(--brand); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 3rem; }
.cta-band h2 { margin-bottom: .25rem; }
.cta-band p { margin: 0; }
.placeholder-photo { position: relative; min-height: 20rem; display: grid; align-content: end; padding: 1.4rem; overflow: hidden; border-radius: var(--radius); background: linear-gradient(145deg, #b9c7cc, #e6ecee); color: var(--technical); }
.placeholder-photo::before { position: absolute; inset: 15% -10% auto auto; width: 70%; height: .25rem; background: var(--brand); box-shadow: 0 1.4rem 0 var(--brand), 0 2.8rem 0 var(--brand); transform: rotate(-22deg); content: ""; opacity: .5; }
.placeholder-photo span { position: relative; z-index: 1; display: inline-block; width: fit-content; padding: .4rem .65rem; background: rgba(255,255,255,.9); font-size: .85rem; font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: minmax(17rem, .65fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 6rem); }
.contact-card { padding: 1.6rem; background: var(--technical); color: #fff; border-radius: var(--radius); }
.contact-card h2 { font-size: 2.5rem; }
.contact-card__directions-title { margin-top: 2.5rem; }
.contact-card a { color: #fff; }
form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
label, legend { font-weight: 750; }
input, select, textarea { width: 100%; min-height: 3rem; padding: .65rem .75rem; border: 1px solid #77888f; border-radius: .3rem; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 9rem; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid var(--error); }
.checkbox { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; align-items: start; }
.checkbox input { width: 1.3rem; min-height: 1.3rem; margin-top: .2rem; }
.form-hint { color: var(--ink-soft); font-size: .9rem; }
.field-error { color: var(--error); font-weight: 700; font-size: .9rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin-block: 1rem; padding: 1rem; border-left: .3rem solid; }
.alert--success { background: var(--success-bg); border-color: var(--success); color: #0c5435; }
.alert--error { background: var(--error-bg); border-color: var(--error); color: #7d1717; }
.legal-review { margin-bottom: 2rem; padding: 1rem; background: var(--warning-bg); border-left: .3rem solid #b47800; color: #5d3d00; }
.job-list { display: grid; gap: 1rem; }
.job-card { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.job-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--ink-soft); font-size: .9rem; }
.site-footer { padding-top: 4rem; background: #0d2934; color: #e7f0f2; }
.footer__grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 2.5rem; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; }
.footer__links { padding: 0; list-style: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .875rem; color: #c7d7dc; }

@media (max-width: 62rem) {
  .topbar__contact { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 1rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { width: min(100%, var(--max)); margin-inline: auto; display: grid; }
  .main-nav a { width: 100%; min-height: 3rem; color: var(--ink); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--brand); }
  .main-nav .nav-cta { margin: .5rem 0 0; border-color: var(--brand); color: var(--brand-dark); }
  .main-nav .nav-cta:hover, .main-nav .nav-cta.is-current { background: var(--brand); color: #fff; }
  .hero__grid { grid-template-columns: 1fr; min-height: auto; }
  .hero__panel { min-height: 21rem; }
  .service-hero { grid-template-columns: 1fr; }
  .service-hero__media { min-height: 24rem; height: 28rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .advantages, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 43rem) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .topbar__inner { min-height: 2.8rem; }
  .header__inner { min-height: 5.4rem; }
  .brand { width: min(9.5rem, 58vw); }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  h1 { font-size: clamp(2.25rem, 13vw, 3.5rem); }
  .hero__grid { padding-block: 3.5rem; }
  .hero__facts { grid-template-columns: 1fr; }
  .service-hero__media { min-height: 20rem; height: 22rem; border-radius: 0 0 3rem 0; }
  .section-heading, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .advantages, .steps, .form-grid, .footer__grid { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr; }
  .cta-band__inner, .footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .topbar, .site-header, .breadcrumbs, .site-footer, .button { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
