/* The Professional Tutor — shared styles
   Colours: blue is sampled from the background of Seth's photo so the
   photo blends into the page. Change a colour here and it changes everywhere. */
:root {
  --blue: #70aaff;        /* photo background */
  --blue-deep: #5a97f0;   /* hover / pressed */
  --navy: #13284a;        /* text (matches the shirt) */
  --lilac: #e7e0ff;       /* photo background */
  --lilac-deep: #d5c9ff;  /* hover */
  --btn-bg: var(--lilac);       /* to switch back: var(--navy) */
  --btn-bg-hover: var(--lilac-deep); /* to switch back: #0b1a33 */
  --btn-text: var(--navy);      /* to switch back: #fff */
  --white: #fbfcfe;       /* neutral sections */
  --ink-soft: #3a4a66;    /* secondary text on white */
  --line: #dfe6f2;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --pad: clamp(1.5rem, 6vw, 4rem);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--blue);
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- menu (phones: drop-down) ---------- */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: 600 .95rem var(--font-body);
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after  { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: .5rem var(--pad) 1.5rem;
  box-shadow: 0 1rem 2rem rgba(19, 40, 74, .25);
}
.site-nav.is-open { display: block; }
.site-nav a {
  display: block;
  padding: .95rem 0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-nav a[aria-current="page"]:not(.site-nav__cta) { color: var(--blue); }
.site-nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.site-nav__cta {
  margin-top: 1rem;
  border-bottom: 0 !important;
  text-align: center;
  background: var(--lilac);
  color: var(--navy) !important;
  border-radius: 999px;
}

/* ---------- floating WhatsApp button ---------- */
.whatsapp {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  background: #25d366;
  color: #0b2e18;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 .5rem 1.5rem rgba(19, 40, 74, .3);
}
.whatsapp:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
/* phones: round icon only, so it covers less of the page */
@media (max-width: 51.99rem) {
  .whatsapp { width: 3.5rem; height: 3.5rem; padding: 0; justify-content: center; }
  .whatsapp__label { display: none; }
}
.brand {
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.brand:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* ---------- sections ---------- */
.band {
  padding: clamp(3rem, 10vw, 6rem) var(--pad);
  padding-bottom: clamp(3.6rem, 12vw, 7.2rem); /* extra room below each button */
}
.band--blue  { background: var(--blue); }
.band--white { background: var(--white); }
.band__inner {
  max-width: var(--measure);
  margin: 0 auto;
}

h1, h2 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 1.75rem; }
h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: 1.75rem; }
p  { margin: 0 0 1.25rem; max-width: 65ch; }
.band--white p { color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.7rem, 10.8vw, 4.725rem); }
.hero__photo {
  width: min(68vw, 18rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 2.75rem;
}

/* ---------- inner pages ---------- */
.page-intro { padding-top: clamp(2.7rem, 10.8vw, 4.725rem); }

.booking__frame {
  margin-top: 2rem;
  min-height: 40rem;       /* room for the calendar while it loads */
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
}
.booking__frame iframe { display: block; min-height: 40rem; }
.booking__fallback {
  margin: 2.5rem auto 0;
  text-align: center;
}
.booking__fallback + .btn { margin-top: 1rem; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  font-weight: 700;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}
.contact-list span {
  display: block;
  font-weight: 500;
  font-size: .95rem;
}

.btn-group { margin-top: 2.75rem; display: grid; gap: 1rem; }
.contact-note {
  margin: 1.75rem auto 0;
  text-align: center;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.btn-group .btn { margin-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 67%;          /* about two-thirds of the screen on phones */
  min-width: 14rem;    /* never too narrow for the label on small phones */
  max-width: 100%;
  min-height: 3.5rem;
  padding: .9rem 1.25rem;
  white-space: nowrap;
  margin: 2.75rem auto 0;   /* centred */
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-text);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--btn-bg-hover); }
/* navy buttons on the white sections, lilac on the blue */
.band--white .btn { background: var(--navy); color: #fff; }
.band--white .btn:hover { background: #0b1a33; }
.btn:active { transform: scale(.98); }
.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c9d6ee;
  padding: 2.5rem var(--pad) 6rem;
  font-size: .95rem;
}
.site-footer .band__inner > * { margin: 0 0 .4rem; }
.site-footer strong { color: #fff; font-family: var(--font-head); }

/* ---------- larger screens ---------- */
@media (min-width: 52rem) {
  :root { --measure: 40rem; }

  .menu-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    position: static;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .site-nav a {
    padding: .35rem 0;
    border: 0;
    color: var(--navy);
    font-size: .95rem;
  }
  .site-nav a[aria-current="page"]:not(.site-nav__cta) { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
  .site-nav a:hover { box-shadow: inset 0 -2px 0 var(--navy); }
  .site-nav__cta {
    margin: 0;
    padding: .6rem 1.2rem !important;
    background: var(--lilac);
    color: var(--navy) !important;
  }
  .site-nav__cta:hover { box-shadow: none !important; background: var(--lilac-deep); }
  .site-nav__cta[aria-current="page"] { box-shadow: none !important; }
  .btn { width: fit-content; min-width: 16rem; }

  .hero { padding-top: 5.4rem; }
  .hero__grid {
    max-width: 64rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
    gap: 4rem;
  }
  .hero__photo { width: 100%; max-width: 22rem; margin: 0 auto; }
  .hero__inner { max-width: none; margin: 0; }
  .page-intro { padding-top: 5.4rem; }
  .btn-group { display: flex; flex-wrap: wrap; justify-content: center; }
  .btn-group .btn { margin: 0; min-width: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { transition: none; }
}
