/*
Theme Name: EDUSHE Navigator
Description: Lightweight training directory for EDUSHE Training & Consultancy.
Version: 0.10.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: edushe-navigator
*/
:root {
  --ink: #142920;
  --green: #086440;
  --muted: #42564d;
  --mint: #dff4e9;
  --tint: #f1f9f5;
  --line: #d9e8e0;
  --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.55 system-ui, sans-serif; color: var(--ink); background: #fff; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #126f49; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
p + p { margin-top: .8rem; }
h1, h2, h3 { line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); letter-spacing: -.046em; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 3; top: 1rem; left: 1rem; padding: .75rem; background: white; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; gap: 1.5rem; align-items: center; padding-block: .55rem; }
.logo, .custom-logo { width: 112px; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem 1.45rem; margin-inline: auto; }
.site-nav a, .language { color: var(--ink); font-weight: 650; padding-block: .5rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.button { display: inline-flex; gap: .45em; align-items: center; justify-content: center; min-height: 44px; background: var(--green); color: white; border: 0; border-radius: 999px; padding: .55rem 1.25rem; font: inherit; font-weight: 720; text-decoration: none; cursor: pointer; }
.button:hover { background: #064b30; }
.hero { display: grid; grid-template-columns: 48% 52%; background: var(--mint); overflow: hidden; }
.hero-copy { padding: clamp(2.4rem, 4.5vw, 4.5rem) clamp(1.5rem, 4vw, 4.5rem) clamp(3.8rem, 6vw, 5.5rem) max(1.5rem, calc((100vw - var(--wrap))/2)); background: radial-gradient(ellipse at 98% 90%, #c1e9d7 0%, transparent 62%); }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .105em; font-size: .77rem; font-weight: 800; margin-bottom: .7rem; }
.hero h1 { font-size: clamp(2.65rem, 5.5vw, 5.5rem); letter-spacing: -.066em; max-width: 11ch; }
.hero em { display: block; font-style: normal; color: var(--green); }
.hero-copy > p:last-child { margin-top: 1rem; max-width: 44ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.18rem); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.finder { position: relative; margin-top: -2.65rem; background: #f5fbf8; border: 1px solid var(--line); padding: .9rem 1.25rem; border-radius: 1.25rem; box-shadow: 0 12px 34px #163d2510; }
.finder-form { display: flex; gap: .6rem; }
.finder input { flex: 1; min-width: 0; border: 1px solid #abc7b9; border-radius: 999px; background: white; color: var(--ink); padding: .55rem 1rem; font: inherit; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem .7rem; margin-top: .8rem; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; background: var(--mint); padding: .4rem 1.05rem; font-weight: 700; text-decoration: none; }
.chip:hover, .chip[aria-current] { background: var(--green); color: white; }
.content { padding-block: clamp(2.5rem, 5vw, 5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.35rem; }
.card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.card img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.card-copy { flex: 1; display: flex; flex-direction: column; align-items: start; padding: 1.2rem; }
.card-copy > p:not(.eyebrow) { margin-top: .65rem; color: var(--muted); }
.card-copy > .button { margin-top: 1rem; }
.card-copy .small { padding-inline: 1rem; font-size: .88rem; }
.section-tint { background: var(--tint); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.contact p:not(.eyebrow), .contact .button { margin-top: .85rem; }
.site-footer { background: #102e22; color: white; }
.site-footer a { color: white; }
.footer-inner { padding-block: 1.4rem; flex-wrap: wrap; }
.footer-inner span { margin-inline-end: auto; }
@media (max-width: 900px) {
  .header-inner { gap: .75rem; }
  .site-nav { gap: .25rem .8rem; }
  .header-cta { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; justify-content: space-between; }
  .site-nav { order: 3; justify-content: start; width: 100%; font-size: .88rem; }
  .hero { display: block; }
  .hero-copy { padding: 2.15rem 1rem 1.65rem; }
  .hero h1 { max-width: 13ch; }
  .hero-photo { height: auto; aspect-ratio: 16/10; }
  .finder { margin-top: .8rem; padding: .65rem; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip { text-align: center; font-size: .85rem; }
  .cards, .about-grid { grid-template-columns: 1fr; }
}

.page-intro { background: var(--mint); padding-block: clamp(2.4rem, 6vw, 5.4rem); }
.page-intro h1 { margin-block: .65rem .8rem; font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.05em; }
.page-intro p { max-width: 62ch; color: var(--muted); }
.rounded { border-radius: 1rem; }
.prose > h2:not(:first-child), .prose + .prose, .project-group + .project-group { margin-top: 2.5rem; }
.prose > p:first-of-type, .prose .button, .home-projects + .button { margin-top: .85rem; }
.privacy { max-width: 72ch; }
.privacy h2, .project-group h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.service-list { columns: 2; padding-inline-start: 1.2rem; margin-block: 1rem; }
.service-list li { break-inside: avoid; margin-bottom: .6rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .7rem; }
.contact-layout { align-items: start; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; }
.enquiry-form { display: grid; gap: .85rem; margin-top: 1rem; }
.enquiry-form label { display: grid; gap: .25rem; font-weight: 650; }
.enquiry-form input:not([type="hidden"]), .enquiry-form textarea { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid #abc7b9; border-radius: .45rem; color: var(--ink); }
.enquiry-form .button { justify-self: start; }
.form-notice { margin-top: .8rem; background: var(--mint); padding: .8rem; border-radius: .5rem; }
.office ul { padding-inline-start: 1.15rem; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
  .service-list { columns: 1; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.source-card img { width: 5.5rem; height: 5.5rem; object-fit: contain; margin-bottom: .75rem; }
.source-photos { margin-block: 1.25rem; }
.gallery-intro, .contact-source { margin-bottom: 1.5rem; }
.contact-layout .office h3 { margin-top: 1rem; }
.prose p + h3 { margin-top: 1rem; }

.footer-details { display: grid; grid-template-columns: 1.25fr .75fr 1fr; gap: 1.5rem; padding-block: 2rem; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer-details h2 { margin-bottom: .75rem; font-size: 1.2rem; letter-spacing: 0; }
.footer-details a { display: block; margin-bottom: .3rem; overflow-wrap: anywhere; }
.footer-details p + a { margin-top: .4rem; }
@media (max-width: 760px) { .footer-details { grid-template-columns: 1fr; } }

.course-more { margin-top: 1.25rem; }

.filters { justify-content: stretch; gap: 0; border-bottom: 2px solid #aacbbb; margin-top: 1rem; }
.filters .chip { flex: 1; border-radius: .5rem .5rem 0 0; background: transparent; color: var(--muted); border-bottom: 4px solid transparent; padding: .85rem .65rem; margin-bottom: -2px; text-align: center; }
.filters .chip:hover { background: #e0f0e7; color: var(--green); }
.filters .chip[aria-selected="true"], .filters .chip[aria-current] { background: var(--green); color: white; border-bottom-color: #043d26; }
#training { transition: opacity .12s ease; }
#training[aria-busy="true"] { opacity: .5; }
@media (max-width: 760px) {
  .filters { display: flex; flex-wrap: nowrap; overflow-x: auto; }
  .filters .chip { flex: 0 0 auto; white-space: nowrap; padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) { #training { transition: none; } }
