/* Page CSS for the landing page, on top of the kit (system.css, layout.css).
   Only what the kit lacks: the client's fonts, the logo size, the hero box in the brand teal, the portrait slot,
   the developing photograph, the pathway diagram, the method terms, the call and WhatsApp buttons. */

/* Primary font "Span": drop the licensed files into assets/fonts/ and the headings pick it up.
   Until then the headings fall back to Google Sans (the secondary font). */
@font-face {
  font-family: "Span";
  src: local("Span"), url("../fonts/Span.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

/* ---------- The logo: one size in the header and the footer ---------- */
.brand-logo { display: block; height: 44px; width: auto; }
.nav__logo .brand-logo, .footer .nav__logo .brand-logo { height: 44px; }
@media (max-width: 639px) { .brand-logo, .nav__logo .brand-logo, .footer .nav__logo .brand-logo { height: 36px; } }

/* phone: the logo centred and fixed, the main action in the action bar at the foot (the client's ask) */
@media (max-width: 639px) {
  .nav .nav__bar { justify-content: center; }
  .nav .nav__actions, .nav .nav__toggle { display: none !important; }
}

.label { color: var(--muted); letter-spacing: 0.08em; }
:root { --t-h2: clamp(28px, 2.4vw + 6px, 40px); }
.nav .nav__actions { margin-left: auto; }

/* ---------- Hero: the banner photograph, the words in a solid teal box on its dark left ---------- */
.hero.hero--photo .hero__text {
  width: calc(50% - var(--gutter) / 2);
  padding: var(--s-8) var(--s-8) var(--s-7);
  background: var(--p-accent); color: #fff; border-radius: var(--r-lg);
  --ink: #ffffff; --muted: rgb(255 255 255 / .78); --line: rgb(255 255 255 / .2); --line-strong: rgb(255 255 255 / .45);
}
.hero.hero--photo h1 { font-size: clamp(36px, 3.2vw, 46px); line-height: 1.08; max-width: none; color: #fff; }
.hero__turn { color: #e9d8a6; }
.hero.hero--photo .hero__lead { color: rgb(255 255 255 / .86); max-width: 54ch; }
.hero.hero--photo .hero__text .btn-row { --action: #f8f5ee; --action-ink: #00404e; --ink: #ffffff; margin-top: var(--s-6); }
.hero__micro { margin-top: var(--s-4); font-size: var(--t-small); color: rgb(255 255 255 / .78); }

/* tablet and phone: the hero on the brand teal, the words first, the photograph across the foot of the screen
   (the client's mobile reference: copy on a dark block, the picture under it) */
@media (max-width: 1023px) {
  .hero.hero--photo, .hero.hero--photo[data-tone] {
    background: var(--p-accent); color: #fff;
    --ink: #ffffff; --muted: rgb(255 255 255 / .78); --line: rgb(255 255 255 / .2); --line-strong: rgb(255 255 255 / .45);
    --photo: 0px; --hero-pic: 46svh;
  }
  .hero.hero--photo h1 { font-size: 46px; }
  .hero.hero--photo .hero__lead { font-size: 19px; }
  .hero.hero--photo > .hero__bg { top: auto; bottom: 0; height: var(--hero-pic); }
  .hero.hero--photo .hero__text { width: 100%; padding: 0; background: none; border-radius: 0; }
  .hero.hero--photo > .wrap > .hero-text { justify-content: flex-start; }
}
@media (max-width: 639px) {
  .hero.hero--photo { --hero-pic: 32svh; }
  .hero.hero--photo h1 { font-size: 29px; line-height: 1.12; letter-spacing: -0.035em; }
  .hero.hero--photo .hero__lead { font-size: 16px; line-height: 1.55; margin-top: var(--s-3); }
  .hero.hero--photo .hero__text .btn-row { margin-top: var(--s-5); }
  .hero.hero--photo .hero__text .btn-row .btn { width: 100%; }
  .hero__micro { font-size: 13px; }
}

/* ---------- Meet: the text and the portrait slot ---------- */
.meet__p { margin-top: var(--s-4); color: var(--ink); max-width: 60ch; }
.meet__text .section-head { margin-bottom: var(--s-6); }
.meet__quote { margin: var(--s-6) 0 0; padding: 0; border: 0; text-indent: 0; }
.meet__quote::before, .meet__quote::after { content: none; }
.meet__quote p { margin: 0; padding: 0; font: var(--display-weight) clamp(22px, 1.8vw, 26px)/1.35 var(--font-display); letter-spacing: var(--display-tracking); color: var(--p-accent); max-width: 30ch; }
.portrait {
  margin: 0; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--p-accent); display: grid; place-items: center;
}
.portrait__mark { width: 46%; height: auto; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.portrait:hover .portrait__mark { transform: scale(1.03); }
@media (max-width: 1023px) { .portrait { margin-top: var(--s-7); aspect-ratio: 4 / 3; } }
.closing .close--type .btn { margin-top: var(--s-6); width: auto; justify-self: start; align-self: flex-start; height: 48px; padding-inline: var(--s-6); font-size: var(--t-body); }
@media (max-width: 639px) { .closing .close--type .btn { width: 100%; } }

/* ---------- Focus areas: the rows beside the developing photograph ---------- */
.focus .rows__name { font-size: var(--t-lead); font-weight: 400; }
.focus .rows__value { color: var(--muted); font-variant-numeric: tabular-nums; }
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.4; }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* ---------- Approach: the five stages as one still pathway, then the methods as three rows of terms ---------- */
.pathway-fig { margin-top: var(--s-2); }
.pathway { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); position: relative; }
.pathway::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line-strong); }
.pathway li { position: relative; display: grid; gap: var(--s-4); align-content: start; }
.pathway li:last-child { justify-items: end; text-align: right; }
.pathway li:last-child .pathway__name { max-width: none; }
.pathway__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--p-accent); color: #fff; font: 500 16px/1 var(--font-text); box-shadow: 0 0 0 6px var(--bg); }
.pathway__name { font: var(--display-weight) var(--t-card)/1.3 var(--font-display); letter-spacing: -0.01em; max-width: 12ch; }
.terms { margin-top: var(--s-7); display: grid; gap: var(--s-3); }
.terms__row { margin: 0; font: var(--display-weight) var(--t-lead)/1.5 var(--font-display); color: var(--ink); max-width: none; }
.terms__row span { color: var(--muted); padding: 0 .35em; }
@media (max-width: 1023px) {
  .pathway { grid-template-columns: 1fr; gap: var(--s-4); }
  .pathway::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .pathway li { grid-template-columns: 44px 1fr; align-items: center; }
  .pathway__name { max-width: none; }
  .pathway li:last-child { justify-items: stretch; text-align: left; }
}
@media (max-width: 639px) { .terms__row { font-size: 17px; line-height: 1.6; } }
/* tablet: the meet and focus sections run two screens there (layout-v4.md, the tablet) */
@media (min-width: 640px) and (max-width: 1023px) { #about, #programmes, #faq { --h: 2; } #about .portrait { aspect-ratio: 1 / 1; } }

/* ---------- FAQ ---------- */
.faq__photo { margin: var(--s-7) 0 0; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; }
.faq__photo .frame__img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1023px) { .faq__photo { aspect-ratio: 16 / 9; margin-bottom: var(--s-7); } }
.faq .faq__item h3 { font-family: var(--font-text); }
@media (max-width: 639px) { .faq > .faq__item { padding: var(--s-6) 0; } .faq > .faq__item:first-child { padding-top: 0; } #faq .section-head { margin-bottom: var(--s-7); } }

/* ---------- Footer row 2, as the client's footer reference: the brand left, Reach us from the split line ---------- */
.footer-row { display: flex; align-items: flex-start; gap: var(--gutter); }
.footer-row > .footer-brand { flex: 0 0 calc(50% - var(--gutter) / 2); }
.footer-row > .reach { flex: 1 1 auto; }
@media (max-width: 639px) { .footer-row { flex-direction: column; gap: var(--s-7); } .footer-row > .footer-brand { flex-basis: auto; } }
.footer__line { font: var(--display-weight) var(--t-lead)/1.4 var(--font-display); max-width: 30ch; color: var(--muted); }
.reach h3 { font: 500 var(--t-small)/1.4 var(--font-text); color: var(--muted); margin: 0 0 var(--s-3); }
.reach ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.reach li > :is(a, span) { display: inline-flex; min-height: 32px; align-items: center; font-size: var(--t-body); }

/* ---------- Call and WhatsApp: a round button at each lower corner ---------- */
.float-btn {
  position: fixed; z-index: 9; bottom: calc(24px + var(--bar, 0px)); width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / .45);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.float-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: float-pulse 2.6s cubic-bezier(.22, 1, .36, 1) 3; }
.float-btn:hover { transform: translateY(-2px); }
.float-btn:active { transform: translateY(0) scale(.97); }
.float-btn svg { width: 24px; height: 24px; }
.float-call { left: 24px; background: var(--p-accent); }
.float-call svg { fill: none; stroke: #e9d8a6; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.float-wa { right: 24px; background: #1f8f4e; }
.float-wa svg { fill: #fff; }
@keyframes float-pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 639px) {
  .float-btn { width: 52px; height: 52px; bottom: calc(16px + var(--bar, 0px)); }
  .float-call { left: 16px; } .float-wa { right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .float-btn::after { animation: none; display: none; } }
