:root {
  --ink: #17191d;
  --muted: #5d6470;
  --line: #d8dde5;
  --paper: #fbfbf8;
  --white: #ffffff;
  --red: #e92236;
  --red-dark: #b81625;
  --steel: #2d4858;
  --green: #4f6f52;
  --gold: #c79a3d;
  --blue: #246782;
  --shadow: 0 24px 70px rgba(18, 24, 32, .15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 251, 248, .92);
  border-bottom: 1px solid rgba(23, 25, 29, .1);
  backdrop-filter: blur(16px);
}

.brand img { width: 220px; max-width: 42vw; display: block; }

nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-weight: 700;
  color: #2d3339;
}

nav a { padding: 10px 0; }

.lang-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #eef0f2;
  border: 1px solid rgba(23, 25, 29, .12);
  border-radius: 8px;
}

.lang-toggle button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--ink);
  color: var(--white);
}

.header-call {
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  border-radius: 6px;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px) 54px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 12, 15, .48) 0%, rgba(10, 12, 15, .28) 34%, rgba(10, 12, 15, .06) 72%, rgba(10, 12, 15, 0) 100%),
    linear-gradient(180deg, rgba(10, 12, 15, 0), rgba(10, 12, 15, .2)),
    url("assets/home-hero-DSC_2351.jpg");
  background-size: cover;
  background-position: center center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 12, 15, .38) 0%, rgba(10, 12, 15, 0) 46%);
  pointer-events: none;
}

.hero-copy {
  max-width: 820px;
  color: var(--white);
  padding-top: clamp(18px, 4vw, 44px);
  padding-bottom: 28px;
  text-shadow: 0 2px 18px rgba(0,0,0,.38);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  color: var(--red);
}

.hero .eyebrow { color: #ff4658; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-family: "Roboto Condensed", Inter, sans-serif;
  font-size: clamp(3.8rem, 10.5vw, 8.7rem);
  line-height: .86;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 4.7vw, 4.2rem);
  line-height: .98;
  margin-bottom: 18px;
}

h3 { font-size: 1.18rem; margin-bottom: 10px; }

.lede {
  max-width: 760px;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: rgba(255,255,255,.9);
}

.hero-actions, .trust-row, .quick-strip, .form-row, .map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 18px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary { background: var(--red); color: var(--white); }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.button.full { width: 100%; }

.trust-row { margin-top: 24px; }
.trust-row strong {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.quick-strip {
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.quick-strip div { min-width: 220px; }
.quick-strip span { display: block; color: rgba(255,255,255,.64); font-size: .82rem; }
.quick-strip strong { font-size: 1.04rem; }

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-intro p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
}

.section-intro .heritage-note {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 5px solid var(--red);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-top: 18px;
  padding: 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel span {
  color: rgba(255,255,255,.68);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel a {
  display: inline-flex;
  width: fit-content;
  font-size: 1.08rem;
  font-weight: 900;
  border-bottom: 2px solid var(--red);
}

.product-grid, .proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-grid article, .proof-grid article, .estimate-panel, .result-card, form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(30, 36, 42, .06);
}

.product-grid article {
  min-height: 230px;
  padding: 22px;
}

.product-grid p, .proof-grid p, .estimate-panel p, .result-card p {
  color: var(--muted);
  line-height: 1.55;
}

.swatch {
  display: block;
  width: 52px;
  height: 10px;
  margin-bottom: 34px;
  border-radius: 999px;
}

.wood { background: #9a6b3e; }
.vinyl { background: #e8e2d2; border: 1px solid #cbc2ad; }
.chain { background: #66747c; }
.aluminum { background: #2d4858; }
.access { background: #c79a3d; }
.temp { background: #4f6f52; }

.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  background: #eef1ec;
}

.estimate-panel, .result-card, form { padding: clamp(22px, 3vw, 34px); }

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 8px;
  font-size: .86rem;
  font-weight: 800;
  color: #333940;
}

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cbd2da;
  border-radius: 6px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

textarea { resize: vertical; }

.result-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.result-card span, .map-stat span { color: rgba(255,255,255,.65); font-weight: 800; text-transform: uppercase; font-size: .72rem; }
.result-card strong { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; }
.result-card p { color: rgba(255,255,255,.78); }

.map-section { background: var(--white); }

.map-tool {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d2c2f;
  box-shadow: var(--shadow);
}

.map-controls {
  align-items: end;
  padding: 18px;
  background: var(--white);
}

.map-controls label { flex: 1 1 360px; }

.map-stat {
  min-width: 150px;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--steel);
  color: var(--white);
}

.map-stat strong { display: block; font-size: 1.45rem; }

.map-status {
  margin: 0;
  padding: 12px 18px;
  background: #f7f8f5;
  border-top: 1px solid var(--line);
  color: #39414a;
  font-weight: 800;
}

.map-status.error {
  color: #8f1522;
  background: #fff4f5;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.google-map {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: #1d2c2f;
}

.map-fallback {
  position: absolute;
  inset: 24px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 26px;
  text-align: center;
  color: var(--white);
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: 8px;
}

.map-fallback strong {
  font-size: 1.45rem;
}

.map-fallback p {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(255,255,255,.78);
}

.map-fallback code {
  color: var(--white);
}

.proof {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 32px;
  background: #f5f1e8;
}

.proof-grid article {
  overflow: hidden;
}

.proof-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.proof-grid strong,
.proof-grid p {
  margin-left: 24px;
  margin-right: 24px;
}

.proof-grid strong {
  display: block;
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.proof-grid p {
  margin-bottom: 24px;
}

.estimate-form {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 36px;
  align-items: start;
}

.contact-hero {
  padding: clamp(58px, 8vw, 100px) clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.contact-hero h1 {
  max-width: 960px;
  margin: 0 0 18px;
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.contact-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  gap: 24px;
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.contact-card,
.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(30, 36, 42, .06);
}

.contact-card {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(24px, 4vw, 36px);
}

.contact-card h2,
.map-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 6px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-list a,
.contact-list strong {
  width: fit-content;
  font-size: 1.08rem;
  font-weight: 900;
}

.contact-list a {
  border-bottom: 2px solid var(--red);
}

.license-note {
  padding: 18px;
  background: #f7f8f5;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  font-weight: 900;
}

.map-card {
  overflow: hidden;
}

.map-card-content {
  padding: 24px;
}

.directions-map {
  display: block;
  width: 100%;
  min-height: 390px;
  border: 0;
}

.directions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

form { display: grid; gap: 16px; }
.form-row { gap: 16px; }
.form-row label { flex: 1 1 240px; }

.checkbox-panel {
  display: grid;
  gap: 12px;
  margin: 2px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f5;
}

.checkbox-panel legend {
  padding: 0 8px;
  font-size: .86rem;
  font-weight: 900;
  color: #333940;
}

.checkbox-panel label {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.checkbox-panel input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255,255,255,.8);
}

footer img { width: 190px; }
footer p { margin: 0; }

@media (max-width: 940px) {
  nav { display: none; }
  .header-call { margin-left: auto; }
  .hero { min-height: 820px; }
  .hero-media {
    background:
      linear-gradient(90deg, rgba(10, 12, 15, .52), rgba(10, 12, 15, .16)),
      linear-gradient(180deg, rgba(10, 12, 15, 0), rgba(10, 12, 15, .34)),
      url("assets/home-hero-DSC_2351.jpg");
    background-size: cover;
    background-position: 56% center;
  }
  .split, .estimator, .proof, .estimate-form { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .product-grid, .proof-grid, .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header { gap: 12px; padding: 12px 16px; }
  .brand img { width: 160px; }
  .header-call { padding: 10px 11px; font-size: .85rem; }
  .hero { min-height: 760px; padding-top: 72px; }
  h1 { font-size: clamp(3.4rem, 18vw, 5.8rem); }
  .product-grid, .proof-grid, .calc-grid { grid-template-columns: 1fr; }
  .quick-strip { display: grid; }
}
