/* =============== */
/* GLOBAL RESET    */
/* =============== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* =============== */
/* THEME COLORS    */
/* =============== */

:root {
  --primary: #008751;
  /* NYSC-style green */
  --primary-dark: #00613a;
  --button-text-primary: #ffffff;
  --accent: #f5a623;
  /* soft orange accent */
  --bg: #f7f7f7;
  --surface: #ffffff;
  --border: #e0e0e0;
  --text-muted: #666666;
  --radius-card: 16px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
  --max-width: 960px;
}

/* =============== */
/* LAYOUT WRAPPER  */
/* =============== */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

section {
  margin-bottom: 32px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
}

/* =============== */
/* HEADER & NAV    */
/* =============== */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  padding: 10px 16px;
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: 0.03em;
}

header h1 a {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

nav {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #333;
  padding: 6px 0 4px;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Plain links inside home cards (e.g. "Generate Checklist") */
.home-card-links a:not(.btn-primary):not(.btn-secondary) {
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 97, 58, 0.3);
  transition: color 0.15s, text-decoration-color 0.15s;
}

.home-card-links a:not(.btn-primary):not(.btn-secondary):hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* Mobile header layout */
@media (min-width: 640px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  nav {
    margin-top: 0;
    flex-wrap: nowrap;
    gap: 16px;
  }
}

/* =============== */
/* INLINE LINKS    */
/* =============== */

/* All body text links (not nav, not buttons, not footer) */
main a:not([class]),
main a.page-header-alt,
.callout a,
.step-section a:not(.btn-primary):not(.btn-secondary),
.doc-list a,
section>p a:not(.btn-primary):not(.btn-secondary) {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 97, 58, 0.3);
  transition: color 0.15s, text-decoration-color 0.15s;
}

main a:not([class]):hover,
.callout a:hover,
.step-section a:not(.btn-primary):not(.btn-secondary):hover,
.doc-list a:hover,
section>p a:not(.btn-primary):not(.btn-secondary):hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* "See other version" alt links in page headers — arrow style */
.page-header-alt a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 135, 81, 0.3);
  padding-bottom: 1px;
  transition: border-bottom-color 0.15s, color 0.15s, gap 0.15s;
}

.page-header-alt a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
  gap: 7px;
  /* nudges the arrow slightly on hover */
}

/* Links inside callout blocks — slightly bolder */
.callout a {
  font-weight: 600;
}

/* =============== */
/* TYPOGRAPHY      */
/* =============== */

h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 10px;
}

ul {
  padding-left: 18px;
  margin-top: 4px;
  margin-bottom: 10px;
}

em {
  color: var(--text-muted);
}

/* =============== */
/* HERO / HOME     */
/* =============== */

section:first-of-type {
  margin-top: 24px;
}

.home-hero {
  text-align: left;
}

.home-hero p {
  max-width: 700px;
}

/* Category cards on home page */
.home-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.home-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 16px 16px 18px;
  background: #ffffff;
}

.home-card h3 {
  margin-bottom: 4px;
}

.home-card p {
  margin-bottom: 8px;
}

.home-card-links a {
  display: inline-block;
  margin-right: 8px;
  font-size: 0.9rem;
}

/* Standalone converter landing */
body.converter-page {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f4fff7;
  color: #0f2a1f;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
}

body.converter-page h1,
body.converter-page h2,
body.converter-page h3 {
  color: #166534;
  margin-bottom: 0.75rem;
}

body.converter-page p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

body.converter-page .page-card {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 42, 31, 0.08);
  padding: 2rem;
}

.link-muted {
  color: #166534;
  font-weight: 500;
}

/* Two-column layout on wider screens */
@media (min-width: 720px) {
  .home-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============== */
/* BUTTON / LINKS  */
/* =============== */

a,
button {
  cursor: pointer;
}

.btn-primary,
.btn-secondary,
button[type="submit"] {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--button-text-primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--button-text-primary);
  border-color: var(--primary-dark);
}

button[type="submit"] {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

button[type="submit"]:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:focus {
  color: var(--button-text-primary);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: #f0fff7;
}

body.converter-page .btn,
body.converter-page button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f8e4c;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 8px 15px rgba(31, 142, 76, 0.2);
}

body.converter-page .btn:hover,
body.converter-page button:hover,
body.converter-page .btn:focus,
body.converter-page button:focus {
  background: #166534;
  transform: translateY(-1px);
}

body.converter-page .btn:focus,
body.converter-page button:focus {
  outline: 3px solid #bbf7d0;
  outline-offset: 2px;
}

/* =============== */
/* DETAILS / FAQ   */
/* =============== */

details {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fcfcfc;
  padding: 10px 12px;
  margin-bottom: 10px;
}

details[open] {
  background: #ffffff;
}

summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

/* Add a small chevron indicator */
summary::after {
  content: "▸";
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(90deg);
}

details ul {
  margin-top: 8px;
}

/* =============== */
/* FORMS (TOOLS)   */
/* =============== */

form {
  margin-top: 8px;
}

form h4 {
  margin-top: 14px;
}

label {
  font-size: 0.9rem;
  color: #333;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 4px;
}

#checklist-result {
  margin-top: 16px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px dashed var(--primary);
  background: #f5fff9;
  font-size: 0.9rem;
}

/* =============== */
/* CONVERTER TOOL  */
/* =============== */

.converter-tool .converter-card {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.converter-tool button {
  margin-top: 14px;
}

.converter-tool .converter-tip {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.converter-tool .converter-notes {
  background: #f5fff9;
  border: 1px dashed var(--primary);
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.converter-tool .converter-notes li {
  margin-bottom: 6px;
}

/* =============== */
/* FOOTER          */
/* =============== */

footer {
  border-top: 1px solid #e0e0e0;
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #ffffff;
}

footer a {
  color: var(--primary);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 0;
}

.footer-social a svg {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--primary);
}

/* =============== */
/* MOBILE OPTIMIZE */
/* =============== */

@media (max-width: 640px) {
  header {
    padding: 12px 14px;
  }

  header h1 {
    font-size: 1.1rem;
  }

  main {
    padding: 20px 14px 32px;
  }

  section {
    padding: 18px 16px;
    margin-bottom: 24px;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 0.98rem;
  }

  nav {
    padding-bottom: 4px;
  }

  .home-card {
    padding: 14px;
  }

  .home-card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .home-card-links a,
  .home-card-links button {
    width: 100%;
    text-align: center;
  }

  form label {
    display: block;
    padding: 6px 0;
  }

  input[type="radio"],
  input[type="checkbox"] {
    margin-right: 8px;
  }

  body.converter-page {
    padding: 1.5rem 0.75rem;
  }

  body.converter-page .page-card {
    padding: 1.5rem 1.25rem;
  }

  .converter-tool .converter-card {
    padding: 16px;
  }

  .converter-tool button,
  #download-pdf,
  .converter-tool input[type="file"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 6px 10px;
  }

  header h1 {
    font-size: 1.05rem;
  }

  .home-hero ul {
    padding-left: 16px;
  }
}

/* ================================ */
/* PRINT STYLES (checklist output)  */
/* ================================ */

@media print {

  header,
  nav,
  .page-header,
  .checklist-form,
  .checklist-print-btn,
  .tool-card,
  .callout,
  footer,
  #download-pdf {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    max-width: 100%;
    padding: 0;
  }

  section {
    box-shadow: none;
    border-radius: 0;
    border: none;
    padding: 0;
  }

  .checklist-output {
    border-top: none;
    padding-top: 0;
  }

  .doc-list li {
    border: none;
    background: none;
    padding: 4px 0;
    break-inside: avoid;
  }
}

/* ================================ */
/* CHECKLIST FORM (tools page)      */
/* ================================ */

.checklist-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.checklist-q-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: #222;
}

.checklist-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checklist-option {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fafafa;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.checklist-option:hover {
  border-color: var(--primary);
  background: #f0fff7;
}

.checklist-option input {
  accent-color: var(--primary);
  margin: 0;
  flex-shrink: 0;
}

.checklist-option:has(input:checked) {
  border-color: var(--primary);
  background: #e8f7f0;
  color: var(--primary-dark);
  font-weight: 600;
}

.checklist-submit {
  align-self: flex-start;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* Generated output area */
.checklist-output {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
}

.checklist-output h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.checklist-output-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.checklist-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: #e8f7f0;
  border-radius: 999px;
  display: inline-block;
  padding: 3px 12px;
  margin: 10px 0 8px;
}

.checklist-none {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ================================ */
/* PAGE HEADER (inner pages)        */
/* ================================ */

.page-header {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 0;
}

.page-header h2 {
  margin-bottom: 4px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.page-header p {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-header .page-header-alt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-header .page-header-alt a {
  color: var(--primary);
}

/* ================================ */
/* STEP SECTION (registration pages)*/
/* ================================ */

.step-section {
  position: relative;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-heading h3 {
  margin: 0;
  font-size: 1.1rem;
}

/* Sub-steps inside Step 2 */
.substep {
  margin-bottom: 16px;
}

.substep-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 5px;
  color: #333;
}

.substep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f7f0;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid #c2e8d4;
}

.substep ul {
  margin: 0;
  padding-left: 30px;
}

/* ================================ */
/* DOC-ITEM LIST (document pages)   */
/* ================================ */

.doc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.93rem;
  line-height: 1.45;
}

.doc-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.doc-list li strong {
  display: block;
  font-size: 0.93rem;
  margin-bottom: 1px;
}

.doc-list li span {
  color: var(--text-muted);
  font-size: 0.87rem;
}

/* ================================ */
/* CALLOUT BLOCKS                   */
/* ================================ */

.callout {
  border-left: 4px solid #f5a623;
  background: #fffbf2;
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
}

.callout h3,
.callout h4 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #8a5800;
}

.callout p,
.callout ul {
  font-size: 0.93rem;
  margin-bottom: 6px;
  color: #555;
}

.callout ul {
  padding-left: 18px;
}

.callout--green {
  border-left-color: var(--primary);
  background: #f2fbf6;
}

.callout--green h3,
.callout--green h4 {
  color: var(--primary-dark);
}

/* Nav active link indicator */
nav a.nav-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ================================ */
/* HOME PAGE – SCROLL SNAP LAYOUT   */
/* ================================ */

/* On the home page, body manages the full viewport */
body.home-page {
  overflow: hidden;
  /* let the snap container scroll instead */
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header sits outside the scroll container — standard sticky look */
body.home-page header {
  position: relative;
  /* override sticky so it doesn't conflict */
  flex-shrink: 0;
  z-index: 20;
}

/* The snap container fills the remaining viewport height */
.snap-container {
  flex: 1 1 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Every section snaps to the top and fills the viewport */
.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100%;
  /* fill the snap-container height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  /* remove the generic section card styles for home */
  background: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}

/* ── Section 1: Hero ───────────────────────────────────────────────── */
.section-hero {
  background: linear-gradient(145deg, #006040 0%, #008751 55%, #00a865 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 620px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  color: #ffffff;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  background: #f0fff7;
  color: var(--primary-dark);
}

.cta-arrow {
  width: 18px;
  height: 18px;
  animation: bounce-arrow 1.6s ease-in-out infinite;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* Subtle "scroll" hint at the bottom of the hero */
.hero-scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
  color: #ffffff;
}

/* ── Section 2: What to Expect ─────────────────────────────────────── */
.section-about {
  background: var(--bg);
}

.about-inner {
  max-width: 620px;
  width: 100%;
}

.about-inner h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  margin-bottom: 6px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.97rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-goal {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 0;
}

/* ── Tool cards (Section 2) ─────────────────────────────────────────── */
.tools-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  width: 100%;
}

@media (min-width: 600px) {
  .tools-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 87, 51, 0.12);
}

.tool-card h3 {
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 0.93rem;
  color: #444;
  margin-bottom: 14px;
}

/* ── Section 3: Choose Your Path ───────────────────────────────────── */
.section-choose {
  background: var(--surface);
}

.choose-inner {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.choose-inner h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  margin-bottom: 4px;
}

.choose-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Card icon badge */
.card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* Override generic home-cards for the snap layout */
.section-choose .home-cards {
  margin-top: 0;
}

.section-choose .home-card {
  text-align: left;
  padding: 20px 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-choose .home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 87, 51, 0.12);
}

/* ── Side Dot Navigation ───────────────────────────────────────────── */
.dot-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 135, 81, 0.25);
  border: 2px solid rgba(0, 135, 81, 0.5);
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.dot:hover,
.dot.dot-active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.35);
}

/* ── Reveal animation ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer (sits outside snap container) ─────────────────────────── */
body.home-page .home-snap-footer {
  scroll-snap-align: end;
  scroll-snap-stop: normal;
  min-height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #f7f7f7;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  border-top: none;
}

body.home-page .home-snap-footer > div {
  width: 100%;
  max-width: 960px;
  border-top: 1px solid #e0e0e0;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

/* ── Responsive adjustments ────────────────────────────────────────── */
@media (max-width: 640px) {
  .dot-nav {
    right: 10px;
  }

  .dot {
    width: 7px;
    height: 7px;
  }

  .snap-section {
    padding: 0 16px;
    justify-content: flex-start;
    padding-top: 40px;
  }

  .hero-scroll-hint {
    display: none;
  }

  body.home-page .home-snap-footer {
    padding-top: 12px;
  }
}
