:root {
  --paper: #FBFAF7;
  --ink: #2B241D;
  --body: #4A423A;
  --silver: #8B867D;
  --red: #C8102E;
  --tan: #EDE8DE;
  --line: #DDD6C9;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 112.5%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.05rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, h3 { font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif; font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0 0 16px; max-width: 62ch; color: var(--body); }
a { color: var(--red); }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 0;
}
.nav .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.nav .logo img { height: 44px; width: auto; }
.nav .logo span { font-family: Georgia, serif; font-size: 1.15rem; letter-spacing: .01em; }
.container.nav { position: relative; }
.navlinks { display: flex; gap: 26px; align-items: center; }
.nav a.link { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a.link:hover { color: var(--red); }
.nav a.phone { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.nav a.phone:hover { color: var(--red); }
.nav a.portal {
  background: #B82028; color: #fff; text-decoration: none;
  font-size: .88rem; font-weight: 600; padding: 9px 18px; white-space: nowrap;
  border-radius: var(--radius-sm);
}
.nav a.portal:hover { background: #981828; }
.nav-toggle { display: none; }
.nav-burger { display: none; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px; }
@media (max-width: 900px) {
  .nav .logo span { display: none; }
  .navlinks {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 24px;
  }
  .nav-toggle:checked ~ .navlinks { display: flex; }
  .nav-burger { display: block; }
}

/* Hero */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero .container {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 18px; }
.hero .sub { font-size: 1.25rem; }
.hero img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.eyebrow { color: var(--red); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.cta {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-size: .95rem; font-weight: 600; padding: 12px 24px; margin: 10px 12px 0 0;
  border-radius: var(--radius-sm);
}
.cta.ghost { background: transparent; color: var(--red); border: 1px solid var(--red); }
@media (max-width: 820px) { .hero .container { grid-template-columns: 1fr; } }

/* Sections */
section { padding: 52px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(2rem, 3.5vw, 2.9rem); margin-bottom: 16px; }

/* Three doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.door { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
section.alt .door { background: var(--paper); }
.door h3 { font-size: 1.3rem; margin-bottom: 12px; }
.door p { font-size: .96rem; flex: 1; }
.door a { font-weight: 600; text-decoration: none; font-size: .92rem; }
.door a::after { content: " →"; }

/* Brand strip */
.brands { text-align: center; }
.brands .logos { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; margin: 28px 0 20px; }
.brands .logos img { height: 44px; width: auto; filter: grayscale(1); opacity: .75; }
.brands .names { color: var(--silver); letter-spacing: .04em; font-size: .95rem; max-width: none; }

/* About teaser */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.about-grid img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Text left, image right — mirror of the default about layout */
.about-grid--rev { grid-template-columns: 1fr 1.15fr; align-items: start; }
.about-grid--rev img { margin-top: 10px; }
@media (max-width: 820px) { .about-grid, .about-grid--rev { grid-template-columns: 1fr; } }

/* Big section panels (landing page) */
.panels { display: flex; flex-direction: column; gap: 20px; }
.panel {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.panel .body { padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.panel .kicker { color: var(--red); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.panel--red .kicker { color: #FFD9DE; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.panel h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 12px; }
.panel p { font-size: 1.15rem; }
.panel .media { position: relative; min-height: 240px; }
.panel .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Panel color variants — each business gets its own ground */
.panel--red { background: var(--red); border-color: var(--red); }
.panel--red .kicker { color: #FFD9DE; }
.panel--red h2, .panel--red p { color: #fff; }
.panel--red .cta { background: #fff; color: var(--red); }
.panel--dark { background: var(--ink); border-color: var(--ink); }
.panel--dark .kicker { color: #D9B48F; }
.panel--dark h2 { color: #fff; }
.panel--dark p { color: #D8D2C8; }
.panel--dark .cta { background: var(--red); color: #fff; }
.panel--tan { background: var(--tan); border-color: var(--tan); }
.panel--tan .kicker { color: var(--red); }
.panel--tan h2 { color: var(--ink); }
.panel--tan p { color: var(--body); }
.panel--tan .cta { background: var(--red); color: #fff; }
.panel { transition: transform .15s ease, box-shadow .15s ease; }
.panel:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(43,36,29,.14); }
@media (prefers-reduced-motion: reduce) { .panel { transition: none; } .panel:hover { transform: none; box-shadow: none; } }
.panel:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.panel:nth-child(even) .body { order: 2; }
.panel:nth-child(even) .media { order: 1; }
@media (max-width: 820px) {
  .panel, .panel:nth-child(even) { grid-template-columns: 1fr; }
  .panel:nth-child(even) .body { order: 1; }
  .panel:nth-child(even) .media { order: 2; }
  .panel .media { min-height: 200px; }
}

/* Footer */
footer { background: var(--ink); color: #C9C2B8; padding: 48px 0; font-size: .9rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; align-items: start; }
footer .cols .brandcol { align-self: stretch; display: flex; align-items: center; justify-content: center; }
@media (max-width: 820px) { footer .cols .brandcol { justify-content: flex-start; } }
footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
footer a { color: #C9C2B8; text-decoration: none; display: block; margin-bottom: 8px; }
footer a:hover { color: #fff; }
footer .fineprint { margin-top: 36px; padding-top: 18px; border-top: 1px solid #4A423A; color: #8B867D; font-size: .8rem; }
.todo { background: #FFF3CD; border: 1px dashed #B8860B; border-radius: var(--radius-sm); color: #6B5900; font-size: .85rem; padding: 8px 12px; margin: 8px 0; }
@media (max-width: 820px) { footer .cols { grid-template-columns: 1fr; } }

/* Brand logo frame: fixed box, logo scales inside, never distorts or overflows */
.door img.brandlogo {
  width: 100%; height: 64px;
  object-fit: contain; object-position: left center;
  margin-bottom: 14px;
}

/* Full-screen video hero */
.vhero { position: relative; height: calc(100vh - 106px); min-height: 540px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.vhero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.vhero video.on { opacity: 1; }
.vhero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(22,13,8,.42), rgba(22,13,8,.58)); }
.vhero-content { position: relative; color: #fff; }
.vhero-content h1 { font-size: clamp(3rem, 7.5vw, 6rem); color: #fff; margin-bottom: 26px; text-shadow: 0 2px 28px rgba(0,0,0,.45); }
.vhero-eyebrow { letter-spacing: .2em; font-weight: 700; font-size: .95rem; text-transform: uppercase; color: #FFD9DE; margin-bottom: 20px; }
.vhero-sub { font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: #F5EFE6; max-width: none; line-height: 1.5; }
.vhero-scroll { display: inline-block; margin-top: 36px; color: #fff; font-size: 2.1rem; text-decoration: none; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(9px); } }

/* Brand ticker */
.ticker { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; }
.ticker-track { display: flex; gap: 76px; align-items: center; width: max-content; animation: tickerscroll 32s linear infinite; }
.ticker-track img { height: 42px; width: auto; filter: grayscale(1); opacity: .7; }
@keyframes tickerscroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .vhero-scroll { animation: none; } }

/* Clickable segment cards */
a.panel { color: inherit; text-decoration: none; cursor: pointer; }
a.panel .cta::after { content: ""; }
.wwd-title { text-align: center; margin-bottom: 34px; }
.wwd { padding-top: 56px; }

/* Footer membership badges */
.memberships { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 40px; padding-top: 30px; border-top: 1px solid #4A423A; }
.member-label { color: #8B867D; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.member-logos { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.memberships img { width: 176px; height: 150px; object-fit: contain; background: #fff; padding: 12px 14px; border-radius: var(--radius-sm); }
.memberships img.tallmark { padding: 4px 8px; }
footer .fineprint { border-top: none; padding-top: 0; }

.door img.brandlogo--tall { height: 96px; }

/* Product cutouts float on the page instead of sitting in a box */
.hero img.product-float {
  border: none; border-radius: 0; background: transparent; aspect-ratio: auto;
  object-fit: contain; max-height: 440px; width: auto; max-width: 100%;
  justify-self: center;
  filter: drop-shadow(0 22px 34px rgba(43, 36, 29, .22));
}

/* Rounded form fields + submit */
input[type="text"], input[type="email"], input[type="tel"], select, textarea, form button.cta {
  border-radius: var(--radius-sm);
}

/* On-page certification band */
.certs { text-align: center; }
.certs p { max-width: 62ch; margin-left: auto; margin-right: auto; }
.cert-logos { display: flex; gap: 52px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cert-logos img { height: 130px; width: auto; }
@media (max-width: 620px) { .cert-logos { gap: 30px; } .cert-logos img { height: 96px; } }

/* Denver banner on About — full-bleed strip, cropped to a letterbox */
.skyline { width: 100%; overflow: hidden; }
.skyline img { width: 100%; height: 340px; object-fit: cover; object-position: center 45%; display: block; }
@media (max-width: 820px) { .skyline img { height: 220px; } }
