/*
Theme Name: Choice Metal Buildings 3D Landing Page
Theme URI: https://www.choicemetalbuildings.com/
Author: Choice Metal Buildings
Description: A custom landing page for the Choice Metal Buildings 3D Building Designer.
Version: 1.0.0
Text Domain: cmb-3d-landing
*/

:root {
  --paper: #fffdf9;
  --cream: #f4f0e8;
  --ink: #1c1b1a;
  --muted: #68625c;
  --red: #cc1f20;
  --red-dark: #a91517;
  --taupe: #c8bfb2;
  --line: #d8d1c8;
  --display: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, select, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

::selection { background: var(--red); color: white; }

.site-header {
  position: relative;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 12px clamp(24px, 4vw, 68px);
  background: rgba(255, 253, 249, .94);
  border-bottom: 1px solid var(--line);
}

.logo-slot {
  width: 230px;
  height: 52px;
  display: block;
}

.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-logo--header { object-position: left center; }

.site-header nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 52px); }
.site-header nav a { font-size: 14px; font-weight: 650; }
.site-header nav a:hover { color: var(--red); }

.phone-link {
  justify-self: end;
  padding-left: 22px;
  border-left: 2px solid var(--red);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.phone-link span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(380px, .84fr) minmax(580px, 1.16fr);
  gap: clamp(42px, 5.5vw, 92px);
  align-items: center;
  padding: clamp(64px, 7vw, 108px) clamp(24px, 7vw, 112px) clamp(54px, 5vw, 82px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(204, 31, 32, .06) 1px, transparent 1px) 30px 0 / 82px 100%,
    var(--paper);
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy::before {
  content: "01";
  position: absolute;
  left: -68px;
  top: 2px;
  padding-bottom: 9px;
  color: var(--red);
  font: 600 12px "Courier New", monospace;
  border-bottom: 1px solid var(--red);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  color: var(--red);
  font: 800 12px/1 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.eyebrow i { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.eyebrow--light { color: #ff5a57; }

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

h1 {
  max-width: 660px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(62px, 6.4vw, 104px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -.048em;
  line-height: .86;
  text-transform: uppercase;
}
h1 span { display: block; color: var(--red); }

.hero-lede {
  max-width: 560px;
  margin-bottom: 28px;
  color: #3e3a36;
  font-size: clamp(17px, 1.28vw, 20px);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 27px;
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .055em;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(204,31,32,.35); outline-offset: 4px; }
.button-primary { color: white; background: var(--red); border-color: var(--red); box-shadow: 0 9px 22px rgba(204,31,32,.17); }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: var(--ink); color: white; }
.button span { font-size: 18px; line-height: 1; }

.no-pressure { margin: 18px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.no-pressure span { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 6px; border: 1px solid var(--taupe); border-radius: 50%; color: var(--red); }

.hero-visual { position: relative; min-width: 0; padding: 0 0 52px 38px; }
.asset-frame { position: relative; min-height: 380px; aspect-ratio: 1045 / 605; overflow: hidden; border: 1px solid #6e6861; background: #ddd5ca; }
.asset-frame::before, .asset-frame::after, .asset-frame__corners::before, .asset-frame__corners::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 1px;
  background: #6e6861;
}
.asset-frame::before { top: -1px; left: -17px; }
.asset-frame::after { top: -1px; right: -17px; }
.asset-frame__corners::before { bottom: -1px; left: -17px; }
.asset-frame__corners::after { bottom: -1px; right: -17px; }
.asset-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(28,27,26,.12));
  pointer-events: none;
}
.asset-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }

.designer-shot {
  position: relative;
  z-index: 3;
  width: calc(100% - 10px);
  aspect-ratio: 1914 / 741;
  margin: -126px 0 0 40px;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid #aaa198;
  border-radius: 5px;
  box-shadow: 0 18px 40px rgba(39,33,28,.22);
}
.designer-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.mini-designer {
  position: relative;
  z-index: 3;
  width: calc(100% - 10px);
  min-height: 250px;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  margin: -126px 0 0 40px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #aaa198;
  border-radius: 5px;
  box-shadow: 0 18px 40px rgba(39,33,28,.18);
}
.mini-designer__visual { min-height: 250px; border-right: 1px solid var(--line); }
.mini-designer__controls { padding: 14px 15px; background: rgba(255,255,255,.72); }

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.control-row:last-child { border-bottom: 0; }
.control-row label, .control-row legend, .control-row > span {
  padding: 0;
  color: #49443f;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.control-row--top select { width: 125px; padding: 6px 7px; background: white; border: 1px solid var(--line); color: var(--ink); font-size: 10px; }
.type-pills { display: flex; gap: 3px; }
.type-pills button { padding: 5px 7px; background: transparent; border: 1px solid var(--line); font-size: 9px; cursor: pointer; }
.type-pills button.is-active { color: white; background: var(--red); border-color: var(--red); }
.swatches { display: flex; gap: 5px; }
.swatches button { width: 21px; height: 21px; padding: 0; border: 2px solid white; outline: 1px solid var(--line); cursor: pointer; }
.swatches button.is-active { outline: 2px solid var(--red); outline-offset: 1px; }
.door-control > div { display: flex; align-items: center; gap: 8px; }
.door-control button { width: 24px; height: 24px; padding: 0; background: white; border: 1px solid var(--line); cursor: pointer; }
.door-control strong { min-width: 14px; text-align: center; font-size: 11px; }

.preview-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 0 40px;
  color: #777067;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.preview-caption span { color: var(--red); font-weight: 800; }

.building-preview {
  --wall-color: #e9e7df;
  --roof-color: #444641;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f4f0e9 0 62%, #ded7cc 62% 63%, #f8f5ef 63%);
}
.building-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(67,61,55,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(67,61,55,.13) 1px, transparent 1px);
  background-size: 28px 28px;
}
.building-front { position: absolute; z-index: 3; left: 24%; bottom: 46px; width: 48%; height: 112px; background: var(--wall-color); border: 1px solid #55514c; }
.building-front::after { content: ""; position: absolute; inset: 0; opacity: .25; background: repeating-linear-gradient(90deg, transparent 0 9px, #333 10px 11px); }
.building-gable { position: absolute; z-index: 2; left: -1px; top: -45px; width: calc(100% + 2px); height: 46px; clip-path: polygon(50% 0,100% 100%,0 100%); background: var(--wall-color); border-bottom: 1px solid #55514c; }
.building-roof { position: absolute; z-index: 4; left: 19%; bottom: 156px; width: 58%; height: 61px; background: var(--roof-color); clip-path: polygon(50% 0,100% 77%,94% 100%,50% 24%,6% 100%,0 77%); filter: drop-shadow(0 1px 0 #3d3935); }
.building-roof::after { content: ""; position: absolute; inset: 0; opacity: .2; background: repeating-linear-gradient(72deg, transparent 0 8px, #fff 9px 10px); }
.building-side { position: absolute; z-index: 2; right: 10%; bottom: 48px; width: 20%; height: 103px; transform: skewY(-23deg); transform-origin: left bottom; background: color-mix(in srgb, var(--wall-color), #000 10%); border: 1px solid #55514c; }
.building-shadow { position: absolute; z-index: 1; left: 16%; right: 7%; bottom: 32px; height: 25px; border-radius: 50%; background: rgba(55,46,37,.15); filter: blur(8px); }
.door-row { position: absolute; z-index: 3; inset: auto 10px 6px; display: flex; justify-content: center; gap: 6px; }
.garage-door { width: 44px; height: 65px; display: grid; align-content: space-evenly; padding: 3px; background: #e5e1db; border: 2px solid #47423e; }
.garage-door i { display: block; height: 1px; background: #aaa29a; }
.walk-door { position: absolute; z-index: 4; right: 5px; bottom: 6px; width: 17px; height: 42px; background: #dfdbd5; border: 1px solid #4f4a46; }
.ground-line { position: absolute; z-index: 0; left: 7%; right: 7%; bottom: 44px; height: 1px; background: #8e867d; }
.dimension { position: absolute; z-index: 8; color: #696159; font: 700 9px var(--font-geist-mono), monospace; }
.dimension::after { content: ""; position: absolute; background: #8a8178; }
.dimension--width { left: 29%; bottom: 24px; }
.dimension--width::after { left: -21px; bottom: 5px; width: 75px; height: 1px; }
.dimension--height { right: 8%; bottom: 105px; }
.dimension--height::after { right: 9px; top: -28px; width: 1px; height: 55px; }
.building-preview--barn .building-front { left: 30%; width: 37%; }
.building-preview--barn .building-roof { left: 25%; width: 47%; }
.lean-to { position: absolute; z-index: 3; bottom: 46px; width: 26%; height: 74px; background: var(--wall-color); border: 1px solid #55514c; }
.lean-to::before { content: ""; position: absolute; left: -4%; top: -28px; width: 108%; height: 32px; background: var(--roof-color); clip-path: polygon(0 70%, 100% 0, 100% 28%, 0 100%); }
.lean-to--left { left: 8%; }
.lean-to--right { right: 6%; transform: scaleX(-1); }
.building-preview--carport .building-front { background: transparent; border-bottom: 0; border-left-width: 3px; border-right-width: 3px; }
.building-preview--carport .building-front::after, .building-preview--carport .door-row { display: none; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 clamp(24px, 6vw, 100px);
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip > div { min-height: 112px; display: flex; align-items: center; justify-content: center; gap: 13px; border-right: 1px solid var(--line); }
.trust-strip > div:first-child { border-left: 1px solid var(--line); }
.trust-strip b { color: var(--red); font: 900 34px/1 var(--display); }
.trust-strip span { color: #403b36; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; line-height: 1.35; }

.process-section { padding: clamp(80px, 9vw, 144px) clamp(24px, 8vw, 130px); }
.section-heading { max-width: 760px; margin-bottom: 64px; }
.section-heading h2, .choice-copy h2, .faq-block h2 {
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .94;
  text-transform: uppercase;
}
.section-heading > p:last-child { max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.process-grid article { position: relative; min-height: 370px; padding: 34px clamp(20px, 3vw, 44px) 42px; border-right: 1px solid var(--line); }
.process-grid article:first-child { border-left: 1px solid var(--line); }
.step-number { display: block; color: var(--red); font: 700 12px "Courier New", monospace; }
.step-visual { height: 105px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 21px 0 16px; color: var(--red); }
.step-visual--size span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--taupe); font: 800 13px "Courier New", monospace; }
.step-visual--size i { width: 24px; height: 1px; background: var(--taupe); }
.step-visual--swatches i { width: 38px; height: 56px; border: 1px solid #6c655f; transform: skewY(-10deg); }
.step-visual--swatches i:nth-child(1) { background: #8f2927; }
.step-visual--swatches i:nth-child(2) { background: #444641; }
.step-visual--swatches i:nth-child(3) { background: #c7b79b; }
.step-visual--swatches i:nth-child(4) { background: #e9e7df; }
.step-visual--quote { flex-direction: column; gap: 1px; border: 1px solid var(--red); width: 104px; margin-left: auto; margin-right: auto; height: 84px; }
.step-visual--quote b { font: 900 22px var(--display); }
.step-visual--quote span { font: 700 9px "Courier New", monospace; letter-spacing: .16em; }
.process-grid h3 { margin-bottom: 13px; font-family: var(--display); font-size: 27px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.process-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.text-link { width: fit-content; display: flex; gap: 16px; margin-top: 35px; padding-bottom: 6px; border-bottom: 1px solid var(--red); color: var(--red); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }

.choice-section { padding: 0 clamp(24px, 4.5vw, 72px) clamp(80px, 8vw, 128px); }
.choice-panel { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 660px; background: var(--ink); color: white; }
.choice-copy { padding: clamp(56px, 7vw, 108px); border-right: 1px solid #45413e; }
.choice-copy h2 { max-width: 690px; color: white; }
.choice-copy > p:not(.eyebrow) { max-width: 590px; color: #c9c3bc; font-size: 16px; line-height: 1.75; }
.choice-copy ul { list-style: none; margin: 42px 0 0; padding: 0; border-top: 1px solid #45413e; }
.choice-copy li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid #45413e; color: #ebe7e1; font-size: 14px; }
.choice-copy li span { color: #ff5a57; font: 700 10px "Courier New", monospace; }
.quote-card { align-self: center; margin: clamp(30px, 5vw, 82px); padding: clamp(32px, 4vw, 58px); background: var(--cream); color: var(--ink); }
.quote-card > p:first-child { margin-bottom: 16px; color: var(--red); font: 800 11px "Courier New", monospace; text-transform: uppercase; letter-spacing: .19em; }
.quote-card h3 { margin-bottom: 18px; font-family: var(--display); font-size: clamp(38px, 4vw, 58px); line-height: .94; text-transform: uppercase; }
.quote-card > p:nth-of-type(2) { color: var(--muted); font-size: 14px; line-height: 1.7; }
.quote-card__actions { display: grid; gap: 22px; margin-top: 30px; }
.quote-phone { padding-left: 18px; border-left: 2px solid var(--red); font-size: 24px; font-weight: 850; }
.quote-phone small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.quote-form-link { display: block; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--red); font-size: 12px; font-weight: 750; }

.faq-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; padding: clamp(80px, 9vw, 138px) clamp(0px, 4vw, 62px) 0; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list article { border-bottom: 1px solid var(--line); }
.faq-list button { width: 100%; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; background: transparent; border: 0; text-align: left; cursor: pointer; font-weight: 750; }
.faq-list button i { color: var(--red); font-style: normal; font-size: 22px; font-weight: 400; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-answer p { min-height: 0; overflow: hidden; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.faq-list article.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-list article.is-open .faq-answer p { padding: 0 44px 24px 0; }

footer {
  min-height: 132px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 28px clamp(24px, 4.5vw, 72px);
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.footer-logo { width: 230px; height: 82px; display: block; }
.brand-logo--footer { object-position: left center; }
footer > p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
footer > div:last-child { display: flex; justify-content: flex-end; gap: 20px; font-size: 11px; font-weight: 750; }

.mobile-cta { display: none; }

.reveal { animation: rise-in .62s ease both; }
.reveal-two { animation-delay: .14s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .hero { grid-template-columns: .82fr 1.18fr; gap: 42px; padding-left: 50px; padding-right: 50px; }
  .hero-copy::before { display: none; }
  .mini-designer { margin-left: 14px; width: calc(100% - 2px); }
  .designer-shot { margin-left: 14px; width: calc(100% - 2px); }
  .hero-visual { padding-left: 0; }
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .site-header nav { gap: 24px; }
  .choice-copy { padding: 64px; }
  .quote-card { margin: 46px; }
}

@media (max-width: 940px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 760px; width: 100%; margin: 12px auto 0; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .trust-strip > div:nth-child(4), .trust-strip > div:nth-child(5) { grid-column: span 1; }
  .trust-strip > div { border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 280px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .choice-panel, .faq-block { grid-template-columns: 1fr; }
  .choice-copy { border-right: 0; border-bottom: 1px solid #45413e; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-logo, footer > div:last-child { justify-content: center; }
}

@media (max-width: 620px) {
  body { padding-bottom: 68px; }
  .site-header { min-height: 66px; padding: 10px 18px; }
  .logo-slot { width: 132px; height: 46px; }
  .phone-link { padding-left: 14px; font-size: 14px; }
  .hero { padding: 52px 18px 48px; background-size: 52px 100%; }
  h1 { font-size: clamp(52px, 17vw, 74px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; padding: 0 18px; font-size: 12px; }
  .asset-frame { min-height: 0; aspect-ratio: 1.45 / 1; }
  .asset-photo { object-position: 48% center; }
  .mini-designer { width: calc(100% - 12px); grid-template-columns: 1fr; margin: -65px 0 0 12px; }
  .designer-shot { width: calc(100% - 12px); margin: -58px 0 0 12px; }
  .mini-designer__visual { min-height: 235px; border-right: 0; border-bottom: 1px solid var(--line); }
  .building-preview { min-height: 235px; }
  .preview-caption { margin-left: 12px; flex-direction: column; gap: 4px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); padding: 0 18px; }
  .trust-strip > div { min-height: 96px; justify-content: flex-start; padding-left: 16px; }
  .trust-strip > div:last-child { grid-column: 1 / -1; justify-content: center; }
  .trust-strip b { font-size: 29px; }
  .process-section { padding: 76px 18px; }
  .section-heading { margin-bottom: 44px; }
  .section-heading h2, .choice-copy h2, .faq-block h2 { font-size: 45px; }
  .process-grid article { padding: 28px 24px 34px; }
  .choice-section { padding: 0 0 74px; }
  .choice-copy { padding: 62px 24px; }
  .quote-card { margin: 24px; padding: 32px 24px; }
  .faq-block { padding: 78px 18px 0; gap: 34px; }
  footer { padding: 34px 18px; }
  footer > div:last-child { flex-direction: column; gap: 9px; }
  .mobile-cta {
    position: fixed;
    z-index: 30;
    right: 12px;
    bottom: 10px;
    left: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--red);
    color: white;
    box-shadow: 0 8px 28px rgba(28,27,26,.3);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
}

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