@import url("fonts.css");

/*
 * Sizes, spacing and colours are taken from the original WordPress site
 * (Twenty Twenty-Four theme presets) so the static pages scale the same way.
 */
:root {
  --bg: #f2f2f2;
  --text: #000;
  --text-2: #353535;
  --text-3: #494949;
  --link: #367ac3;

  --font-heading: Jost, sans-serif;
  --font-body: Roboto, sans-serif;

  --fs-body: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.375), 1.1rem);
  --fs-small: 0.9rem;
  --fs-medium: 1.05rem;
  --fs-h3: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.767), 1.5rem);
  --fs-large: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem);
  --fs-x-large: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
  --fs-xx-large: clamp(2.5rem, 2.5rem + ((1vw - 0.2rem) * 1.283), 3.27rem);

  --gutter: min(6.5rem, 8vw);
  --section-pad: calc(var(--gutter) + 50px);
  --gap: 1.2rem;
  --wide: 1280px;
  --content: 620px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); font-family: var(--font-heading); }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

.wrap {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.stack > * + * { margin-top: var(--gap); }

.button {
  display: inline-block;
  background: #000;
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: var(--fs-medium);
  line-height: 1.55;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 0.33rem;
}
.button:hover { background: var(--text-2); color: var(--bg); }
.button.small {
  font-family: var(--font-body);
  font-size: var(--fs-small);
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  font-size: var(--fs-x-large);
  line-height: 1.15;
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav > a:not(.button) {
  font-size: 1.25rem;
  text-decoration: none;
}
.menu-toggle,
.menu-close {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}
.menu-toggle { margin: -8px -8px -8px 0; }
.menu-toggle svg,
.menu-close svg { display: block; }

@media (max-width: 599px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 90px var(--gutter) 2rem;
  }
  .nav.open { display: flex; }
  .nav .menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: calc(var(--gutter) - 8px);
  }
  .nav > a:not(.button) { font-size: 1.5rem; }
}

/* Sky background (fixed, as on the original site) */
.sky {
  background-image: url("../images/sky.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: 48% 0%;
}
.sky.bottom { background-position: 48% 100%; }
/* iOS and most touch devices don't support fixed backgrounds */
@media (hover: none) {
  .sky { background-attachment: scroll; }
}

/* Home: hero */
.hero {
  padding-top: calc(var(--gutter) + 16px);
  padding-bottom: calc(var(--gutter) + 16px);
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
}
.portrait {
  width: 304px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.hero h1 {
  font-size: var(--fs-xx-large);
  line-height: 1.15;
  text-align: center;
  width: 472px;
}
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: 1.15em; }

@media (max-width: 781px) {
  .hero-inner { flex-direction: column; gap: 8px; }
  .hero .portrait { width: 75%; max-width: 304px; }
  .hero h1 { width: 75%; max-width: 472px; }
}

/* Home: sections */
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap) 40px;
  align-items: start;
}
@media (max-width: 781px) {
  .columns { grid-template-columns: 1fr; }
}

.intro .muted { color: var(--text-2); }
.intro ul { margin: 1rem 0 0; padding-left: 1rem; }
.intro .button { margin-top: 1rem; }

.about .portrait { width: 250px; }
.about h2 { font-size: var(--fs-x-large); }
.about .button { margin-top: 1rem; }
@media (min-width: 782px) {
  .about-aside { padding-top: calc(var(--fs-x-large) * 1.2 + var(--gap)); }
}
.prose a:not(.button) { color: var(--link); }

.home-certs {
  padding-bottom: var(--gutter);
  text-align: center;
}
.home-certs h2 { font-size: var(--fs-xx-large); }
.home-certs ul {
  display: inline-block;
  text-align: left;
  margin: 42px 0;
  padding-left: 1rem;
}
.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 49px;
}
.logos img { width: 100%; }
@media (max-width: 781px) {
  .logos { grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
}

/* Inner pages */
.page {
  padding-top: calc(var(--gutter) + 38px);
}
.page-title {
  font-size: var(--fs-xx-large);
  line-height: 1.15;
  text-align: center;
  max-width: var(--content);
  margin: 0 auto;
}
.narrow {
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}

/* Certifications */
.certs {
  max-width: 600px;
  margin: 70px auto 0;
}
.certs { margin-bottom: 64px; }
.cert + .cert { margin-top: 73px; }
.cert img { margin-bottom: 49px; }
.cert h2 { font-size: var(--fs-large); margin-bottom: 29px; }
.cert p { color: var(--text-3); }
@media (max-width: 781px) {
  .certs { padding: 0 10px; margin-top: 40px; }
  .cert img { margin: 0 auto 43px; }
  .cert h2 { margin-bottom: 23px; }
  .cert + .cert { margin-top: 67px; }
}

/* Contact */
.contact-intro { margin-top: 60px; }
.contact-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
}
.contact-form input,
.contact-form textarea {
  font: 14px/1.3 var(--font-body);
  padding: 1px 4px;
  border: 1px solid #767676;
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.contact-form textarea { height: 156px; resize: vertical; }
.contact-form button {
  font: 14px/1.3 var(--font-body);
  padding: 2px 10px;
  border: 1px solid #767676;
  border-radius: 2px;
  background: #e9e9e9;
  color: var(--text);
  cursor: pointer;
}
.contact-form button:hover { background: #ddd; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status:empty { display: none; }
.form-status.ok { color: #1d6b3a; }
.form-status.error { color: #a4262c; }
.recaptcha-note { font-size: 12px; color: var(--text-2); }
.recaptcha-note a { font-family: inherit; }
.grecaptcha-badge { visibility: hidden; }

.fees { margin-top: 77px; }
.fees h2 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 17px;
}
.fees .table-scroll + h2 { margin-top: 74px; }
.table-scroll { overflow-x: auto; }
.fees table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.fees td {
  border: 1px solid;
  padding: 0.5em;
  vertical-align: middle;
  overflow-wrap: break-word;
}
.fees .note { margin-top: 20px; margin-bottom: 20px; }

/* Footer */
.site-footer {
  padding-top: calc(var(--gutter) + 20px);
  padding-bottom: var(--gutter);
  font-family: var(--font-heading);
}
.site-footer hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 0 0 44px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-cta { font-size: var(--fs-x-large); line-height: 1.5; }
.footer-contact { width: 358px; max-width: 100%; line-height: 1.6; }
.footer-contact h3 {
  font-size: var(--fs-medium);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  font-size: var(--fs-small);
  margin-top: 71px;
}
@media (max-width: 781px) {
  .footer-main { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; margin-top: 50px; }
}
