/* PMTools - hand-written stylesheet, mobile first. No frameworks. */

/* ---- Fonts (self-hosted, SIL OFL; see README) ---- */
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-adjusted local fallback: keeps the text from jumping when Inter replaces it (less layout shift). */
@font-face {
  font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%;
}

/* ---- Tokens (brand colours from the logo) ---- */
:root {
  --blue: #076ad8;        /* logo blue; 5.3:1 on white */
  --blue-dark: #0553ac;   /* hover, 7.7:1 on white */
  --blue-soft: #e8f1fc;
  --navy: #0c141f;        /* logo dark */
  --text: #17202c;
  --muted: #4b5666;       /* 7.4:1 on white */
  --line: #d9e1ec;
  --bg: #ffffff;
  --bg-alt: #f3f7fc;
  --focus: #076ad8;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(12 20 31 / .06), 0 8px 24px rgb(12 20 31 / .06);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: 1.25rem;
  --maxw: 72rem;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .75rem; }
h1 { font-size: clamp(1.9rem, 5vw + .5rem, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.5vw + .6rem, 2.1rem); font-weight: 700; }
h3, .h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: .75rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 6px; }
.skip-link:focus { top: .75rem; }
.icon { vertical-align: -.2em; flex: none; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-block: .5rem; }
.brand { display: block; line-height: 0; }
.brand-logo { height: 2.75rem; width: auto; }
.main-nav ul { display: flex; gap: .15rem; }
.main-nav a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: .97rem; text-decoration: none; }
.main-nav a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 8px 8px 0 0; }
@media (max-width: 30rem) {
  .header-inner { justify-content: center; }
  .main-nav a { padding-inline: .55rem; font-size: .93rem; }
}
@media (min-width: 48rem) { .brand-logo { height: 3.25rem; } .main-nav a { padding-inline: .95rem; } }

/* ---- Buttons ---- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); color: var(--navy); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* ---- Sections ---- */
.section { padding-block: 3rem; }
.section-tight { padding-block: 2rem 3rem; }
.section-alt { background: var(--bg-alt); }
.eyebrow { font: 600 .82rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.more { margin: 1.5rem 0 0; font-weight: 600; }
.page-head { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); padding-block: 3rem 1.5rem; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 42rem; }
.prose p { font-size: 1.05rem; }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, var(--bg-alt) 0%, var(--blue-soft) 100%); overflow: hidden; }
.hero-inner { display: grid; gap: 1.5rem; padding-block: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.5rem; color: #2e3a4a; }
.hero-media { overflow: hidden; }
.hero-img { width: 100%; mix-blend-mode: multiply; transform: scale(1.3); } /* the render has a white background and wide margins */
@media (min-width: 56rem) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 3rem; padding-block: 4.5rem; }
}

/* ---- Highlights ---- */
.highlights { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.highlights li { border-left: 4px solid var(--blue); padding: .25rem 0 .25rem 1rem; }
.highlights h2 { margin-bottom: .3rem; }
.highlights p { margin: 0; color: var(--muted); }
@media (min-width: 40rem) { .highlights { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; } }
@media (min-width: 64rem) { .highlights { grid-template-columns: repeat(4, 1fr); } }

/* ---- Cards ---- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.1rem 1.25rem 1.4rem; }
.card-body h3 { margin-bottom: .4rem; }
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h3 a:hover { color: var(--blue); text-decoration: underline; }
.card-body p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  /* 5 cards: 3 + 2 rows without an empty slot */
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(n+4) { grid-column: span 3; }
  .card:nth-child(n+4) .card-media { aspect-ratio: 21 / 9; }
}

/* ---- Gallery ---- */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: .5rem; }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---- Feature rows (Services) ---- */
.feature { display: grid; gap: 1.25rem; padding-block: 2rem; border-bottom: 1px solid var(--line); align-items: center; }
.feature:last-child { border-bottom: 0; }
.feature-text p { color: var(--muted); font-size: 1.05rem; max-width: 36rem; }
.feature-media img { width: 100%; max-height: 26rem; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 52rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature-flip .feature-text { order: 2; }
}

/* ---- Equipment ---- */
.equipment { display: grid; gap: .75rem; margin-top: 1rem; }
.equipment li { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.equipment .icon { color: var(--blue); margin-top: .2rem; }
@media (min-width: 48rem) { .equipment { grid-template-columns: repeat(2, 1fr); } }

/* ---- About ---- */
.about-grid { display: grid; gap: 2rem; align-items: start; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 28rem; object-fit: cover; }
@media (min-width: 52rem) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }

/* ---- People / contact ---- */
.people { display: grid; gap: 1rem; margin-top: 1rem; }
.person { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 1rem 1.25rem; }
.person h2, .person h3 { margin-bottom: .1rem; }
.person p { margin-bottom: .35rem; }
.person p:last-child { margin-bottom: 0; }
.person-role { color: var(--muted); }
@media (min-width: 40rem) { .section:not(.section-alt) > .container > .people { grid-template-columns: repeat(2, 1fr); } }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-grid h2.h3 { margin-top: 1.5rem; }
.contact-grid > div > h2.h3:first-child { margin-top: 0; }
.contact-address, .contact-line { display: flex; gap: .75rem; align-items: flex-start; }
.contact-line { margin-bottom: .35rem; }
.contact-icon { color: var(--blue); margin-top: .1rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0 0 1rem; }
.hours dt { font-weight: 600; } .hours dd { margin: 0; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 3.5rem; } .contact-grid .people { grid-template-columns: 1fr; } }

/* ---- Map (click to load) ---- */
.map { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.map-placeholder { padding: 1.5rem; text-align: center; max-width: 28rem; }
.map-placeholder p { color: var(--muted); font-size: .95rem; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-links { margin-top: .75rem; font-size: .95rem; }

/* ---- Form ---- */
.form-wrap { max-width: 44rem; }
.form { display: grid; gap: 1.1rem; margin-top: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--text);
  background: #fff; border: 2px solid #8793a4; border-radius: 8px;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #9b1c15; font-weight: 600; margin: .35rem 0 0; font-size: .95rem; }
.form-privacy { font-size: .9rem; color: var(--muted); margin: 0; }
.notice { padding: .9rem 1.1rem; border-radius: 8px; border: 2px solid; font-weight: 600; }
.notice:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.notice-ok { background: #e7f6ec; border-color: #1c7a3d; color: #11512a; }
.notice-error { background: #fdeceb; border-color: #b3261e; color: #7a140f; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- CTA band ---- */
.cta { background: var(--navy); color: #fff; padding-block: 2.5rem; }
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { color: #d6dfec; }
.cta-inner { display: grid; gap: 1.25rem; align-items: center; }
.cta-inner > div p { margin: 0; }
@media (min-width: 52rem) { .cta-inner { grid-template-columns: 1fr auto; gap: 3rem; } }
.cta :focus-visible, .site-footer :focus-visible { outline-color: #8cc0ff; }

/* ---- 404 ---- */
.not-found { padding-block: 5rem; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #d6dfec; margin-top: 0; border-top: 1px solid rgb(255 255 255 / .12); }
.cta + .site-footer { border-top: 1px solid rgb(255 255 255 / .12); }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.5rem 1.5rem; }
.footer-logo { width: 11rem; height: auto; margin-bottom: .5rem; margin-left: -.4rem; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: .75rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #8cc0ff; }
.site-footer address { line-height: 1.9; }
.footer-muted { color: #aeb9ca; font-size: .9rem; }
.footer-links li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 1rem 1.5rem; font-size: .9rem; color: #aeb9ca; }
.footer-bottom p { margin: 0 0 .25rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.3fr 1.2fr .8fr; } }

@media print {
  .site-header, .site-footer, .cta, .skip-link { display: none; }
}
