:root {
  --ink: #172a39;
  --navy: #173f5d;
  --blue: #2b80b8;
  --gold: #b38a47;
  --ivory: #f6f3eb;
  --paper: #fffdf8;
  --line: #d9d6cd;
  --muted: #65727b;

  /* ============================================================
     FONT SIZES — edit the values below, nothing else needs to change.
     Grouped so you can find things fast. Values here are MOBILE sizes.
     Desktop (screens 680px+) overrides live further down in the file,
     inside "@media (min-width: 680px)", using the same variable names.
     ============================================================ */

  /* A readable mobile-first scale — every step is deliberately distinct
     so headings, sub-headings and body copy never fight or collide. */

  /* --- Main heading (the big title at the very top of the page) --- */
  --fs-main-heading: 34px;

  /* --- Headings (step titles like "Step 01", "Other arrangements") --- */
  --fs-heading: 26px;             /* "Obtaining the death certificate" etc. */
  --fs-heading-alt: 26px;         /* "Other arrangements to consider" */

  /* --- Sub headings (titles inside each content block/card) --- */
  --fs-subheading: 19px;          /* e.g. "If your loved one passed away..." */
  --fs-subheading-callout: 20px;  /* Permit to Cremate callout box */
  --fs-subheading-hearse: 19px;   /* "How the SIWEC hearse service works" */
  --fs-subheading-card: 19px;     /* Arrangement cards, e.g. "Bus to Mandai" */
  --fs-subheading-small: 16px;    /* "The following day" / "Scattering of ashes" */

  /* --- Body / content text --- */
  --fs-body: 16px;                /* main paragraph text, mobile */
  --fs-lead: 17px;                /* intro line under "Coffin and hearse..." */

  /* --- Small text (notes, contact links, labels) --- */
  --fs-label: 14px;               /* eyebrow labels + small field labels */
  --fs-contact-link: 15px;        /* phone/contact buttons */
  --fs-contact-action: 11px;      /* "Call" text on contact buttons */
  --fs-note: 16px;                /* info notes, fee/service descriptions */
  --fs-note-small: 16px;          /* small-note, service-notice, card-index */
  --fs-code: 14px;                /* UEN numbers */
  --fs-list-marker: 17px;         /* numbered list markers in plain-steps */

  /* --- Big numbers (fees / prices) --- */
  --fs-figure: 24px;              /* Coffin/Hearse/Donation card amounts */
  --fs-price: 26px;               /* "$160 two-way trip" */
  --fs-price-note: 15px;          /* the "two-way trip" small text */

  /* --- Logo --- */
  --logo-size: min(270px, 88vw);
  --logo-size-desktop: 390px;

  /* --- Footer --- */
  --fs-footer: 12px;

  /* ============================================================
     FONT WEIGHT CONTROLS — 400 = normal, 700 = bold, 800 = extra bold.
     Change any value below to bold/unbold that element everywhere.
     ============================================================ */
  --fw-step-label: 900;      /* "Step 01", "Step 02" eyebrow labels */
  --fw-small-heading: 700;   /* "The following day", "Scattering of ashes" */
  --fw-card-index: 800;      /* "01" "02" "03" "04" "05" in Important matters */
  --fw-card-title: 700;      /* arrangement card titles, e.g. "Bus to Mandai",
                                 "Live streaming", "Body washing and dressing",
                                 "Cremation and ash collection",
                                 "Free obituary posting with SIWEC" */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}

.hero,
.guide-step,
.arrangements,
footer {
  width: min(720px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  padding: 30px 0 42px;
  text-align: center;
}

.hero-logo {
  width: var(--logo-size);
  height: auto;
  margin: 0 auto 38px;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: var(--fs-main-heading);
  letter-spacing: -.055em;
  line-height: .95;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-label);
  font-weight: var(--fw-step-label);
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.guide-shell {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.guide-step {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.step-heading {
  margin-bottom: 34px;
}

.step-heading .eyebrow { margin-bottom: 9px; }

.step-heading h2 {
  max-width: 650px;
  margin: 0;
  color: var(--navy);
  font-size: var(--fs-heading);
  letter-spacing: -.035em;
}

.step-grid,
.fee-layout,
.fee-cards,
.subsection,
.arrangement-grid,
.inline-contacts,
.ash-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.step-grid { gap: 0; }
.fee-layout { gap: 30px; }
.fee-cards { gap: 10px; }
.subsection { gap: 24px; }
.arrangement-grid { gap: 12px; }
.inline-contacts { gap: 8px; }
.ash-note { gap: 24px; }

.content-block {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.content-block:last-child { padding-bottom: 0; }

.content-block h3,
.subsection h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: var(--fs-subheading);
}

.content-block p { margin-bottom: 16px; }
.muted, .small-note { color: var(--muted); }
.small-note { margin: 16px 0 0; font-size: var(--fs-note-small); }
.lead { margin-bottom: 24px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: var(--fs-lead); line-height: 1.5; }

.information-note {
  margin-top: 20px;
  padding: 16px 17px;
  background: #eef5f8;
  border-left: 3px solid var(--blue);
  color: #385363;
  font-size: var(--fs-note);
}

.contact-list { display: grid; gap: 8px; }

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  text-decoration: none;
  font-size: var(--fs-contact-link);
  font-weight: 700;
  line-height: 1.35;
}

.contact-link:hover,
.contact-link:focus-visible { border-color: var(--blue); background: #f3f8fa; }

.contact-action {
  color: var(--blue);
  font-size: var(--fs-contact-action);
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compact .contact-link { min-height: 48px; }

.contact-link {
  align-items: center;
}

.contact-link .contact-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-name {
  font-weight: 700;
}

.contact-number {
  color: var(--muted);
  font-size: var(--fs-note);
  font-weight: 400;
}

.directory-card .contact-number {
  color: #b9cbd5;
}

.numbered-list { display: grid; gap: 0; }

.numbered-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.numbered-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--navy);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
}

.numbered-list p { margin: 2px 0 0; }

.action-card,
.directory-card {
  margin-top: 20px;
  padding: 24px 20px;
  background: var(--navy);
  color: white;
}

.action-card .eyebrow,
.directory-card .eyebrow { color: #9bcce5; }

.action-card h3 { margin-bottom: 12px; font-size: var(--fs-subheading-callout); }
.action-card p { color: #dce8ee; }

.action-card > a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.action-card > a:hover { color: #9bcce5; }
.action-card small { display: block; color: #b9cbd5; line-height: 1.65; }

.fee-card {
  display: flex;
  flex-direction: column;
  padding: 21px 18px;
  border: 1px solid var(--line);
  background: white;
}

.fee-card > span {
  color: var(--blue);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fee-card > strong {
  margin: 8px 0 14px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--fs-figure);
  font-weight: 500;
}

.fee-card p { color: var(--muted); font-size: var(--fs-note); }
.fee-card .contact-link { margin-top: 8px; padding-inline: 0; border: 0; border-top: 1px solid var(--line); }
.fee-card code { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--navy); font-family: Arial, Helvetica, sans-serif; font-size: var(--fs-code); font-weight: 700; word-break: break-all; }

.hearse-service-card {
  padding: 24px 20px;
  border: 1px solid var(--line);
  background: #f0f5f6;
}

.hearse-service-card h3 { margin-bottom: 22px; color: var(--navy); font-size: var(--fs-subheading-hearse); }
.service-detail { padding: 17px 0; border-top: 1px solid rgba(23, 63, 93, .16); }
.service-detail span { display: block; margin-bottom: 6px; color: var(--blue); font-size: var(--fs-label); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.service-detail p { margin: 0; color: #435965; font-size: var(--fs-note); }
.service-notice { margin-top: 8px; padding: 15px; color: #52636e; background: white; border-left: 3px solid var(--gold); font-size: var(--fs-note-small); line-height: 1.55; }

.subsection {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.plain-steps { margin: 0; padding-left: 21px; }
.plain-steps li { padding: 0 0 20px 7px; }
.plain-steps li::marker { color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: var(--fs-list-marker); }

.directory-card .contact-link {
  border-color: rgba(255,255,255,.2);
  background: transparent;
  color: white;
}

.directory-card .contact-link:hover { border-color: #9bcce5; background: rgba(255,255,255,.05); }
.directory-card .contact-action { color: #9bcce5; }

.arrangements {
  padding: 58px 0;
}

.section-title { margin-bottom: 34px; }
.section-title h2 { margin-bottom: 14px; color: var(--navy); font-size: var(--fs-heading-alt); letter-spacing: -.04em; }
.section-title > p:last-child { margin-bottom: 0; color: var(--muted); }

.arrangement-card {
  padding: 23px 19px;
  border: 1px solid rgba(23,63,93,.16);
  background: var(--paper);
}

.card-index { display: block; margin-bottom: 18px; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: var(--fs-note-small); font-weight: var(--fw-card-index); }
.arrangement-card h3 { margin-bottom: 14px; color: var(--navy); font-size: var(--fs-subheading-card); font-weight: var(--fw-card-title); }
.arrangement-card > p { color: #52636e; }
.text-link { display: inline-flex; gap: 14px; margin: 8px 0 24px; color: var(--navy); font-weight: 800; text-decoration-color: var(--gold); text-underline-offset: 5px; }

.schedule { margin: 0; border-top: 1px solid var(--line); }
.schedule div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.schedule dt { color: var(--navy); font-weight: 700; }
.schedule dd { margin: 2px 0 0; color: var(--muted); }
.price { margin: 22px 0; color: var(--navy) !important; font-family: Georgia, "Times New Roman", serif; font-size: var(--fs-price); }
.price small { color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: var(--fs-price-note); }

.ash-note {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.ash-note h4 { margin-bottom: 10px; color: var(--navy); font-size: var(--fs-subheading-small); font-weight: var(--fw-small-heading); }
.ash-note p { margin: 0; color: var(--muted); }

footer {
  display: block;
  padding: 22px 0;
  color: #b8c9d2;
  background: #102f46;
  font-size: var(--fs-footer);
  letter-spacing: .08em;
  text-transform: uppercase;
}

footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  margin-top: -22px;
  background: #102f46;
  z-index: -1;
}

footer { position: relative; z-index: 0; }
footer p { margin: 0; }
footer p + p { margin-top: 4px; }

@media (min-width: 680px) {
  :root {
    /* Desktop font-size overrides — same variable names as above,
       scaled up proportionally so the hierarchy stays consistent. */
    --fs-main-heading: 64px;
    --fs-heading: 40px;
    --fs-heading-alt: 40px;
    --fs-subheading: 24px;
    --fs-subheading-callout: 26px;
    --fs-subheading-hearse: 24px;
    --fs-subheading-card: 24px;
    --fs-subheading-small: 19px;
    --fs-body: 18px;
    --fs-lead: 19px;
    --fs-figure: 30px;
    --fs-price: 34px;
    --logo-size: var(--logo-size-desktop);
  }

  .hero { padding: 44px 0 60px; }
  .hero-logo { margin-bottom: 46px; }
  .guide-step { padding: 72px 0; }
  .step-heading { margin-bottom: 42px; }
  .content-block { padding: 30px 0; }
  .action-card, .directory-card, .hearse-service-card { padding: 30px; }
  .fee-card { padding: 25px; }
  .arrangements { padding: 72px 0; }
  .arrangement-card { padding: 28px; }
  footer { display: flex; justify-content: space-between; gap: 20px; }
  footer p + p { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  footer { display: none; }
  body { background: white; color: black; }
  .hero, .guide-step, .arrangements { width: 100%; padding: 30px; }
  .hero h1, .step-heading h2, .section-title h2 { color: black; }
  .guide-step, .arrangement-card { break-inside: avoid; }
}