/* ============================================================
   Yoder Storage Barns — site-wide design system (v17)
   Fonts: Fraunces (display) + Inter (body), loaded per-page.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* palette */
  --ink: #1c241e;
  --green: #17301f;          /* deep forest */
  --green-2: #214531;
  --green-deep: #0e2015;
  --green-soft: #eaf1ea;
  --gold: #b9873a;
  --gold-bright: #d9a955;
  --gold-soft: #f3e7d3;
  --red: #8a2c2c;
  --paper: #f7f5ef;
  --line: #e3ddcf;
  --muted: #6e675a;
  --white: #ffffff;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(23, 48, 31, 0.06), 0 2px 8px rgba(23, 48, 31, 0.06);
  --shadow-md: 0 2px 6px rgba(23, 48, 31, 0.07), 0 12px 32px rgba(23, 48, 31, 0.12);
  --shadow-lg: 0 6px 16px rgba(14, 32, 21, 0.16), 0 24px 60px rgba(14, 32, 21, 0.22);

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
::selection { background: var(--gold); color: #fff; }

h1, h2, h3, .page-hero h1, .section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 22px; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer; border: none; line-height: 1.2;
}
.btn svg { flex-shrink: 0; }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #fff; box-shadow: 0 4px 14px rgba(185, 135, 58, 0.4); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(185, 135, 58, 0.5); }
.btn-glass { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.45); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

/* ============ Header / Nav ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header .header-inner {
  max-width: 1220px; margin: 0 auto; padding: 0 22px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.site-header.solid, .site-header.scrolled {
  background: rgba(14, 32, 21, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 8px 30px rgba(14,32,21,0.35);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.brand .crown { width: 30px; height: 30px; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .01em; line-height: 1.05; }
.brand-name em { font-style: normal; display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14.5px; font-weight: 550;
  padding: 9px 13px; border-radius: 999px; transition: background .18s, color .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.14); box-shadow: inset 0 -2px 0 var(--gold-bright); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.phone-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: transform .18s ease, box-shadow .18s ease; white-space: nowrap;
}
.phone-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(185,135,58,.5); }
.burger {
  display: none; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px; width: 44px; height: 42px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99;
  background: linear-gradient(170deg, var(--green-deep), var(--green));
  padding: calc(var(--header-h) + 26px) 30px 40px;
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a.mlink {
  color: #fff; text-decoration: none; font-family: var(--serif); font-size: 30px; font-weight: 500;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu a.mlink small { font-family: var(--sans); font-size: 12px; color: var(--gold-bright); letter-spacing: .18em; text-transform: uppercase; display: block; }
.mobile-menu .mm-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
body.menu-open { overflow: hidden; }

/* ============ HOME: hero ============ */
.hero-full { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; background: var(--green-deep); }
.hero-full picture, .hero-full .hero-img { position: absolute; inset: 0; }
.hero-full img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(10, 24, 15, 0.84) 0%, rgba(10, 24, 15, 0.62) 34%, rgba(10, 24, 15, 0.18) 62%, rgba(10,24,15,0.05) 100%),
              linear-gradient(0deg, rgba(10, 24, 15, 0.55) 0%, rgba(10,24,15,0) 30%);
}
.hero-content { position: relative; z-index: 2; max-width: 1220px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 22px 110px; width: 100%; }
.hero-content .inner { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-bright); font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--gold-bright); }
.hero-content h1 {
  color: #fff; font-size: clamp(42px, 6.2vw, 74px); font-weight: 550;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-content h1 .accent { color: var(--gold-bright); font-style: italic; }
.hero-sub { color: rgba(255,255,255,0.88); font-size: clamp(16px, 1.6vw, 19px); margin-top: 18px; max-width: 480px; line-height: 1.65; }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* trust bar overlapping hero */
.trustbar { position: relative; z-index: 5; max-width: 1120px; margin: -68px auto 0; padding: 0 22px; }
.trustbar .tb-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden; border: 1px solid rgba(227, 221, 207, 0.6);
}
.tb-item { padding: 24px 22px; display: flex; gap: 14px; align-items: flex-start; }
.tb-item + .tb-item { border-left: 1px solid var(--line); }
.tb-item svg { flex-shrink: 0; margin-top: 2px; }
.tb-item strong { display: block; font-size: 15px; font-weight: 650; color: var(--green); line-height: 1.3; }
.tb-item span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; margin-top: 3px; }

/* ============ sections ============ */
.site-section { padding: 84px 0; }
.site-section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; padding: 0 22px; }
.section-head .kicker, .kicker {
  display: inline-block; color: var(--gold); font-size: 12.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--green); }
.section-head p { font-size: 16.5px; color: var(--muted); margin-top: 14px; line-height: 1.65; }

/* ============ HOME: 3 steps ============ */
.step-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.step-cards a {
  display: block; height: 100%; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 30px; text-decoration: none;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.step-cards a:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.step-cards .num {
  font-family: var(--serif); font-size: 64px; font-weight: 500; line-height: 1;
  color: var(--gold-soft); position: absolute; top: 18px; right: 24px;
  transition: color .22s ease;
}
.step-cards a:hover .num { color: var(--gold-bright); }
.step-cards .icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--green-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.step-cards h3 { font-size: 23px; color: var(--green); margin-bottom: 8px; }
.step-cards p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.step-cards .go { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 650; font-size: 14.5px; color: var(--gold); }
.step-cards a:hover .go { text-decoration: underline; text-underline-offset: 3px; }

/* ============ HOME: style grid ============ */
.stylegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.stylegrid a {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; background: var(--green-deep); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease; aspect-ratio: 4 / 3.1;
}
.stylegrid a:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stylegrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.stylegrid a:hover img { transform: scale(1.06); }
.stylegrid .veil { position: absolute; inset: 0; background: linear-gradient(5deg, rgba(10,24,15,0.82) 0%, rgba(10,24,15,0.25) 42%, rgba(10,24,15,0.02) 65%); }
.stylegrid .label { position: absolute; left: 22px; right: 22px; bottom: 18px; color: #fff; }
.stylegrid .label h3 { font-size: 23px; font-weight: 550; }
.stylegrid .label p { font-size: 13.5px; color: var(--gold-bright); font-weight: 650; margin-top: 3px; letter-spacing: .02em; }
.stylegrid .arrow {
  position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.stylegrid a:hover .arrow { background: var(--gold); border-color: var(--gold); transform: translateX(3px); }
.stylegrid a.wide { grid-column: 1 / -1; aspect-ratio: auto; min-height: 240px; }
.stylegrid a.wide .label h3 { font-size: 28px; }
.stylegrid .tag {
  position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.92); color: var(--green);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}

/* ============ HOME: family band ============ */
.family-band { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.family-photo { position: relative; }
.family-photo img { border-radius: var(--radius); box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.family-photo::after {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.family-copy h2 { font-size: clamp(30px, 3.4vw, 42px); color: var(--green); margin: 12px 0 18px; }
.family-copy > p { font-size: 16.5px; color: var(--ink); line-height: 1.75; margin-bottom: 14px; }
.family-copy .sig { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15.5px; }
.family-points { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; }
.family-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.family-points svg { flex-shrink: 0; margin-top: 3px; }

/* ============ designer ============ */
.designer-frame { max-width: 1120px; margin: 0 auto; height: 680px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-md); }
.designer-frame iframe { width: 100%; height: 100%; border: none; }
.designer-fallback { text-align: center; margin-top: 20px; }
.designer-fallback a { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 12px 24px; border-radius: 999px; transition: background .2s, transform .2s; }
.designer-fallback a:hover { background: var(--green-2); transform: translateY(-2px); }

/* ============ HOME: gallery strip ============ */
.strip-wrap { position: relative; }
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px 22px 22px; scroll-snap-type: x mandatory; max-width: 1220px; margin: 0 auto; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.strip img { height: 320px; width: auto; border-radius: var(--radius-sm); scroll-snap-align: start; flex-shrink: 0; box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.strip img:hover { transform: translateY(-4px); }
.strip .strip-more {
  flex-shrink: 0; width: 240px; height: 320px; border-radius: var(--radius-sm); scroll-snap-align: start;
  background: var(--green); color: #fff; text-decoration: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; font-family: var(--serif); font-size: 21px;
  transition: background .2s ease;
}
.strip .strip-more:hover { background: var(--green-2); }

/* ============ HOME: big CTA ============ */
.bigcta { background: radial-gradient(1000px 500px at 78% -10%, rgba(217, 169, 85, 0.28), transparent 60%), linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); padding: 96px 22px; text-align: center; }
.bigcta h2 { color: #fff; font-size: clamp(34px, 4.4vw, 56px); max-width: 700px; margin: 0 auto; text-wrap: balance; }
.bigcta p { color: rgba(255,255,255,0.82); font-size: 17px; margin: 18px auto 34px; max-width: 520px; }
.bigcta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ subpage hero ============ */
.page-hero {
  background: radial-gradient(900px 400px at 82% 120%, rgba(217,169,85,0.22), transparent 60%), linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff; text-align: center; padding: calc(var(--header-h) + 54px) 22px 60px;
}
.page-hero h1 { font-size: clamp(32px, 4.2vw, 50px); text-wrap: balance; max-width: 820px; margin: 0 auto; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.82); margin: 14px auto 0; max-width: 640px; line-height: 1.65; }

/* ============ prose / generic ============ */
.prose { max-width: 720px; margin: 0 auto; padding: 0 22px; font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 28px; color: var(--green); margin: 34px 0 12px; }
.prose h3 { font-size: 20px; color: var(--green); margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 12px 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose .highlight { background: var(--green-soft); border-left: 3px solid var(--gold); border-radius: 10px; padding: 14px 18px; font-size: 15px; color: var(--green); margin: 14px 0; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 860px; margin: 0 auto 34px; padding: 0 22px; }
.cat-nav a {
  font-size: 13.5px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--green); text-decoration: none; font-weight: 600;
  transition: all .18s ease; box-shadow: var(--shadow-sm);
}
.cat-nav a:hover { background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-2px); }

.style-category { margin: 0 auto 56px; max-width: 1120px; padding: 0 22px; }
.style-category h2 { font-size: 30px; color: var(--green); margin-bottom: 20px; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.style-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.style-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.style-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.style-card > img { width: 100%; height: 190px; object-fit: contain; padding: 10px; background: #ffffff; border-bottom: 1px solid var(--line); }
.style-card .body { padding: 20px 22px 22px; }
.style-card h3 { font-size: 20px; color: var(--green); margin-bottom: 6px; }
.style-card .desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }

.price-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13.5px; }
.price-table th { background: var(--green); color: #fff; padding: 8px 12px; text-align: left; font-weight: 600; }
.price-table th:first-child { border-radius: 8px 0 0 0; }
.price-table th:last-child { border-radius: 0 8px 0 0; }
.price-table td { padding: 7px 12px; border-bottom: 1px solid var(--line); }
.price-table tr:nth-child(even) td { background: var(--paper); }
.price-note { font-size: 12px; color: var(--gold); font-weight: 650; margin-top: 10px; }
.card-disclaimer { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--gold); }
.faq-item summary { cursor: pointer; list-style: none; font-size: 16px; font-weight: 650; color: var(--green); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 19px; color: var(--gold); flex-shrink: 0; width: 30px; height: 30px;
  border: 1.5px solid var(--gold); border-radius: 999px; display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .2s ease, color .2s ease; font-family: var(--sans); font-weight: 500;
}
.faq-item[open] summary::after { content: "\2212"; background: var(--gold); color: #fff; }
.faq-item .ans { padding: 0 22px 20px; font-size: 15px; line-height: 1.7; }
.faq-item .ans h3 { font-size: 16px; color: var(--green); margin: 12px 0 6px; }
.faq-item .ans ul { margin: 8px 0 8px 20px; }
.faq-item .ans li { margin-bottom: 5px; }
.faq-item .ans .highlight { background: var(--green-soft); border-left: 3px solid var(--gold); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; color: var(--green); margin: 10px 0; }

/* ============ misc shared ============ */
.cta-bar { max-width: 760px; margin: 40px auto 0; background: linear-gradient(160deg, var(--green), var(--green-deep)); border-radius: var(--radius); padding: 30px 26px; text-align: center; box-shadow: var(--shadow-md); }
.cta-bar p { color: #fff; font-size: 16px; margin-bottom: 16px; font-family: var(--serif); }
.cta-bar a { display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.4); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; padding: 12px 24px; border-radius: 999px; margin: 4px; transition: background .2s ease, transform .2s ease; }
.cta-bar a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.cta-bar a.gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: transparent; }

.contact-card { max-width: 600px; margin: 0 auto; background: linear-gradient(160deg, var(--green), var(--green-deep)); border-radius: var(--radius); padding: 40px 30px; text-align: center; color: #fff; box-shadow: var(--shadow-md); }
.contact-card h2 { font-size: 28px; }
.contact-card p { font-size: 15px; color: rgba(255,255,255,0.85); margin-top: 10px; line-height: 1.65; }
.contact-card a.email-btn { display: inline-block; margin: 18px 5px 0; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,0.3); transition: transform .18s ease; }
.contact-card a.email-btn:hover { transform: translateY(-2px); }

.area-grid { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 760px; margin: 20px auto 0; padding: 0 22px; }
.area-grid span { font-size: 13.5px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; color: var(--green); font-weight: 600; box-shadow: var(--shadow-sm); }

.breadcrumb { font-size: 12.5px; color: var(--muted); padding: 14px 22px 0; max-width: 1120px; margin: 0 auto; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

/* ============ footer ============ */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.75); font-size: 14px; }
.footer-grid { max-width: 1120px; margin: 0 auto; padding: 64px 22px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; }
.footer-grid h4 { font-family: var(--sans); color: var(--gold-bright); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.footer-brand .brand-name { font-size: 22px; }
.footer-brand p { margin-top: 14px; line-height: 1.7; max-width: 330px; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color .15s ease; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-contact { display: grid; gap: 12px; align-content: start; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 9px; }
.footer-contact a:hover { color: var(--gold-bright); }
.footer-contact .small { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom .fb-inner { max-width: 1120px; margin: 0 auto; padding: 20px 22px 26px; font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ============ reveal on scroll ============ */
/* Fail-open design: content is ALWAYS visible by default. The hidden state
   only applies when app.js confirms animations can run (html.js-anim),
   and app.js also force-reveals everything after a short timeout. */
html.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js-anim .reveal.visible { opacity: 1; transform: none; }
html.js-anim .stylegrid a.reveal, html.js-anim .step-cards a { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, opacity .7s ease; }
html.js-anim .reveal.d1 { transition-delay: .08s; } html.js-anim .reveal.d2 { transition-delay: .16s; } html.js-anim .reveal.d3 { transition-delay: .24s; }
html.js-anim .reveal.visible.d1, html.js-anim .reveal.visible.d2, html.js-anim .reveal.visible.d3 { transition-delay: 0.08s; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .hero-full img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ responsive ============ */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .step-cards { grid-template-columns: 1fr; max-width: 620px; }
  .stylegrid { grid-template-columns: repeat(2, 1fr); }
  .family-band { grid-template-columns: 1fr; gap: 44px; }
  .family-photo { max-width: 520px; }
  .trustbar .tb-card { grid-template-columns: repeat(2, 1fr); }
  .tb-item:nth-child(3) { border-left: none; }
  .tb-item:nth-child(1), .tb-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-section { padding: 60px 0; }
  .phone-btn span { display: none; }
  .phone-btn { padding: 11px 13px; }
  .hero-full { min-height: 88vh; }
  .hero-content { padding-bottom: 120px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .trustbar { margin-top: -84px; }
  .trustbar .tb-card { grid-template-columns: 1fr 1fr; }
  .tb-item { padding: 16px 14px; flex-direction: column; gap: 8px; }
  .tb-item + .tb-item { border-left: none; }
  .tb-item:nth-child(odd) { border-left: none; }
  .tb-item:nth-child(1), .tb-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============ quote form ============ */
.quote-form { max-width: 620px; margin: 0 auto; padding: 30px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.quote-form label { display: block; font-size: 13.5px; font-weight: 650; color: var(--green); margin-bottom: 16px; }
.quote-form input { display: block; width: 100%; margin-top: 6px; padding: 13px 15px; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; }
.quote-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,169,85,0.25); background: #fff; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qf-hide { display: none; }
.qf-submit { width: 100%; justify-content: center; margin-top: 4px; }
.qf-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
@media (max-width: 560px) { .qf-row { grid-template-columns: 1fr; gap: 0; } }

/* ============ quote form v2: split layout ============ */
.quote-wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.quote-pitch h2 { font-size: clamp(30px, 3.4vw, 42px); color: var(--green); margin: 10px 0 14px; }
.qp-lead { font-size: 16.5px; color: var(--muted); line-height: 1.7; max-width: 400px; }
.qp-points { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; }
.qp-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.qp-points svg { flex-shrink: 0; margin-top: 2px; }
.qp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .quote-wrap { grid-template-columns: 1fr; gap: 34px; }
  .quote-pitch { text-align: center; }
  .qp-lead { margin: 0 auto; }
  .qp-points { max-width: 360px; margin-left: auto; margin-right: auto; text-align: left; }
  .qp-actions { justify-content: center; }
}

/* ============ header email button ============ */
.hdr-mail {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 650; font-size: 14px;
  padding: 9px 16px; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 999px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.hdr-mail:hover { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: transparent; transform: translateY(-2px); }
@media (max-width: 1150px) { .hdr-mail span { display: none; } .hdr-mail { padding: 10px 12px; } }
@media (max-width: 1020px) { .hdr-mail { display: none; } }

/* ============ contact choice popup ============ */
.contact-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.contact-modal[hidden] { display: none; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(14, 32, 21, 0.55); backdrop-filter: blur(3px); animation: cmFade .25s ease; }
.cm-card {
  position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-width: 430px; width: 100%; padding: 30px 28px 26px; animation: cmPop .3s cubic-bezier(.2,.9,.3,1.2);
}
.cm-card h3 { font-size: 26px; color: var(--green); margin: 6px 0 8px; }
.cm-sub { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.cm-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 999px;
  border: none; background: var(--paper); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
.cm-close:hover { background: var(--green-soft); color: var(--green); }
.cm-options { display: grid; gap: 10px; }
.cm-options a {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cm-options a:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cm-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-txt b { display: block; font-size: 15.5px; color: var(--green); font-weight: 650; line-height: 1.25; }
.cm-txt small { font-size: 12.5px; color: var(--muted); }
.cm-options a.cm-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: transparent; }
.cm-options a.cm-gold .cm-ic { background: rgba(255,255,255,0.2); }
.cm-options a.cm-gold svg path { stroke: #fff; }
.cm-options a.cm-gold .cm-txt b { color: #fff; }
.cm-options a.cm-gold .cm-txt small { color: rgba(255,255,255,0.85); }
.cm-options a.cm-gold:hover { box-shadow: 0 8px 22px rgba(185,135,58,0.45); }
@keyframes cmFade { from { opacity: 0; } }
@keyframes cmPop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
body.cm-open { overflow: hidden; }
@media (max-width: 560px) {
  .contact-modal { padding: 0; align-items: flex-end; }
  .cm-card { max-width: none; border-radius: 22px 22px 0 0; animation: cmSheet .3s ease; }
  @keyframes cmSheet { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .cm-backdrop, .cm-card { animation: none; } }

/* ============================================================
   BUILDING OPTIONS POPUP  (Gallery + Styles & Prices + detail pages)
   ============================================================ */
.bm-card { max-width: 520px; }
.bm-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-right: 30px; }
.bm-thumb {
  width: 76px; height: 62px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; flex-shrink: 0;
}
.bm-kicker { margin-bottom: 2px; }
.bm-head h3.bm-name { font-size: 23px; color: var(--green); margin: 2px 0 2px; line-height: 1.15; }
.bm-tag { font-size: 13px; color: var(--muted); margin: 0; }
.bm-options a { padding: 12px 14px; }
.bm-options .cm-ic { width: 38px; height: 38px; border-radius: 10px; color: var(--gold); }
.bm-options a.cm-gold .cm-ic { color: #fff; }
.bm-options a.cm-gold svg path,
.bm-options a.cm-gold svg rect,
.bm-options a.cm-gold svg circle { stroke: #fff; }
.bm-options a.cm-gold svg circle[fill], .bm-options a.cm-gold svg path[fill] { fill: #fff; }

.bm-reach { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.bm-reach > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 9px; text-align: center; }
.bm-reach-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.bm-reach-row a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 6px; border: 1.5px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--green); font-weight: 650; font-size: 13.5px;
  background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.bm-reach-row a:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---- "tap for options" affordances ---- */
.tap-hint {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,58,42,0.82); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .3px; padding: 4px 10px; border-radius: 10px; pointer-events: none;
}
.card-photo { position: relative; display: block; width: 100%; border: none; padding: 0; background: none; cursor: pointer; }
.card-photo img { width: 100%; height: 190px; object-fit: contain; padding: 10px; background: #fff; border-bottom: 1px solid var(--line); display: block; }
.card-photo .tap-hint { position: absolute; left: 10px; bottom: 16px; }
.card-photo:hover .tap-hint { background: var(--gold); }
.style-card .card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.style-card .card-actions a, .style-card .card-actions button {
  font: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
  padding: 9px 15px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--line); background: #fff; color: var(--green);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.style-card .card-actions a:hover, .style-card .card-actions button:hover {
  background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-2px);
}
.style-card .card-actions .ca-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #fff; border-color: transparent; }
.style-card .card-actions .ca-gold:hover { background: var(--gold); border-color: transparent; }

/* lightbox "options" button */
#lb-options {
  margin-top: 14px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #fff;
  border: none; padding: 12px 24px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35); display: inline-flex; align-items: center; gap: 8px;
}
#lb-options:hover { transform: translateY(-2px); }
#lb-img { cursor: pointer; }
#lb-tap { color: #cbe0d2; font-size: 12.5px; margin-top: 8px; }

/* ============================================================
   BUILDING DETAIL PAGES
   ============================================================ */
.bd-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: start; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.bd-shot { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; box-shadow: var(--shadow-sm); }
.bd-shot img { width: 100%; border-radius: var(--radius-sm); display: block; }
.bd-shot .bd-cap { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.bd-lead { font-size: 17px; line-height: 1.75; color: var(--ink); margin-bottom: 16px; }
.bd-who { background: var(--green-soft); border-left: 3px solid var(--gold); border-radius: 10px; padding: 15px 18px; font-size: 15px; line-height: 1.65; color: var(--green); margin-bottom: 22px; }
.bd-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.bd-price b { font-family: var(--serif); font-size: 40px; color: var(--green); line-height: 1; }
.bd-price span { font-size: 13.5px; color: var(--muted); }
.bd-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-bottom: 6px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 4px; }
.spec-table th { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; color: var(--green); font-weight: 700; white-space: nowrap; width: 33%; border-bottom: 1px solid var(--line); }
.spec-table td { padding: 12px 0; color: var(--ink); line-height: 1.6; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.check-list { list-style: none; display: grid; gap: 11px; margin: 6px 0 0; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; line-height: 1.6; }
.check-list li::before {
  content: ""; flex-shrink: 0; margin-top: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17.5 19 7' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 21px; color: var(--green); margin-bottom: 14px; }
.panel p { font-size: 15px; line-height: 1.7; color: var(--ink); }
.panel + .panel { margin-top: 22px; }

.bd-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.bd-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s; display: block; }
.bd-photos img:hover { transform: translateY(-3px); }
.bd-nophoto { text-align: center; color: var(--muted); font-size: 15px; padding: 0 22px; }

.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.rel-grid a { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.rel-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rel-grid img { width: 100%; height: 130px; object-fit: contain; background: #fff; padding: 8px; display: block; }
.rel-grid b { display: block; padding: 11px 13px 4px; font-size: 14.5px; color: var(--green); }
.rel-grid small { display: block; padding: 0 13px 13px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .bd-top { grid-template-columns: 1fr; gap: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .bm-head h3.bm-name { font-size: 20px; }
  .bm-thumb { width: 62px; height: 52px; }
  .panel { padding: 22px 20px; }
  .bd-price b { font-size: 34px; }
}

/* anchor links from the popup shouldn't land under the fixed header */
.style-card { scroll-margin-top: 96px; }
.style-category { scroll-margin-top: 84px; }

/* popup must never push wider than a phone screen */
.bm-modal .cm-card { min-width: 0; max-height: 92vh; overflow-y: auto; }
.bm-card, .bm-head, .bm-head > div, .bm-options a, .bm-options .cm-txt,
.bm-reach-row a, .bm-reach-row a span { min-width: 0; }
.bm-options .cm-txt b, .bm-options .cm-txt small { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .bm-card { max-width: none; }
  .bm-options a { padding: 11px 12px; gap: 11px; }
  .bm-options .cm-txt small { font-size: 12px; }
  /* leave room for the caption + options button under the photo */
  #lb-img { max-height: 54vh; }
  #lb-caption { font-size: 14px; margin-top: 9px; }
  #lb-prev, #lb-next { padding: 10px 13px; font-size: 24px; }
  #lb-options { font-size: 13.5px; padding: 11px 18px; margin-top: 11px; }
  #lb-tap { font-size: 11.5px; margin-top: 6px; }
}

/* the building popup must sit ABOVE the gallery lightbox */
.bm-modal { z-index: 1100; }
/* grid items must be allowed to shrink, or a wide photo blows the column out */
.bd-top > *, .two-col > * { min-width: 0; }
.bd-shot img, .rel-grid img, .bd-photos img { max-width: 100%; height: auto; }
.bd-shot img { aspect-ratio: 4/3; object-fit: contain; background: #fff; }
.rel-grid img { height: 130px; object-fit: contain; }
.bd-photos img { aspect-ratio: 4/3; object-fit: cover; height: auto; }
.spec-table, .price-table { table-layout: fixed; }
.spec-table th { white-space: normal; }

/* ---- phone layout rules that were lost when styles.css got truncated ---- */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 22px 32px; }
  .footer-brand p { max-width: none; }
  .quote-wrap { grid-template-columns: 1fr; gap: 30px; }
  .qf-row { grid-template-columns: 1fr; }
  .style-cards { grid-template-columns: 1fr; }
  .stylegrid { grid-template-columns: 1fr; }
  .designer-frame { height: 540px; }
  .strip img { height: 220px; }
  .section-head h2 { font-size: 27px; }
  .style-category h2 { font-size: 25px; }
  .bd-actions .btn, .bigcta .cta-row .btn { width: 100%; justify-content: center; }
}
