/* Motley Motion Real Estate LLC — site styles
   Aligned to Brand Guidelines v1.0 (May 2026)
   Palette, typography, and accent rules per the brand guide. */

:root {
  /* Brand foundation */
  --navy: #0F1138;
  --navy-deep: #0A0C2A;
  --navy-soft: #1A1D52;
  --paper: #FFFFFF;

  /* Swirl spectrum (in canonical order) */
  --spring:  #1FE881;
  --lagoon:  #18CFD8;
  --cobalt:  #2A6EF7;
  --iris:    #8B3DF5;
  --magenta: #F0309D;
  --ember:   #FF513D;
  --sun:     #FFA53D;

  /* Working neutrals derived from navy + paper */
  --ink: #14163A;
  --ink-soft: #4D5078;
  --surface: #F4F4F8;
  --surface-soft: #FAFAFC;
  --line: #DADCEA;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  /* Brand typeface: Helvetica, with Inter as the Google-font substitute */
  font-family: 'Helvetica Neue', 'Helvetica', 'Inter', Arial, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
a:hover { color: var(--cobalt); }

/* Type hierarchy — weight contrast carries the brand */
h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
p.lead { font-size: 1.15rem; color: var(--ink); max-width: 56ch; line-height: 1.55; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section labels — short caps, tracked, in a swirl color per section */
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--spring); /* default — overridden per section */
}
.section-label.spring  { color: var(--spring); }
.section-label.lagoon  { color: var(--lagoon); }
.section-label.cobalt  { color: var(--cobalt); }
.section-label.iris    { color: var(--iris); }
.section-label.magenta { color: var(--magenta); }
.section-label.ember   { color: var(--ember); }
.section-label.sun     { color: var(--sun); }

/* Header */
.site-header {
  background: var(--navy);
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header img.logo {
  height: 88px;
  width: auto;
}
.site-header .header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.site-header .header-phone:hover { color: var(--spring); }

/* Hero */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lead { color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero .promise-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.hero .promise-list li {
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding-right: 18px;
}
.hero .promise-list li:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: 0;
  font-weight: 900;
  font-size: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
/* Rotate swirl colors across the promise dots */
.hero .promise-list li:nth-child(1)::after { color: var(--spring); }
.hero .promise-list li:nth-child(2)::after { color: var(--lagoon); }
.hero .promise-list li:nth-child(3)::after { color: var(--iris); }
.hero .promise-list li:nth-child(4)::after { color: var(--magenta); }

@media (max-width: 760px) {
  .hero { padding: 48px 0 56px; }
  .hero .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Form */
.lead-form-card {
  background: var(--paper);
  color: var(--ink);
  padding: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px -16px rgba(15,17,56,0.25);
}
.lead-form-card h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}
.lead-form-card p.form-intro {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(42,110,247,0.12);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--cobalt);
}
.checkbox-row label { cursor: pointer; }
.consent-fineprint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 12px 0 16px;
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  background: var(--navy);
  color: #fff;
  padding: 15px 24px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--navy-soft); }
.btn-primary:active { transform: translateY(1px); }

.honeypot { display: none; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--surface); }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 44px;
}
.steps .step {
  border-top: 2px solid var(--navy);
  padding-top: 18px;
}
.steps .step-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.steps .step h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 800;
}
.steps .step p {
  font-size: 0.95rem;
  margin: 0;
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Situations */
.situations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.situations .sit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  transition: border-color 0.15s, transform 0.1s;
}
.situations .sit:hover {
  border-color: var(--lagoon);
}
@media (max-width: 760px) {
  .situations { grid-template-columns: 1fr 1fr; gap: 12px; }
  .situations .sit { padding: 16px 14px; font-size: 0.95rem; }
}

/* Promises */
.promises {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
  margin-top: 32px;
}
.promises .promise h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 6px;
  font-weight: 800;
}
.promises .promise p {
  margin: 0;
  font-size: 0.98rem;
}
@media (max-width: 760px) {
  .promises { grid-template-columns: 1fr; gap: 22px; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.about-grid img.headshot {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.about-grid .signature {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-top: 24px;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid img.headshot { max-width: 320px; }
}

/* FAQ */
.faq-list { margin-top: 32px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 700;
}
.faq-item p {
  margin: 0;
  font-size: 0.98rem;
}

/* Final CTA */
.final-cta {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
}
.final-cta h2 { color: #fff; max-width: 18ch; }
.final-cta p.lead { color: rgba(255,255,255,0.85); }
.final-cta .lead-form-card { margin-top: 32px; box-shadow: 0 8px 32px -8px rgba(0,0,0,0.4); }

/* Spectrum strip — the brand's signature footer detail */
.spectrum-strip {
  height: 6px;
  width: 100%;
  background: linear-gradient(to right,
    var(--spring)  0%       14.285%,
    var(--lagoon)  14.285%  28.571%,
    var(--cobalt)  28.571%  42.857%,
    var(--iris)    42.857%  57.143%,
    var(--magenta) 57.143%  71.428%,
    var(--ember)   71.428%  85.714%,
    var(--sun)     85.714%  100%
  );
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 52px 0 36px;
  font-size: 0.9rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer p { color: rgba(255,255,255,0.7); margin: 0 0 6px; font-size: 0.88rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--spring); }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li { margin-bottom: 6px; font-size: 0.88rem; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-legal a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  margin-right: 18px;
}
.footer-legal a:hover { color: var(--spring); }
@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Legal pages */
.legal-page {
  background: var(--paper);
  padding: 72px 0;
}
.legal-page .container { max-width: 760px; }
.legal-page h1 {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  margin-bottom: 8px;
  font-weight: 900;
}
.legal-page .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.legal-page h2 {
  font-size: 1.3rem;
  margin: 36px 0 10px;
  color: var(--navy);
  font-weight: 800;
}
.legal-page p, .legal-page li {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.65;
}
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
