/* My Homes in AL - Ashley Stedham Mitchell
   Original styles. Brand: rich red (from Ashley's IG highlight covers), pearl, gold.
   Headings: Red Hat Display. Dark chrome uses --navy aliases mapped to red. */

:root {
  --red: #A41418;
  --red-deep: #7A0F12;
  --red-mid: #8A1014;
  --red-ink: #6E0C10;
  --navy: var(--red);
  --navy-deep: var(--red-deep);
  --navy-mid: var(--red-mid);
  --pearl: #F5F1EA;
  --pearl-dark: #E8E2D6;
  --gold: #C9A227;
  --gold-light: #E8D084;
  --gold-dark: #96761C;
  --light-blue: #E8D084;
  --light-blue-deep: #E8D084;
  --white: #FFFFFF;
  --ink: #2A1214;
  --ink-soft: #5A3A3C;
  --era-red: #A41418;
  --focus: #A41418;
  --focus-on-dark: #E8D084;
  --radius: 2px;
  --nav-h: 4.5rem;
  --max: 72rem;
  --space: clamp(3.5rem, 8vw, 7rem);
  font-family: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--red-deep); }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.theme-dark :focus-visible,
.nav--dark :focus-visible,
.btn:focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.site-nav :focus-visible {
  outline-color: var(--focus-on-dark);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--red-ink);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
}
.skip:focus { top: 1rem; outline-color: var(--red-ink); }

/* Typography */
.font-display, h1, h2, h3, h4, .btn, .eyebrow, .nav-links a, .site-logo, .card-town h3 {
  font-family: "Red Hat Display", system-ui, sans-serif;
}
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(2.4rem, 7vw, 5.25rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); max-width: 36rem; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.85rem;
}
.theme-dark .eyebrow, .hero .eyebrow, .band .eyebrow { color: var(--gold-light); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2rem, 84rem); margin-inline: auto; }
section { padding: var(--space) 0; }
.prose { max-width: 42rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--navy);
  color: var(--white);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--navy-mid); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--red-ink); }
.btn--gold:hover { background: var(--gold-light); color: var(--red-ink); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.hero .btn--ghost, .theme-dark .btn--ghost, .band .btn--ghost {
  color: var(--white);
  border-color: var(--white);
}
.hero .btn--ghost:hover, .theme-dark .btn--ghost:hover, .band .btn--ghost:hover {
  background: var(--white);
  color: var(--red-deep);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}
.icon-link:hover { background: var(--gold); color: var(--red-ink); border-color: var(--gold); }
.icon-link svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--navy);
  color: var(--white);
  min-height: var(--nav-h);
  border-bottom: 3px solid var(--gold);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}
.site-logo:hover { color: var(--gold-light); }
.site-logo img {
  width: 3.25rem;
  height: auto;
  background: var(--white);
  border-radius: 4px;
  padding: 0.15rem 0.2rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; }
.logo-text span { font-family: "DM Sans", system-ui, sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; color: var(--pearl-dark); }
.nav-links { display: flex; align-items: center; gap: 0.2rem 1.15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--white); }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta .btn { min-height: 2.55rem; padding: 0.5rem 1rem; font-size: 0.88rem; }
.nav-phone { color: var(--light-blue); font-weight: 700; text-decoration: none; font-family: "Red Hat Display", system-ui, sans-serif; white-space: nowrap; }
.nav-phone:hover { color: var(--gold-light); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--light-blue);
  color: var(--white);
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-overlay { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-phone { display: none; }
  .nav-panel {
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    color: var(--white);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 90;
    padding: 5.5rem 1.5rem 2rem;
    overflow: auto;
  }
  .nav-panel.is-open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-links a { font-size: 1.5rem; padding: 0.7rem 0; display: block; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 1.5rem; }
  .nav-cta .btn, .nav-cta .nav-phone { display: flex; width: 100%; }
  .nav-overlay.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8,24,50,0.5);
    z-index: 85;
  }
  body.nav-open { overflow: hidden; }
}

/* Hero */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem);
  min-height: min(86vh, 52rem);
  display: flex;
  align-items: center;
}
.hero::after {
  content: "";
  position: absolute;
  right: -6vw;
  bottom: -8vw;
  width: 28vw;
  max-width: 22rem;
  aspect-ratio: 3/4;
  background: url("/images/lightning-bolt.webp") no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero .lead { color: var(--pearl); }
.hero-note { margin-top: 1.25rem; color: var(--light-blue); font-size: 0.95rem; }
.avatar-card {
  position: relative;
  max-width: 24rem;
  margin-inline: auto;
}
.avatar-frame {
  background: var(--navy-deep);
  border: 2px solid var(--gold);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
}
.avatar-frame video, .avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.avatar-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(8,24,50,0.85));
}
.avatar-card .btn { width: 100%; }
.sound-btn {
  align-self: stretch;
  min-height: 2.5rem;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  background: rgba(11,37,69,0.85);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  white-space: nowrap;
}
.sound-btn:hover { background: var(--gold); color: var(--red-ink); border-color: var(--gold); }

@media (max-width: 800px) {
  .hero { min-height: 0; padding-top: 1.75rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 3.4rem); }
  .avatar-card { order: -1; max-width: 20rem; margin: 0 auto 0.5rem; }
}

/* Page hero (interior) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.25rem 0 2.75rem;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5.5vw, 3.6rem); margin-bottom: 0.35em; }
.page-hero .lead { color: var(--pearl); }
.crumbs { font-size: 0.9rem; margin-bottom: 1rem; color: var(--light-blue); }
.crumbs a { color: var(--light-blue); }
.crumbs a:hover { color: var(--gold-light); }

/* Sections */
.section-head { margin-bottom: 2.25rem; max-width: 40rem; }
.bg-pearl { background: var(--pearl); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy p { color: var(--white); }
.rule {
  height: 3px;
  width: 3.5rem;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.25rem;
}

/* Service cards */
.card-grid, .town-grid, .review-grid {
  display: grid;
  gap: 1.25rem;
}
.card-grid { grid-template-columns: repeat(4, 1fr); }
.town-grid { grid-template-columns: repeat(4, 1fr); }
.review-grid { grid-template-columns: repeat(3, 1fr); }
.card, .card-service, .card-town, .card-review {
  background: var(--white);
  border: 1px solid var(--pearl-dark);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card-service { padding: 1.5rem 1.35rem 1.4rem; min-height: 12rem; }
.card-service h3 { margin-bottom: 0.4em; }
.card-service p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }
a.card-service:hover, a.card-town:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  color: inherit;
}
.card-town img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-town-body { padding: 0.95rem 1rem 1.15rem; }
.card-town h3 { margin: 0 0 0.2em; font-size: 1.25rem; }
.card-town p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); line-height: 1.4; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.split img { width: 100%; height: auto; max-height: 42rem; object-fit: cover; object-position: center top; }
.split--photo img { aspect-ratio: 4 / 5; object-position: center top; }

.quote { font-size: 1.2rem; line-height: 1.45; font-style: italic; color: var(--navy); max-width: 36rem; }
.quote cite { display: block; font-style: normal; font-size: 0.95rem; margin-top: 0.75rem; font-weight: 700; color: var(--ink-soft); }

.card-review { padding: 1.4rem 1.3rem; display: flex; flex-direction: column; }
.card-review blockquote { margin: 0 0 1rem; font-size: 1rem; color: var(--ink-soft); flex: 1; }
.card-review figcaption { font-size: 0.88rem; font-weight: 700; color: var(--navy); font-family: "Red Hat Display", system-ui, sans-serif; }
.card-review figcaption span { display: block; font-weight: 500; color: var(--ink-soft); font-family: "DM Sans", system-ui, sans-serif; }

/* Contact / forms */
.band {
  background: var(--navy);
  color: var(--white);
  padding: var(--space) 0;
  border-top: 3px solid var(--gold);
}
.band h2 { color: var(--white); }
.band p { color: var(--pearl); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0 0 1rem; }
.contact-list a {
  color: var(--white);
  text-decoration: none;
  font-family: "Red Hat Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-block;
  border-bottom: 2px solid var(--gold);
}
.contact-list a:hover { color: var(--light-blue); }
.contact-list .label { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-blue); margin-bottom: 0.15rem; font-weight: 700; font-family: "Red Hat Display", system-ui, sans-serif; }
form { display: grid; gap: 0.85rem; }
label { font-weight: 700; font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--pearl-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  min-height: 3rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--light-blue-deep);
  outline-offset: 1px;
  border-color: var(--navy);
}
.form-note { font-size: 0.9rem; color: var(--ink-soft); }
.band .form-note, .band label { color: var(--pearl); }
.social-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.25rem; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--pearl-dark);
  padding: 0.9rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: "Red Hat Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0.6rem 0 0.4rem; color: var(--ink-soft); }

/* Footer */
.footer {
  background: var(--navy-deep);
  color: var(--pearl);
  padding: 3.5rem 0 1.75rem;
  font-size: 0.98rem;
}
.footer a { color: var(--light-blue); text-decoration: none; }
.footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer h3 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.85rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 0.45rem; }
.brokerage {
  color: var(--white);
  font-weight: 700;
  font-family: "Red Hat Display", system-ui, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.eho {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.25rem 0;
  color: var(--pearl);
  font-size: 0.88rem;
}
.eho svg { flex-shrink: 0; width: 2.2rem; height: 2.2rem; }
.legal { border-top: 1px solid rgba(232,208,132,0.28); padding-top: 1.25rem; font-size: 0.82rem; color: #F0E4E4; }
.legal p { margin: 0 0 0.6rem; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .town-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  body { font-size: 1.0625rem; }
}

/* Utilities */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center .lead, .center .section-head { margin-inline: auto; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
