/* =========================================================
   Sequential Divorce Progression Map Options
   Plain CSS, no external frameworks.
   ========================================================= */

:root {
  --deep-blue: #4E6FB2;
  --medium-blue: #779ECB;
  --button-blue: #799ECC;
  --pale-blue-gray: #CDD5DF;
  --warm-beige: #D7C8AE;
  --warm-white: #FFFDF8;
  --cream: #F7F3EC;
  --text: #263238;
  --muted: #5F6F73;
  --border: #D8D2C4;
  --zone-blue: #5F82C7;
  --zone-blue-soft: #E8EEF9;
  --zone-green: #7EA68A;
  --zone-green-soft: #EDF5EF;
  --zone-gold: #B9964E;
  --zone-gold-soft: #F7EEDB;
  --review-zone: #6F7F8A;
  --review-zone-soft: #EEF1F4;
  --shadow: 0 18px 42px rgba(38, 50, 56, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm-beige);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.page-wrap {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.site-header {
  padding: 34px 0 46px;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.header-wrap {
  max-width: 1040px;
}

.brand-logo {
  display: block;
  width: min(230px, 68vw);
  height: auto;
  margin: 0 auto 24px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.program-line {
  margin: 4px 0 14px;
  color: var(--deep-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  font-weight: 700;
}

h1 {
  max-width: 940px;
  margin: 0 auto;
  color: var(--deep-blue);
  font-size: clamp(2.8rem, 5.2vw, 4.65rem);
}

.tagline {
  max-width: 780px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

.hero-section {
  padding: 44px 0 28px;
  background: var(--deep-blue);
}

.hero-image {
  margin: 0;
  padding: 24px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-top: 6px solid var(--warm-beige);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 8px;
}

.hero-copy-section {
  padding: 34px 0;
  background: var(--pale-blue-gray);
}

.hero-copy {
  padding: 34px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-section {
  padding: 34px 0;
  background: #FFFFFF;
}

.intro-panel,
.closing-card {
  padding: 34px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-panel h2,
.closing-card h2,
.section-heading h2 {
  margin: 0 0 16px;
  color: var(--deep-blue);
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.cta-wrap {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.lower-cta {
  padding-top: 18px;
  padding-bottom: 38px;
}

.map-index-section {
  padding: 38px 0;
  background: var(--deep-blue);
}

.full-map-section {
  padding: 38px 0 0;
  background: var(--warm-beige);
}

.map-index-section .section-heading h2,
.map-index-section .section-heading p {
  color: var(--warm-white);
}

.section-heading {
  max-width: 1040px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.5;
}

.map-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.map-card,
.full-map-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  border-top: 7px solid var(--medium-blue);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.map-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(38, 50, 56, 0.15);
}

.map-card:nth-child(3n + 1) {
  border-top-color: var(--zone-gold);
}

.map-card:nth-child(3n + 2) {
  border-top-color: var(--zone-green);
}

.map-card:nth-child(3n) {
  border-top-color: var(--zone-blue);
}

.map-card h3 {
  margin: 0 0 12px;
  color: var(--deep-blue);
  font-size: 1.32rem;
}

.map-card p {
  color: var(--text);
}

.text-link,
.return-link {
  color: var(--deep-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link {
  margin-top: auto;
}

.text-link:hover,
.return-link:hover {
  color: #2f4f86;
}

.full-map-card {
  scroll-margin-top: 20px;
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 30px;
  border-left: 7px solid var(--medium-blue);
}

.full-map-card:nth-of-type(3n + 1) {
  border-left-color: var(--zone-gold);
}

.full-map-card:nth-of-type(3n + 2) {
  border-left-color: var(--zone-green);
}

.full-map-card:nth-of-type(3n) {
  border-left-color: var(--zone-blue);
}

.full-map-card h2 {
  margin: 0 0 16px;
  color: var(--deep-blue);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
}

.full-map-card ol {
  margin: 18px 0;
  padding-left: 24px;
}

.full-map-card li + li {
  margin-top: 8px;
}

.map-step-group {
  margin: 20px 0;
  padding: 18px;
  background: var(--zone-soft, var(--cream));
  border: 1px solid var(--border);
  border-left: 5px solid var(--zone-color, var(--medium-blue));
  border-radius: 8px;
}

.map-step-group h3 {
  margin: 0 0 10px;
  color: var(--zone-color, var(--deep-blue));
  font-size: 1.2rem;
}

.map-step-group ol {
  margin: 0;
}

.support-note {
  margin: 20px 0;
  padding: 18px;
  background: var(--review-zone-soft);
  border: 1px solid var(--border);
  border-left: 5px solid var(--review-zone);
  border-radius: 8px;
}

.process-card {
  margin: 20px 0;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 5px solid var(--warm-beige);
  border-radius: 8px;
}

.process-card h3 {
  margin: 0 0 10px;
  color: var(--deep-blue);
  font-size: 1.2rem;
}

.process-card ol {
  margin: 0;
}

.zone-card.blue-zone {
  --zone-color: var(--zone-blue);
  --zone-soft: var(--zone-blue-soft);
}

.zone-card.green-zone {
  --zone-color: var(--zone-green);
  --zone-soft: var(--zone-green-soft);
}

.zone-card.gold-zone {
  --zone-color: var(--zone-gold);
  --zone-soft: var(--zone-gold-soft);
}

.zone-card.review-zone {
  --zone-color: var(--review-zone);
  --zone-soft: var(--review-zone-soft);
}

.return-link {
  display: inline-block;
  margin-top: 8px;
}

.closing-section {
  padding: 38px 0;
  background: var(--pale-blue-gray);
}

.closing-card {
  max-width: 980px;
  text-align: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 13px 20px;
  background: var(--button-blue);
  border: 1px solid var(--button-blue);
  border-radius: 6px;
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: #638BBC;
  border-color: #638BBC;
}

.consultation-button {
  width: min(100%, 680px);
  min-height: 62px;
  padding: 18px 32px;
  font-size: 1.12rem;
}

.button:focus,
.text-link:focus,
.return-link:focus,
.footer-links a:focus {
  outline: 3px solid var(--deep-blue);
  outline-offset: 3px;
}

.legal-notice-section {
  padding: 2rem 0;
  background: var(--warm-beige);
}

.legal-notice-card {
  max-width: 1180px;
  padding: 0 12px;
  color: var(--text);
  text-align: center;
}

.legal-notice-card p {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}

.site-footer {
  padding: 24px 0 32px;
  background: var(--deep-blue);
  color: var(--warm-white);
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--warm-white);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 253, 248, 0.7);
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

.footer-links a:focus {
  outline-color: var(--warm-white);
}

.site-footer .copyright-line {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 980px) {
  .map-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .page-wrap {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding: 28px 0 38px;
  }

  .brand-logo {
    width: min(200px, 72vw);
    margin-bottom: 20px;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .hero-section {
    padding: 30px 0 22px;
  }

  .hero-copy,
  .intro-panel,
  .map-card,
  .full-map-card,
  .closing-card {
    padding: 22px;
  }

  .consultation-button {
    padding: 16px 24px;
    font-size: 1.02rem;
  }

  .intro-section,
  .map-index-section,
  .full-map-section,
  .closing-section {
    padding-top: 30px;
  }

  .section-heading p {
    font-size: 1.05rem;
  }

  .legal-notice-card {
    padding: 0 22px;
  }

  .footer-wrap {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
