/* =========================================================
   About Sequential Divorce
   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;
  --shadow: 0 18px 42px rgba(38, 50, 56, 0.11);
}

* {
  box-sizing: border-box;
}

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.68;
}

.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: 980px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.site-header h1 {
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(3rem, 6vw, 4.65rem);
}

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

.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 center;
  border-radius: 8px;
}

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

.article-card {
  max-width: 980px;
  padding: 42px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-card h1 {
  margin: 0 0 24px;
  color: var(--deep-blue);
  font-size: clamp(2.35rem, 4.8vw, 3.65rem);
}

.article-card h2 {
  margin: 38px 0 14px;
  color: var(--deep-blue);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.article-card p {
  max-width: 760px;
  margin: 0 0 16px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 14px 22px;
  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;
}

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

.article-button {
  display: flex;
  width: fit-content;
  margin-top: 28px;
  margin-right: auto;
  margin-left: auto;
}

.cta-wrap {
  display: flex;
  justify-content: center;
  margin: 30px 0 8px;
}

.bottom-cta {
  margin-top: 34px;
  margin-bottom: 0;
}

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

.return-wrap {
  margin-top: 30px;
  text-align: center;
}

.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: 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-image {
    padding: 16px;
  }

  .article-section {
    padding: 30px 0;
  }

  .article-card {
    padding: 24px;
  }

  .article-card p {
    max-width: none;
  }

  .button {
    width: 100%;
  }

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

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

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

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