/* ==========================================================================
   Oriental Mindoro — design demo
   Palette runs from deep water through to sand, with coral as the one warm
   accent. Everything else stays quiet so the accent still means something.
   ========================================================================== */

:root {
  --ink-900: #0a1b1f;
  --ink-800: #10262b;
  --ink-700: #1a3c43;
  --sea-700: #0e5761;
  --sea-500: #17808a;
  --aqua:    #2fa5a0;
  --aqua-soft:#8fd4cf;

  --coral:   #e8734a;
  --coral-d: #cf5c36;
  --gold:    #f0a860;

  --paper:   #fbf6ee;
  --paper-2: #f4ebdd;
  --white:   #ffffff;

  --text:      #1b3238;
  --text-mute: #4d6a70;
  --text-soft: #7b9398;
  --line:      #e2d7c6;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(10,27,31,.05), 0 12px 32px rgba(10,27,31,.08);
  --shadow-lg: 0 24px 60px rgba(10,27,31,.18);
  --ease: cubic-bezier(.2,.7,.3,1);
  --gutter: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: min(100% - (var(--gutter) * 2), 1180px); margin-inline: auto; }
.container-narrow { width: min(100% - (var(--gutter) * 2), 760px); margin-inline: auto; }

section { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.pad-sm { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink-800);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.7rem + 4.2vw, 5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
h4 {
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600;
  margin: 0 0 .4rem; color: var(--ink-800);
}
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: var(--sea-700); text-underline-offset: .18em; }
a:hover { color: var(--coral-d); }
strong { font-weight: 600; color: var(--ink-800); }

.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--text-mute); line-height: 1.6; }
.measure { max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--coral); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

.script {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); color: var(--gold);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-800); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- demo banner ---------- */
.demo-banner {
  background: var(--ink-900); color: var(--aqua-soft);
  text-align: center; font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; padding: .55rem 1rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,246,238,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--gold), var(--coral) 55%, var(--sea-700));
  flex: none;
}
.brand-text {
  font-family: var(--font-display); font-size: 1.42rem; letter-spacing: -.01em;
  color: var(--ink-800);
}

.main-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .5rem .75rem; border-radius: 8px;
  font-size: .93rem; font-weight: 450; color: var(--text-mute); text-decoration: none;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.main-nav a:hover { color: var(--ink-800); background: var(--paper-2); }
.main-nav a.active { color: var(--coral-d); font-weight: 600; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: var(--ink-800); color: #fff; border: 0; cursor: pointer;
  font-family: inherit; font-size: .88rem; font-weight: 500;
  padding: .55rem .9rem; border-radius: 999px;
}
.nav-toggle span {
  width: 15px; height: 9px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 500; font-size: .96rem; text-decoration: none;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 8px 24px rgba(232,115,74,.3); }
.btn-coral:hover { background: var(--coral-d); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-ink { background: var(--ink-800); color: #fff; }
.btn-ink:hover { background: var(--ink-900); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; }
.hero-home { min-height: clamp(30rem, 82vh, 46rem); padding-block: 6rem 4.5rem; }
.hero-page { min-height: clamp(20rem, 46vh, 30rem); padding-block: 5rem 3.5rem; }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10,27,31,.78) 0%, rgba(10,27,31,.34) 45%, rgba(10,27,31,.16) 100%),
    linear-gradient(100deg, rgba(10,27,31,.74) 0%, rgba(10,27,31,.03) 62%);
}
.hero h1, .hero .lead, .hero .eyebrow { color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); max-width: 46ch; }
.hero .eyebrow { color: #ffeeda; }   /* gold fails contrast on the warm hero;
                                        this keeps the warmth and passes AA */
.hero h1 { max-width: 18ch; }

/* ---------- generic layout helpers ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-60-40 { grid-template-columns: 1.35fr 1fr; }
  .split-start { align-items: start; }
}

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.2rem); }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--text-mute); font-size: .96rem; }
.card-num {
  font-family: var(--font-display); font-size: 2.4rem; color: var(--aqua-soft);
  line-height: 1; display: block; margin-bottom: .5rem;
}
.card-media { border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16/10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.card:hover .card-media img { transform: scale(1.05); }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-body { padding: 1.5rem 1.6rem 1.8rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 500; font-size: .93rem; color: var(--coral-d); margin-top: 1rem;
}
a.card:hover .link-arrow span { transform: translateX(4px); }
.link-arrow span { transition: transform .2s var(--ease); }

/* ---------- media / figures ---------- */
.figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.figure img { width: 100%; }
.figure figcaption {
  background: var(--white); border-top: 1px solid var(--line);
  padding: .8rem 1.1rem; font-size: .85rem; color: var(--text-soft);
}

/* ---------- video embeds ---------- */
.video {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-900); box-shadow: var(--shadow);
}
.video-frame { position: relative; aspect-ratio: 16/9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-credit {
  display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: baseline;
  padding: .75rem 1.1rem; background: var(--ink-800);
  color: rgba(255,255,255,.72); font-size: .82rem;
}
.video-credit strong { color: #fff; font-weight: 500; }
.video-credit a { color: var(--aqua-soft); }

/* ---------- dark band ---------- */
.band { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.band-media { position: absolute; inset: 0; z-index: -2; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,27,31,.82), rgba(10,27,31,.9));
}
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255,255,255,.82); }
.band .eyebrow { color: var(--gold); }

.bg-ink { background: var(--ink-800); color: #fff; }
.bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.bg-ink p { color: rgba(255,255,255,.82); }
.bg-ink .eyebrow { color: var(--gold); }
.bg-paper-2 { background: var(--paper-2); }

/* ---------- fact list ---------- */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--white); padding: 1.4rem 1.3rem; }
.fact dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .35rem; }
.fact dd { margin: 0; font-family: var(--font-display); font-size: 1.55rem; color: var(--ink-800); line-height: 1.15; }
.fact dd small { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--text-mute); margin-top: .25rem; }

/* ---------- checklist ---------- */
.tick { list-style: none; padding: 0; margin: 0 0 1.4em; }
.tick li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; color: var(--text-mute); }
.tick li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--aqua);
}
.two-col { display: grid; gap: 0 3rem; }
@media (min-width: 780px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li {
  counter-increment: s; position: relative; padding: 1.4rem 0 1.4rem 4rem;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1.25rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--sea-700); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem;
}
.steps p { color: var(--text-mute); font-size: .96rem; margin: .3rem 0 0; }

/* ---------- callout ---------- */
.callout {
  background: var(--white); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.callout strong { display: block; margin-bottom: .3rem; }
.callout p { font-size: .94rem; color: var(--text-mute); margin: 0; }

/* ---------- cta ---------- */
.cta { background: var(--ink-800); color: #fff; text-align: center; }
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta .lead { color: rgba(255,255,255,.8); max-width: 52ch; margin-inline: auto; }
.cta .eyebrow { color: var(--gold); }
.cta .btn { margin-top: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.68); padding: 4rem 0 2rem; font-size: .92rem; }
.footer-main { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .footer-main { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer .brand-text { color: #fff; display: block; margin-bottom: .8rem; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: rgba(255,255,255,.5); max-width: 78ch;
}
.footer-bottom strong { color: rgba(255,255,255,.8); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- utilities ---------- */
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
    background: var(--paper); border-left: 1px solid var(--line);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: var(--shadow-lg); z-index: 120;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .main-nav a { padding: .85rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { position: relative; z-index: 130; }
}

/* ---------- video facade ----------
   The embed only loads on click, so the resting state is a thumbnail plus a
   play control. Sized as a real button so it is keyboard reachable. */
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  background: linear-gradient(180deg, rgba(10,27,31,.15), rgba(10,27,31,.55));
  border: 0; cursor: pointer; color: #fff;
  font-family: inherit; font-size: .9rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .25s var(--ease);
}
.video-play:hover, .video-play:focus-visible { background: linear-gradient(180deg, rgba(10,27,31,.05), rgba(10,27,31,.45)); }
.video-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -4px; }

.video-play-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(10,27,31,.35);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.video-play-icon::after {
  content: ""; display: block;
  border-left: 20px solid var(--coral);
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
  margin-left: 6px;
}
.video-play:hover .video-play-icon { transform: scale(1.07); background: #fff; }

.video-blurb { flex-basis: 100%; color: rgba(255,255,255,.6); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- photo credits ----------
   CC BY / CC BY-SA both require visible attribution, so this needs to be
   readable rather than hidden away at 9px. */
.photo-credit {
  font-size: .78rem; color: var(--text-soft); margin: .6rem 0 0; line-height: 1.5;
}
.photo-credit a { color: var(--text-mute); text-decoration: underline; text-underline-offset: .15em; }
.photo-credit a:hover { color: var(--coral-d); }

.hero .photo-credit { color: rgba(255,255,255,.62); margin-top: 1.4rem; }
.hero .photo-credit a { color: rgba(255,255,255,.82); }
.hero .photo-credit a:hover { color: var(--gold); }

.figure figcaption { display: grid; gap: .15rem; }
.figure-caption { color: var(--text-mute); font-size: .88rem; }
.photo-credit-inline { margin-top: .1rem; }

.bg-ink .photo-credit, .band .photo-credit { color: rgba(255,255,255,.55); }
.bg-ink .photo-credit a, .band .photo-credit a { color: rgba(255,255,255,.78); }

/* Photo cards keep their aspect so the grid stays even. */
.card-media img { background: var(--paper-2); }

/* Interior heroes are shorter than the home hero, so the same gradient lands
   differently, and the photographs behind them are brighter than the
   illustrations they replaced. Measured: the beaches eyebrow fell to 4.46:1 and
   the nature lead to 3.52:1, both under the 4.5 AA floor. This darkens only the
   band the text sits in. Re-measure if the hero images ever change. */
.hero-page .hero-scrim {
  background:
    linear-gradient(to top, rgba(10,27,31,.90) 0%, rgba(10,27,31,.66) 52%, rgba(10,27,31,.34) 100%),
    linear-gradient(100deg, rgba(10,27,31,.66) 0%, rgba(10,27,31,.08) 72%);
}
