/* McLendon Home Services Kiosk
 * Brand per McLendon Hardware Style Guide (April 2026):
 *   Headlines: Clarendon Bold, ALL CAPS      Subheads: Avenir Black, ALL CAPS
 *   Body: Avenir Regular, sentence case
 *   MH Blue #326295 · MH Orange #e87722 · Midnight Blue #2a3b4d · Midnight Gray #2b2b2b
 */

@font-face { font-family: "Clarendon"; src: url("../assets/fonts/clarendon-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Clarendon Text"; src: url("../assets/fonts/clarendon-text-pro.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Clarendon Text"; src: url("../assets/fonts/clarendon-text-pro-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("../assets/fonts/avenir-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("../assets/fonts/avenir-black.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --mh-blue: #326295;
  --mh-blue-med: #84a1bf;
  --mh-blue-lt: #b5c7d9;
  --mh-orange: #e87722;
  --mh-orange-dk: #a84d10;
  --mh-orange-med: #f1ad7a;
  --mh-orange-lt: #fae4d3;
  --midnight: #2a3b4d;
  --ink: #2b2b2b;
  --ink-2: #4f4f4f;
  --gray: #90a1b3;
  --gray-lt: #d7dde3;
  --gray-xlt: #eef1f4;
  --paper: #f7f7f5;
  --white: #ffffff;

  --font-head: "Clarendon", "Clarendon Text", Georgia, serif;
  --font-body: "Avenir", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --header-h: 108px;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(42, 59, 77, .12);
  --shadow-lg: 0 18px 48px rgba(42, 59, 77, .22);
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--mh-blue); }
[hidden] { display: none !important; }

.h1, h1 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; color: var(--ink); letter-spacing: .01em; line-height: 1.05; margin: 0; }
.h2, h2 { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; color: var(--midnight); line-height: 1.1; margin: 0; }
.h4, h4 { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; color: var(--mh-blue); font-size: 18px; letter-spacing: .06em; margin: 0; }
.eyebrow { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; color: var(--mh-orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 64px; padding: 0 30px;
  border-radius: 999px; border: 0;
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 18px;
  color: var(--white); background: var(--mh-blue);
  box-shadow: 0 3px 0 rgba(0,0,0,.12);
  transition: transform .08s ease, background .15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn-orange { background: var(--mh-orange); }
.btn-orange:active { background: var(--mh-orange-dk); }
.btn-ghost { background: var(--white); color: var(--mh-blue); border: 3px solid var(--mh-blue); box-shadow: none; }
.btn-dark { background: var(--midnight); }
.btn-lg { min-height: 78px; font-size: 22px; padding: 0 40px; }
.btn svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  background: var(--white) url("../assets/images/brand/texture.png") repeat-x top center;
  border-bottom: 4px solid var(--mh-orange);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-left { display: flex; align-items: center; }
.header-logo { justify-self: center; }
.header-logo img { height: 66px; width: auto; }
/* store logo has a white background: multiply drops it into the header's paper texture */
.header-logo.is-store img { height: 82px; mix-blend-mode: multiply; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.header-phone { text-align: right; line-height: 1.05; }
.header-phone .cta { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--mh-blue); }
.header-phone .num { font-family: var(--font-head); font-size: 34px; color: var(--mh-orange); white-space: nowrap; }
.back-btn { min-height: 58px; padding: 0 22px 0 16px; }

/* ---------- Screens ---------- */
.screen { padding: calc(var(--header-h) + 36px) var(--gutter) 60px; min-height: 100vh; max-width: 1920px; margin: 0 auto; }
.screen.is-hidden { display: none; }

/* ---------- Home ---------- */
.home-hero { text-align: center; margin-bottom: 36px; }
.home-hero .eyebrow { margin-bottom: 12px; }
.home-hero h1 { font-size: clamp(38px, 4vw, 64px); }
.home-hero p { font-size: 24px; color: var(--ink-2); max-width: 900px; margin: 14px auto 0; }

/* Landing: two equal-width choices. Plumbing on the left, Windows, Doors, Decks & More on the right */
.choice-split { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.tile-group { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tile-group-head { text-align: center; }
.choice-split .tile { aspect-ratio: auto; height: clamp(360px, 52vh, 620px); }
.choice-split .tile-label .name { font-size: clamp(32px, 3vw, 54px); }
.choice-split .tile-label .sub { font-size: 20px; }
.choice-split .tile-label .arrow { width: 72px; height: 72px; }
.choice-split .tile-label .arrow svg { width: 34px; height: 34px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* five categories: three over two, sized to the screen height so both rows fit (one column on phones, below) */
.tile-grid.count-5 { grid-template-columns: repeat(6, 1fr); gap: 22px; }
.tile-grid.count-5 > .tile { grid-column: span 2; aspect-ratio: auto; height: clamp(240px, 30vh, 420px); }
.tile-grid.count-5 > .tile:nth-child(n+4) { grid-column: span 3; }
/* six categories: three over three, sized the same way */
.tile-grid.count-6 { gap: 22px; }
.tile-grid.count-6 > .tile { aspect-ratio: auto; height: clamp(240px, 30vh, 420px); }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden;
  background: var(--midnight) center / cover no-repeat; box-shadow: var(--shadow);
  border: 0; padding: 0; text-align: left; color: var(--white);
  transition: transform .12s ease;
}
.tile:active { transform: scale(.985); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,59,77,0) 35%, rgba(42,59,77,.92) 100%); }
.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 26px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.tile-label .name { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(28px, 2.4vw, 42px); line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tile-label .sub { font-size: 17px; opacity: .9; margin-top: 6px; font-weight: 400; }
.tile-label .arrow { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--mh-orange); display: grid; place-items: center; }
.tile-label .arrow svg { width: 28px; height: 28px; fill: var(--white); }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.trust {
  display: flex; align-items: center; gap: 18px; background: var(--white); border-radius: 14px; padding: 20px 24px;
  border-left: 6px solid var(--mh-orange); box-shadow: var(--shadow);
}
.trust .ic { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--mh-orange-lt); display: grid; place-items: center; }
.trust .ic svg { width: 28px; height: 28px; fill: var(--mh-orange-dk); }
.trust b { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--midnight); font-size: 17px; }
.trust span { color: var(--ink-2); font-size: 17px; }

.home-foot { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 22px; color: var(--ink-2); font-size: 17px; }
.home-foot img { height: 54px; width: auto; }

/* ---------- Category ---------- */
.cat-hero {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  background: var(--midnight) center / cover no-repeat; color: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: flex-end; margin-bottom: 30px;
}
.cat-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,59,77,.94) 0%, rgba(42,59,77,.75) 45%, rgba(42,59,77,.15) 100%); }
.cat-hero-inner { position: relative; padding: 40px 48px; max-width: 900px; }
.cat-hero.compact { min-height: 150px; margin-bottom: 22px; }
.cat-hero.compact .cat-hero-inner { padding: 24px 40px; }
.cat-hero.compact h1 { font-size: clamp(26px, 2.2vw, 36px); }
.cat-hero h1 { color: var(--white); font-size: clamp(32px, 3.2vw, 52px); }
.cat-hero p { font-size: 21px; margin: 14px 0 0; opacity: .95; }

/* breadcrumb trail for the drill-down */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.crumb-back { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 14px; border-radius: 999px; border: 3px solid var(--gray-lt); background: var(--white); color: var(--midnight); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 15px; margin-right: 8px; }
.crumb-back svg { width: 22px; height: 22px; fill: currentColor; }
.crumbs .crumb { color: var(--mh-blue); text-decoration: none; padding: 8px 4px; }
.crumbs .crumb.current { color: var(--ink); }
.crumbs .sep { color: var(--gray-lt); }

.level-head { margin-bottom: 22px; }
.level-head h2 { font-family: var(--font-head); font-size: clamp(28px, 2.6vw, 40px); color: var(--ink); margin-top: 6px; }
.level-head p { margin: 10px 0 0; color: var(--ink-2); font-size: 19px; max-width: 980px; }

/* big "browse" cards: one choice per card, one level at a time */
.browse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.browse-grid.brands { grid-template-columns: repeat(2, 1fr); }
.browse-card {
  position: relative; display: flex; align-items: flex-end; min-height: 380px; border-radius: var(--radius); overflow: hidden; padding: 0; border: 0;
  background: var(--midnight) center / cover no-repeat; color: var(--white); text-align: left; box-shadow: var(--shadow); transition: transform .12s ease;
}
.browse-grid.brands .browse-card { min-height: 440px; }
.browse-card:active { transform: scale(.985); }
.browse-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,59,77,.15) 0%, rgba(42,59,77,.35) 35%, rgba(42,59,77,.8) 65%, rgba(42,59,77,.97) 100%); }
.bc-body { position: relative; z-index: 1; padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 8px; }
.bc-count { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--mh-orange-med); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.bc-title { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(28px, 2.4vw, 40px); line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.bc-desc { font-size: 17px; line-height: 1.35; opacity: .95; max-width: 520px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.bc-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 22px; border-radius: 999px; background: var(--mh-orange); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; align-self: flex-start; }
.bc-go svg { width: 20px; height: 20px; fill: currentColor; }

/* filters on the line view */
.filter-bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.filter-row .label { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--mh-blue); margin-right: 8px; min-width: 110px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 999px; border: 3px solid var(--mh-blue-lt);
  background: var(--white); color: var(--midnight); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 16px;
}
.chip.is-active { background: var(--mh-blue); border-color: var(--mh-blue); color: var(--white); }
.chip .dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.grid-empty { padding: 40px; text-align: center; color: var(--ink-2); background: var(--white); border-radius: var(--radius); font-size: 19px; }
.card-color { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--ink-2); }

.group { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 20px); }
.group-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 3px solid var(--gray-lt); padding-bottom: 12px; }
.group-head h2 { font-size: 30px; }
.group-head p { margin: 0; color: var(--ink-2); font-size: 19px; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; text-align: left; padding: 0; border: 0;
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .12s ease; color: var(--ink);
}
.card:active { transform: scale(.985); }
.card-img { aspect-ratio: 4 / 3; background: var(--gray-xlt) center / cover no-repeat; position: relative; }
.card-img.contain { background-size: contain; background-color: var(--white); margin: 12px; border-radius: 10px; }
.card-tag { position: absolute; top: 14px; left: 14px; background: var(--mh-orange); color: var(--white); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; padding: 7px 12px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--mh-blue); }
.card-name { font-family: var(--font-head); font-size: 24px; line-height: 1.1; color: var(--ink); }
.card-blurb { color: var(--ink-2); font-size: 17px; line-height: 1.35; }
.card-more { margin-top: auto; padding-top: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--mh-orange); }
.card-more::after { content: " →"; }

/* Plumbing: simpler icon tiles */
.simple-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.simple-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); }
.simple-card:active { transform: scale(.985); }
.simple-card img { width: 100%; aspect-ratio: 304 / 158; object-fit: cover; }
.simple-card .card-body { gap: 8px; }
.simple-card .card-name { font-size: 26px; }
.plumb-note { display: flex; align-items: center; gap: 18px; background: var(--mh-orange-lt); border-radius: 14px; padding: 20px 26px; margin-bottom: 30px; font-size: 19px; color: var(--ink); }
.plumb-note b { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--mh-orange-dk); }

/* ---------- Modal / Sheet ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.is-open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(42,59,77,.6); backdrop-filter: blur(2px); }
.modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1400px, calc(100vw - 80px)); max-height: calc(100vh - 80px);
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: var(--midnight); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow);
}
.modal-close svg { width: 28px; height: 28px; fill: currentColor; }
.modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }

.detail { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 560px; }
.detail-media { background: var(--gray-xlt); position: relative; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.detail-media.contain { background: #323e51; }
.detail-media.contain img { object-fit: contain; padding: 40px; }
.detail-copy { padding: 44px 48px 40px; display: flex; flex-direction: column; gap: 16px; }
.detail-copy h2 { font-family: var(--font-head); text-transform: uppercase; font-size: 38px; color: var(--ink); }
.detail-copy .lead { font-size: 21px; color: var(--ink-2); margin: 0; }
.detail-copy ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.detail-copy li { position: relative; padding-left: 34px; font-size: 19px; }
.detail-copy li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mh-orange) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 15px no-repeat; }
.detail-actions { margin-top: auto; padding-top: 20px; display: flex; gap: 16px; flex-wrap: wrap; }
.detail-actions.schedule-or-call { flex-direction: column; align-items: stretch; gap: 12px; max-width: 460px; }
.detail-actions .or { display: flex; align-items: center; gap: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); font-size: 15px; }
.detail-actions .or::before, .detail-actions .or::after { content: ""; flex: 1; height: 2px; background: var(--gray-lt); }
.detail-actions .call-now { justify-content: center; }

/* "Call us now" block (plumbing): big, blue, with a ringing phone so it reads at a glance */
.call-now { display: inline-flex; align-items: center; gap: 16px; min-height: 78px; padding: 10px 28px 10px 12px; border-radius: 999px; background: var(--mh-blue); color: var(--white); box-shadow: var(--shadow); }
.call-now .ic { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--mh-orange); display: grid; place-items: center; animation: ring 2.4s ease-in-out infinite; }
.call-now .ic svg { width: 30px; height: 30px; fill: var(--white); }
.call-now .cta { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--mh-orange-med); line-height: 1.1; }
.call-now .num { font-family: var(--font-head); font-size: 32px; line-height: 1.05; white-space: nowrap; color: var(--white); }
.quote-side .call-now { align-self: flex-start; background: var(--white); color: var(--midnight); }
.quote-side .call-now .cta { color: var(--mh-orange-dk); }
.quote-side .call-now .num { color: var(--mh-blue); font-size: 32px; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 74%, 82%, 90% { transform: rotate(-14deg); } 78%, 86%, 94% { transform: rotate(14deg); } }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; border: 3px solid transparent; background: none; width: 108px; }
.swatch img { width: 92px; height: 58px; object-fit: cover; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.swatch span { font-size: 13px; line-height: 1.15; text-align: center; color: var(--ink-2); font-weight: 400; }
.swatch.is-active { border-color: var(--mh-orange); background: var(--mh-orange-lt); }
.swatch.is-active span { color: var(--mh-orange-dk); font-weight: 800; }
.color-label { display: flex; align-items: baseline; gap: 12px; }
.color-label .h4 { font-size: 15px; }
.color-label .current { font-family: var(--font-head); font-size: 20px; color: var(--ink); }

/* ---------- Quote form ---------- */
.quote { display: grid; grid-template-columns: 420px 1fr; }
.quote-side { background: var(--mh-blue) url("../assets/images/brand/texture.png") repeat-x top center; background-blend-mode: multiply; color: var(--white); padding: 48px 40px; display: flex; flex-direction: column; gap: 18px; }
.quote-side h2 { color: var(--white); font-family: var(--font-head); font-size: 40px; }
.quote-side p { margin: 0; font-size: 19px; opacity: .95; }
.quote-side .num { font-family: var(--font-head); font-size: 36px; color: var(--mh-orange-med); }
.quote-side .about { margin-top: auto; padding: 18px; background: rgba(255,255,255,.12); border-radius: 12px; font-size: 16px; }
.quote-side .about b { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin-bottom: 6px; color: var(--mh-orange-med); }
.quote-form { padding: 44px 48px 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--mh-blue); }
.field label .req { color: var(--mh-orange); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 21px; padding: 14px 18px; border-radius: 12px; border: 3px solid var(--gray-lt); background: var(--white); color: var(--ink);
  min-height: 64px; outline: none; user-select: text;
}
.field textarea { min-height: 120px; resize: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--mh-blue); }
.field.has-error input { border-color: #c0392b; }
.field .err { color: #c0392b; font-size: 15px; min-height: 18px; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.form-actions .fine { font-size: 15px; color: var(--ink-2); }
.form-alert { margin-top: 18px; padding: 16px 20px; border-radius: 12px; background: #fdecea; color: #7f1d1d; font-size: 17px; }
.form-success { padding: 60px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.form-success .ic { width: 96px; height: 96px; border-radius: 50%; background: var(--mh-orange-lt); display: grid; place-items: center; }
.form-success .ic svg { width: 54px; height: 54px; fill: var(--mh-orange-dk); }
.form-success h2 { font-family: var(--font-head); font-size: 40px; }
.form-success p { font-size: 21px; color: var(--ink-2); max-width: 640px; margin: 0; }

/* ---------- Attract screen (idle) ---------- */
.attract { position: fixed; inset: 0; z-index: 200; display: none; background: var(--midnight); color: var(--white); overflow: hidden; }
.attract.is-open { display: block; }
.attract-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.attract-slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.4s ease, transform 9s linear; }
.attract::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,59,77,.25), rgba(42,59,77,.85)); }
.attract-copy { position: absolute; left: 0; right: 0; bottom: 12vh; z-index: 1; text-align: center; padding: 0 40px; }
.attract-copy img { height: 96px; width: auto; margin: 0 auto 26px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.attract-copy h1 { color: var(--white); font-size: clamp(40px, 5vw, 84px); text-shadow: 0 4px 18px rgba(0,0,0,.4); }
.attract-copy p { font-size: 26px; margin: 16px 0 0; opacity: .95; }
.attract-copy .touch { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 18px 36px; border-radius: 999px; background: var(--mh-orange); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 22px; animation: pulse 1.8s ease-in-out infinite; }
.attract-copy .touch svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------- Store badge ---------- */
.store-badge { position: fixed; left: 16px; bottom: 12px; z-index: 40; font-size: 13px; color: var(--gray); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Responsive (tablets / portrait kiosks) ---------- */
@media (max-width: 1500px) { .card-grid, .simple-grid { grid-template-columns: repeat(3, 1fr); } .browse-card { min-height: 320px; } }
@media (max-width: 1200px) {
  :root { --gutter: 24px; --header-h: 96px; }
  .choice-split { grid-template-columns: 1fr; row-gap: 32px; }
  .choice-split .tile { height: auto; aspect-ratio: 16 / 7; }
  .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tile-grid.count-5 > .tile { height: auto; aspect-ratio: 4 / 3.4; }
  .tile-grid.count-5 > .tile:nth-child(n+4) { aspect-ratio: 16 / 8; }
  .tile-grid.count-6 > .tile { height: auto; aspect-ratio: 4 / 3.4; }
  .card-grid, .simple-grid { grid-template-columns: repeat(2, 1fr); }
  .browse-grid, .browse-grid.brands { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .detail-media { min-height: 380px; }
  .quote { grid-template-columns: 1fr; }
  .quote-side { padding: 30px; }
  .quote-side .about { display: none; }
  .header-phone .num { font-size: 26px; }
}
@media (max-width: 820px) {
  body { font-size: 18px; }
  :root { --gutter: 16px; --header-h: 84px; }
  .header { gap: 12px; }
  .header-logo img { height: 48px; }
  .header-phone { display: none; }
  .btn { min-height: 56px; padding: 0 20px; font-size: 16px; }
  .tile-grid { grid-template-columns: 1fr; gap: 14px; }
  .tile { aspect-ratio: 16 / 8; }
  .tile-label { padding: 16px 18px 18px; }
  .tile-label .name { font-size: 30px; }
  .tile-label .sub { font-size: 15px; }
  .tile-label .arrow, .choice-split .tile-label .arrow { width: 48px; height: 48px; }
  .choice-split .tile { aspect-ratio: 4 / 3; }
  .choice-split .tile-label .name { font-size: 30px; }
  .choice-split .tile-label .sub { font-size: 15px; }
  .tile-grid.count-5 { grid-template-columns: 1fr; }
  .tile-grid.count-5 > .tile, .tile-grid.count-5 > .tile:nth-child(n+4) { grid-column: auto; aspect-ratio: 16 / 8; }
  .tile-grid.count-6 > .tile { aspect-ratio: 16 / 8; }
  .home-hero h1 { font-size: 34px; }
  .home-hero p { font-size: 19px; }
  .trust-row { grid-template-columns: 1fr; }
  .card-grid, .simple-grid { grid-template-columns: 1fr; }
  .browse-grid, .browse-grid.brands { grid-template-columns: 1fr; }
  .browse-card, .browse-grid.brands .browse-card { min-height: 240px; }
  .filter-row .label { min-width: 0; width: 100%; }
  .cat-hero-inner { padding: 26px; }
  .modal { width: calc(100vw - 24px); max-height: calc(100vh - 24px); border-radius: 18px; }
  .detail-copy, .quote-form { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Plumbing rush service ---------- */
.rush-badge {
  position: absolute; top: 22px; left: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px 10px 14px; border-radius: 999px; background: var(--mh-orange); color: var(--white);
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 17px; box-shadow: 0 2px 12px rgba(0,0,0,.3);
  animation: rush-pulse 2.4s ease-in-out infinite;
}
.rush-badge svg { width: 22px; height: 22px; fill: var(--white); }
@keyframes rush-pulse { 0%, 100% { box-shadow: 0 2px 12px rgba(0,0,0,.3), 0 0 0 0 rgba(232,119,34,.6); } 50% { box-shadow: 0 2px 12px rgba(0,0,0,.3), 0 0 0 12px rgba(232,119,34,0); } }

.rush-banner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; margin-bottom: 24px;
  padding: 28px 32px; border-radius: var(--radius); color: var(--white); box-shadow: var(--shadow);
  background: var(--midnight) url("../assets/images/brand/texture.png") repeat-x top center; background-blend-mode: multiply;
  border-left: 10px solid var(--mh-orange);
}
.rush-banner .rush-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--mh-orange); display: grid; place-items: center; }
.rush-banner .rush-ic svg { width: 46px; height: 46px; fill: var(--white); }
.rush-eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; color: var(--mh-orange-med); }
.rush-banner h2 { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(30px, 2.6vw, 44px); line-height: 1.05; margin: 4px 0 8px; color: var(--white); }
.rush-banner p { margin: 0; font-size: 20px; opacity: .92; max-width: 760px; }
.rush-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.rush-actions .btn svg, .btn-rush svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.rush-actions .btn { gap: 10px; }
.rush-actions .call-now { background: rgba(255,255,255,.1); box-shadow: none; }

.btn-rush { gap: 10px; background: var(--midnight); color: var(--white); }
.btn-rush svg { fill: var(--mh-orange); }

.rush-toggle {
  display: flex !important; flex-direction: row !important; align-items: center; gap: 14px; cursor: pointer;
  padding: 16px 20px; border-radius: 14px; border: 2px solid var(--gray-lt); background: var(--gray-xlt);
  font-weight: 800; font-size: 19px; color: var(--ink);
}
.rush-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.rush-switch { flex: none; position: relative; width: 60px; height: 34px; border-radius: 999px; background: var(--gray); transition: background .15s; }
.rush-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); transition: transform .15s; }
.rush-toggle .rush-ic { flex: none; width: 26px; height: 26px; }
.rush-toggle .rush-ic svg { width: 26px; height: 26px; fill: var(--gray); }
.rush-toggle.is-on { border-color: var(--mh-orange); background: var(--mh-orange-lt); }
.rush-toggle.is-on .rush-switch { background: var(--mh-orange); }
.rush-toggle.is-on .rush-switch::after { transform: translateX(26px); }
.rush-toggle.is-on .rush-ic svg { fill: var(--mh-orange-dk); }

@media (max-width: 1200px) {
  .rush-banner { grid-template-columns: auto 1fr; }
  .rush-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .rush-badge { top: 12px; left: 12px; padding: 7px 14px 7px 10px; font-size: 13px; }
  .rush-badge svg { width: 17px; height: 17px; }
  .rush-banner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px; border-left-width: 6px; }
  .rush-actions .btn { padding: 0 18px; font-size: 18px; }
  .rush-actions .call-now { padding-right: 18px; }
  .rush-actions .call-now .num { font-size: 26px; }
  .rush-banner .rush-ic { width: 60px; height: 60px; }
  .rush-banner .rush-ic svg { width: 32px; height: 32px; }
  .rush-banner p { font-size: 17px; }
  .rush-actions { flex-direction: column; }
  .rush-toggle { font-size: 16px; }
}
