/* ============================================
   Tina Fox Realty — Design System
   Palette pulled from the brand mark: deep plum
   dusk, warm brass, and soft cream. Bridge-arch
   motif nods to the Stone Arch Bridge in the logo
   and stands for "crossing to the next chapter."
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color */
  --plum-deep: #241619;
  --plum: #3B282B;
  --plum-soft: #4E3A3B;
  --cream: #FAF4E9;
  --ivory: #FFFDF8;
  --gold: #B98A4E;
  --gold-light: #D8B57C;
  --gold-pale: #EFDFC0;
  --ink: #33272A;
  --ink-soft: #6E5D57;
  --line: #E5D6BE;
  --line-dark: rgba(250, 244, 233, 0.16);

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max: 1160px;
  --pad: clamp(1.5rem, 4vw, 4rem);
  --radius: 4px;
}

* { 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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--plum);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1.2em; }
a { color: inherit; }

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

.italic { font-style: italic; color: var(--gold); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

.btn-gold {
  background: var(--gold);
  color: var(--ivory);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 10px 24px rgba(185,138,78,0.30); }

.btn-outline {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--cream);
}
.btn-outline:hover { background: rgba(250,244,233,0.08); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 244, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark { width: 34px; height: auto; }
.brand-word {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--plum);
}
.brand-word span { font-style: normal; font-family: var(--body); font-size: 0.6rem; letter-spacing: 0.14em; color: var(--ink-soft); display: block; text-transform: uppercase; margin-top: 2px;}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.4rem);
}
nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding-bottom: 4px;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--gold); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
  white-space: nowrap;
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem var(--pad);
    gap: 1.6rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  nav.main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  nav.main-nav a { font-size: 1.2rem; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ''; display: block; width: 18px; height: 2px; background: var(--plum);
    position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
}

/* ---------- Hero (dark, plum) ---------- */
.hero {
  background: radial-gradient(120% 140% at 50% 0%, var(--plum-soft) 0%, var(--plum) 45%, var(--plum-deep) 100%);
  color: var(--cream);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad) clamp(4rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero .arch-row { opacity: 0.55; margin-bottom: 1.5rem; }
.hero h1 { color: var(--cream); }
.hero .lede {
  max-width: 620px;
  margin: 1.1rem auto 2rem;
  font-size: 1.15rem;
  color: var(--gold-pale);
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-credentials {
  margin-top: 2.8rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid var(--line-dark);
  color: var(--gold-pale);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.hero-sub {
  padding: 3rem var(--pad) 3.2rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.hero-sub h1 { margin-bottom: 0.3em; }
.hero-sub p.lede { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-cream { background: var(--cream); }
.section-ivory { background: var(--ivory); }
.section-plum { background: var(--plum); color: var(--cream); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-plum .section-head p { color: var(--gold-pale); }
.section-plum h2 { color: var(--cream); }

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 780px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.card ul li { margin-bottom: 0.4em; }

/* ---------- Arch motif (signature element) ---------- */
.arch-row { display: flex; justify-content: center; gap: 6px; }
.arch-row svg { display: block; }

.arch-divider {
  width: 100%;
  height: 34px;
  overflow: hidden;
}
.arch-divider svg { width: 100%; height: 100%; display: block; }

/* Bridge path connecting the 7 steps on the Services page */
.next-chapter-path {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.6rem;
  padding-bottom: 3.2rem;
}
.step:last-child { padding-bottom: 0; }
.step-track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  z-index: 2;
}
.step-connector {
  position: absolute;
  top: 56px;
  bottom: -3.2rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background-image: linear-gradient(var(--gold-light) 60%, transparent 0%);
  background-position: top;
  background-size: 2px 10px;
  background-repeat: repeat-y;
  z-index: 1;
}
.step:last-child .step-connector { display: none; }
.step-body .quote {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.step-body ul { padding-left: 1.15em; color: var(--ink-soft); }
.step-body ul li { margin-bottom: 0.35em; }
.deliverable-tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--plum);
  background: var(--gold-pale);
  padding: 0.4em 0.9em;
  border-radius: 999px;
}

@media (max-width: 620px) {
  .step { grid-template-columns: 56px 1fr; gap: 1rem; }
  .step-num { width: 42px; height: 42px; font-size: 1.05rem; }
  .step-connector { top: 42px; }
}

/* ---------- Preview path on homepage (compact horizontal) ---------- */
.mini-path {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.mini-path::before {
  content: '';
  position: absolute;
  top: 21px; left: 5%; right: 5%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--gold-light) 60%, transparent 0%);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  z-index: 0;
}
.mini-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.mini-step .num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--gold);
  color: var(--plum); font-family: var(--display); font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.6rem;
}
.mini-step .label { font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 780px) {
  .mini-path { flex-wrap: wrap; }
  .mini-path::before { display: none; }
  .mini-step { flex: 1 1 30%; margin-bottom: 1.2rem; }
}

/* ---------- Question list (What makes it different) ---------- */
.question-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2rem;
}
.question-list li {
  padding-left: 1.6em;
  position: relative;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.question-list li::before {
  content: '\2013';
  position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
@media (max-width: 620px) { .question-list { grid-template-columns: 1fr; } }

/* ---------- Vendor chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--ivory);
  padding: 0.5em 1em;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}
.testimonial-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 360px;
}
@media (max-width: 480px) { .testimonial-card { max-width: 100%; } }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 0.9rem; }
.testimonial-card .quote-text {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.88rem;
}
.testimonial-meta .name { font-weight: 700; color: var(--plum); }
.testimonial-meta .source { color: var(--ink-soft); text-decoration: none; }
.testimonial-meta .source:hover { color: var(--gold); }
.testimonial-card.is-placeholder {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  background: transparent;
}
.testimonial-card.is-placeholder .quote-text { color: var(--ink-soft); font-style: italic; }

/* ---------- Before / After gallery ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.ba-pair {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-images { display: grid; grid-template-columns: 1fr 1fr; }
.ba-slot {
  aspect-ratio: 4 / 5;
  position: relative;
  background: linear-gradient(160deg, var(--gold-pale), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ba-slot img { width: 100%; height: 100%; object-fit: cover; }
.ba-slot .placeholder-note {
  text-align: center;
  padding: 0.8rem;
  color: var(--ink-soft);
}
.ba-slot .placeholder-note svg { margin-bottom: 0.5rem; opacity: 0.6; }
.ba-slot .placeholder-note span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ba-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--plum);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
}
.ba-caption { padding: 1.1rem 1.3rem 1.4rem; }
.ba-caption h4 { margin: 0 0 0.3em; color: var(--plum); font-family: var(--display); font-size: 1.1rem; }
.ba-caption p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Portrait placeholder ---------- */
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--plum-soft), var(--plum));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portrait .monogram {
  font-family: var(--display);
  font-style: italic;
  font-size: 4.5rem;
  color: var(--gold-light);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--plum);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad);
}
.cta-banner h2 { color: var(--cream); margin-bottom: 0.3em; }
.cta-banner p { color: var(--gold-pale); margin-bottom: 1.8em; }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-card:last-child { border-bottom: none; }
.contact-card .icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold-pale); color: var(--plum);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h4 { margin-bottom: 0.15em; }
.contact-card a { color: var(--ink-soft); text-decoration: none; }
.contact-card a:hover { color: var(--gold); }

form.simple-form { display: flex; flex-direction: column; gap: 1.1rem; }
form.simple-form label { font-weight: 600; font-size: 0.92rem; color: var(--plum); }
form.simple-form input, form.simple-form textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--ink);
}
form.simple-form input:focus, form.simple-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
form.simple-form textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--plum-deep);
  color: var(--gold-pale);
  padding: 3.5rem var(--pad) 2rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--cream);
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid a {
  display: block;
  color: var(--gold-pale);
  text-decoration: none;
  margin-bottom: 0.6rem;
  font-size: 0.96rem;
}
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: var(--max);
  margin: 1.6rem auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: rgba(239, 223, 192, 0.6);
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand .brand-mark { width: 30px; }
.footer-brand span { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--cream); }
.footer-tagline { max-width: 320px; font-size: 0.92rem; color: rgba(239,223,192,0.75); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
