/* Passiko placeholder site
   Colours from Passiko Brand Guidelines v1 (Mandala Studio).
   Headline font: Ramboia Regular (R-Type Foundry), self-hosted in assets/fonts.
   Body: Geist (Google Fonts). */

@font-face {
  font-family: "Ramboia";
  src: url("assets/fonts/Ramboia-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1B262B;
  --himalayan: #33698E;
  --powder: #D4E2E5;
  --offwhite: #F9F9F5;
  --blood: #A81616;
  --redorange: #CC5320;
  --orange: #EF9029;
  --sunlight: #FBD97D;

  --display: "Ramboia", Georgia, serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--himalayan); }

h1, h2, h3, .eyebrow, .btn {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.12; margin: 0 0 .4em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.2; margin: 0 0 .5em; }
h3 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 .35em; }
.eyebrow { font-size: 1.3rem; color: var(--himalayan); margin: 0 0 .6em; }

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

/* ---------- header ---------- */
.site-header { background: var(--offwhite); border-bottom: 1px solid rgba(27,38,43,.08); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
}
.nav a:hover { background: var(--powder); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--offwhite); }

/* ---------- hero ---------- */
.hero { background: var(--powder); padding: 80px 0 90px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-logo { background: var(--powder); }
.hero-logo img { width: 100%; max-width: 520px; margin-left: auto; }
.lede { font-size: 1.3rem; line-height: 1.55; max-width: 34em; }
.tagline { font-family: var(--display); font-size: 1.5rem; color: var(--blood); margin: 0 0 .5em; }

.btn {
  display: inline-block;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  transition: background .15s ease;
}
.btn:hover { background: var(--sunlight); }
.btn.dark { background: var(--ink); color: var(--offwhite); }
.btn.dark:hover { background: var(--himalayan); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.pillar {
  border-radius: 6px;
  padding: 34px 30px 30px;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pillar p { font-family: var(--display); font-size: 1.55rem; line-height: 1.22; margin: 0; }
.pillar small { font-family: var(--body); font-size: .95rem; margin-top: 18px; opacity: .85; }
.pillar.powder { background: var(--powder); color: var(--himalayan); }
.pillar.orange { background: var(--orange); color: var(--offwhite); }
.pillar.orange p { color: var(--offwhite); }
.pillar.redorange { background: var(--redorange); color: var(--offwhite); }

.band-ink { background: var(--ink); color: var(--offwhite); }
.band-ink .eyebrow { color: var(--sunlight); }
.band-ink a { color: var(--sunlight); }
.band-blue { background: var(--himalayan); color: var(--offwhite); }
.band-blue .eyebrow { color: var(--powder); }

.name-note { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; max-width: 26em; }
.name-note em { color: var(--sunlight); font-style: normal; }

/* ---------- link cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--offwhite); border: 1px solid rgba(27,38,43,.12);
  border-radius: 6px; padding: 28px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--himalayan); transform: translateY(-2px); }
.card p { margin: 0; color: #45535a; font-size: 1rem; }
.card .arrow { font-family: var(--display); color: var(--blood); margin-top: 14px; display: block; }

/* ---------- network page ---------- */
.page-head { background: var(--powder); padding: 70px 0 60px; }
.page-head p { max-width: 40em; font-size: 1.2rem; }
.schools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.school {
  background: #fff; border-radius: 6px; padding: 30px 30px 26px;
  border-top: 6px solid var(--himalayan);
  display: flex; flex-direction: column;
}
.school:nth-child(4n+2) { border-top-color: var(--blood); }
.school:nth-child(4n+3) { border-top-color: var(--orange); }
.school:nth-child(4n+4) { border-top-color: var(--redorange); }
.school .where { font-size: .95rem; color: var(--himalayan); font-weight: 500; margin: 0 0 12px; }
.school p { margin: 0 0 16px; font-size: 1rem; }
.school a.visit { margin-top: auto; font-family: var(--display); font-size: 1.05rem; text-decoration: none; color: var(--blood); }
.school a.visit:hover { text-decoration: underline; }
.join { background: var(--sunlight); border-radius: 6px; padding: 40px; margin-top: 44px; }
.join p { max-width: 42em; margin: 0; }

/* ---------- coming soon pages ---------- */
.soon { min-height: 62vh; display: flex; align-items: center; }
.soon .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.soon-tile {
  aspect-ratio: 1 / 1; border-radius: 6px; padding: 40px;
  display: flex; align-items: flex-end;
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2;
}
.soon-tile.orange { background: var(--orange); color: var(--offwhite); }
.soon-tile.blue { background: var(--himalayan); color: var(--offwhite); }
.url { font-family: var(--body); font-size: .95rem; color: #5a676d; word-break: break-all; margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--offwhite); padding: 56px 0 40px; font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.site-footer img { width: 170px; }
.site-footer a { color: var(--powder); }
.site-footer .fine { opacity: .7; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap, .two-col, .soon .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-logo { order: -1; }
  .hero-logo img { margin: 0; max-width: 360px; }
  .pillars, .cards, .schools { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .soon-tile { aspect-ratio: auto; min-height: 220px; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
}

/* ---------- school logos ---------- */
.school-top { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; }
.school-top h3 { margin-bottom: .15em; }
.school-top .where { margin: 0; }
.school-logo {
  flex: 0 0 96px; width: 96px; height: 96px;
  background: #fff; border: 1px solid rgba(27,38,43,.1); border-radius: 6px;
  padding: 8px; display: flex; align-items: center; justify-content: center;
}
.school-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.school-logo.placeholder {
  background: var(--powder); border-color: transparent;
  font-family: var(--display); font-size: 1.6rem; color: var(--himalayan);
}
@media (max-width: 480px) {
  .school-logo { flex-basis: 72px; width: 72px; height: 72px; }
}

/* ---------- external-language layout ---------- */
.come-see { font-family: var(--display); font-size: 1.6rem; color: var(--blood); margin: 0; }
.key-message { font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.35; max-width: 30em; margin: 0; }
.band-ink .name-note { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.band-ink h2 { color: var(--sunlight); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: flex; justify-content: space-between; align-items: flex-end;
  min-height: 200px; padding: 30px; border-radius: 6px; text-decoration: none;
  font-family: var(--display); font-size: 2rem; transition: transform .15s;
}
.tile:hover { transform: translateY(-3px); }
.tile.powder { background: var(--powder); color: var(--himalayan); }
.tile.orange { background: var(--orange); color: var(--offwhite); }
.tile.redorange { background: var(--redorange); color: var(--offwhite); }
.soon .btn { word-break: break-all; }
@media (max-width: 880px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 120px; } }
.soon .wrap { width: 100%; }

/* ---------- shared principles (network page) ---------- */
.principles { background: var(--offwhite); padding-top: 20px; }
.section-label {
  font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--himalayan); margin: 0 0 28px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(27,38,43,.12);
}
.prin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.prin {
  background: #fff; border: 1px solid rgba(27,38,43,.1); border-radius: 8px;
  padding: 26px 26px 20px;
}
.pri-ico {
  width: 34px; height: 34px; border-radius: 6px; background: var(--powder); color: var(--himalayan);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.pri-ico svg { width: 19px; height: 19px; }
.prin:nth-child(3n+2) .pri-ico { background: #FDE9D2; color: var(--redorange); }
.prin:nth-child(3n+3) .pri-ico { background: #FBEFC9; color: #9A6A12; }
.pri-n { font-size: 1.3rem; margin: 0 0 10px; }
.pri-short, .pri-full { font-size: 1rem; line-height: 1.55; margin: 0 0 12px; color: #33424a; }
.pri-full { color: #4d5b62; }
.pri-toggle {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--body); font-size: .9rem; color: var(--blood);
}
.pri-toggle span { display: inline-block; transition: transform .15s; }
.pri-toggle.open span { transform: rotate(180deg); }
.pri-ver { font-size: .78rem; color: #7b878c; margin: 14px 0 0; }
@media (max-width: 980px) { .prin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .prin-grid { grid-template-columns: 1fr; } }

/* ---------- network dropdown ---------- */
.nav { align-items: center; }
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop .caret { font-size: .8em; line-height: 1; transform: translateY(-2px); transition: transform .15s; }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; z-index: 20;
  background: #fff; border: 1px solid rgba(27,38,43,.12); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(27,38,43,.12); padding: 6px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-menu a { border-radius: 6px; padding: 8px 12px; white-space: nowrap; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: translateY(-2px) rotate(180deg); }
.network-intro { font-size: 1.25rem; max-width: 38em; margin: 0; }
.network-intro a { color: var(--himalayan); }
#schools, #principles { scroll-margin-top: 20px; }
html { scroll-behavior: smooth; }
.key-message + .key-message { margin-top: .9em; }

/* ---------- animated mark in hero ---------- */
.hero-mark { width: 100%; }
.hero-mark video, .hero-mark img {
  display: block; width: 100%; max-width: 560px; margin-left: auto;
  aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 48%;
  background: var(--powder);
}
@media (max-width: 880px) {
  .hero-mark video, .hero-mark img { max-width: none; margin: 0; aspect-ratio: 16 / 9; }
}

/* ---------- duotone photography ---------- */
.photo-strip-wrap { padding-top: 0; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.photo-strip img:nth-child(1) { object-position: 45% 50%; }
.photo-strip img:nth-child(2) { object-position: 62% 50%; }
.photo-strip img:nth-child(3) { object-position: 40% 50%; }
.photo-band img { width: 100%; height: clamp(220px, 34vw, 440px); object-fit: cover; object-position: 50% 62%; }
.soon-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
@media (max-width: 880px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .soon-photo { aspect-ratio: 4 / 3; }
}
.soon-photo[src*="watering"] { object-position: 50% 12%; }

/* =====================================================================
   v2 brand-guideline alignment (Passiko Brand Guidelines 2026 v2)
   ===================================================================== */

/* --- Typography: "Font Use for Web" --- */
body { font-size: 22px; line-height: 30px; }                      /* Body text 22/30 Geist */
h1 { font-size: 52px; line-height: 60px; }                          /* Headline 52/60 Ramboia */
.eyebrow, .tagline { font-size: 24px; line-height: 1.3; }           /* Sub-heading 24 Ramboia */
.lede, .network-intro, .page-head p { font-size: 22px; line-height: 30px; }
.btn {                                                              /* Button 18 Ramboia */
  font-size: 18px; line-height: 1.3; padding: 11px 20px; border-radius: 6px;
}
.school p, .pri-short, .pri-full { font-size: 18px; line-height: 26px; }
.pri-ver, .school .where { font-size: 15px; }
@media (max-width: 880px) {
  body { font-size: 18px; line-height: 26px; }
  h1 { font-size: 40px; line-height: 48px; }                        /* Mobile headline 40/48 */
  .eyebrow, .tagline { font-size: 21px; }                           /* Mobile sub-heading 21 */
  .lede, .network-intro, .page-head p { font-size: 18px; line-height: 26px; }
  .school p, .pri-short, .pri-full { font-size: 17px; line-height: 25px; }
}

/* --- Colour pairings: only "Acceptable Combinations" --- */
.btn, .btn:hover { color: var(--offwhite); }                       /* Orange: Off-white text */
.btn:hover, .btn.dark:hover { background: var(--himalayan); }      /* hover: Himalayan + Off-white (allowed) */
.band-ink h2, .band-ink .eyebrow, .name-note em { color: var(--powder); }   /* Ink: Off-white / Powder only */
.come-see.on-ink { color: var(--powder); margin-top: 1.2em; }
.tile.redorange { color: var(--sunlight); }                         /* Red-orange: Sunlight / Powder only */
.site-footer .fine { opacity: 1; color: var(--powder); }

/* --- Palette only: no plain white, no off-palette greys or tints --- */
.school, .prin, .nav-menu { background: var(--offwhite); }
.school { border: 1px solid rgba(27,38,43,.12); border-top-width: 6px; }
.school:nth-child(4n+1) { border-top-color: var(--himalayan); }
.school:nth-child(4n+2) { border-top-color: var(--blood); }
.school:nth-child(4n+3) { border-top-color: var(--orange); }
.school:nth-child(4n+4) { border-top-color: var(--redorange); }
.principles { background: var(--powder); padding-top: 70px; }
.principles .section-label { color: var(--himalayan); border-bottom-color: rgba(51,105,142,.3); }
.pri-short { color: var(--ink); }
.pri-full { color: var(--ink); }
.pri-ver { color: var(--himalayan); }
.prin .pri-ico { background: var(--powder); color: var(--himalayan); }                 /* Powder + Himalayan */
.prin:nth-child(3n+2) .pri-ico { background: var(--sunlight); color: var(--redorange); } /* Sunlight + Red-orange */
.prin:nth-child(3n+3) .pri-ico { background: var(--blood); color: var(--powder); }       /* Blood red + Powder */
