/* ---------------------------------------------------------------
   Physicians Agents — landing page styles
   Palette: deep navy + warm gold, on a soft warm-white canvas
----------------------------------------------------------------- */

:root {
  --navy-900: #0b2238;
  --navy-800: #0f2940;
  --navy-700: #173a59;
  --gold: #c9a35a;
  --gold-dark: #b08b41;
  --ink: #16222e;
  --slate: #51606e;
  --line: #e6e2d9;
  --canvas: #fbf9f4;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 41, 64, 0.06), 0 8px 24px rgba(15, 41, 64, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 41, 64, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy-800); transform: translateY(-2px); }
.btn-block { width: 100%; margin-top: 6px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(15, 41, 64, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand-mark { display: inline-flex; }
.brand-text {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.brand-accent { color: var(--gold-dark); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--navy-900); }
.site-nav .nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--navy-700); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(70px, 11vw, 130px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 80% 0%, rgba(201, 163, 90, 0.14), transparent 60%),
    radial-gradient(50% 50% at 8% 18%, rgba(23, 58, 89, 0.08), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--navy-700); }
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--slate);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  max-width: 620px;
}
.hero-stats strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  color: var(--navy-900);
  line-height: 1;
}
.hero-stats span {
  display: block;
  font-size: 0.86rem;
  color: var(--slate);
  margin-top: 8px;
}

/* ---------------- Sections ---------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* About */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  margin-bottom: 22px;
}
.about-copy p { color: var(--slate); margin-bottom: 18px; }
.about-signoff {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--navy-800) !important;
  margin-top: 8px;
}
.about-card {
  background: var(--navy-800);
  color: #eaf0f6;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.about-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 0.96rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-num {
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}
.card h3 { font-size: 1.3rem; margin: 12px 0 10px; }
.card p { color: var(--slate); font-size: 0.97rem; }

/* Process */
.process { background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: var(--navy-800);
  margin-bottom: 18px;
}
.steps h3 { font-size: 1.16rem; margin-bottom: 8px; }
.steps p { color: var(--slate); font-size: 0.94rem; }

/* Approach — "why an agent, not a lawyer" */
.approach-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.approach-inner h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 22px;
}
.approach-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--slate);
  line-height: 1.7;
}
.em-gold {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Stakes — navy callout band */
.stakes { background: var(--navy-900); }
.stakes-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.stakes-inner .eyebrow { color: var(--gold); }
.stakes-inner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 18px;
}
.stakes-inner p {
  color: #c2cfdb;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.7;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 18px;
}
.contact-copy > p { color: var(--slate); margin-bottom: 26px; }
.contact-points { list-style: none; margin: 0; padding: 0; }
.contact-points li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--ink);
  font-size: 0.97rem;
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 7px;
}
.field .optional { font-weight: 400; color: var(--slate); }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa6b1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 163, 90, 0.18);
}
.field input.invalid,
.field textarea.invalid {
  border-color: #d4504a;
  box-shadow: 0 0 0 3px rgba(212, 80, 74, 0.14);
}
.field textarea { resize: vertical; min-height: 110px; }

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.92rem;
  margin-top: 14px;
  min-height: 1px;
}
.form-note.success { color: #1f7a4d; font-weight: 500; }
.form-note.error { color: #c4423c; font-weight: 500; }
.form-fineprint {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 14px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-900);
  color: #b9c6d3;
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand-text { color: #fff; font-size: 1.25rem; }
.footer-brand .brand-accent { color: var(--gold); }
.footer-brand p { margin-top: 8px; font-size: 0.92rem; max-width: 320px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.94rem; color: #b9c6d3; transition: color 0.2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #8597a7;
}

/* ---------------- Reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 460px) {
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.05ms !important; }
}
