:root {
  color-scheme: light;
  --ink: #092831;
  --muted: #415e63;
  --deep: #071c23;
  --teal: #65e3d0;
  --paper: #f1f7f5;
  --line: #cbded9;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
p, li { line-height: 1.65; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #0a8f82; outline-offset: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: #a2efdf; }

.wrap { width: min(1200px, 89%); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 1rem; left: 1rem; transform: translateY(-200%); background: white; padding: 1rem; }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 2; background: var(--deep); color: white; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: .95rem; font-weight: 800; letter-spacing: .14em; line-height: 1.2; flex-shrink: 0; }
.brand img { object-fit: contain; }
.brand small { display: block; margin-top: .25rem; font-size: .64rem; font-weight: 650; letter-spacing: .17em; }
nav { display: flex; align-items: center; gap: clamp(.65rem, 2.4vw, 2rem); }
nav a, nav summary { font-size: .95rem; font-weight: 650; text-decoration: none; color: #e4f1ef; white-space: nowrap; }
nav > a, nav summary { display: flex; align-items: center; min-height: 44px; }
nav a:hover, nav summary:hover, nav [aria-current="page"], .current-section { color: #9cf2e3; }
nav > a[aria-current="page"], .current-section { text-decoration: underline; text-underline-offset: .38em; }
nav > a:last-child { border: 1px solid #50777a; border-radius: 7px; padding-inline: .85rem; }

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; display: inline-block; border: solid currentColor; border-width: 0 2px 2px 0; width: .52rem; height: .52rem; transform: translateY(-.12rem) rotate(45deg); }
details[open] > summary::after { transform: translateY(.14rem) rotate(225deg); }
.services-menu { position: relative; }
.services-menu summary { gap: .62rem; }
.services-menu ul { position: absolute; z-index: 3; inset: calc(100% + .45rem) 0 auto auto; min-width: 14.5rem; list-style: none; padding: .45rem; margin: 0; background: #0c3039; border: 1px solid #426c73; border-radius: 10px; box-shadow: 0 12px 22px #061b244a; }
.services-menu li + li { margin-top: .08rem; }
.services-menu li a { display: block; padding: .52rem .65rem; border-radius: 5px; }
.services-menu li a:hover, .services-menu li a[aria-current="page"] { background: #1a454f; }

.hero { position: relative; isolation: isolate; background-color: #103d46; color: white; overflow: hidden; }
.hero-with-image { background-color: #082733; }
.hero-with-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #061b24f7 4%, #061b24d9 43%, #061b2461 78%, #061b2438); }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.home-hero .hero-image { object-position: center 52%; }
.hero-inner { padding-block: clamp(3rem, 8vw, 5.8rem); }
.home-hero .hero-inner { padding-block: clamp(4.5rem, 11vw, 8.5rem); }
.eyebrow { color: #176c64; font-size: .8rem; letter-spacing: .14em; font-weight: 800; margin: 0 0 .95rem; text-transform: uppercase; }
.hero .eyebrow { color: #a2efdf; }
h1, h2, h3 { margin: 0; line-height: 1.09; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 6.6vw, 5.5rem); font-weight: 750; max-width: 19ch; }
h1 em { font-style: normal; color: #8ce8db; }
h2 { font-size: clamp(2rem, 4.25vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.hero-copy { color: #e7f3f3; font-size: clamp(1.02rem, 1.65vw, 1.19rem); max-width: 37rem; margin: 1.24rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 7px; padding: .64rem 1.12rem; text-decoration: none; border: 1px solid transparent; font: inherit; font-weight: 750; cursor: pointer; }
.button-primary { background: var(--teal); color: #082d33; }
.button-primary:hover { background: #a6f2e5; }
.button-ghost { color: white; background: #102d37a0; border-color: #81aaa9; }
.button-ghost:hover { background: #244a52; }
.button-outline { color: #0a6359; border-color: #538880; }
.button-outline:hover { background: #d0eae3; }

.section { padding-block: clamp(3rem, 6.5vw, 5.1rem); }
.section-tint { background: #e4f0ec; }
.section-lead { color: var(--muted); max-width: 45rem; margin: 1rem 0 1.55rem; }
.card-grid, .detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
h2 + .card-grid, h2 + .detail-grid { margin-top: 1.65rem; }
.card, .detail { border-radius: 12px; border: 1px solid var(--line); background: white; }
.card { position: relative; overflow: hidden; }
.card:hover, .card:focus-within { border-color: #49897e; }
.card a::after { content: ""; position: absolute; inset: 0; }
.card a { text-decoration-thickness: .07em; text-underline-offset: .19em; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.card-copy, .detail { padding: clamp(1.1rem, 2.7vw, 1.75rem); }
.card p, .detail p, .split p:not(.eyebrow) { color: var(--muted); }
.card p, .detail p { margin: .7rem 0 0; }
.text-link, .course-reference a { color: #0a6359; font-weight: 750; text-underline-offset: .23em; }
.text-link:hover, .course-reference a:hover { color: var(--ink); }
.card-grid + .text-link, .detail-grid + .text-link { display: inline-block; margin-top: 1.5rem; }
.service-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.service-note { margin-bottom: .85rem; }
.service-note + .text-link { display: inline-block; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.35rem, 5vw, 4.5rem); }
.split p:first-child { margin-top: 0; }

.course-groups { display: grid; gap: .75rem; }
.course-group { border: 1px solid var(--line); border-radius: 10px; background: white; }
.course-group summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 1.15rem; font-weight: 750; }
.course-group[open] summary { border-bottom: 1px solid var(--line); }
.course-group ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: .35rem .9rem; margin: 0; padding: .8rem 1.15rem; }
.course-group a { display: inline-block; padding-block: .4rem; color: #0a6359; text-underline-offset: .2em; }
.course-reference { color: var(--muted); margin: 1.3rem 0 0; }

address { font-style: normal; display: grid; justify-items: start; gap: .65rem; margin-top: 1.35rem; }
address a { color: #0a6359; font-weight: 700; text-underline-offset: .25em; }
.enquiry { display: grid; gap: .6rem; align-content: start; border: 1px solid var(--line); border-radius: 12px; background: white; padding: clamp(1rem, 3vw, 2rem); }
.enquiry label { font-weight: 650; }
.enquiry label:not(:first-child) { margin-top: .45rem; }
.enquiry select, .enquiry textarea { width: 100%; min-height: 44px; padding: .65rem .8rem; color: var(--ink); font: inherit; border: 1px solid #799d97; border-radius: 6px; background-color: #f7fbf9; }
.enquiry textarea { resize: vertical; }
.enquiry button { justify-self: start; margin-top: .45rem; }
.enquiry .form-note { margin: .3rem 0 0; font-size: .9rem; }

.site-footer { background: var(--deep); color: #e2efef; }
.footer-inner { justify-content: flex-start; min-height: 108px; }
.footer-inner p { margin: 0; }
.footer-inner p + p { color: #b8d0d0; }
.footer-brand { margin-block: .7rem; }
.footer-brand img { display: block; width: 90px; height: 90px; border-radius: 7px; }
.footer-links { display: grid; gap: .45rem; margin-left: auto; }
.footer-links a { color: #a6f2e5; text-underline-offset: .22em; }

@media (max-width: 850px) {
  .card-grid, .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .wrap { width: 91%; }
  .header-inner { flex-direction: column; align-items: start; gap: .15rem; padding-block: .6rem; }
  .header-inner nav { width: 100%; justify-content: space-between; gap: .4rem; }
  nav > a:last-child { padding-inline: .5rem; }
  .services-menu ul { inset-inline: 0 auto; }
  .hero-with-image::after { background: linear-gradient(90deg, #061b24f0, #061b2490 100%); }
  .hero-image { object-position: 64% center; }
  .card-grid, .detail-grid, .split { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; column-gap: .8rem; row-gap: .35rem; padding-block: .7rem; }
  .footer-brand { margin-block: 0; }
  .footer-links { margin-left: 0; padding-bottom: .6rem; }
}
