:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.968 0.008 245);
  --ink: oklch(0.14 0.022 245);
  --primary: oklch(0.34 0.078 245);
  --primary-deep: oklch(0.20 0.055 245);
  --accent: oklch(0.82 0.15 88);
  --accent-dark: oklch(0.72 0.13 85);
  --muted: oklch(0.48 0.022 240);
  --white-muted: oklch(0.92 0.008 240);
  --line: oklch(0.87 0.008 240);
  --error: oklch(0.52 0.18 25);
  --success: oklch(0.42 0.1 155);
  --font-display: "Libre Caslon Display", Georgia, serif;
  --font-body: "Public Sans", Arial, sans-serif;
  --shell: 1200px;
  --header-height: 78px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6.2vw, 5.5rem);
}

h2 {
  max-width: 17ch;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.25;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: var(--header-height);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
  background: oklch(0.12 0.028 185 / 0.9);
  color: white;
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.brand-role {
  color: var(--white-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  color: var(--white-muted);
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover {
  border-color: var(--accent);
  color: white;
}

.site-nav .nav-cta {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: white;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: white;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 7px 0;
  background: currentColor;
  transition: transform 180ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 10px;
  border: 1px solid oklch(1 0 0 / 0.28);
  border-radius: 999px;
}

.lang-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.lang-option {
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lang-option:hover:not(.is-active) {
  color: white;
}

.lang-option.is-active {
  background: var(--accent);
  color: var(--primary-deep);
}

.lang-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero {
  position: relative;
  min-height: 820px;
  padding: calc(var(--header-height) + 88px) 0 80px;
  overflow: hidden;
  background: var(--primary-deep);
  color: white;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, oklch(0.82 0.15 88 / 0.06), transparent 45%),
    radial-gradient(circle at 12% 24%, oklch(0.42 0.08 180 / 0.34), transparent 32%),
    linear-gradient(110deg, transparent 55%, oklch(0.08 0 0 / 0.32));
  content: "";
}

.hero-orbit {
  position: absolute;
  right: clamp(-280px, -12vw, -100px);
  top: 36%;
  width: 700px;
  aspect-ratio: 1;
  border: 1px solid oklch(0.82 0.1 78 / 0.28);
  border-radius: 50%;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  inset: 12%;
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: inherit;
  content: "";
}

.hero-orbit::after {
  inset: 25%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.hero-copy {
  padding-top: 30px;
  animation: hero-copy-in 800ms var(--ease-out) both;
}

.identity-line {
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 60ch;
  margin-bottom: 34px;
  color: var(--white-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 220ms var(--ease-out), background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-deep);
  background-size: 200% auto;
  transition: transform 220ms var(--ease-out), background-position 0.4s ease, box-shadow 220ms ease;
  box-shadow: 0 4px 14px oklch(0.82 0.15 88 / 0.15);
}

.button-primary:hover {
  background-position: right center;
  box-shadow: 0 6px 20px oklch(0.82 0.15 88 / 0.35);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: oklch(1 0 0 / 0.55);
  color: white;
}

.button-secondary:hover {
  background: white;
  color: var(--ink);
}

.button-dark {
  background: var(--primary-deep);
  color: white;
}

.button-dark:hover {
  background: var(--primary);
}

.hero-note {
  margin: 20px 0 0;
  color: oklch(0.82 0.018 185);
  font-size: 0.82rem;
}

.hero-portrait {
  position: relative;
  margin: 0;
  animation: hero-portrait-in 900ms 120ms var(--ease-out) both;
}

.portrait-frame {
  position: relative;
  height: min(68vh, 620px);
  min-height: 480px;
  overflow: hidden;
  border-radius: 180px 180px 12px 12px;
  background: var(--primary);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(0.08 0 0 / 0.62));
  content: "";
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 21%;
  filter: saturate(0.88) contrast(1.03);
}

.hero-portrait figcaption {
  position: absolute;
  right: -20px;
  bottom: 24px;
  z-index: 1;
  width: min(270px, 80%);
  padding: 18px 20px;
  background: white;
  color: var(--ink);
}

.hero-portrait figcaption span,
.hero-portrait figcaption small {
  display: block;
}

.hero-portrait figcaption span {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.hero-portrait figcaption small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.trust-bar {
  background: var(--accent);
}

.trust-list {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.trust-list p {
  margin: 0;
  padding: 0 28px;
  border-right: 1px solid oklch(0.2 0.04 78 / 0.28);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.trust-list p:last-child {
  border-right: 0;
}

.decision-section,
.families-section,
.process-section,
.testimonials-section,
.contact-section {
  padding: clamp(90px, 11vw, 150px) 0;
}

.section-intro {
  max-width: 720px;
}

.section-intro.narrow {
  max-width: 650px;
}

.section-intro > p:last-child,
.agents-heading > p,
.about-copy > p,
.contact-intro > p {
  max-width: 68ch;
  color: var(--muted);
}

.section-label {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-label.light {
  color: var(--accent);
}

.decision-portal {
  position: relative;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  background: var(--primary-deep);
  color: white;
}

.decision-portal::before {
  position: absolute;
  left: 61%;
  top: -34px;
  width: 1px;
  height: 34px;
  background: var(--accent);
  content: "";
}

.decision-path {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 68px);
}

.decision-path + .decision-path {
  border-left: 1px solid oklch(1 0 0 / 0.18);
}

.decision-path-agents {
  background: var(--primary);
}

.decision-path h3 {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}

.decision-path p:not(.path-index) {
  max-width: 46ch;
  color: var(--white-muted);
}

.path-index {
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  border-bottom: 1px solid var(--accent);
  font-weight: 700;
}

.text-link span {
  transition: transform 180ms var(--ease-out);
}

.text-link:hover span {
  transform: translateX(4px);
}

.agents-section {
  padding: clamp(100px, 12vw, 170px) 0;
  background: oklch(0.1 0 0);
  color: white;
}

.agents-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr);
  gap: clamp(70px, 10vw, 150px);
}

.agents-heading h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
}

.agents-heading > p {
  margin-bottom: 34px;
  color: oklch(0.78 0.012 185);
}

.agents-details {
  border-top: 1px solid oklch(1 0 0 / 0.2);
}

.benefit-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.2);
}

.benefit-row > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.benefit-row p {
  margin: 0;
  color: oklch(0.76 0.01 185);
}

.compliance-note {
  margin: 28px 0 0;
  color: oklch(0.68 0.015 185);
  font-size: 0.76rem;
}

.families-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px 100px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-list article {
  position: relative;
  padding: 34px 0 34px 36px;
  border-bottom: 1px solid var(--line);
}

.service-list article::before {
  position: absolute;
  left: 0;
  top: 44px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.service-list span {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-list h3 {
  margin-top: 5px;
}

.service-list p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
}

.families-action {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 16px;
}

.families-action p {
  max-width: 46ch;
  margin: 0;
}

.process-section {
  background: var(--surface);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 10vw, 140px);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li:first-child {
  border-top: 1px solid var(--line);
}

.process-list > li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 10vw, 140px) 0;
  background: var(--primary);
  color: white;
}

.about-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, oklch(0.82 0.15 88 / 0.08) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
}

.about-section::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, oklch(0.42 0.08 245 / 0.14) 0%, transparent 70%);
  filter: blur(110px);
  pointer-events: none;
  z-index: 1;
}

.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
}

.about-copy {
  max-width: 760px;
}

.about-copy > p {
  color: var(--white-muted);
}

.about-copy > p.about-tagline {
  margin: 12px 0 24px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.4;
}

.about-copy > p:not(.section-label):not(.about-tagline) + p {
  margin-top: 16px;
}

.credential-list {
  margin: 36px 0 0;
}

.credential-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.18);
}

.credential-list dt {
  color: var(--white-muted);
  font-size: 0.8rem;
}

.credential-list dd {
  margin: 0;
  font-weight: 700;
}

.about-portrait {
  width: min(380px, 100%);
  margin: 0;
  align-self: center;
  justify-self: end;
}

.about-portrait-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary-deep);
  line-height: 0;
}

.about-portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transform: scale(1);
  transition: transform 320ms var(--ease-out);
}

.about-portrait-frame:hover img {
  transform: scale(1.012);
}

.testimonials-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.quotes {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quotes blockquote {
  min-height: 300px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
}

.quotes blockquote + blockquote {
  border-left: 1px solid var(--line);
}

.quotes p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.45;
}

.quotes footer {
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-section {
  padding: 0 0 clamp(90px, 11vw, 150px);
  background: white;
}

.calendar-panel {
  position: relative;
  min-height: 350px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
  padding: clamp(48px, 7vw, 90px);
  overflow: hidden;
  background: var(--primary-deep);
  color: white;
}

.calendar-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, oklch(0.82 0.15 88 / 0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.calendar-panel::after {
  position: absolute;
  right: -110px;
  bottom: -220px;
  width: 420px;
  height: 420px;
  border: 1px solid oklch(0.82 0.15 88 / 0.35); /* Updated to new gold and slightly lower opacity */
  border-radius: 50%;
  content: "";
}

.calendar-panel > * {
  position: relative;
  z-index: 1;
}

.calendar-panel h2 {
  max-width: 16ch;
}

.calendar-panel p:not(.section-label):not(.calendar-status) {
  max-width: 62ch;
  color: var(--white-muted);
}

.calendar-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: -24px 0 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-section {
  background: var(--surface);
}

.contact-intro {
  margin-bottom: 54px;
}

.contact-route-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-route-choice {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 220ms var(--ease-out);
}

.contact-route-choice:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-route-choice[aria-pressed="true"] {
  border-color: transparent;
  background: var(--primary);
  color: white;
}

.contact-route-choice span {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.contact-route-choice[aria-pressed="true"] span {
  color: var(--accent);
}

.contact-route-choice strong {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
}

.contact-route-choice small {
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-route-choice[aria-pressed="true"] small {
  color: var(--white-muted);
}

.form-picker-status {
  min-height: 24px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-stage {
  max-width: 760px;
  margin-top: 28px;
}

.form-stage:empty {
  display: none;
}

.contact-form[hidden] {
  display: none;
}

.contact-form {
  display: grid;
  gap: 19px;
  padding: clamp(28px, 4vw, 50px);
  background: white;
}

.form-heading {
  margin-bottom: 12px;
}

.form-heading span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-heading h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 400;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid oklch(0.67 0.025 200);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  font-size: 16px;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--primary);
  outline: 2px solid oklch(0.55 0.095 245 / 0.25);
  outline-offset: 2px;
}

.contact-form [aria-invalid="true"] {
  border-color: var(--error);
}

.contact-form .button {
  width: 100%;
  margin-top: 7px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--error);
}

.site-footer {
  padding: 70px 0 22px;
  background: oklch(0.09 0 0);
  color: oklch(0.82 0.008 245);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.4fr;
  gap: 60px;
}

.footer-brand {
  margin-bottom: 14px;
  color: white;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.footer-grid p {
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.footer-title {
  color: var(--accent);
  font-weight: 700;
}

.footer-links {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
}

.footer-links a,
.footer-links button {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 0.82rem;
}

.footer-bottom {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid oklch(1 0 0 / 0.13);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.72rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: oklch(0.56 0.17 150);
  color: white;
  isolation: isolate;
  transition: transform 220ms var(--ease-out), background 180ms ease;
}

.floating-whatsapp:hover {
  background: oklch(0.51 0.17 150);
  transform: translateY(-3px) scale(1.07);
}

.floating-whatsapp::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: oklch(0.56 0.17 150 / 0.42);
  content: "";
  animation: whatsapp-pulse 3.8s ease-out infinite;
}

.floating-whatsapp:hover::before {
  animation-play-state: paused;
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  width: min(calc(100% - 40px), 520px);
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 8px oklch(0.05 0 0 / 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-portrait-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes whatsapp-pulse {
  0%, 70%, 100% { opacity: 0; transform: scale(1); }
  8% { opacity: 0.5; }
  28% { opacity: 0; transform: scale(1.7); }
}

@media (max-width: 980px) {
  :root { --header-height: 70px; }

  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 24px;
    background: var(--primary-deep);
    transform: translateX(100%);
    transition: transform 260ms var(--ease-out);
  }

  .site-nav.is-open { transform: translateX(0); }

  .site-nav a {
    min-height: 56px;
    padding: 0 8px;
    border-bottom: 1px solid oklch(1 0 0 / 0.15);
    font-size: 1rem;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 14px;
    border: 1px solid var(--accent);
  }

  .hero { min-height: 0; padding-bottom: 0; }

  .hero-grid {
    grid-template-columns: 1fr 0.72fr;
    gap: 44px;
  }

  .hero-copy { padding: 30px 0 70px; }

  .portrait-frame {
    height: 570px;
    min-height: 0;
    border-radius: 150px 150px 0 0;
  }

  .hero-portrait { align-self: end; }
  .hero-portrait figcaption { right: 0; }

  .agents-grid,
  .families-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .families-action { grid-column: 1; }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  }

  .about-portrait {
    width: min(330px, 100%);
    justify-self: end;
  }

  .quotes { grid-template-columns: 1fr; }
  .quotes blockquote { min-height: 220px; }
  .quotes blockquote + blockquote { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 740px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }

  h1 { font-size: clamp(2.75rem, 13vw, 4.4rem); }
  h2 { font-size: clamp(2.15rem, 10vw, 3.4rem); }

  .hero { padding-top: calc(var(--header-height) + 52px); }

  .hero-grid { display: flex; flex-direction: column; gap: 20px; }
  .hero-copy { padding: 20px 0 28px; }

  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }

  .hero-portrait { width: min(100%, 430px); }
  .portrait-frame { height: 500px; border-radius: 140px 140px 0 0; }

  .hero-portrait figcaption {
    right: 0;
    bottom: 0;
    width: 78%;
  }

  .trust-list { grid-template-columns: 1fr; padding: 16px 0; }
  .trust-list p { padding: 12px; border-right: 0; border-bottom: 1px solid oklch(0.2 0.04 82 / 0.25); }
  .trust-list p:last-child { border-bottom: 0; }

  .decision-portal { grid-template-columns: 1fr; }
  .decision-portal::before { left: 50%; }
  .decision-path { min-height: 330px; }
  .decision-path + .decision-path { border-left: 0; border-top: 1px solid oklch(1 0 0 / 0.18); }

  .agents-grid { grid-template-columns: minmax(0, 1fr); }
  .benefit-row { grid-template-columns: 1fr; gap: 8px; }

  .families-action { align-items: stretch; flex-direction: column; }
  .families-action .button { width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { width: min(100%, 340px); justify-self: start; margin-top: 16px; }

  .testimonials-head { align-items: stretch; flex-direction: column; }
  .quotes blockquote { padding: 30px 22px; }

  .calendar-panel { grid-template-columns: 1fr; gap: 28px; padding: 42px 26px; }
  .calendar-panel .button { width: 100%; }
  .calendar-status { grid-column: 1; margin: 0; }

  .contact-route-picker { grid-template-columns: 1fr; }
  .contact-route-choice { min-height: 148px; padding: 24px; }
  .contact-form { padding: 28px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }
  .toast { bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Botón Volver Arriba */
.floating-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 82px; /* Justo arriba del WhatsApp float */
  z-index: 24;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-deep);
  color: white;
  border: 1px solid oklch(1 0 0 / 0.15);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.9);
  transition: opacity 220ms ease, transform 220ms var(--ease-out), background 180ms ease;
  box-shadow: 0 4px 10px oklch(0 0 0 / 0.15);
}

.floating-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-back-to-top:hover {
  background: var(--primary);
  transform: translateY(-2px) scale(1.05);
}

.floating-back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Modal de documentos legales */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(0.08 0 0 / 0.6);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  padding: 16px;
}

.modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg);
  color: var(--ink);
  padding: 40px;
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform 280ms var(--ease-out);
  box-shadow: 0 20px 45px oklch(0 0 0 / 0.28);
  border: 1px solid var(--line);
}

.modal-overlay.is-visible .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transition: color 150ms ease, transform 150ms ease;
}

.modal-close:hover {
  color: var(--ink);
  transform: scale(1.05);
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  margin-bottom: 22px;
  color: var(--primary-deep);
  line-height: 1.15;
  padding-right: 32px;
}

.modal-body {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink);
}

.modal-body p {
  margin-bottom: 14px;
}

.modal-body h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary-deep);
  margin: 24px 0 10px;
  font-size: 1.05rem;
}

.modal-body ul {
  margin-bottom: 14px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 6px;
}

@media (max-width: 740px) {
  .floating-back-to-top {
    right: 14px;
    bottom: 74px; /* Encima del WhatsApp en mobile */
    width: 44px;
    height: 44px;
  }
  
  .modal-content {
    padding: 28px 20px;
    max-height: 85vh;
  }
}

/* ==========================================================================
   Animaciones de entrada (Scroll Reveal)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
}

.reveal.reveal-left {
  transform: translateX(-28px);
}

.reveal.reveal-right {
  transform: translateX(28px);
}

.reveal.active {
  opacity: 1;
  transform: translate(0);
}

/* Retardos secuenciales (Delays) */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 220ms; }
.delay-3 { transition-delay: 340ms; }
.delay-4 { transition-delay: 460ms; }
.delay-5 { transition-delay: 580ms; }
