/* =========================================================
   Gold Zone Budget and Support
   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;
  --gold: #B6914F;
  --gold-soft: #F6EBD3;
  --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.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: 980px;
}

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

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

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

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

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

.header-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 11px 20px;
  background: #CDD5DF;
  border: 1px solid var(--medium-blue);
  border-radius: 6px;
  color: var(--deep-blue);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.header-button:hover {
  background: #DDE3EB;
  border-color: var(--deep-blue);
}

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

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

.main-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 6px;
}

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

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

p {
  margin: 0 0 16px;
}

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

.topic-section {
  padding: 36px 0 0;
  background: var(--warm-beige);
}

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

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

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

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.topic-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 26px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-top: 8px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 18px;
  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,
.header-button:focus,
.footer-links a:focus {
  outline: 3px solid var(--deep-blue);
  outline-offset: 3px;
}

.closing-copy {
  max-width: 980px;
  margin: 30px auto 0;
  border-left: 6px solid var(--gold);
}

.progression-section {
  padding: 36px 0 0;
  background: var(--warm-beige);
}

.guide-section {
  padding: 36px 0 0;
  background: var(--warm-beige);
}

.progression-card {
  max-width: 980px;
  padding: 34px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.progression-card h2 {
  margin: 0 0 16px;
  color: var(--deep-blue);
  font-size: clamp(2.1rem, 4vw, 2.8rem);
}

.progression-button {
  margin-top: 12px;
}

.guide-form-frame {
  width: 100%;
  min-height: 771px;
  margin-top: 24px;
}

.guide-form-frame iframe {
  display: block;
  width: 100%;
  min-height: 771px;
}

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

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

.return-wrap {
  text-align: center;
}

.return-button {
  margin-top: 0;
}

.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: 1020px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

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

  .tagline {
    font-size: 1.05rem;
  }

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

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

  .main-image {
    padding: 16px;
  }

  .intro-card,
  .topic-card,
  .closing-copy,
  .progression-card {
    padding: 22px;
  }

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

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

  .topic-grid {
    grid-template-columns: 1fr;
  }

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

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

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