/* public/css/site-page.css - the ONE page layer for the website's inner pages (owner 2026-11-08):
   Corridors, Fleet, Border Posts, Insights, Downloads, the FAQ, the service pages, the corridor
   guides, the legal pages and 404 (and the page header of the quote and partner forms, owner 2026-11-12).
   One page header, one container, one vertical rhythm, one card. Tokens only
   (yuniq-tokens.css via yuniq-brand.css); no colour is typed here. Added to those pages by
   scripts/sync-site-nav.js (SITE_PAGE_LAYER_PAGES in scripts/lib/site-nav.js); the homepage keeps
   its own larger hero. Page-specific widgets (corridor filter, maps, carousel, downloads) stay in
   site-content.css. */
@import url('/css/yuniq-tokens.css');

:root {
  --page-max: 75rem;                                      /* the same width as the homepage and footer */
  --page-pad-x: clamp(1rem, 0.5rem + 2vw, 1.5rem);
  --page-section-y: clamp(2.5rem, 1.75rem + 3vw, 4rem);
  --page-gap: 1.25rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--yuniq-font); color: var(--yuniq-text); background: var(--yuniq-slate); line-height: var(--yuniq-leading-body); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 0.75rem 1.25rem; background: var(--yuniq-navy); color: var(--yuniq-white);
  font-weight: 600; text-decoration: none; border-radius: 0 0 var(--yuniq-radius-control) 0; }
.skip-link:focus { left: 0; }

/* ---- One page header: the homepage hero's look, compact; one h1 and its lead, no label above it ---- */
.page-header { position: relative; overflow: hidden; color: var(--yuniq-white); text-align: left;
  padding: clamp(3rem, 2rem + 4vw, 5rem) var(--page-pad-x) clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background: radial-gradient(50rem 24rem at 85% -20%, var(--yuniq-on-navy-glow), transparent 70%),
              linear-gradient(180deg, var(--yuniq-navy), var(--yuniq-navy-700)); }
.page-header-inner { position: relative; max-width: var(--page-max); margin: 0 auto; }
.page-header h1 { color: var(--yuniq-white); font-size: var(--yuniq-text-display); line-height: var(--yuniq-leading-tight);
  letter-spacing: var(--yuniq-tracking-display); font-weight: 800; max-width: 22ch; margin: 0 0 0.75rem; }
.page-header p { color: var(--yuniq-on-navy-muted); font-size: var(--yuniq-text-lead); line-height: var(--yuniq-leading-body); max-width: 40rem; margin: 0; }
.page-header p + p, .page-header p + .btn, .page-header .hero-link { margin-top: 1rem; }
.page-header .hero-link a { color: var(--yuniq-white); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--yuniq-on-navy-line-strong); }
.page-header .hero-link a:hover { border-bottom-color: var(--yuniq-white); }
/* A drawn icon beside a link's words (not an emoji: the same on every phone). */
.icon-download { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

/* ---- One container, one vertical rhythm ------------------------------------------------------------ */
.page-section { max-width: var(--page-max); margin: 0 auto; padding: var(--page-section-y) var(--page-pad-x); }
.page-section + .page-section { padding-top: 0; }
/* A tinted band runs the full width; its content keeps the same column. */
.page-section--tint { max-width: none; background: var(--yuniq-white); border-block: 1px solid var(--yuniq-border);
  padding-inline: max(var(--page-pad-x), calc((100% - var(--page-max)) / 2 + var(--page-pad-x))); padding-block: var(--page-section-y); }
.page-section + .page-section--tint, .page-section--tint + .page-section { padding-top: var(--page-section-y); }

/* Section heads: one heading, one line under it - the same as the homepage sections. No label above. */
.page-section > :is(h2, .section-title, .section-sub) { text-align: center; margin-inline: auto; max-width: var(--yuniq-measure); }
.page-section > :is(h2, .section-title) { color: var(--yuniq-navy); font-size: var(--yuniq-text-h2); line-height: var(--yuniq-leading-tight);
  letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.page-section > .section-sub { color: var(--yuniq-text-secondary); font-size: var(--yuniq-text-lead); margin-bottom: 2rem; }
.page-section > :is(h2, .section-title) + :not(.section-sub) { margin-top: 1.5rem; }
.page-section p { color: var(--yuniq-text-secondary); }
.page-section h3 { color: var(--yuniq-navy); font-size: var(--yuniq-text-h3); line-height: var(--yuniq-leading-snug); margin-bottom: 0.4rem; }

/* ---- One card (the homepage Bento tile) for service, corridor, fleet, border and guide cards ---------- */
.tile-grid { display: grid; gap: var(--page-gap); grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); }
:is(.tile, .tile-grid > .card, .ref-card) { background: var(--yuniq-white); border: 1px solid var(--yuniq-border); border-radius: var(--yuniq-radius);
  box-shadow: var(--yuniq-shadow-sm); padding: 1.5rem; }
:is(.tile, .tile-grid > .card, .ref-card) p { font-size: var(--yuniq-text-small); line-height: var(--yuniq-leading-body); margin: 0; }
.tile--tint { background: var(--yuniq-navy-50); }

/* ---- Questions: one tile per question, the same on the FAQ, the service pages and the guides ---------- */
.faq-item { background: var(--yuniq-white); border: 1px solid var(--yuniq-border); border-radius: var(--yuniq-radius);
  box-shadow: var(--yuniq-shadow-sm); padding: 1.25rem 1.5rem; }
.faq-item + .faq-item { margin-top: 0.75rem; }
.faq-item h3 { margin-bottom: 0.4rem; }
.faq-item p { font-size: var(--yuniq-text-body); }
.page-section > .faq-item { max-width: 52rem; margin-inline: auto; }

/* ---- Legal text (Privacy Policy, Terms & Conditions): one readable column under the same page header -- */
.page-section.legal-body > :is(h2, ul, .note) { max-width: var(--yuniq-measure); margin-inline: auto; }
.page-section.legal-body > h2 { text-align: left; margin-top: 2rem; margin-bottom: 0.6rem; font-size: var(--yuniq-text-h3); }
.page-section.legal-body > h2:first-child { margin-top: 0; }
.legal-body :is(p, li) { color: var(--yuniq-text-secondary); margin-bottom: 0.8rem; }
.legal-body ul { padding-left: 1.4rem; }
.legal-body a { color: var(--yuniq-navy); }
.legal-body .note { background: var(--yuniq-orange-50); border: 1px solid var(--yuniq-border); border-radius: var(--yuniq-radius-control);
  padding: 1rem 1.2rem; margin: 1.5rem 0; }
.page-section > .faq-item + .faq-item { margin-top: 0.75rem; }

/* Running text in a section: one reading width, centred as a block under the centred head. */
.page-section > p:not(.section-sub) { max-width: var(--yuniq-measure); margin-inline: auto; }
.page-section > p + p { margin-top: 0.75rem; }

/* ---- Closing call to action: the homepage's navy band --------------------------------------------- */
.page-cta { text-align: center; color: var(--yuniq-white); padding: var(--page-section-y) var(--page-pad-x);
  background: linear-gradient(180deg, var(--yuniq-navy), var(--yuniq-navy-700)); }
.page-cta h2 { color: var(--yuniq-white); font-size: var(--yuniq-text-h2); line-height: var(--yuniq-leading-tight); margin-bottom: 0.75rem; }
.page-cta p { color: var(--yuniq-on-navy-muted); max-width: 40rem; margin: 0 auto 1.5rem; }

/* Buttons in the page header and the closing band (colours: yuniq-brand.css). */
:is(.page-header, .page-cta, .contact-save) .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.75rem;
  border-radius: var(--yuniq-radius-control); font-weight: 700; text-decoration: none; }
/* The shared hover lift (Phase 2 D2) on every button of an inner page: mouse only, never with reduced motion
   (tests/browser/test-motion.js M7). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(var(--yuniq-lift)); }
}

/* Links in page copy: navy, a hairline under them, the full line on hover - no browser blue, no heavy underline. */
:where(.page-section) :where(a:not([class])) { color: var(--yuniq-navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--yuniq-border-strong); }
:where(.page-section) :where(a:not([class])):hover { border-bottom-color: currentColor; }
/* Phones: a link in running text is a comfortable tap target (about 44px tall). The padding of an inline link
   does not move the lines around it; the same hairline is drawn as a background line under the words (a border
   would sit below the padding), on every line of a link that wraps. */
@media (max-width: 768px) {
  :where(.page-section) :where(a:not([class])) { padding-block: 0.75rem; border-bottom: 0;
    background-image: linear-gradient(var(--yuniq-border-strong), var(--yuniq-border-strong)); background-repeat: no-repeat;
    background-size: 100% 1px; background-position: 0 calc(100% - 0.75rem);
    -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  :where(.page-section) :where(a:not([class])):hover { background-image: linear-gradient(currentColor, currentColor); }
}

/* A short note at the foot of a section (e.g. the corridor guide links under the corridor list). */
.page-section > .page-note { margin-top: 1rem; margin-bottom: 0; }

/* ---- Where We Operate: one card per network country (js/network-coverage.js), on /corridors/ ---------- */
.operate-count { text-align: center; color: var(--primary-blue); font-size: 1.1rem; margin: -0.5rem 0 1.5rem; }
.operate-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 1.25rem; }
.operate-card { background: var(--white); border-radius: var(--yuniq-radius); box-shadow: var(--shadow-sm); border: 1px solid var(--yuniq-border); padding: 1.25rem 1.25rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; transition: var(--transition); }
.operate-card:hover { box-shadow: var(--shadow-md); }
.operate-card h3 { color: var(--primary-blue); font-size: var(--yuniq-text-h3); line-height: var(--yuniq-leading-snug); margin: 0.2rem 0 0; }
.operate-card p { color: var(--yuniq-text-secondary); font-size: var(--yuniq-text-small); margin: 0; }
.operate-pin { stroke: var(--yuniq-orange); }

/* ---- Contact: one panel, how to reach us | when (owner 2026-11-13: not a box per detail) ---------- */
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 52rem; margin: 0 auto; padding: 2rem; background: var(--yuniq-white);
  border: 1px solid var(--yuniq-border); border-radius: var(--yuniq-radius); box-shadow: var(--yuniq-shadow-sm); }
.contact-panel .contact-col + .contact-col { border-left: 1px solid var(--yuniq-border); padding-left: 2rem; }
.contact-col { display: grid; gap: 1.5rem; align-content: start; }
.contact-item { display: flex; align-items: flex-start; gap: 0.9rem; min-width: 0; }
.contact-item h3 { color: var(--yuniq-navy); font-size: var(--yuniq-text-h3); line-height: var(--yuniq-leading-snug); margin: 0 0 0.25rem; }
.contact-item p { margin: 0; overflow-wrap: anywhere; }
.contact-hours p + p { margin-top: 0.5rem; }
/* Phones: the email and phone links are full-height tap targets (44px); the negative margin keeps the layout. */
@media (max-width: 768px) { .contact-item p a { display: inline-block; padding: 0.75rem 0; margin: -0.75rem 0; } }
.contact-icon { flex-shrink: 0; color: var(--yuniq-orange); margin-top: 0.15rem; }
@media (max-width: 640px) {
  .contact-panel { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
  .contact-panel .contact-col + .contact-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--yuniq-border); padding-top: 1.5rem; }
}

/* ---- Contact: save us to your phone (owner 2026-11-13) - the company card as a QR code + a download ---- */
.contact-save { display: flex; align-items: center; gap: 1.5rem; max-width: 52rem; margin: 1.5rem auto 0; padding: 1.5rem 2rem;
  background: var(--yuniq-navy-50); border: 1px solid var(--yuniq-border); border-radius: var(--yuniq-radius); }
.contact-save-qr { flex-shrink: 0; width: 168px; height: 168px; padding: 6px; background: var(--yuniq-white);
  border: 1px solid var(--yuniq-border); border-radius: var(--yuniq-radius-control); }
.contact-save h3 { color: var(--yuniq-navy); font-size: var(--yuniq-text-h3); line-height: var(--yuniq-leading-snug); margin: 0 0 0.35rem; }
.contact-save p { margin: 0 0 1rem; }
.contact-save-phone { display: none; }
@media (max-width: 640px) {
  .contact-save { padding: 1.25rem; }
  .contact-save-qr, .contact-save-wide { display: none; }
  .contact-save-phone { display: inline; }
  .contact-save-btn { width: 100%; }
}
