/* ============================================
   East Nashville Home Experts — Luxury Theme
   ============================================ */

:root {
  --cream: #faf7f2;
  --cream-deep: #f1ece3;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --muted: #6b6660;
  --muted-soft: #9b9690;
  --line: #e5dfd4;
  --bronze: #8b6f47;
  --bronze-dark: #6b5435;
  --bronze-light: #b8966a;
  --shadow-sm: 0 2px 12px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 12px 40px rgba(26, 26, 26, 0.10);
  --shadow-lg: 0 30px 80px rgba(26, 26, 26, 0.25);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============= Typography ============= */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 400;
}

h3 {
  font-size: 1.375rem;
  font-weight: 500;
}

h4 {
  font-size: 0.875rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

em {
  font-style: italic;
  color: var(--bronze);
  font-weight: 400;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.1rem;
  display: inline-block;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover { color: var(--bronze); }

/* ============= Header ============= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(250, 247, 242, 0);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.site-header:not(.scrolled) .brand { color: var(--cream); }

.brand-monogram {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-monogram::before,
.brand-monogram::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.brand-monogram::before { top: 2px; }
.brand-monogram::after { bottom: 2px; }

.brand-monogram-letters {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-tag {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.7;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.primary-nav a {
  position: relative;
  color: inherit;
}

.site-header:not(.scrolled) .primary-nav a { color: var(--cream); }

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width 0.3s var(--ease);
}

.primary-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle {
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header:not(.scrolled) .nav-toggle span { background: var(--cream); }

/* When the mobile menu is open, the slide-out is cream — keep the icon dark and morph it into an X */
.site-header.nav-open .nav-toggle span { background: var(--ink); }

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============= Buttons ============= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline-light:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn-block {
  width: 100%;
  padding: 18px;
}

.btn-header {
  padding: 11px 22px;
  font-size: 0.7rem;
  background: var(--bronze);
  border-color: var(--bronze);
}

/* Keep the header CTA text white in every header state (incl. not-scrolled + hover) */
.site-header .primary-nav a.btn-header,
.site-header:not(.scrolled) .primary-nav a.btn-header,
.site-header .primary-nav a.btn-header:hover {
  color: #ffffff;
}

.btn-header:hover {
  background: var(--bronze-dark);
  border-color: var(--bronze-dark);
}

.nav-phone {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-phone::after { display: none; }

.site-header:not(.scrolled) .nav-phone { color: var(--cream); }
.nav-phone:hover { color: var(--bronze); }

/* ============= Hero (with embedded form) ============= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  padding: 120px 0 80px;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url('images/herobg.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,15,15,0.78) 0%, rgba(15,15,15,0.55) 40%, rgba(15,15,15,0.35) 100%),
    linear-gradient(180deg, rgba(15,15,15,0.3) 0%, rgba(15,15,15,0.5) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-content .eyebrow {
  color: var(--bronze-light);
}

.hero-content h1 {
  color: var(--cream);
  max-width: none;
  margin-bottom: 0.5em;
  text-wrap: balance;
}

.hero-content h1 em { color: var(--bronze-light); }

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 300;
  color: rgba(250, 247, 242, 0.85);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 48ch;
}

.hero-marks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(250, 247, 242, 0.18);
  padding-top: 24px;
}

.hero-marks li {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.75);
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(250, 247, 242, 0.18);
  line-height: 1;
}

.hero-marks li:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

/* ============= Form ============= */

.hero-form-wrap {
  width: 100%;
  scroll-margin-top: 96px;
}

.contact-form {
  background: var(--paper);
  padding: 38px 36px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-header {
  grid-column: 1 / -1;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.form-header .eyebrow {
  margin-bottom: 8px;
}

.form-header h2 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.form-intro {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

.field {
  display: flex;
  flex-direction: column;
}

.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--bronze);
}

.field textarea {
  resize: vertical;
  min-height: 70px;
  font-family: var(--sans);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%238b6f47' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

.contact-form .btn-block {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.form-confidentiality {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 6px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.form-success {
  position: absolute;
  inset: 0;
  background: var(--paper);
  padding: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.form-success.show { display: flex; }

/* Once submitted, hide the fields and let the box shrink to the message */
.contact-form.submitted > *:not(.form-success) { display: none; }

.contact-form.submitted .form-success {
  position: static;
  inset: auto;
  grid-column: 1 / -1;
  padding: 32px 24px;
}

.form-success h3 {
  font-size: 1.85rem;
  color: var(--bronze);
  margin-bottom: 0.75rem;
}

.form-success p {
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.form-success a {
  color: var(--bronze);
  font-weight: 500;
}

/* ============= Sections common ============= */

.section-head {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-head h2 { margin-bottom: 0.5rem; }

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
}

/* ============= Neighborhoods (compact) ============= */

.neighborhoods {
  padding: 110px 0;
  background: var(--paper);
}

.hood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hood-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  transition: transform 0.5s var(--ease-out);
  aspect-ratio: 4 / 5;
}

.hood-card:hover {
  transform: translateY(-4px);
}

.hood-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out);
}

.hood-card:hover .hood-image {
  transform: scale(1.08);
}

.hood-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.8) 100%);
}

.hood-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 22px 24px;
  color: var(--cream);
  z-index: 2;
}

.hood-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--cream);
}

/* Neighborhood images */
.hood-fivepoints  .hood-image { background-image: url('images/5pointspizza.webp'); }
.hood-lockeland   .hood-image { background-image: url('images/urban-cowboy.webp'); }
.hood-inglewood   .hood-image { background-image: url('images/inglewoodhome.webp'); }
.hood-eastend     .hood-image { background-image: url('images/eastendhouse.webp'); }
.hood-eastwood    .hood-image { background-image: url('images/eastwoodhome.webp'); }
.hood-cleveland   .hood-image { background-image: url('images/clevelandparkhome.webp'); }
.hood-rosebank    .hood-image { background-image: url('images/rosebankhouse.webp'); }
.hood-shelby      .hood-image { background-image: url('images/shelbyhillshome.webp'); }

/* ============= Services (two-card grid) ============= */

.services {
  padding: 110px 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-card {
  background: var(--paper);
  padding: 56px 48px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.service-card-dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.service-card-dark h2,
.service-card-dark p { color: var(--cream); }

.service-card-dark .eyebrow { color: var(--bronze-light); }
.service-card-dark h2 em { color: var(--bronze-light); }

.service-card h2 {
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
  flex: 1;
}

.service-card-dark p {
  color: rgba(250, 247, 242, 0.75);
}

.service-card .btn {
  align-self: flex-start;
}

/* ============= Footer ============= */

.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 242, 0.7);
  padding: 70px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}

.footer-brand {
  color: var(--cream);
}

.footer-monogram {
  color: var(--bronze-light);
  margin-bottom: 22px;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.4;
  margin: 0;
}

.footer-tagline em { color: var(--bronze-light); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-col h4 {
  color: var(--cream);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-col a {
  color: rgba(250, 247, 242, 0.65);
}

.footer-col a:hover { color: var(--bronze-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.4);
}

.footer-bottom p { margin: 0; color: inherit; }
.footer-fine { font-size: 0.72rem; }

/* ============= Neighborhood / content pages ============= */

.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 26px 0 0;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--bronze); }
.breadcrumb span { color: var(--muted-soft); }

.content {
  padding: 84px 0;
  background: var(--paper);
}

.prose { max-width: 780px; }

.prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin: 1.9em 0 0.5em;
}
.prose h2:first-of-type { margin-top: 0; }

.prose h3 {
  font-size: 1.3rem;
  margin: 1.5em 0 0.4em;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 1.15em;
}

.prose ul {
  margin: 0 0 1.4em;
  padding-left: 1.15em;
}

.prose li {
  margin-bottom: 0.55em;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* FAQ accordion (native details/summary — no JS) */
.faq {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  color: var(--bronze);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after { content: '\2212'; }

.faq details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 68ch;
}

/* Cross-links to other neighborhoods */
.nbhd-cross {
  padding: 72px 0;
  background: var(--cream);
}

.nbhd-cross-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.nbhd-cross-grid a {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 11px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nbhd-cross-grid a:hover {
  border-color: var(--bronze);
  color: var(--bronze);
}

/* ============= Animations ============= */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============= Responsive ============= */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-content { max-width: 640px; }
  .hero-form-wrap { max-width: 640px; }
  .hood-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 40px 32px; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  /* Compact single-row header (brand + phone + CTA) */
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand-monogram { width: 36px; height: 36px; }
  .brand-monogram-letters { font-size: 1.2rem; }
  .brand-name { font-size: 0.88rem; }
  .brand-tag { font-size: 0.52rem; letter-spacing: 0.22em; }
  .primary-nav { gap: 10px; }
  .nav-phone { font-size: 0.74rem; }
  .btn-header { padding: 9px 12px; font-size: 0.58rem; letter-spacing: 0.06em; }

  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-content h1 { font-size: clamp(1.75rem, 7.5vw, 2.4rem); }

  .hood-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hood-card { aspect-ratio: 3 / 4; }
  .hood-body { padding: 10px 10px 12px; }
  .hood-body h3 { font-size: 0.82rem; line-height: 1.15; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }

  .neighborhoods,
  .services { padding: 70px 0; }

  .contact-form { padding: 28px 22px; grid-template-columns: 1fr; gap: 16px; }
  .form-header h2 { font-size: 1.5rem; }

  .hero-marks { gap: 10px; }
  .hero-marks li {
    padding-right: 14px;
    margin-right: 14px;
  }

  .section-head { margin-bottom: 36px; }
}
