/* Amberstone Homes: palette and type carried over from the original site */
:root {
  --cream:       #FAF8F4;
  --card:        #FDFCFA;
  --muted:       #ECE7DF;
  --border:      #E0D9D2;
  --ink:         #2B2016;
  --ink-soft:    #6C5F55;
  --stone:       #50473F;
  --night:       #2E2219;
  --night-deep:  #231A13;
  --amber:       #E68523;
  --amber-deep:  #A54F1D;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 em, h2 em { font-style: italic; color: var(--amber-deep); }

.eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 3px;
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #F09A43; }
.btn-ghost { border-color: rgba(250, 248, 244, 0.45); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(250, 248, 244, 0.08); }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  color: var(--cream);
}
.site-header.solid {
  position: static;
  background: var(--night);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand img { width: 108px; height: auto; }
.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
}
.nav a, .header-phone {
  text-decoration: none;
  color: rgba(250, 248, 244, 0.82);
  transition: color 0.2s;
}
.nav a:hover, .header-phone:hover { color: var(--cream); }
.header-phone {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .nav { display: none; }
  .brand img { width: 88px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: var(--cream);
  background: var(--night);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(35, 26, 19, 0.55) 0%, rgba(35, 26, 19, 0) 28%),
    linear-gradient(90deg, rgba(35, 26, 19, 0.86) 0%, rgba(35, 26, 19, 0.55) 55%, rgba(35, 26, 19, 0.2) 100%);
}
.hero-body {
  position: relative;
  z-index: 1;
  padding-top: clamp(9rem, 20vw, 13rem);
  padding-bottom: clamp(5.5rem, 12vw, 9rem);
}
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.8rem);
  max-width: 14ch;
}
.hero h1 em { color: var(--amber); }
.hero p {
  margin: 1.5rem 0 0;
  max-width: 32rem;
  font-size: 1.15rem;
  color: rgba(250, 248, 244, 0.86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ---------- sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section + .section { padding-top: 0; }

.mission {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.mission h2 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.mission p { margin: 0 0 1rem; font-size: 1.12rem; color: var(--ink-soft); }
.mission p:last-child { margin-bottom: 0; color: var(--ink); font-weight: 500; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); max-width: 40rem; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem 1.75rem;
}
.step-n {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--amber-deep);
  margin-bottom: 1.5rem;
}
.step h3 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.step p { margin: 0; color: var(--ink-soft); }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(4rem, 9vw, 6.5rem); }
.feature h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.feature p { margin: 1.4rem 0 0; font-size: 1.1rem; color: var(--ink-soft); }
.feature-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 18px 40px -22px rgba(43, 32, 22, 0.45);
}
.checks {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.checks svg { flex: none; margin-top: 0.3rem; color: var(--amber-deep); }

@media (max-width: 860px) {
  .mission, .feature { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 2; }
}

/* ---------- contact ---------- */
.contact-panel {
  background: var(--night);
  color: var(--cream);
  border-radius: 4px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}
.contact-panel h2 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.contact-panel h2 em { color: var(--amber); }
.contact-panel .lede { color: rgba(250, 248, 244, 0.78); margin-top: 1.25rem; }

.signup {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.signup input[type="email"] {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 3px;
  border: 1px solid rgba(250, 248, 244, 0.25);
  background: rgba(250, 248, 244, 0.06);
  color: var(--cream);
  font: inherit;
}
.signup input::placeholder { color: rgba(250, 248, 244, 0.5); }
.signup input:focus { border-color: var(--amber); outline: none; }
.fine {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(250, 248, 244, 0.62);
}
.fine a { color: rgba(250, 248, 244, 0.85); }
.hidden-field { display: none; }

.call-card {
  border-left: 1px solid rgba(250, 248, 244, 0.18);
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.call-card .eyebrow { color: rgba(250, 248, 244, 0.6); margin-bottom: 0.5rem; }
.call-number {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  color: var(--cream);
  text-decoration: none;
}
.call-number:hover { color: var(--amber); }
.text-back {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(250, 248, 244, 0.72);
}
.text-back a { color: var(--cream); }
.contact-lines {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: rgba(250, 248, 244, 0.85);
}
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .contact-panel { grid-template-columns: 1fr; }
  .call-card {
    border-left: 0;
    border-top: 1px solid rgba(250, 248, 244, 0.18);
    padding-left: 0;
    padding-top: 2rem;
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--night-deep);
  color: rgba(250, 248, 244, 0.72);
  font-size: 0.9rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
}
.footer-grid img { width: 120px; height: auto; }
.footer-legal p { margin: 0 0 0.5rem; }
.footer-legal .footer-name { color: var(--cream); }
.footer-contact { display: grid; gap: 0.3rem; text-align: right; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--cream); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.82rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--cream); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}

/* ---------- legal pages ---------- */
.legal {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6.5rem);
}
.legal-inner { max-width: 44rem; }
.legal h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.legal .effective {
  margin: 0.9rem 0 2.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.legal h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}
.legal p, .legal li { color: var(--stone); }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal li::marker { color: var(--amber-deep); }
.legal .callout {
  border-left: 3px solid var(--amber);
  background: var(--card);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--ink);
}
.legal address { font-style: normal; color: var(--stone); line-height: 1.7; }
.legal a { color: var(--amber-deep); }
