/* Thankful Homes — marketing site styles
   Aesthetic: earth tones — dark maroon base, gold accents, sand/cream neutrals. */

:root {
  /* Earth-tone palette: dark maroon base, gold accents, sand/cream neutrals */
  --maroon: #4A1C1C;
  --maroon-deep: #341313;
  --maroon-mid: #5C1F24;
  --sand-soft: #EFE6D6;
  --gold: #C9A24A;
  --gold-bright: #D4AF37;
  --gold-soft: #F3E6C4;
  --gold-text: #7C5A12;      /* gold-toned text that passes AA on sand */
  --olive: #5F6B33;
  --terracotta: #A84B2A;
  --taupe: #5E4B3C;
  --taupe-light: #6B5544;
  --border: #E2D4BA;
  --bg: #F4EDE1;
  --bg-alt: #EFE6D6;
  --card: #FFFBF4;
  --text: #3B2A22;
  --white: #ffffff;
  --success: #2d6a4f;
  --warn-bg: #FBF1D9;
  --warn-border: #C9A24A;
  --danger-bg: #F8E9E4;
  --danger-border: #C98A7A;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(52, 19, 19, 0.08);
  --shadow-lg: 0 12px 40px rgba(52, 19, 19, 0.16);
  --max: 1120px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-text); }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--maroon);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--taupe); }
.lead { font-size: 1.2rem; color: var(--taupe); max-width: 40rem; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(74, 28, 28, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--bg);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--gold-bright); }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon-mid) 55%, var(--gold) 100%);
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  color: rgba(244, 237, 225, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}
.nav a:hover,
.nav a.active {
  color: var(--gold-bright);
  background: rgba(201, 162, 74, 0.14);
}
.nav .nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright) !important;
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
}
.nav .nav-cta:hover { background: var(--gold); color: var(--maroon-deep) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 1px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-align: center;
}
.btn-primary {
  background: var(--maroon);
  color: white;
}
.btn-primary:hover { background: var(--gold); color: var(--maroon-deep); border-color: var(--gold); }
.btn-secondary {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}
.btn-secondary:hover {
  background: var(--maroon);
  color: white;
}
.btn-copper {
  background: var(--gold);
  color: var(--maroon-deep);
  border-color: var(--gold);
}
.btn-copper:hover { background: var(--gold-bright); color: var(--maroon-deep); border-color: var(--gold-bright); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: white; color: var(--maroon); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background: linear-gradient(145deg, var(--maroon-deep) 0%, var(--maroon) 42%, var(--maroon-mid) 100%);
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(201, 162, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,0.06), transparent 50%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.02) 40px,
      rgba(255,255,255,0.02) 41px
    );
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.hero h1 { color: white; margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 34rem; }
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.12) 0%, transparent 50%),
    linear-gradient(45deg, #5C1F24 0%, #4A1C1C 50%, #2a1410 100%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual .panel {
  position: absolute;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}
.hero-visual .panel-1 { width: 42%; height: 55%; left: 12%; top: 18%; }
.hero-visual .panel-2 { width: 28%; height: 40%; right: 14%; top: 28%; background: rgba(201,162,74,0.25); }
.hero-visual .panel-3 { width: 55%; height: 18%; left: 18%; bottom: 14%; }
.hero-visual .label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.page-hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(135deg, var(--sand-soft) 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--gold);
}
.page-hero .eyebrow { color: var(--gold-text); }
.page-hero p { max-width: 38rem; }

/* —— Sections —— */
section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-navy {
  background: var(--maroon);
  color: white;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}
.section-navy h2, .section-navy h3 { color: white; }
.section-navy p { color: rgba(255,255,255,0.8); }
.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.section-head.centered {
  text-align: center;
  margin-inline: auto;
}

/* —— Cards / doors —— */
.doors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.door {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.door:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.door-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
}
.door h3 { margin-bottom: 0.6rem; }
.door p { flex: 1; font-size: 0.98rem; }
.door-link {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--maroon);
  font-size: 0.95rem;
}
.door-link::after { content: " →"; }
.door:hover .door-link { color: var(--gold-text); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-text);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.feature.navy-icon .feature-icon {
  background: var(--sand-soft);
  color: var(--maroon);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.media-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(160deg, var(--sand-soft), var(--bg-alt)),
    linear-gradient(45deg, #E9DCC4, #D9C3A0);
  border: 1px solid var(--border);
  position: relative;
  display: grid;
  place-items: center;
}
.media-block.interior {
  background:
    linear-gradient(180deg, rgba(74,28,28,0.05), rgba(74,28,28,0.15)),
    linear-gradient(135deg, #f0ebe3 0%, #d4c4b0 50%, #a89078 100%);
}
.media-block.studio {
  background:
    linear-gradient(160deg, #F3E6C4 0%, #E2D4BA 40%, #A84B2A 140%);
}
.media-block.cube {
  background:
    linear-gradient(145deg, #341313 0%, #5C1F24 40%, #C9A24A 120%);
}
.media-block .media-label {
  text-align: center;
  padding: 1.5rem;
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.95rem;
}
.media-block.cube .media-label { color: rgba(255,255,255,0.85); }
.media-block .geo {
  position: absolute;
  inset: 12%;
  border: 2px dashed rgba(74,28,28,0.15);
  border-radius: 8px;
}
.media-block.cube .geo { border-color: rgba(255,255,255,0.2); }

.checklist { margin: 1.25rem 0; }
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--taupe);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 2px var(--bg), 0 0 0 1px var(--gold);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
}
.stat span { font-size: 0.88rem; color: rgba(255,255,255,0.7); }

/* —— Disclaimers —— */
.disclaimer {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.disclaimer.strong {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}
.disclaimer h4 {
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}
.disclaimer p, .disclaimer li {
  color: var(--taupe);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
.disclaimer ul { margin: 0.5rem 0 0 1.1rem; list-style: disc; }
.disclaimer li { margin-bottom: 0.35rem; }

.legal-footer-note {
  font-size: 0.82rem;
  color: var(--taupe-light);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* —— Tables / specs —— */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  background: var(--gold-soft);
  color: var(--maroon);
  font-weight: 600;
  width: 38%;
}
.spec-table td { color: var(--taupe); }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.pill {
  background: var(--gold-soft);
  color: var(--maroon);
  border: 1px solid rgba(201,162,74,0.6);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* —— Contact —— */
.contact-card {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 32rem;
}
.contact-card a.email {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0.5rem 0 1rem;
}
.contact-meta { color: var(--taupe-light); font-size: 0.92rem; }

form.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-row { display: grid; gap: 0.35rem; }
.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--maroon);
}
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--maroon-mid);
  outline-offset: 1px;
  background: white;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--taupe-light); }

/* —— CTA band —— */
.cta-band {
  padding: 3.5rem 0;
  background: linear-gradient(120deg, var(--maroon-deep), var(--maroon-mid));
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  text-align: center;
}
.cta-band h2 { color: white; margin-bottom: 0.75rem; }
.cta-band p {
  color: rgba(255,255,255,0.8);
  max-width: 32rem;
  margin-inline: auto  ;
  margin-bottom: 1.5rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--maroon-deep);
  border-top: 3px solid var(--gold);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: white;
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer ul li { margin-bottom: 0.45rem; }
.site-footer p { color: rgba(244, 237, 225, 0.78); }
.footer-brand { color: white; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(201,162,74,0.45);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(244,237,225,0.72);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .split.reverse,
  .doors,
  .feature-grid,
  .footer-grid,
  .stats {
    grid-template-columns: 1fr;
  }
  .split.reverse { direction: ltr; }
  .hero-visual { max-width: 420px; }
  .doors { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--maroon);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 1rem; }
  .nav .nav-cta { margin: 0.5rem 0 0; text-align: center; }
  .header-inner { position: relative; }
  section { padding: 3.25rem 0; }
}

@media (min-width: 640px) and (max-width: 900px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* —— Stronger hero —— */
.hero {
  padding: 5rem 0 5.5rem;
}
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.hero-kicker .pill {
  background: rgba(52,19,19,0.55);
  color: #F8EBC8;
  border: 1px solid var(--gold);
}
.hero h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.55rem);
  max-width: 14ch;
}
.hero .hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 36rem;
  color: rgba(255,255,255,0.88);
}
.hero-visual {
  min-height: 280px;
}
.hero-visual .panel-1 {
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero-visual .panel-2 {
  border-color: rgba(224,122,66,0.5);
}
.hero-visual .label {
  background: rgba(52,19,19,0.6);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  backdrop-filter: blur(6px);
}

/* —— Clearer four-door cards —— */
.doors {
  gap: 1.35rem;
}
.door {
  position: relative;
  padding: 1.85rem 1.75rem 1.65rem;
  border-left: 4px solid var(--gold);
  overflow: hidden;
}
.door::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at top right, var(--gold-soft), transparent 70%);
  pointer-events: none;
}
.door:nth-child(2) { border-left-color: var(--maroon-mid); }
.door:nth-child(3) { border-left-color: var(--terracotta); }
.door:nth-child(4) { border-left-color: var(--olive); }
.door-num {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-soft);
  color: var(--gold-text);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  width: fit-content;
}
.door:nth-child(2) .door-num { background: var(--sand-soft); color: var(--maroon); }
.door:nth-child(3) .door-num { background: #F5E3D8; color: #8E3D20; }
.door:nth-child(4) .door-num { background: #E7EAD6; color: #4E5829; }
.door h3 { font-size: 1.4rem; }
.door-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(201,162,74,0.55);
  margin-top: 1.15rem;
  width: 100%;
}
.door:hover {
  border-color: var(--gold-bright);
  border-left-width: 4px;
}

/* —— Mobile polish —— */
@media (max-width: 768px) {
  .hero { padding: 3.25rem 0 3.75rem; }
  .hero h1 { max-width: none; }
  .btn-row .btn { width: 100%; }
  .door { padding: 1.5rem; }
  .contact-card { max-width: none; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .nav a { font-size: 1rem; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  .cta-band .btn { width: 100%; }
}

/* —— Photography —— */
.photo-frame {
  position: relative;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-soft);
  box-shadow: var(--shadow);
  padding: 0;
}
.photo-frame::after {
  /* thin inner gold hairline for a framed look */
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.photo-frame picture,
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-frame img { object-fit: cover; object-position: center; }
.photo-frame.ratio-43 { aspect-ratio: 4 / 3; }
.photo-frame.ratio-32 { aspect-ratio: 3 / 2; }
.photo-frame.ratio-169 { aspect-ratio: 16 / 9; }
.photo-frame.ratio-45 { aspect-ratio: 4 / 5; }
.photo-frame figcaption,
.photo-caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  right: auto;
  z-index: 1;
  background: rgba(52, 19, 19, 0.78);
  color: #F8EBC8;
  border: 1px solid rgba(212, 175, 55, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

/* Hero with photo background + maroon overlay */
.hero.hero-photo { background: var(--maroon-deep); }
.hero.hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 0;
}
.hero.hero-photo::before {
  z-index: 0;
  background:
    linear-gradient(100deg, rgba(52, 19, 19, 0.94) 0%, rgba(74, 28, 28, 0.86) 45%, rgba(74, 28, 28, 0.55) 100%),
    linear-gradient(0deg, rgba(52, 19, 19, 0.55) 0%, transparent 40%);
}
.hero.hero-photo .hero-visual {
  background: var(--maroon-deep);
  border: 1px solid var(--gold);
  padding: 0;
}
.hero.hero-photo .hero-visual::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.hero-visual picture, .hero-visual img { width: 100%; height: 100%; display: block; }
.hero-visual img { object-fit: cover; }

/* Door cards with photo headers */
.door.has-photo { padding-top: 0; }
.door-photo {
  margin: 0 -1.75rem 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--gold);
}
.door-photo picture, .door-photo img { width: 100%; height: 100%; display: block; }
.door-photo img { object-fit: cover; transition: transform 0.5s ease; }
.door:hover .door-photo img { transform: scale(1.04); }
.door.has-photo .door-num { margin-top: 0; }
.door.has-photo h3 { margin-top: 0; }

/* Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.gallery .photo-frame { aspect-ratio: 4 / 3; }
.gallery .photo-frame.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery.two { grid-template-columns: repeat(2, 1fr); }
.gallery.four { grid-template-columns: repeat(4, 1fr); }

.gold-rule {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border: 0;
  border-radius: 2px;
  margin: 0 0 1.25rem;
}
.section-head.centered .gold-rule { margin-inline: auto; }

.lifestyle-band {
  background: var(--maroon);
  color: #F8EBC8;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}
.lifestyle-band h2, .lifestyle-band h3 { color: #FFF8EA; }
.lifestyle-band p { color: rgba(248, 235, 200, 0.9); }
.lifestyle-band .eyebrow { color: var(--gold-bright); }

@media (max-width: 900px) {
  .gallery, .gallery.four { grid-template-columns: 1fr 1fr; }
  .gallery .photo-frame.wide { grid-column: span 2; grid-row: span 2; }
  .hero.hero-photo::before {
    background: linear-gradient(180deg, rgba(52, 19, 19, 0.9) 0%, rgba(74, 28, 28, 0.82) 100%);
  }
}
@media (max-width: 560px) {
  .gallery, .gallery.two, .gallery.four { grid-template-columns: 1fr; }
  .gallery .photo-frame.wide { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .door-photo { margin: 0 -1.5rem 1rem; }
}
.door.has-photo::before { display: none; }

/* —— Thankful Homes brand: header emblem + wordmark (assets from the approved no-pencil logo) —— */
.logo { gap: 0.7rem; }
.logo-badge {
  width: 48px; height: 48px; border-radius: 10px;
  background: #FFFBF2; border: 1.5px solid var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.logo-badge img { width: 44px; height: 44px; }
.logo-word {
  font-family: var(--font-display); font-weight: 600; font-size: 1.32rem;
  letter-spacing: 0.005em; line-height: 1; color: #FFF8EC; white-space: nowrap;
}
.logo:hover .logo-word { color: var(--gold-bright); }
@media (max-width: 380px) {
  .logo-badge { width: 42px; height: 42px; }
  .logo-badge img { width: 38px; height: 38px; }
  .logo-word { font-size: 1.15rem; }
}
.footer-logo {
  display: inline-block; background: #FFFBF2; border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 0.85rem 1.1rem; margin-bottom: 1rem;
}
.footer-logo img { width: 200px; height: auto; display: block; }
.dba-note { font-size: 0.95rem; opacity: 0.85; margin-top: -0.25rem; }

/* —— Five-door layout: 2 × 2 grid + full-width featured 5th card (Thankful Community) —— */
.door.door-feature { border-left-color: var(--gold-bright); }
.door-feature .door-body { display: flex; flex-direction: column; flex: 1; }
@media (min-width: 640px) {
  .doors .door-feature { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  .door.door-feature {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
  }
  .door-feature .door-photo {
    flex: 0 0 55%;
    margin: 0;
    aspect-ratio: 16 / 9;
    border-bottom: 0;
    border-right: 1px solid var(--gold);
  }
  .door-feature .door-body {
    padding: 2rem 2rem 1.75rem;
    justify-content: center;
  }
  .door-feature .door-body p { flex: 0 0 auto; }
  .door-feature h3 { font-size: 1.6rem; }
}

/* —— Community page photo hero —— */
.hero.community-hero { padding: 6.5rem 0 6rem; }
.hero.community-hero .hero-bg { object-position: center 45%; }
.hero.community-hero h1 { max-width: 18ch; }
.hero.community-hero .hero-lead { max-width: 38rem; }
.hero.community-hero .photo-note {
  margin-top: 1.25rem; font-size: 0.82rem; color: rgba(248, 235, 200, 0.8);
}
.coming-soon {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-text);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .hero.community-hero { padding: 4rem 0 4rem; }
}

/* —— 8-link nav: switch to the menu toggle below 1000px so links never overflow —— */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--maroon);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 1rem; }
  .nav .nav-cta { margin: 0.5rem 0 0; text-align: center; }
  .header-inner { position: relative; }
}
@media (min-width: 1001px) and (max-width: 1140px) {
  .nav a { padding: 0.45rem 0.5rem; font-size: 0.88rem; }
}

/* Community hero: keep the maroon overlay above the photo for readable text */
.hero.community-hero .hero-bg { z-index: 0; }
.hero.community-hero::before { z-index: 1; }
.hero.community-hero .container { z-index: 2; }
.hero.community-hero::before {
  background:
    linear-gradient(100deg, rgba(52, 19, 19, 0.92) 0%, rgba(74, 28, 28, 0.72) 42%, rgba(74, 28, 28, 0.15) 78%, rgba(74, 28, 28, 0.05) 100%),
    linear-gradient(0deg, rgba(52, 19, 19, 0.45) 0%, transparent 35%);
}
@media (max-width: 900px) {
  .hero.community-hero::before {
    background: linear-gradient(180deg, rgba(52, 19, 19, 0.82) 0%, rgba(74, 28, 28, 0.62) 60%, rgba(52, 19, 19, 0.75) 100%);
  }
}

/* —— Highway Model Centers: Why Thankful, AI guide, concept video —— */
.hero.model-hero .hero-bg { object-position: center 40%; }
.hero.model-hero h1 { max-width: 16ch; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.why-card h3 { margin-bottom: 0.6rem; }
.why-card p { font-size: 0.98rem; }
.why-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
}
.why-fine { font-size: 0.86rem !important; color: var(--taupe-light); margin-top: auto; }
.why-card.why-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--maroon);
  border-color: var(--gold);
}
.why-feature .photo-frame { border-radius: 0; border: 0; height: 100%; aspect-ratio: auto; min-height: 320px; }
.why-feature .why-body { padding: 2rem 2.1rem; }
.why-feature h3 { color: #fff; font-size: 1.65rem; }
.why-feature p { color: rgba(255,255,255,0.85); }
.why-feature .why-num { color: var(--gold-bright); }
.why-feature .checklist li { color: rgba(255,255,255,0.9); }
.ask-list { list-style: none; margin: 1.1rem 0 1.2rem; padding: 0; display: grid; gap: 0.55rem; }
.ask-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-family: var(--font-display);
  color: var(--maroon);
}
.video-frame { margin: 0; }
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--maroon-deep);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.video-frame figcaption { margin-top: 0.8rem; font-size: 0.88rem; color: var(--taupe-light); }
.video-label {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-text);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.5rem;
}
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card.why-feature { grid-template-columns: 1fr; }
  .why-feature .photo-frame { min-height: 0; aspect-ratio: 16 / 9; }
  .pair-grid { grid-template-columns: 1fr; }
}
.opportunity-list{max-width:760px;margin:1.5rem auto;padding-left:1.5rem;font-size:1.1rem;line-height:1.7}
.opportunity-list li{margin:.35rem 0}

/* Light alternate lifestyle band (Opportunities 2 & 4) */
.lifestyle-band.lifestyle-band--light { background: var(--bg-alt); color: var(--text); }
.lifestyle-band.lifestyle-band--light h2, .lifestyle-band.lifestyle-band--light h3 { color: var(--maroon); }
.lifestyle-band.lifestyle-band--light p { color: var(--text); }
.lifestyle-band.lifestyle-band--light .eyebrow { color: var(--gold-text); }
