/* Partners page (partners.html).
   Header, footer, section headings and buttons come from site.css and shared.css —
   the same ones the landing page and the country pages use. This file is only what
   the partners page adds: its hero with the drawn illustration, the "why choose us"
   blocks, the closing strip, and the pop-up that holds the Google Form.

   Note: this page is English only, so it carries no [data-en] attributes and does not
   load shared.js (which would run the UA/EN switch and write to localStorage). */

/* The current page is marked in the menu rather than left looking like any other link */
.hdr nav a[aria-current] { opacity: 1; color: var(--terracotta); }

/* ---------- Hero ---------- */
/* Type on the left, the photograph on the right — the same shape as a country page
   hero. The photo is portrait, so it takes the narrower column here; on a country page,
   where the cover is landscape, the two columns are even. */
.p-hero { padding: 48px 0 90px; }
.p-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.p-hero .mono { color: var(--terracotta); }
.p-hero h1 { font-size: clamp(72px, 7.2vw, 104px); line-height: .98; letter-spacing: -0.02em; margin: 14px 0 28px; }
.p-hero .lead { font-size: 20px; line-height: 1.55; max-width: 520px; margin: 0 0 34px; opacity: .8; }
/* The second audience (schools, agents, creators) isn't named in the paragraph above,
   so it is named here, next to the button that actually serves them. */
.p-hero .p-note { margin: 20px 0 0; font-size: 15px; line-height: 1.5; max-width: 440px; opacity: .6; }

/* The rounded card. 40px is the header photo's radius on the landing page, and the
   filter is the header's too: blacks lifted a little and a touch of warmth, so the
   greys of the room sit next to the cream instead of against it. */
.p-hero-photo { margin: 0; border-radius: 40px; overflow: hidden; background: var(--cream-2); }
.p-hero-photo img {
  /* height:auto is load-bearing: the width/height attributes on the <img> would
     otherwise set the height themselves and the frame would run off the page. */
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 45%;
  filter: brightness(1.03) contrast(.94) saturate(1.08) sepia(.06);
}

/* ---------- Why choose us: four blocks, 2 x 2 ---------- */
.p-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.p-why article { background: var(--cream-2); border-radius: 28px; padding: 38px 36px 42px; }
.p-why .mono { display: block; color: var(--terracotta); margin-bottom: 18px; }
.p-why h3 { font-size: 32px; margin-bottom: 12px; }
.p-why p { margin: 0; opacity: .75; }

/* ---------- Closing strip ---------- */
.p-end { padding-top: 20px; text-align: center; }
.p-end h2 { font-size: 80px; margin: 16px 0 20px; }
.p-end h2 .br { color: var(--terracotta); }
.p-end p { max-width: 430px; margin: 0 auto 34px; opacity: .75; }

/* ---------- Pop-up with the Google Form ---------- */
/* Wider than the consultation pop-up: a Google Form sets its own width and looks
   cramped under about 700px. */
dialog#partner { border: 0; padding: 0; border-radius: 28px; width: 720px; max-width: calc(100vw - 32px); background: var(--cream); color: var(--ink); overflow: hidden; }
dialog#partner::backdrop { background: rgba(42,29,20,.55); backdrop-filter: blur(3px); }
.p-modal { position: relative; padding: 16px; }
.p-modal-head { padding: 22px 26px 18px; }
.p-modal-head .mono { display: block; color: var(--terracotta); margin-bottom: 8px; }
.p-modal-head h3 { font-size: 34px; }
/* Google's own page scrolls inside the frame, so the pop-up itself never grows past the screen */
.p-modal iframe { display: block; width: 100%; height: min(70vh, 760px); border: 0; border-radius: 18px; background: #fff; }
/* display:block above would otherwise beat the hidden attribute */
.p-modal iframe[hidden] { display: none; }
/* Shown instead of the frame until the form's address is filled in below */
.p-modal-todo { margin: 0 10px 10px; padding: 34px 30px; border-radius: 18px; background: var(--cream-2); font-size: 15px; line-height: 1.6; }
.p-modal-todo b { display: block; margin-bottom: 6px; }
.p-modal-todo code { font-family: var(--font-mono); font-size: 13px; }
