/* ============================================================
   Anthony Sells Utah — site styles
   Palette: deep slate ink, warm cream paper, copper accent
   Type: Fraunces (display) / Inter (text)
   ============================================================ */

:root {
  --ink: #16202e;
  --ink-2: #1e2a3c;
  --ink-3: #27354a;
  --paper: #faf7f1;
  --card: #ffffff;
  --text: #33404f;
  --muted: #67717f;
  --accent: #b5763a;
  --accent-d: #96602c;
  --accent-soft: rgba(181, 118, 58, .12);
  --line: #e8e1d5;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 46, .06), 0 2px 8px rgba(22, 32, 46, .05);
  --shadow-md: 0 2px 6px rgba(22, 32, 46, .07), 0 12px 32px rgba(22, 32, 46, .10);
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-d); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.container-wide { width: min(1280px, 94%); margin: 0 auto; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; line-height: 1.3; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-head { max-width: 620px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); margin-top: .9rem; font-size: 1.1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 1.02em 1.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(181, 118, 58, .35);
}
.btn-solid:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(150, 96, 44, .4); }

.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(22, 32, 46, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .95rem 0;
}

.brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none !important; }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: #fff; letter-spacing: .01em; }
.brand-name em { font-style: normal; color: #d9a468; }
.brand-tag { font-size: .67rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-top: .18rem; }

.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a.nav-link {
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a.nav-link:hover { color: #fff; }
.site-nav a.nav-link.active { color: #fff; border-bottom-color: var(--accent); }

.nav-phone { margin-left: .4rem; padding: .78em 1.35em; font-size: .93rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    padding: .6rem 4% 1.4rem;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: .85rem .4rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .site-nav a.nav-link.active { border-bottom-color: var(--accent); }
  .nav-phone { margin: 1.1rem .4rem 0; justify-content: center; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 780px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* Hero slideshow: slow crossfade + gentle Ken Burns drift */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 2.2s ease-in-out;
}
/* Outgoing slide stays fully opaque beneath the incoming fade — avoids
   the brightness dip of two half-transparent images mid-crossfade. */
.hero-slide.prev { opacity: 1; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }
/* Every slide drifts continuously (infinite alternate), so the crossfade
   blends two already-moving images — no transform ever resets mid-fade. */
.hero-slide img {
  will-change: transform;
  animation: kb-drift 18s ease-in-out infinite alternate;
}
.hero-slide:nth-child(2) img { animation-delay: -6s; }
.hero-slide:nth-child(3) img { animation-delay: -12s; animation-duration: 21s; }
.hero-slide:nth-child(4) img { animation-delay: -9s; animation-duration: 24s; }
@keyframes kb-drift {
  from { transform: scale(1.05) translate(0.6%, 0.4%); }
  to   { transform: scale(1.13) translate(-0.8%, -0.5%); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3; /* above the slide stack; isolation keeps this inside .hero-media */
  background:
    linear-gradient(78deg, rgba(15, 23, 35, .88) 0%, rgba(15, 23, 35, .62) 42%, rgba(15, 23, 35, .18) 75%, rgba(15, 23, 35, .05) 100%),
    linear-gradient(to top, rgba(15, 23, 35, .55) 0%, transparent 30%);
}
.hero-content { position: relative; z-index: 2; padding: 7rem 0 5.5rem; max-width: 640px; }
.hero .eyebrow { color: #e0b078; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero p.lead { color: rgba(255, 255, 255, .88); margin-bottom: 2.2rem; font-size: 1.22rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }

.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  padding: .42em 1em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.chip svg { width: .95em; height: .95em; }

/* Sub-page hero (smaller) */
.hero.hero-sub { min-height: clamp(340px, 48vh, 460px); }
.hero.hero-sub .hero-content { padding: 5rem 0 3.5rem; }

/* ---------- Stat band ---------- */

.stats { background: var(--ink); color: #fff; padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; color: #e0b078; line-height: 1.1; }
.stat .lbl { font-size: .88rem; color: rgba(255, 255, 255, .66); margin-top: .35rem; letter-spacing: .04em; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }

/* ---------- Cards ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 980px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
a.card { text-decoration: none !important; color: inherit; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-body { padding: 1.7rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-d);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .5rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card-link { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .95rem; color: var(--accent-d); display: inline-flex; align-items: center; gap: .4em; }
.card:hover .card-link { text-decoration: underline; }

.card-img { aspect-ratio: 16 / 10; overflow: hidden; }

/* Featured listing cards */
.listing-card .card-body { gap: .35rem; }
.listing-price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.listing-addr { font-size: 1.02rem; font-weight: 600; }
.listing-addr span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.listing-card .listing-meta { font-size: .9rem; }
.listing-card .listing-broker { padding-top: .2rem; font-size: .78rem; color: var(--muted); opacity: .85; }
.listing-note { margin-top: 2.2rem; font-size: .88rem; color: var(--muted); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }

/* ---------- Split feature (relocation, about) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto; }
.split-media::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  opacity: .35;
  z-index: -1;
}
@media (max-width: 900px) { .split-media::before { display: none; } }

.check-list { list-style: none; margin: 1.5rem 0 2rem; display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; }
.check-list li svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: .15em; }
.check-list li strong { color: var(--ink); }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  opacity: .85;
  display: block;
  margin-bottom: .7rem;
  line-height: 1;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Quote band ---------- */

.quote-band { background: #f2ecdf; padding: clamp(4rem, 8vw, 5.5rem) 0; text-align: center; }
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  max-width: 21em;
  margin: 0 auto 1.4rem;
  line-height: 1.35;
}
.quote-band cite { font-style: normal; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band { position: relative; color: #fff; overflow: hidden; }
.cta-band .cta-media { position: absolute; inset: 0; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(17, 26, 39, .82), rgba(17, 26, 39, .88)); }
.cta-inner { position: relative; z-index: 2; text-align: center; padding: clamp(4.5rem, 9vw, 6.5rem) 0; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { color: #fff; margin-bottom: 1rem; }
.cta-inner p { color: rgba(255, 255, 255, .85); font-size: 1.15rem; margin-bottom: 2.2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cta-note { margin-top: 1.6rem; font-size: .92rem; color: rgba(255, 255, 255, .65); }
.cta-note a { color: #e0b078; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--text);
  background: #fdfcfa;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .78em 1em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-foot { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.form-foot .fine { font-size: .84rem; color: var(--muted); flex: 1; min-width: 220px; }

.form-alert { border-radius: 10px; padding: .9em 1.2em; font-size: .95rem; margin-bottom: 1.2rem; }
.form-alert.error { background: #fdeceb; color: #8c2f28; border: 1px solid #f3c8c4; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact page aside ---------- */

.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.2rem; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-aside { display: grid; gap: 1.2rem; }
.contact-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.contact-tile { text-decoration: none !important; color: inherit; }
a.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-tile .card-icon { margin: 0; flex: none; }
.contact-tile h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.contact-tile p { color: var(--muted); font-size: .93rem; }
.contact-tile .big { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { background: #111a27; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 4rem 0 3rem; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }

.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand p { margin-top: .9rem; max-width: 30em; color: rgba(255, 255, 255, .6); }

.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.6rem 0 2rem; font-size: .84rem; color: rgba(255, 255, 255, .5); }
.footer-legal .brokerage-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.footer-legal .brokerage-logo { display: inline-flex; background: #fff; border-radius: 8px; padding: .45rem .7rem; }
.footer-legal .brokerage-logo img { display: block; height: 32px; width: auto; }
.footer-legal .brokerage {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: .5em .9em;
  color: rgba(255, 255, 255, .65);
}
.footer-legal .row { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.eho { display: inline-flex; align-items: center; gap: .5em; }
.eho svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */

html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide img { animation: none; }
  .hero-slide { transition-duration: .8s; }
  .card, .btn, .card-img img { transition: none; }
}

/* ---------- Prose (credits, thank-you) ---------- */

.prose { max-width: 680px; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .5rem; }
