/* ============================================================
   Safe Spaces Youth Network NC
   Structure & type system modelled on lgbt.foundation
   Colour accents sourced from the Safe Spaces logo
   ============================================================ */

:root {
  /* Core (matching reference tokens) */
  --ink: #292929;
  --black: #000000;
  --white: #ffffff;
  --off-white: #FCFCFC;
  --porcelaine: #FCFCFC;
  /* Reference CTA pink is #E2566F, but that is only 3.62:1 with white text.
     Darkened to 4.97:1 so button labels pass WCAG AA at every size.
     The bright original is kept for decorative accents only. */
  --pink: #C63E56;
  --pink-dark: #A82F45;
  --pink-bright: #E2566F;
  --yellow: #FCE269;        /* reference "leave site quickly" */
  --grey-line: #E4E4E4;
  --grey-bg: #F6F6F4;

  /* Accents from the Safe Spaces logo */
  --coral: #E8483E;
  --teal: #109088;
  --purple: #7C2F93;
  --blue: #1076B8;
  --orange: #F08828;
  --green: #4E9C43;
  --pinkbrand: #F090B8;
  --navy: #1B2A4A;

  --pride: linear-gradient(90deg,#E8483E,#F08828,#E8C93E,#4E9C43,#109088,#1076B8,#7C2F93);

  /* Soft band tints, mixed down from the logo colours. The reference site
     runs full-bleed blocks of muted colour with dark type on top — notably
     it never uses alarming red, even for crisis information. All of these
     clear 6:1 against --ink. */
  --band-apricot:  #F2B478;
  --band-lavender: #BCA0D0;
  --band-mint:     #9FD3B8;
  --band-sky:      #A9CFEA;
  --band-blush:    #F5C0D3;
  --band-sun:      #F7DC5E;
  --band-sand:     #EFE3CD;

  /* Crisis band. Deep enough to clear 8.99:1 with white text. */
  --danger: #8E1B27;

  /* Prose measure used on the reference site's internal pages */
  --measure: 808px;

  --font: "Barlow Condensed", "Arial Narrow", sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --space-7: 104px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 var(--space-2); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 19px; }

/* Headings — heavy condensed uppercase, per reference */
h1, h2, h3, h4 {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: #fff;
  padding: 12px 20px; z-index: 3000;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--space-3); }

/* ---------------- Pills (buttons) ---------------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  padding: 15px 32px;
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  min-height: 48px;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
  touch-action: manipulation;
}
.pill:hover { transform: translateY(-2px); }
.pill-pink { background: var(--pink); color: #fff; }
.pill-pink:hover { background: var(--pink-dark); }
.pill-dark { background: var(--ink); color: var(--off-white); }
.pill-dark:hover { background: var(--black); }
.pill-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header { position: relative; z-index: 900; }

.utility-bar { background: var(--black); color: #fff; }
.utility-inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: var(--space-5);
  padding-right: 0;
}
.utility-link {
  display: flex;
  align-items: center;
  padding: 16px 0;
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.utility-link:hover { color: var(--yellow); }
.utility-donate {
  display: flex;
  align-items: center;
  background: var(--pink);
  color: #fff;
  padding: 16px 34px;
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.utility-donate:hover { background: var(--pink-dark); }

.nav-bar { background: #fff; border-bottom: 1px solid var(--grey-line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.brand img { width: 90px; height: 90px; }

.nav-toggle {
  display: none;
  background: none; border: none; color: var(--ink);
  min-width: 48px; min-height: 48px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 30px; height: 30px; }

.primary-nav { display: flex; align-items: center; gap: var(--space-4); }
.primary-nav a {
  position: relative;
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  padding: 10px 0;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 3px; background: var(--pink-bright);
  transition: right 200ms var(--ease);
}
.primary-nav a:hover::after { right: 0; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  height: min(74vh, 640px);
  min-height: 460px;
  overflow: hidden;
  background: var(--ink);
}
.hero-track { height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms var(--ease);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

/* Illustration sits behind the card; the .wrap is lifted above it. */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero-slide > .wrap { position: relative; z-index: 2; width: 100%; }

/* Decorative backgrounds stand in for photography.
   Swap `background-image` for a real photo when available. */
.hero-slide[data-bg="1"] { background: radial-gradient(circle at 22% 30%, #F090B8 0%, transparent 55%), radial-gradient(circle at 78% 24%, #1076B8 0%, transparent 52%), radial-gradient(circle at 62% 82%, #F08828 0%, transparent 50%), linear-gradient(135deg, #7C2F93, #109088); }
.hero-slide[data-bg="2"] { background: radial-gradient(circle at 78% 32%, #E8483E 0%, transparent 55%), radial-gradient(circle at 26% 70%, #4E9C43 0%, transparent 52%), linear-gradient(135deg, #1076B8, #7C2F93); }
.hero-slide[data-bg="3"] { background: radial-gradient(circle at 30% 26%, #F08828 0%, transparent 55%), radial-gradient(circle at 74% 74%, #7C2F93 0%, transparent 52%), linear-gradient(135deg, #109088, #1B2A4A); }

.hero-card {
  background: #fff;
  max-width: 560px;
  padding: var(--space-5);
}
.hero-card h1 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  margin-bottom: var(--space-2);
}
.hero-card p {
  font-size: 22px;
  margin-bottom: var(--space-3);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 200ms var(--ease);
}
.hero-arrow:hover { background: var(--pink-dark); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots button {
  width: 44px; height: 44px;
  padding: 0;
  border: none;
  background: none;
  display: flex; align-items: center; justify-content: center;
}
.hero-dots button::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 2px rgba(0,0,0,.28);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.hero-dots button[aria-selected="true"]::before {
  background: #fff;
  transform: scale(1.35);
}

.pride-stripe { height: 8px; background: var(--pride); }

/* ---------------- Section titles ---------------- */
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  text-align: center;
  max-width: 22ch;
  margin: 0 auto var(--space-5);
}
.section-title.left { text-align: left; margin-left: 0; max-width: 18ch; }

/* Standfirst under a section title. The title already carries a 48px
   bottom margin, so pull up by 32px to leave a 16px gap. */
.section-intro {
  max-width: var(--measure);
  margin: -32px auto var(--space-5);
  text-align: center;
  font-size: 24px;      /* reference body size */
  line-height: 1.5;
  color: var(--ink);
}

/* ---------------- Arch tiles ---------------- */
.tiles-section { padding: var(--space-7) 0; }
.tiles-alt { background: var(--band-sand); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.tile { display: flex; flex-direction: column; align-items: center; }

.tile-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9999px 9999px 0 0;
  overflow: hidden;
  color: #fff;
  margin-bottom: var(--space-3);
  transition: transform 250ms var(--ease);
}
.tile:hover .tile-art { transform: translateY(-6px); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }

.art-coral  { background: linear-gradient(160deg,#E8483E,#B8281F); }
.art-teal   { background: linear-gradient(160deg,#109088,#0A5F5A); }
.art-purple { background: linear-gradient(160deg,#8A3AA3,#5A1D6D); }
.art-blue   { background: linear-gradient(160deg,#1F93E0,#0C5687); }
.art-orange { background: linear-gradient(160deg,#F08828,#B85D0F); }
.art-green  { background: linear-gradient(160deg,#60A850,#356E2A); }
.art-pink   { background: linear-gradient(160deg,#F090B8,#C0568A); }
.art-navy   { background: linear-gradient(160deg,#2E4676,#151F38); }

.tile h3 {
  font-size: 26px;
  margin: 0 0 10px;
  text-align: center;
}
.tile > p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  margin: 0 0 var(--space-3);
}
/* Push the button to the bottom so a row of tiles lines up. */
.tile { height: 100%; }
.tile > p { flex: 1 1 auto; }
.tile .pill { width: 100%; text-align: center; font-size: 17px; padding: 14px 18px; }

/* ---------------- Emergency help ----------------
   Modelled on the reference site's helpline block: a full-bleed band of
   muted colour, dark type, centred, no boxes or borders. Deliberately not
   red — panicking someone already in crisis does not help them. */
/* ---------------- Emergency help ----------------
   Modelled on the reference site's helpline block: a full-bleed band of
   muted colour, dark type, centred, no boxes or borders. */
.emergency {
  background: var(--danger);
  color: #fff;
  padding: var(--space-4) 0;
  text-align: center;
}
.emergency h2 {
  color: #fff;
  font-size: clamp(1.2rem, 3.8vw, 2.6rem);
  white-space: nowrap;
  max-width: none;
  margin: 0 auto 12px;
}
.emergency > .wrap > p {
  max-width: 58ch;
  margin: 0 auto var(--space-3);
  font-size: 17px;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
}
.emergency-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 auto;
}
.emergency-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  min-height: 58px;
  border-radius: 8px;
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.35);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}
.emergency-list a:hover { background: rgba(255,255,255,.20); border-color: #fff; }
.emergency-list strong {
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.emergency-list span { font-size: 13px; color: rgba(255,255,255,.88); line-height: 1.15; }

/* ---------------- What happens next ----------------
   The reference site carries process content as flat prose under heavy
   uppercase subheads — no cards, no shadows, no numbered discs. The order
   is stated in words, which is what actually carries the meaning. */
.steps-section { padding: var(--space-7) 0; background: var(--porcelaine); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li { padding: 0; }
.step-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-bottom: 6px;
}
.steps h3 { font-size: 30px; margin-bottom: 10px; }
.steps p { font-size: 21px; margin: 0; }

/* ---------------- About ---------------- */
.about { padding: var(--space-7) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--space-6);
  align-items: start;
}
.lead { font-size: 23px; }
.npo-note {
  border-left: 5px solid var(--orange);
  padding: 14px 18px;
  background: var(--grey-bg);
  font-size: 19px;
}

.focus-list { display: flex; flex-direction: column; }
.focus-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--grey-line);
  font-size: 19px;
  color: var(--ink);
}
.focus-list .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--d); margin-top: 9px;
}
.focus-list strong {
  display: block;
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------------- Programs / news cards ---------------- */
.news { padding: var(--space-7) 0; background: var(--porcelaine); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.news-card { background: #fff; }
.news-art {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: #fff;
}
.news-art img { width: 100%; height: 100%; object-fit: cover; }
.news-card .tags,
.news-card h3,
.news-card p:last-child { padding: 0 var(--space-3); }
.news-card .tags {
  margin: var(--space-3) 0 6px;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6B6E72;
}
.news-card h3 { font-size: 28px; margin-bottom: 10px; }
.news-card h3 a { color: var(--pink); }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p:last-child { padding-bottom: var(--space-4); color: var(--ink); }

/* ---------------- Banner ---------------- */
.banner {
  background: var(--black);
  color: #fff;
  padding: var(--space-7) 0;
  text-align: center;
}
.banner h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.6rem); max-width: 20ch; margin: 0 auto var(--space-2); }
.banner p { font-size: 22px; color: rgba(255,255,255,.82); margin-bottom: var(--space-3); }

/* ---------------- Contact ---------------- */
.contact { padding: var(--space-7) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: var(--space-6);
}
/* Premium contact rows: a filled brand-colour medallion, a small label,
   and the value beneath it. The whole row is the tap target. */
.contact-list { display: flex; flex-direction: column; gap: 10px; margin: var(--space-3) 0; }
.contact-list li { display: block; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 14px;
  min-height: 64px;
  transition: background-color 180ms var(--ease);
}
a.contact-row:hover { background: var(--grey-bg); }
.contact-row.is-static { cursor: default; }
.contact-medallion {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c, var(--ink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -2px 6px rgba(0,0,0,.14);
}
.contact-medallion svg { width: 26px; height: 26px; }
.contact-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.contact-label {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B6E72;
}
.contact-value { font-size: 21px; font-weight: 600; color: var(--ink); word-break: break-word; }
a.contact-row:hover .contact-value { text-decoration: underline; }
.rep { font-size: 19px; color: var(--ink); }

/* Flat band of colour, matching the reference's callout treatment. Uses the
   same yellow as Leave Site Quickly so the two read as one safety idea. */
.safety-note {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--band-sun);
  color: var(--ink);
}
.safety-note h3 { font-size: 26px; margin-bottom: 8px; }
.safety-note p { font-size: 20px; margin: 0; max-width: 58ch; }

.contact-form {
  background: var(--grey-bg);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; text-transform: uppercase; font-size: 17px; }
.field .opt { font-weight: 400; text-transform: none; color: #6B6E72; }
.field input, .field select, .field textarea {
  border: 2px solid var(--grey-line);
  background: #fff;
  padding: 12px 14px;
  min-height: 48px;
  color: var(--ink);
  transition: border-color 150ms var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pink); }
.field .help { font-size: 16px; color: #6B6E72; margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.85); }
.footer-grid {
  display: grid;
  grid-template-columns: auto 1.3fr 1fr 1fr;
  gap: var(--space-5);
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}
.footer-logo { width: 110px; height: 110px; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font-size: 19px; }
.footer-contact svg { width: 20px; height: 20px; margin-top: 6px; }
.footer-contact a:hover { color: var(--yellow); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.footer-col a { font-size: 19px; color: rgba(255,255,255,.78); }
.footer-col a:hover { color: var(--yellow); }

.socials { display: flex; gap: 14px; }
.socials a {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.socials svg { width: 24px; height: 24px; }
.socials a:hover { color: var(--yellow); }

.footer-note {
  margin: var(--space-2) 0 0;
  font-size: 17px;
  color: rgba(255,255,255,.72);
  max-width: 34ch;
}
.footer-note a { color: var(--yellow); text-decoration: underline; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding-top: var(--space-3); padding-bottom: var(--space-4); }
.footer-bottom p { margin: 0; font-size: 17px; color: rgba(255,255,255,.6); text-align: center; }

/* Form Alerts (Inline Netlify success & error messages) */
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.form-alert .alert-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-alert strong {
  display: block;
  font-size: 17px;
  margin-bottom: 2px;
}
.form-alert p {
  margin: 0;
  font-size: 15px;
}
.form-success {
  background: #E6F4EA;
  color: #137333;
  border: 1px solid #CEEAD6;
}
.form-error {
  background: #FCE8E6;
  color: #C5221F;
  border: 1px solid #FAD2CF;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: auto 1fr; }
}

@media (max-width: 1000px) {
  .emergency-list { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

@media (max-width: 900px) {
  .about-grid, .contact-grid, .news-grid, .steps { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { gap: var(--space-4); }
  .section-title.left { max-width: none; }
  .hero-card { max-width: none; padding: var(--space-4); }
}

@media (max-width: 780px) {
  body { font-size: 20px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 3px solid var(--pink);
    padding: 0 var(--space-3) var(--space-2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  }
  .primary-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav a { padding: 16px 0; border-bottom: 1px solid var(--grey-line); }

  .utility-inner { justify-content: space-between; gap: var(--space-2); }
  .utility-link { font-size: 16px; }
  .utility-link:first-child { display: none; }
  .utility-donate { font-size: 16px; padding: 14px 20px; }

  .brand img { width: 68px; height: 68px; }

  .emergency { padding: var(--space-3) 0; }
  .emergency h2 { margin-bottom: 8px; }
  .emergency > .wrap > p { font-size: 14px; margin-bottom: 10px; line-height: 1.3; }

  /* On a phone the card would cover the whole illustration, so stack them:
     artwork as a band on top, card beneath it. */
  .hero { height: auto; min-height: 0; }
  .hero-track { position: relative; }
  .hero-slide {
    position: relative;
    inset: auto;
    display: none;
    flex-direction: column;
    padding: 0 0 var(--space-4);
  }
  .hero-slide.is-active { display: flex; }
  .hero-img {
    position: static;
    width: 100%;
    height: 220px;
    object-position: 62% 58%;
  }
  /* Only the image band carries colour now — kill the slide gradient so no
     stripe shows beside the card. */
  .hero-slide[data-bg] { background: #fff; }
  .hero-card { padding: var(--space-4) var(--space-3) 0; }
  .hero-arrow { top: 110px; transform: translateY(-50%); width: 46px; height: 46px; }
  .hero-dots { top: 182px; bottom: auto; }
}

@media (max-width: 560px) {
  /* Keep tiles two-up on phones so a column of support options doesn't turn
     into eight full-screen blocks. The arch shrinks to suit the column. */
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-2); }
  .tile-art { margin-bottom: var(--space-2); }
  .tile h3 { font-size: 20px; }
  .tile > p { font-size: 16px; line-height: 1.45; margin-bottom: var(--space-2); }
  .tile .pill { font-size: 15px; padding: 12px 12px; letter-spacing: 0; }

  .tiles-section, .about, .news, .banner, .contact, .steps-section { padding: var(--space-5) 0; }
  .section-intro { font-size: 19px; margin-top: -28px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }

  .contact-value { font-size: 19px; }
  .contact-medallion { width: 48px; height: 48px; }
  .contact-medallion svg { width: 24px; height: 24px; }

  .emergency-list { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .emergency-list a { min-height: 44px; padding: 6px 4px; }
  .emergency-list strong { font-size: 15px; }
  .emergency-list span { font-size: 11px; }
  .emergency-list li:last-child { grid-column: span 2; }
  .emergency-list li:last-child a { max-width: 240px; margin: 0 auto; }
}
