/* =========================================================
   Classic Texan Team — Coming Soon
   Palette: warm Hill Country dusk
   ========================================================= */
:root {
  --ink:        #17120c;   /* deep warm espresso (page) */
  --ink-2:      #211a11;   /* raised panel */
  --cream:      #ead9be;   /* brand cream (logo) */
  --cream-soft: #f3ead9;   /* headline highlight */
  --sand:       #b8a988;   /* secondary text */
  --sand-dim:   #8a7c62;   /* muted lines / captions */
  --gold:       #c9a15e;   /* brass accent */
  --gold-deep:  #a97f3f;
  --kw-red:     #c4222b;   /* Keller Williams red, used sparingly */
  --line:       rgba(234, 217, 190, .14);
  --field-bg:   rgba(234, 217, 190, .05);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* soft warm light behind the content */
.glow {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(201,161,94,.20), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(196,34,43,.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.5rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}
.kw {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.kw__mark {
  color: var(--kw-red);
  font-size: 1.1rem;
  font-weight: 600;
}
.kw__name {
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--cream);
}
.location {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) 0;
}

.seal {
  width: clamp(128px, 22vw, 180px);
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 8px 30px rgba(201,161,94,.25));
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  animation: rise 1s .1s cubic-bezier(.2,.7,.2,1) both;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
  vertical-align: middle;
  margin: 0 .7em;
  opacity: .7;
}

.headline {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--cream-soft);
  animation: rise 1s .18s cubic-bezier(.2,.7,.2,1) both;
}
.headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.lede {
  margin: 0 auto 2.25rem;
  max-width: 46ch;
  color: var(--sand);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  animation: rise 1s .26s cubic-bezier(.2,.7,.2,1) both;
}

/* ---------- countdown ---------- */
.countdown {
  list-style: none;
  display: flex;
  gap: clamp(.6rem, 3vw, 1.6rem);
  margin: 0 0 2.5rem;
  padding: 0;
  animation: rise 1s .32s cubic-bezier(.2,.7,.2,1) both;
}
.countdown li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.4rem;
}
.countdown span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  color: var(--cream-soft);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown small {
  margin-top: .5rem;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand-dim);
}
.countdown li + li { position: relative; }
.countdown li + li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(.3rem, 1.5vw, .8rem));
  top: .2rem;
  height: 2.2rem;
  width: 1px;
  background: var(--line);
}

/* ---------- form ---------- */
.notify {
  width: 100%;
  max-width: 520px;
  animation: rise 1s .4s cubic-bezier(.2,.7,.2,1) both;
}
/* segmented buy / sell / both control */
.segment {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
}
.segment .field__label { margin-bottom: .5rem; }
.segment__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.segment label {
  position: relative;
  display: block;
  cursor: pointer;
}
.segment input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.segment span {
  display: block;
  padding: .7rem 1rem;
  text-align: center;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--sand);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.segment label:hover span { border-color: var(--sand-dim); color: var(--cream); }
.segment input:checked + span {
  background: rgba(201,161,94,.14);
  border-color: var(--gold);
  color: var(--cream-soft);
}
.segment input:focus-visible + span {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.notify__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: .75rem;
  margin-bottom: .75rem;
}
.field { text-align: left; display: block; }
.field__label {
  display: block;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand-dim);
  margin: 0 0 .4rem .1rem;
}
.field__label i {
  font-style: normal;
  color: var(--sand-dim);
  opacity: .7;
  text-transform: none;
  letter-spacing: .04em;
}
.field input {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cream-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder { color: var(--sand-dim); opacity: .6; }
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(234,217,190,.08);
}

/* honeypot */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.btn {
  width: 100%;
  margin-top: .35rem;
  padding: .95rem 1.5rem;
  background: var(--gold);
  color: #241a0c;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease, opacity .2s ease;
}
.btn:hover { background: var(--cream-soft); border-color: var(--cream-soft); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.form-status {
  min-height: 1.4rem;
  margin: .9rem 0 0;
  font-size: .85rem;
  text-align: center;
}
.form-status.is-error   { color: #e79aa0; }
.form-status.is-success { color: var(--gold); }

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  color: var(--sand-dim);
  font-size: .8rem;
}
.footer a { color: var(--sand); text-decoration: none; }
.footer a:hover { color: var(--cream); text-decoration: underline; }
.footer__contact,
.footer__offices {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  justify-content: center;
}
.footer__offices { margin-top: .5rem; font-size: .72rem; }
.footer__legal { margin: 1.2rem 0 0; font-size: .68rem; letter-spacing: .04em; }

/* ---------- ridgeline signature ---------- */
.ridge {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 34vh;
  min-height: 200px;
  z-index: 1;
  pointer-events: none;
}
.ridge__back  { fill: #241a10; opacity: .8; }
.ridge__mid   { fill: #1d150d; }
.ridge__front { fill: #140f09; }

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */
@media (max-width: 540px) {
  .notify__row { grid-template-columns: 1fr; }
  .location { display: none; }
  .ridge { height: 26vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
