/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --paper: #FAF8F3;      /* ivory – piano keys */
  --key: #FFFFFF;
  --ink: #23272F;        /* soft piano black */
  --ink-muted: #575D68;
  --sea: #16697A;        /* Gulf Harbour sea view */
  --sea-deep: #0F4C59;
  --whatsapp: #25D366;
  --whatsapp-deep: #1DA851;
  --line: #E4E0D6;
  --radius-photo: 10px;
  --container: 1080px;
  --header-h: 4.25rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", Arial, sans-serif;
}

/* ==========================================================
   Reset & base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem); /* anchors land below the sticky header */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }
p  { margin: 0 0 1em; max-width: 65ch; }
a  { color: var(--sea-deep); }
a:hover { color: var(--sea); }
:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 2px;
  border-radius: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-lead { color: var(--ink-muted); max-width: 58ch; }
.band { background: var(--key); border-block: 1px solid var(--line); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--key);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn svg { flex: none; }
.btn-call { background: var(--sea); color: var(--key); }
.btn-call:hover { background: var(--sea-deep); color: var(--key); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--key); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.brand-mark {
  flex: none;
  height: 2.1rem;
  width: auto;
  color: var(--sea);
}
.brand-text { display: block; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--sea); color: var(--ink); }
.header-call { padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 12px 24px -12px rgba(35, 39, 47, 0.25);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a { display: block; padding: 0.65rem 0.25rem; font-size: 1.1rem; }
  .header-call-number { display: none; }         /* icon-only call button on small screens */
  .header-call { padding: 0.55rem 0.75rem; }
}
@media (max-width: 480px) {
  .brand-place { display: none; }                /* keep the brand subtitle on one line on phones */
  .brand { gap: 0.5rem; }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-kicker { font-weight: 700; color: var(--sea-deep); margin-bottom: 0.75rem; }
.hero p.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 56ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.hero-facts {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--ink-muted);
}
.hero-facts strong { color: var(--ink); }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-photo);
  border: 1px solid var(--line);
}
figure { margin: 0; }
figcaption { font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.5rem; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 11; }
}

/* ==========================================================
   Piano-key divider (signature motif)
   ========================================================== */
.keys { display: block; width: 100%; height: 30px; color: var(--ink); }

/* ==========================================================
   Highlights strip
   ========================================================== */
.highlights {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--key);
  padding-block: 1.4rem;
}
.highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
}
.highlights li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.highlights li span { color: var(--ink-muted); font-size: 0.95rem; }
@media (max-width: 680px) {
  .highlights ul { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* ==========================================================
   Who lessons are for
   ========================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.25rem;
}
.audience img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-photo);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.audience p { color: var(--ink-muted); margin-bottom: 0.4rem; }
.audience .more {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--sea);
  padding: 0.3rem 0 0.1rem;
}
@media (max-width: 680px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   About
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-photo);
  border: 1px solid var(--line);
}
.about-name {
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 0.6rem;
  color: var(--ink);
  font-size: 1rem;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq-list { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--sea-deep);
  flex: none;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details > p {
  padding: 0 0.25rem 1.2rem;
  color: var(--ink-muted);
}

/* ==========================================================
   Gallery & videos
   ========================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-photo);
  border: 1px solid var(--line);
}
/* Both recital videos are portrait phone recordings. Each sits inside a
   fixed 9:16 frame whose size is set by the container, not by the video
   file, so the two are always exactly the same height whatever the
   recording's own dimensions. The video letterboxes inside the frame. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 320px));
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2rem;
}
.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-photo);
  border: 1px solid var(--line);
  background: var(--ink);
}
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================
   Contact
   ========================================================== */
.contact-options {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.contact-card:hover, .contact-card:focus-visible {
  border-color: var(--sea);
  background: var(--key);
  color: var(--ink);
}
.contact-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--sea);
  color: var(--key);
}
.contact-icon svg { width: 1.4rem; height: 1.4rem; }
.contact-text { display: grid; line-height: 1.3; }
.contact-text strong { font-family: var(--font-display); font-size: 1.15rem; }
.contact-text span { color: var(--ink-muted); font-size: 0.95rem; }
@media (max-width: 820px) {
  .contact-options { grid-template-columns: 1fr; gap: 0.75rem; }
}

.find-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.find-grid h3 { margin-bottom: 0.75rem; }
.address { font-style: normal; font-size: 1.15rem; line-height: 1.7; }
.map-wrap {
  border-radius: var(--radius-photo);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; }
@media (max-width: 820px) {
  .find-grid { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 300px; }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: var(--ink);
  color: #D8DAE0;
  padding-block: 2.5rem;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  align-items: center;
}
.footer-inner p { margin: 0; }
/* Footer text links get vertical padding so each is a comfortable ≥24px tap target */
.site-footer a {
  color: var(--key);
  display: inline-block;
  padding-block: 0.3rem;
}
.footer-credit {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #AEB2BC;
}
.footer-credit p { margin: 0; }
.footer-credit a { color: #D8DAE0; }
.footer-credit a:hover { color: var(--key); }
/* Below ~1260px the content column reaches the floating buttons, so keep the
   footer's right edge clear of them. Above that the page margin already does. */
@media (max-width: 1260px) {
  .footer-inner, .footer-credit { padding-right: 4.75rem; }
}
@media (max-width: 680px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* ==========================================================
   Floating contact buttons (call + WhatsApp)
   ========================================================== */
.fab-stack {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 60;
}
.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: var(--key);
  box-shadow: 0 4px 14px rgba(35, 39, 47, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.fab:hover, .fab:focus-visible { color: var(--key); transform: translateY(-2px); }
.fab svg { width: 1.6rem; height: 1.6rem; }
.fab-call { background: var(--sea); }
.fab-call:hover { background: var(--sea-deep); }
.fab-whatsapp { background: var(--whatsapp); }
.fab-whatsapp:hover { background: var(--whatsapp-deep); }
@media print { .fab-stack, .site-header, .skip-link { display: none; } }

/* ==========================================================
   Trinity exams page
   ========================================================== */
.site-nav a[aria-current="page"] { border-bottom-color: var(--sea); font-weight: 700; }
.container-narrow { max-width: 820px; }
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: var(--radius-photo);
  border: 1px solid var(--line);
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split picture { max-width: 420px; }
  .split img { aspect-ratio: 4 / 3; }
}
.band-tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.grades {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
}
.grades li {
  border: 1px solid var(--line);
  border-left: 4px solid var(--sea);
  background: var(--paper);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
}
.grades li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.grades li span { color: var(--ink-muted); font-size: 0.95rem; }
.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--sea);
  padding: 0.3rem 0 0.1rem;
}
