/* Philippine Services — unofficial guide. Mobile-first.
   Sunny tropical palette: sea blue, mango, coral, palm green on warm sand. */
/* Self-hosted fonts (SIL Open Font License; see fonts/OFL-*.txt). No third-party requests. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/public-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1d2433;
  --muted: #535d6c;
  --sea: #0b5c8a;
  --sea-dark: #073e5e;
  --sea-deep: #052f48;
  --mango: #ffc23d;
  --mango-soft: #fff1c9;
  --coral: #e8553e;
  --coral-ink: #b3361f;
  --palm: #1f8a4c;
  --palm-ink: #1a6e3e;
  --pink: #e84f8a;
  --teal: #2bb3a3;
  --sand: #fff8ec;
  --sand-2: #fbeed6;
  --card: #ffffff;
  --line: #eadfcb;
  --focus: #0b5c8a;
  --focus-dark: #ffc23d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(7, 62, 94, .07), 0 10px 26px rgba(120, 72, 20, .09);
  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* jeepney stripe + chrome trim */
  --jeep: linear-gradient(180deg, var(--coral) 0 25%, var(--mango) 25% 50%, var(--palm) 50% 75%, #1677b8 75% 100%);
  --chrome: linear-gradient(180deg, #ffffff, #c4ccd4 45%, #eef1f4 60%, #a9b2bb);
  /* banig weave */
  --banig: repeating-linear-gradient(45deg, rgba(168, 105, 42, .045) 0 8px, transparent 8px 16px),
           repeating-linear-gradient(-45deg, rgba(232, 85, 62, .03) 0 8px, transparent 8px 16px);
  --banig-light: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 8px, transparent 8px 16px),
                 repeating-linear-gradient(-45deg, rgba(255, 194, 61, .035) 0 8px, transparent 8px 16px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
}
img, svg { display: block; }
a { color: var(--sea); text-underline-offset: .18em; }
a:hover { color: var(--sea-dark); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible, .foot :focus-visible { outline-color: var(--focus-dark); }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 50;
  background: var(--sea-dark); color: #fff; padding: .6rem .9rem; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: .75rem; color: #fff; }

/* ---------- strip: plain non-affiliation bar ---------- */
.strip { background: #fff1c9; color: #3a2a00; font-size: .84rem; border-bottom: 1px solid #f0d58a; }
@media (min-width: 560px) { .strip { font-size: .875rem; } }
.strip-row { padding: .45rem 0; }
.strip-text { margin: 0; line-height: 1.45; }
.strip-link { color: var(--sea-dark); font-weight: 700; white-space: nowrap; }
.strip-link:hover { color: var(--ink); }

/* ---------- masthead ---------- */
.masthead { background: #fff; position: relative; }
.masthead::after { content: ""; display: block; height: 6px; background: var(--jeep); }
.mast-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 0 0; }
.mast-row .sections { order: 3; flex-basis: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--sea-dark); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; font-size: 1.1rem; }
.brand-tag { font-size: .78rem; color: var(--muted); font-weight: 500; }
.lang { display: inline-flex; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.lang-btn {
  border: 0; background: transparent; border-radius: 999px; padding: .38rem .7rem; font-size: .86rem;
  font-weight: 600; color: var(--muted); cursor: pointer; min-height: 36px;
}
.lang-btn[aria-pressed="true"] { background: var(--sea); color: #fff; }
.lang-btn:not([aria-pressed="true"]):hover { color: var(--sea-dark); background: var(--mango-soft); }
.sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 1.25rem; row-gap: 0; }
.sections a {
  display: inline-block; padding: .5rem 0 .65rem; white-space: nowrap; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .94rem; border-bottom: 3px solid transparent;
}
.sections a:hover { border-bottom-color: var(--coral); color: var(--sea-dark); }

/* ---------- hero ---------- */
.hero-wrap { margin-top: 1rem; }
.hero {
  position: relative; overflow: hidden; border-radius: 26px; isolation: isolate;
  background-color: var(--sand-2); background-image: var(--banig);
  box-shadow: var(--shadow);
}
/* Mobile: illustration banner on top, solid card below it */
.hero-photos { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #8fd3f0; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-on { opacity: 1; }
/* Focal points: keep the people in frame */
.slide, .tile img { object-position: var(--fp, 50% 50%); }
img[src$="photo-beach.jpg"] { --fp: 74% 55%; }
img[src$="photo-jeepney.jpg"] { --fp: 12% 60%; }
img[src$="photo-fiesta.jpg"] { --fp: 72% 60%; }
img[src$="photo-terraces.jpg"] { --fp: 36% 60%; }
img[src$="photo-sarisari.jpg"] { --fp: 48% 45%; }
img[src$="photo-plaza.jpg"] { --fp: 26% 45%; }
.scrim { display: none; }
.banderitas {
  position: absolute; left: 0; right: 0; top: 0; height: 56px; z-index: 2; pointer-events: none;
  background: url("media/banderitas.svg") repeat-x 0 0 / 200px 47px;
}
.hero-copy {
  position: relative; z-index: 3; background: #fff; border-radius: 22px;
  margin: -1.5rem .6rem .6rem; padding: 1.4rem 1.1rem 1.2rem; text-align: left;
  box-shadow: 0 8px 28px rgba(7, 62, 94, .14);
}
.hero-copy::before {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; top: 0; height: 5px; border-radius: 0 0 4px 4px; background: var(--jeep);
}
.kicker {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .7rem; padding: .3rem .75rem;
  background: var(--mango-soft); color: #6b4300; border-radius: 999px; font-weight: 700; font-size: .86rem; line-height: 1.3;
}
.kicker::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--coral); flex: none; }
.hero h1 {
  font-family: var(--display); font-weight: 800; color: var(--sea-dark);
  font-size: clamp(2.9rem, 9vw, 4.6rem); letter-spacing: -.035em; line-height: .95;
}
.sub { margin: .7rem 0 0; max-width: 28rem; color: #3b4656; font-size: clamp(1.06rem, 2.2vw, 1.25rem); line-height: 1.4; }
.ask { margin: 1.3rem 0 0; max-width: 720px; }
.pill {
  display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px;
  border: 2px solid #e2d3b8; padding: .3rem .3rem .3rem 1rem; min-height: 60px;
}
.pill:focus-within { border-color: var(--sea); box-shadow: 0 0 0 4px rgba(11, 92, 138, .2); }
.pill-icon { color: var(--sea); flex: none; }
.pill input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.06rem;
  color: var(--ink); outline: none; padding: .55rem 0; height: 100%;
}
.pill input::placeholder { color: #6a7482; opacity: 1; }
.pill input::-webkit-search-cancel-button { cursor: pointer; }
.send {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 48px; min-width: 48px; padding: 0 .9rem; border: 0; border-radius: 999px;
  background: var(--mango); color: #2a1d00; font-weight: 700; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(160, 100, 0, .25);
}
.send:hover { background: #ffb200; }
.send-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* visually hidden on phones, still named */

.tries { margin: 1rem 0 0; max-width: 760px; }
.try-label { margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; min-height: 2.6rem; }
.chips.is-in li { animation: chip-in .5s ease both; }
.chips.is-in li:nth-child(2) { animation-delay: .07s; }
.chips.is-in li:nth-child(3) { animation-delay: .14s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chip {
  border: 1px solid #ecd9b4; background: var(--sand); color: var(--sea-dark);
  border-radius: 999px; padding: .5rem .9rem; font-size: .93rem; font-weight: 600; cursor: pointer;
  line-height: 1.3; text-align: left; min-height: 40px;
}
.chip:hover { border-color: var(--mango); background: var(--mango-soft); }

.answers { margin: 1.4rem 0 0; text-align: left; }
.answers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.answers-head h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.link-btn { background: none; border: 0; color: var(--sea); text-decoration: underline; cursor: pointer; padding: .2rem 0; font-size: .92rem; }
.answer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.none { margin: 0; color: var(--ink); background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.trust { margin: 1.1rem 0 0; color: var(--muted); font-size: .88rem; }

.hero-controls {
  position: absolute; z-index: 4; right: .75rem; top: 3.3rem; /* in the sky, below the banderitas */
  display: flex; align-items: center; gap: .4rem;
}
.scene-cap {
  margin: 0 .2rem 0 0; padding: .35rem .7rem; border-radius: 999px; background: rgba(5, 47, 72, .82);
  color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.2; max-width: 12rem;
}
.ctl {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff;
  color: var(--sea-dark); display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 2px 8px rgba(7, 62, 94, .25);
}
.ctl:hover { background: var(--mango); }
.icon-play { display: none; }
.is-paused .icon-pause { display: none; }
.is-paused .icon-play { display: block; }

/* ---------- sections ---------- */
.section { padding: 3rem 0 0; }
.section-title {
  font-family: var(--display); font-weight: 800; color: var(--sea-dark);
  font-size: clamp(1.75rem, 3.6vw, 2.4rem); letter-spacing: -.025em; line-height: 1.1;
}
.section-title::after {
  content: ""; display: block; width: 72px; height: 8px; margin-top: .55rem; border-radius: 3px; background: var(--jeep);
}
.section-lead { margin: .6rem 0 0; color: var(--muted); max-width: 40rem; }

/* popular tasks */
.tasks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .65rem; }
.task {
  display: flex; align-items: center; gap: .9rem; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1rem .8rem .8rem;
  text-decoration: none; color: var(--sea-dark); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.task:hover { border-color: var(--mango); box-shadow: var(--shadow); color: var(--sea-dark); transform: translateY(-2px); }
.task:hover .task-title { text-decoration: underline; text-underline-offset: .18em; }
.task-art { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: #e3f2fb; }
.tasks li:nth-child(6n+2) .task-art { background: #fde6e1; }
.tasks li:nth-child(6n+3) .task-art { background: #fff1c9; }
.tasks li:nth-child(6n+4) .task-art { background: #fde3ee; }
.tasks li:nth-child(6n+5) .task-art { background: #fff1c9; }
.tasks li:nth-child(6n+6) .task-art { background: #dcf3ef; }
.task-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.task-title { font-weight: 700; font-size: 1.06rem; }
.task-meta { font-size: .84rem; color: var(--muted); margin-top: .1rem; }
.task > svg:last-child { flex: none; color: var(--coral-ink); }
.callout {
  margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.2rem;
  background: var(--mango-soft); border-radius: 14px; padding: .9rem 1.05rem; border-left: 5px solid var(--mango);
}
.callout p { margin: 0; }
.callout-link { font-weight: 700; white-space: nowrap; }

/* mosaic band */
.mosaic-band {
  margin-top: 3.2rem; padding: 2.8rem 0 3rem;
  background-color: var(--sand-2); background-image: var(--banig);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.mosaic { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tile figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: #fff; height: 100%;
  box-shadow: 0 4px 14px rgba(120, 72, 20, .12); }
.tile img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile figcaption {
  position: absolute; left: .45rem; bottom: .45rem; right: .45rem; width: fit-content; max-width: calc(100% - .9rem);
  background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .8rem; font-weight: 600; line-height: 1.25;
  padding: .3rem .6rem; border-radius: 999px;
}
.tile figure::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--jeep); }

/* life events */
.events { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .8rem; }
.event {
  --tint: var(--sea); --tint-bg: #e3f2fb;
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1rem; overflow: hidden;
}
.event::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tint); }
.tint-coral { --tint: var(--coral); --tint-bg: #fde6e1; }
.tint-mango { --tint: var(--mango); --tint-bg: #fff1c9; }
.tint-palm { --tint: var(--palm); --tint-bg: #dff2e5; }
.tint-pink { --tint: var(--pink); --tint-bg: #fde3ee; }
.tint-teal { --tint: var(--teal); --tint-bg: #dcf3ef; }
.tint-chrome { --tint: linear-gradient(90deg, #aeb7bf, #fff, #aeb7bf); --tint-bg: #eef1f4; }
.tint-chrome::before { background: var(--chrome); }
.event-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint-bg); margin-bottom: .7rem;
}
.event h3 { font-family: var(--display); font-weight: 700; font-size: 1.18rem; color: var(--sea-dark); letter-spacing: -.01em; line-height: 1.2; }
.event p { margin: .25rem 0 .7rem; color: var(--muted); font-size: .95rem; }
.event-links { list-style: none; margin: 0; padding: .55rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .1rem; }
.event-link { display: inline-block; padding: .28rem 0; font-weight: 600; font-size: .97rem; }

/* journeys band */
.band {
  background-color: var(--sea); background-image: var(--banig-light);
  color: #fff; margin-top: 3.4rem; padding: 3rem 0 3.2rem; position: relative;
}
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: var(--jeep); }
.band::before { top: 0; }
.band::after { bottom: 0; }
.band .section-title { color: #fff; }
.band .section-title::after { background: var(--mango); }
.band .section-lead { color: #e1eff8; }
.journeys { display: grid; gap: 1rem; margin-top: 1.4rem; align-items: start; }
.journey { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.4rem 1.2rem 1.1rem; overflow: hidden; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--chrome); }
.journey h3 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--sea-dark); margin-bottom: .9rem; letter-spacing: -.015em; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.step { display: grid; grid-template-columns: 2.1rem 1fr; gap: .75rem; position: relative; padding-bottom: 1rem; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.05rem - 1px); top: 2.2rem; bottom: .15rem; width: 2px;
  background: repeating-linear-gradient(180deg, #f0c766 0 6px, transparent 6px 10px);
}
.step-num {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--mango); color: #2a1d00; font-weight: 800; font-size: .95rem; font-family: var(--display);
}
.step-body h4 { font-size: 1.02rem; color: var(--sea-dark); line-height: 1.35; padding-top: .3rem; }
.step-body p { margin: .2rem 0 .35rem; color: var(--muted); font-size: .93rem; }
.step-actions { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.step-link { font-weight: 600; font-size: .93rem; }
.step-plain { font-size: .85rem; color: var(--muted); font-style: italic; }

/* all services */
.group { --g: var(--sea); margin-top: 2.2rem; }
.group[aria-labelledby="group-work"] { --g: var(--palm); }
.group[aria-labelledby="group-biz"] { --g: var(--coral); }
.group[aria-labelledby="group-abroad"] { --g: var(--teal); }
.group[aria-labelledby="group-help"] { --g: var(--pink); }
.group[aria-labelledby="group-property"] { --g: #d99a12; }
.group-title {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--sea-dark);
  padding-bottom: .5rem; margin-bottom: .9rem; border-bottom: 3px solid var(--g);
}
.group-title::before { content: ""; width: .8rem; height: .8rem; border-radius: 3px; background: var(--g); transform: rotate(45deg); flex: none; }
.catalog { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.card {
  --g2: var(--g, var(--sea));
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.1rem 1rem; display: flex; flex-direction: column; scroll-margin-top: 1rem; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: linear-gradient(180deg, var(--g2) 0 5px, transparent 5px), var(--chrome);
}
.card-title { font-family: var(--display); font-weight: 700; font-size: 1.16rem; color: var(--sea-dark); letter-spacing: -.01em; line-height: 1.2; }
.card-agency { margin: .2rem 0 .45rem; color: var(--muted); font-size: .86rem; }
.card-what { margin: 0 0 .9rem; font-size: .97rem; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; }
.btn-summary {
  border: 2px solid var(--sea); background: #fff; color: var(--sea-dark); border-radius: 999px;
  padding: .4rem .95rem; font-weight: 700; font-size: .92rem; cursor: pointer; min-height: 40px;
}
.btn-summary:hover { background: var(--sea); color: #fff; }
.card-go { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.answer { box-shadow: var(--shadow); }
.plain-list { padding-left: 1.2rem; }

/* principles */
.principles { padding-bottom: 3.5rem; }
.principle-grid { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.principle-grid article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem;
}
.p-icon { width: 58px; height: 58px; padding: 7px; border-radius: 50%; background: var(--mango-soft); margin-bottom: .7rem; }
.principle-grid article:nth-child(2) .p-icon { background: #fde6e1; }
.principle-grid article:nth-child(3) .p-icon { background: #dff2e5; }
.principle-grid h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--sea-dark); }
.principle-grid p { margin: .3rem 0 0; color: var(--muted); }

/* footer */
.foot {
  position: relative; background-color: var(--sea-deep); background-image: var(--banig-light);
  padding: 2.4rem 0 2.8rem; color: #dcebf5; font-size: .95rem;
}
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--jeep); }
.foot-grid { display: grid; gap: 1.4rem; }
.foot h2 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--mango); margin-bottom: .35rem; }
.foot p { margin: .35rem 0; max-width: 40rem; }

/* ---------- summary dialog ---------- */
.sheet {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: 100%; max-width: 100%; max-height: 100dvh; margin: auto 0 0;
}
.sheet::backdrop { background: rgba(5, 32, 50, .55); }
.sheet-inner {
  position: relative; background: #fff; border-radius: 22px 22px 0 0; padding: 1.4rem 1.15rem 1.4rem;
  max-height: 92dvh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(5,32,50,.25);
  border-top: 6px solid transparent; border-image: var(--jeep) 1;
}
.sheet[open] .sheet-inner { animation: sheet-up .28s ease both; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.sheet-open { overflow: hidden; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.sheet-agency { margin: 0 0 .2rem; font-size: .85rem; color: var(--coral-ink); font-weight: 700; }
.sheet-head h2 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.12; color: var(--sea-dark); letter-spacing: -.02em; }
.sheet-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--sea-dark);
}
.sheet-close:hover { border-color: var(--sea); background: var(--sand); }
.sheet-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 1rem; font-weight: 700; }
.sheet-what { margin: .3rem 0 0; font-size: 1.04rem; }
.facts { margin: 1rem 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fact { padding: .8rem .95rem; background: #fff; }
.fact:nth-child(even) { background: var(--sand); }
.fact + .fact { border-top: 1px solid var(--line); }
.fact dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.fact dd { margin: 0; font-size: .99rem; }
.fact dd.unverified { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-style: italic; }
.fact dd.unverified svg { flex: none; }
.sheet-note { margin: .9rem 0 0; padding: .7rem .9rem; background: var(--mango-soft); border: 1px solid #f0d58a; border-radius: 12px; font-size: .94rem; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: .3rem; margin-top: 1.2rem;
  background: var(--sea); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  border-radius: 12px; padding: .9rem 1rem; min-height: 52px; text-align: center; overflow-wrap: anywhere;
  box-shadow: inset 0 -4px 0 var(--mango);
}
.cta:hover { background: var(--sea-dark); color: #fff; }
.sheet-small { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.sheet-source { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .send-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .send { padding: 0 1.2rem 0 1.3rem; }
  .tasks { grid-template-columns: 1fr 1fr; }
  .events { grid-template-columns: 1fr 1fr; }
  .catalog, .answer-list { grid-template-columns: 1fr 1fr; }
  .hero-copy { margin: -2rem 1rem 1rem; padding: 1.8rem 1.6rem 1.4rem; }
  .hero-controls { top: 3.6rem; right: 1rem; }
  .mosaic { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .tile figcaption { font-size: .85rem; }
}
@media (min-width: 760px) {
  .mast-row { padding: 1rem 0 0; }
  .hero { border-radius: 32px; }
  .pill { min-height: 68px; padding-left: 1.3rem; }
  .pill input { font-size: 1.14rem; }
  .send { height: 54px; }
  .principle-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .foot-grid { grid-template-columns: 2fr 1fr; gap: 3rem; }
  .sheet { width: min(620px, calc(100% - 2rem)); margin: auto; max-height: calc(100dvh - 3rem); }
  .sheet-inner { border-radius: 22px; border-image: none; border-top: 0; padding: 1.8rem 1.7rem 1.6rem; max-height: calc(100dvh - 3rem); }
  .sheet-inner::before { content: ""; position: absolute; left: 1.7rem; right: 1.7rem; top: 0; height: 6px; border-radius: 0 0 4px 4px; background: var(--jeep); }
  .fact { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: baseline; }
  .fact dt { margin: 0; }
  .cta { display: inline-flex; padding: .9rem 1.4rem; }
  .sheet-small { text-align: left; }
}
@media (min-width: 960px) {
  .mast-row { flex-wrap: nowrap; padding: .8rem 0; gap: 1.5rem; }
  .mast-row .sections { order: 0; flex: 1 1 auto; flex-basis: auto; display: flex; justify-content: center; }
  .sections ul { flex-wrap: nowrap; column-gap: 1.6rem; }
  .sections a { padding: .45rem 0; }
  /* Desktop hero: full-bleed illustration, solid card on the left */
  .hero { min-height: 570px; padding: 4.4rem 2.4rem 2.4rem; display: flex; align-items: flex-start; }
  /* Photo fills the right side; its soft left edge tucks under the card so people stay visible */
  .hero { --card-w: min(490px, 45%); }
  .hero-photos {
    position: absolute; top: 0; right: 0; bottom: 0; left: calc(2.4rem + var(--card-w) - 120px);
    aspect-ratio: auto; z-index: -1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 110px); mask-image: linear-gradient(90deg, transparent 0, #000 110px);
  }
  .scrim {
    display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(60% 80% at 8% 100%, rgba(255, 194, 61, .22), transparent 70%);
  }
  .hero-copy { margin: 0; max-width: var(--card-w); width: 100%; padding: 2.1rem 2rem 1.6rem; border-radius: 26px; }
  body.has-query .hero-copy { max-width: none; }
  .banderitas { height: 64px; background-size: 240px 56px; }
  .hero-controls { top: auto; bottom: 1.4rem; right: 1.4rem; }
  .scene-cap { font-size: .86rem; max-width: none; padding: .45rem .9rem; }
  .tasks { grid-template-columns: repeat(3, 1fr); }
  .events { grid-template-columns: repeat(4, 1fr); }
  .journeys { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .answer-list { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: .9rem; }
  .mosaic .tile img { aspect-ratio: auto; }
  .t-beach { grid-column: span 2; grid-row: span 2; }
  .t-terraces, .t-sari, .t-plaza { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .hero-photos, .task { transition: none; }
  .task:hover { transform: none; }
  .chips.is-in li, .sheet[open] .sheet-inner { animation: none; }
}
@media (forced-colors: active) {
  .lang-btn[aria-pressed="true"] { outline: 2px solid CanvasText; }
  .chip, .task, .card, .event, .hero-copy { border: 1px solid CanvasText; }
}

/* Compact life-event cards on small screens */
@media (max-width: 559px) {
  .ctl { width: 36px; height: 36px; }
  .hero-controls { right: .6rem; gap: .3rem; }
  .event { display: grid; grid-template-columns: 52px 1fr; column-gap: .85rem; padding: 1.2rem 1rem 1rem; }
  .event-icon { grid-row: span 2; margin-bottom: 0; width: 52px; height: 52px; }
  .event-icon svg { width: 36px; height: 36px; }
  .event h3 { align-self: center; }
  .event p { margin-bottom: .6rem; }
  .event-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 1rem; row-gap: 0; }
  .task-art { width: 50px; height: 50px; }
  .task-art svg { width: 36px; height: 36px; }
}

/* Keep brand and language toggle on one row on narrow phones */
@media (max-width: 420px) {
  .brand { gap: .5rem; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: .74rem; }
  .lang-btn { padding: .32rem .55rem; font-size: .8rem; min-height: 34px; }
  .sections ul { column-gap: 1rem; }
  .sections a { font-size: .9rem; padding: .45rem 0 .55rem; }
  .scene-cap { display: none; }
}

/* Mosaic captions sit under the picture on phones so they don't hide it */
@media (max-width: 559px) {
  .tile figure { display: flex; flex-direction: column; }
  .tile img { height: auto; }
  .tile figcaption {
    position: static; width: auto; max-width: none; border-radius: 0; background: #fff;
    padding: .4rem .6rem .5rem; font-size: .78rem; flex: 1;
  }
}

/* ---------- AI image disclosure ---------- */
.ai-note {
  position: absolute; z-index: 2; left: .6rem; bottom: 2rem; margin: 0;
  padding: .22rem .55rem; border-radius: 6px; background: rgba(5, 47, 72, .78); color: #fff;
  font-size: .72rem; font-weight: 600; line-height: 1.3; letter-spacing: .01em;
}
@media (min-width: 560px) { .ai-note { bottom: 2.6rem; left: 1rem; } }
@media (min-width: 960px) { .ai-note { left: 130px; bottom: auto; top: 4.4rem; font-size: .76rem; } }
.ai-line { margin: .35rem 0 0; font-size: .86rem; color: var(--muted); font-style: italic; }

/* ---------- footer additions ---------- */
.foot-disclaim {
  margin: 0 0 1.6rem; padding: .85rem 1rem; border-radius: 12px; max-width: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 600;
}
.foot-links { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot-links a { color: #fff; font-weight: 600; text-underline-offset: .2em; display: inline-block; padding: .2rem 0; }
.foot-links a:hover { color: var(--mango); }
.foot-links a[aria-current="page"] { color: var(--mango); }

/* report link in the summary sheet */
.sheet-report { margin: .6rem 0 0; font-size: .86rem; }
.report-link { font-weight: 600; color: var(--coral-ink); }

/* ---------- static pages (about, terms, privacy, 404) ---------- */
html[lang="fil"] [data-l="en"], html:not([lang="fil"]) [data-l="fil"] { display: none !important; }
.page-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.page-nav a { display: inline-block; padding: .5rem 0 .65rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; border-bottom: 3px solid transparent; }
.page-nav a:hover { border-bottom-color: var(--coral); }
.page-nav a[aria-current="page"] { border-bottom-color: var(--sea); color: var(--sea-dark); }
.doc { padding: 2.2rem 0 3.5rem; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem 1.2rem 1.8rem; max-width: 48rem; margin-inline: auto; position: relative; overflow: hidden; }
.doc-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--jeep); }
.doc h1 { font-family: var(--display); font-weight: 800; color: var(--sea-dark); font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; }
.doc .updated { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }
.doc h2 { font-family: var(--display); font-weight: 700; color: var(--sea-dark); font-size: 1.25rem; margin-top: 1.6rem; }
.doc p, .doc li { max-width: 42rem; }
.doc p { margin: .5rem 0 0; }
.doc ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.doc li + li { margin-top: .3rem; }
.doc .lead { font-size: 1.12rem; color: #33404f; margin-top: .9rem; }
.doc .note-box { margin-top: 1.4rem; padding: .9rem 1rem; background: var(--mango-soft); border-left: 5px solid var(--mango); border-radius: 12px; }
.doc a { overflow-wrap: anywhere; }
@media (min-width: 760px) { .doc-card { padding: 2.2rem 2.4rem 2.4rem; } .doc { padding-top: 2.8rem; } }

/* ---------- time-sensitive alerts (e.g. voter registration pause) ---------- */
.card-alert { margin: 0 0 .55rem; padding: .35rem .6rem; background: #fde6e1; color: var(--coral-ink); border-radius: 8px; font-size: .86rem; font-weight: 700; }
.task-alert { margin-top: .15rem; font-size: .8rem; font-weight: 700; color: var(--coral-ink); }
.sheet-alert { margin: 1rem 0 0; padding: .75rem .9rem; background: #fde6e1; border: 1px solid #f3b8aa; border-left: 5px solid var(--coral); border-radius: 12px; font-size: .95rem; }
.sheet-print-row { margin: .4rem 0 0; font-size: .88rem; }
.sheet-alert p { margin: 0; }
.alert-links { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.alert-links li + li { margin-top: .2rem; }
.alert-links a { color: var(--coral-ink); font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 760px) { .sheet-print-row { text-align: left; } }

/* search placeholder fits on narrow phones */
@media (max-width: 420px) {
  .pill input::placeholder { font-size: .9em; }
}

/* ---------- print: a service summary prints as a clean checklist ---------- */
@media print {
  @page { margin: 14mm; }
  html { scroll-behavior: auto; }
  html, body { background: #fff !important; color: #000 !important; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  body { font-size: 11pt; }
  .skip, .sections, .lang, .hero-photos, .scrim, .banderitas, .hero-controls, .ai-note,
  .mosaic-band, .tries, .ask, .trust, .btn-summary, .sheet-close, .sheet-print-row, .sheet-small,
  .foot-links, .task-art, .task > svg, .event-icon, .p-icon, .callout, .masthead::after,
  .card::before, .event::before, .journey::before, .band::before, .band::after, .foot::before, .doc-card::before, .sheet-inner::before { display: none !important; }
  .strip { background: none !important; border: 1px solid #000; color: #000; }
  .hero, .hero-copy, .band, .foot, .doc-card, .journey, .card, .event, .task, .principle-grid article {
    background: none !important; color: #000 !important; border-color: #999 !important;
  }
  .hero { min-height: 0 !important; padding: 0 !important; display: block !important; border-radius: 0; }
  .hero-copy { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .band { padding: 1rem 0 !important; }
  .band .section-title, .band .section-lead, .foot, .foot p, .foot h2, .foot-disclaim { color: #000 !important; }
  .foot-disclaim { background: none !important; border-color: #000 !important; }
  .card, .event, .journey, .task, .fact, .step { break-inside: avoid; }
  a { color: #000 !important; text-decoration: underline; }
  /* show where outside links go */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; font-weight: 400; overflow-wrap: anywhere; }
  .card-go::after { content: none !important; }
  /* summary dialog open: print only the summary */
  body.sheet-open { overflow: visible !important; }
  body.sheet-open > *:not(.sheet) { display: none !important; }
  .sheet { position: absolute; inset: 0 auto auto 0; width: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; overflow: visible; }
  .sheet::backdrop { background: transparent !important; }
  .sheet-inner { max-height: none !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
  .sheet-head { border-bottom: 2px solid #000; }
  .sheet-head h2, .sheet-agency, .sheet-label, .fact dt, .sheet-source { color: #000 !important; }
  .facts { border: 0; border-radius: 0; }
  .fact, .fact:nth-child(even) { background: none !important; display: block; padding: .55rem 0; border-top: 1px solid #999; }
  .fact dt::before { content: ""; display: inline-block; width: .8em; height: .8em; border: 1.5px solid #000; margin-right: .45em; vertical-align: -.1em; }
  .sheet-note, .sheet-alert { background: none !important; border: 1px solid #000 !important; }
  .fact + .fact { border-top-color: #999 !important; }
  /* printed summaries keep the non-affiliation line */
  .sheet-body::before { content: "Philippine Services (unofficial guide). Not a government website. Official sites end in .gov.ph."; display: block; margin: .6rem 0 0; padding: .35rem .5rem; border: 1px solid #000; font-size: .85em; }
  html[lang="fil"] .sheet-body::before { content: "Philippine Services (hindi opisyal na gabay). Hindi ito website ng gobyerno. Nagtatapos sa .gov.ph ang mga opisyal na site."; }
  .cta { display: block; background: none !important; color: #000 !important; box-shadow: none; padding: .4rem 0; text-align: left; min-height: 0; font-weight: 700; }
  .cta [aria-hidden="true"] { display: none; }
}
