/* UpGrade Consultancy — site-prototype shared bundle.
   Carried over from the approved hero-bundle (Velorah spec): navy HSL palette,
   Cormorant Garamond display / Inter body, liquid-glass pills, fade-rise. */

:root {
  --background: 201 100% 13%;
  --foreground: 0 0% 100%;
  --muted-foreground: 240 8% 80%;
  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 10%;
  --muted: 0 0% 10%;
  --accent: 0 0% 10%;
  --border: 0 0% 18%;
  --input: 0 0% 18%;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 85px;
  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-6: 48px; --space-8: 64px; --space-12: 96px; --space-16: 128px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-weight: 400;
}
img { max-width: 100%; display: block; }

/* ---------- Liquid Glass (verbatim from approved hero) ---------- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Navigation: wordmark | glass pill of links | glass CTA ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  max-width: 1280px;
  margin: 0 auto;
  transition: padding 240ms ease;
}
/* condensed glass strip once scrolled past the hero top */
.nav-shell {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 49;
  height: var(--nav-h);
  opacity: 0;
  pointer-events: none;
  background: rgba(4, 26, 38, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  transition: opacity 240ms ease, height 240ms ease;
}
body.nav-scrolled .nav-shell { opacity: 1; }
/* pages whose head imagery is too bright for a transparent nav opt into
   an always-on glass strip */
body.nav-solid .nav-shell { opacity: 1; }
body.nav-scrolled .nav { padding-top: 14px; padding-bottom: 14px; }
body.nav-scrolled { --nav-h: 68px; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav-logo sup { font-size: 12px; }
/* photographic mark (logo-candidates 4b) left of the wordmark, header only */
.nav-mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px hsl(var(--foreground) / 0.12);
}
.nav-pill {
  border-radius: 9999px;
  padding: 12px 28px;
  display: none;
}
@media (min-width: 900px) { .nav-pill { display: block; } }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 150ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: hsl(var(--foreground)); }
.nav-links a:focus-visible { outline: 2px solid hsl(var(--foreground)); outline-offset: 3px; border-radius: 2px; }
.nav-cta {
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 14px;
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: transform 150ms ease;
  display: none;
  white-space: nowrap;
}
@media (min-width: 900px) { .nav-cta { display: inline-block; } }
.nav-cta:hover { transform: scale(1.03); }

/* mobile: glass circular hamburger */
.nav-burger {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: hsl(var(--foreground));
  padding: 0;
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: '';
  display: block;
  width: 18px; height: 1.6px;
  background: currentColor;
  position: relative;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after  { position: absolute; top: 6px; }
body.menu-open .nav-burger span { transform: rotate(45deg); }
body.menu-open .nav-burger span::before { transform: rotate(-90deg); top: 0; }
body.menu-open .nav-burger span::after { opacity: 0; }

/* full-screen mobile menu, links in the display serif */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: hsl(var(--background) / 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 44px);
  line-height: 2;
  color: hsl(var(--foreground));
  text-decoration: none;
}
.mobile-menu a:hover { color: hsl(var(--muted-foreground)); }
.mobile-menu .menu-cta {
  font-family: var(--font-body);
  font-size: 16px;
  border-radius: 9999px;
  padding: 16px 40px;
  display: inline-block;
  margin-top: 24px;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero-root { position: relative; min-height: 100dvh; overflow: hidden; }
/* same fade recipe as the Our Services page header (2026-07-05 per David):
   soft top veil for the nav, bottom blend into the page navy */
.hero-root::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, hsl(var(--background) / 0.5) 0%, hsl(var(--background) / 0) 20%),
    linear-gradient(to top, hsl(var(--background)) 2%, hsl(var(--background) / 0.55) 12%, hsl(var(--background) / 0) 30%);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 175px 24px 90px;  /* 85px fixed nav + approved 90px */
}
@media (max-height: 700px) {
  .hero { padding-top: calc(85px + clamp(24px, 5vh, 90px)); padding-bottom: clamp(24px, 5vh, 90px); }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: -2.46px;
  max-width: 1280px;
  margin: 0;
  color: hsl(var(--foreground));
}
@media (min-width: 640px)  { .hero h1 { font-size: 72px; } }
@media (min-width: 768px)  { .hero h1 { font-size: 96px; } }
.hero h1 em, .lead em {
  font-style: normal;
  color: hsl(var(--muted-foreground));
}
.hero-subtext {
  color: hsl(var(--muted-foreground));
  font-size: 16px;
  max-width: 672px;
  margin: 32px 0 0;
  line-height: 1.625;
}
@media (min-width: 640px) { .hero-subtext { font-size: 18px; } }
.hero-cta {
  border-radius: 9999px;
  padding: 20px 56px;
  font-size: 16px;
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  text-decoration: none;
  margin-top: 48px;
  transition: transform 150ms ease;
  cursor: pointer;
  display: inline-block;
}
.hero-cta:hover { transform: scale(1.03); }
.nav-cta:focus-visible, .hero-cta:focus-visible, .pill:focus-visible, .nav-burger:focus-visible {
  outline: 2px solid hsl(var(--foreground));
  outline-offset: 3px;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-16) 24px; position: relative; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-narrow { max-width: 800px; margin: 0 auto; }
.kicker {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 0 var(--space-3);
}
.lead, .section p.lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0;
  color: hsl(var(--foreground));
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}
.section p, .section li {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  font-size: 16px;
}
.section strong { color: hsl(var(--foreground)); font-weight: 500; }
/* underline only inline prose links; block-level link compositions
   (cards, list entries) manage their own affordances */
.section p a:not(.pill), .section li a:not(.pill) { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: hsl(var(--foreground) / 0.35); }
.section p a:not(.pill):hover, .section li a:not(.pill):hover { text-decoration-color: hsl(var(--foreground)); }

.pill {
  border-radius: 9999px;
  padding: 14px 36px;
  font-size: 15px;
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  text-decoration: none;
  display: inline-block;
  transition: transform 150ms ease;
}
.pill:hover { transform: scale(1.03); }

/* the hero cuts cleanly to the navy ground; no overlay wash */
.after-hero { padding-top: var(--space-16); }

/* split layout: photo + text */
.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.split-media { border-radius: 24px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* services grid: glass cards */
.services-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
@media (min-width: 700px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  border-radius: 24px;
  padding: var(--space-4);
  text-decoration: none;
  color: hsl(var(--foreground));
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  transition: transform 200ms ease;
}
.service-card:hover { transform: translateY(-3px); }
.service-card .service-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
}
.service-card .service-note {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}
.services-foot { margin-top: var(--space-6); text-align: center; }
.services-foot p { max-width: 680px; margin: 0 auto var(--space-3); }

/* photo ground behind the services grid (home + english): heavy navy veil,
   solid at both edges so the section blends into its navy neighbours */
.section.photo-ground {
  position: relative;
  isolation: isolate;
}
.section.photo-ground::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../assets/photos-graded/study-desk-graded.jpg') center 30% / cover no-repeat;
}
.section.photo-ground::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    hsl(var(--background)) 0%,
    hsl(var(--background) / 0.66) 14%,
    hsl(var(--background) / 0.56) 50%,
    hsl(var(--background) / 0.66) 86%,
    hsl(var(--background)) 100%);
}

/* checklist bullets (school partnerships, access aims) */
.checklist { list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 14px; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 14px; height: 1.5px;
  background: hsl(var(--muted-foreground) / 0.7);
}

/* statement band */
.statement { text-align: center; }
.statement .cta-row { margin-top: var(--space-6); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.statement .lead, .statement p.lead { max-width: 900px; margin-left: auto; margin-right: auto; }
.statement .lead + .lead, .statement p.lead + p.lead { margin-top: var(--space-3); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid hsl(var(--foreground) / 0.12);
  padding: var(--space-12) 24px var(--space-6);
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer .nav-logo { font-size: 34px; }
.footer h3 {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin: 0 0 var(--space-2);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: hsl(var(--muted-foreground)); text-decoration: none; font-size: 15px; transition: color 150ms ease; }
.footer a:hover { color: hsl(var(--foreground)); }
.footer-tag { color: hsl(var(--muted-foreground)); font-size: 15px; line-height: 1.7; max-width: 340px; margin: 16px 0 0; }
.footer-base {
  max-width: 1120px;
  margin: var(--space-8) auto 0;
  padding-top: var(--space-3);
  border-top: 1px solid hsl(var(--foreground) / 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
}

/* ---------- Motion ---------- */
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise { animation: fade-rise 0.8s ease-out both; }
.animate-fade-rise-delay { animation: fade-rise 0.8s ease-out 0.2s both; }
.animate-fade-rise-delay-2 { animation: fade-rise 0.8s ease-out 0.4s both; }

/* scroll-triggered entrances (IntersectionObserver adds .in) */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { animation: fade-rise 0.8s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .animate-fade-rise, .animate-fade-rise-delay, .animate-fade-rise-delay-2 { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal.in { animation: none; }
  .nav-cta, .hero-cta, .pill, .service-card { transition: none; }
}

/* WhatsApp button: small glass circle, bottom right, UK office hours only (site.js) */
.wa-btn {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground) / 0.85);
  transition: transform 200ms ease, color 200ms ease;
}
.wa-btn:hover { transform: scale(1.06); color: hsl(43 65% 70%); }
@media (prefers-reduced-motion: reduce) { .wa-btn, .wa-btn:hover { transition: none; transform: none; } }
body.menu-open .wa-btn { display: none; }

/* language switcher */
.lang-menu { position: relative; display: none; }
@media (min-width: 900px) { .lang-menu { display: block; } }
.lang-btn {
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 150ms ease;
  white-space: nowrap;
}
.lang-btn:hover { transform: scale(1.04); }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: 10px 0;
  list-style: none;
  border-radius: 18px;
  min-width: 150px;
  background: rgba(4, 26, 38, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.lang-menu.open .lang-list { opacity: 1; transform: none; pointer-events: auto; }
.lang-list a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}
.lang-list a:hover, .lang-list a[aria-current="true"] { color: hsl(var(--foreground)); }
.mobile-menu .menu-langs { margin-top: 28px; font-family: var(--font-body); }
.mobile-menu .menu-langs a { font-family: var(--font-body); font-size: 15px; line-height: 2.2; color: hsl(var(--muted-foreground)); }
.mobile-menu .menu-langs a.active, .mobile-menu .menu-langs a:hover { color: hsl(var(--foreground)); }
.mobile-menu .menu-langs span { color: hsl(var(--muted-foreground) / 0.5); }
