/* Prius Portar — site stylesheet.
   Rebuilds the look of the former WordPress theme (Mesmerize) without its CSS.
   Values were measured from the live site on 2026-11-26.
   Fonts: the live site requested Open Sans/Muli but never loaded them (broken
   Google Fonts link), so visitors saw these stacks' fallbacks. Kept as-is. */

:root {
  --c-primary: #03a9f4;     /* brand blue: buttons, CTA band, icons, menu underline */
  --c-link: #0277bd;        /* text links: darker blue for 4.5:1 contrast */
  --c-accent: #ff9800;
  --c-heading: #3c424f;
  --c-text: #627184;        /* theme used #8e9dae (2.8:1); darkened to pass WCAG AA (4.7:1 on the tint) */
  --c-text-strong: #4a5563;
  --c-tint: #f5fafd;
  --c-border: #e0e1e1;
  --c-inner-header: #6a73da;
  --overlay: rgb(0 0 0 / 0.6);
  --f-body: "Open Sans", sans-serif;
  --f-head: Muli, sans-serif;
  --shadow: 0 10px 30px 0 rgb(189 189 189 / 0.3), 0 10px 30px 0 rgb(0 0 0 / 0.08);
  --shadow-dark: 0 10px 30px 0 rgb(49 52 57 / 0.3), 0 10px 30px 0 rgb(0 0 0 / 0.08);
  --container: 1232px;
  --gutter: 1rem;
  --section-y: 5rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 1rem/1.5 var(--f-body);
  color: var(--c-text);
  background: #fff;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  color: var(--c-heading);
  font-weight: 600;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.33; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.3; }
p, ul, ol { margin: 0 0 1rem; }
strong { color: var(--c-text-strong); }

a { color: var(--c-link); }
a:hover { color: #01579b; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.text-center { text-align: center; }
.narrow { max-width: 62rem; margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: #fff; color: var(--c-heading); padding: .5rem 1rem;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  color: #fff;
  background-color: var(--c-inner-header);
  isolation: isolate;
}
.site-header::before {            /* the theme's black 60% colour overlay */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay);
}
/* The same photo on every page (the old theme only had it on the front page). */
.site-header {
  background-image: var(--bg);
  background-image: var(--bg-set);
  background-size: cover;
  background-position: 50% 0;
}
.site-header--home { padding-bottom: 95px; }   /* space for the overlapping first section */
.site-header--inner { background-position: 50% 40%; }

.navbar { border-bottom: 1px solid rgb(255 255 255 / 0.5); padding-block: 1rem; }
.navbar__inner { display: flex; align-items: center; gap: 2rem; min-height: 3.5rem; }

.logo {
  font: 600 1.6rem/1 var(--f-body);
  text-transform: uppercase;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.logo span { font-weight: 300; }
.logo:hover { color: #fff; }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: inline-block;
  font: 600 .875rem/1.6 var(--f-body);
  text-transform: uppercase; letter-spacing: 1px;
  color: #fff; text-decoration: none;
  padding-block: .75rem;
  border-bottom: 3px solid transparent;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { border-bottom-color: var(--c-primary); }

.nav--wide .nav__list { display: flex; flex-wrap: wrap; column-gap: 1.75rem; }

.nav--narrow { display: none; margin-left: auto; }
.nav--narrow summary {
  list-style: none; cursor: pointer; padding: .5rem; color: #fff; line-height: 0;
}
.nav--narrow summary::-webkit-details-marker { display: none; }
.nav--narrow .icon { width: 1.75rem; height: 1.75rem; }
.nav--narrow .icon--close,
.nav--narrow[open] .icon--open { display: none; }
.nav--narrow[open] .icon--close { display: inline; }
.nav--narrow .nav__list {
  position: absolute; right: 0; left: 0; top: 100%; z-index: 10;
  background: #23262f; padding: .5rem var(--gutter) 1rem;
}
.nav--narrow .nav__list a { display: block; }

@media (max-width: 1023px) {
  .nav--wide { display: none; }
  .nav--narrow { display: block; }
  .navbar { position: relative; }
}

.hero { text-align: center; padding-block: 6.5rem 8rem; }
.site-header--home .hero { padding-block: clamp(4rem, 10vw, 9rem); }
.hero__title {
  font: 300 clamp(2.25rem, 5vw, 3.5rem)/1.14 var(--f-head);
  letter-spacing: .9px; color: #fff; margin: 0 0 1.25rem;
}
.hero__subtitle { font: 300 1.3rem/1.3 var(--f-head); margin: 0; }

/* ---------- Generic sections ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-tint); }
.eyebrow {
  font: 800 .83rem/1.8 var(--f-head);
  letter-spacing: 2.24px; text-transform: uppercase;
  color: var(--c-heading); margin: 0 0 .5rem;
}
.lead { font-size: 1.2rem; line-height: 1.67; font-weight: 300; color: var(--c-heading); }

.button {
  display: inline-block;
  font: 600 .75rem/1.5 var(--f-body); letter-spacing: 1px;
  color: #fff; text-decoration: none;
  padding: .55rem 1.5rem; border: 2px solid; border-radius: 5px;
  transition: filter .15s;
}
.button:hover { color: #fff; filter: brightness(.92); }
.button--primary { background: var(--c-primary); border-color: var(--c-primary); }
.button--accent { background: var(--c-accent); border-color: var(--c-accent); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.shadow img, img.shadow { box-shadow: var(--shadow); }

/* Icon cards (front page) */
.cards-3 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); text-align: center; }
.icon-card p { font-size: 1rem; }
.icon-card .eyebrow { text-transform: none; font-size: .83rem; margin-block: 1.5rem .75rem; }
.icon-badge {
  display: inline-grid; place-items: center;
  width: 113px; height: 113px; border-radius: 50%;
  border: 2px solid var(--c-primary); color: var(--c-primary);
  background: #fff; box-shadow: var(--shadow-dark);
}
.icon-badge .icon { width: 48px; height: 48px; stroke-width: 1.6; }
.section--overlap { padding-top: 0; }
.section--overlap .cards-3 { margin-top: -56px; position: relative; }
#service .cards-3 { margin-top: 3rem; }

/* Image trio (specialist section) */
.section--about { padding-bottom: 0; overflow: hidden; }
.image-trio { display: flex; align-items: flex-end; justify-content: center; margin-top: 2rem; }
.image-trio picture { flex: 1 1 0; max-width: 33%; }
.image-trio picture:nth-child(2) { flex-basis: 40%; max-width: 40%; position: relative; z-index: 1; margin-inline: -4%; }
.image-trio img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.image-trio picture:nth-child(2) img { aspect-ratio: 4 / 3; }
@media (max-width: 767px) {
  .image-trio { flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 2rem; }
  .image-trio picture, .image-trio picture:nth-child(2) { max-width: none; margin: 0; }
}

/* Text + image rows */
.split { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
.split + .split { margin-top: 2.5rem; }
.split h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.split__media { display: flex; justify-content: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* Reference project */
.reference { display: grid; padding: 0; }
.reference__media {
  min-height: 22rem;
  background-image: var(--bg);
  background-image: var(--bg-set);
  background-size: cover; background-position: center;
}
.reference__text { padding: var(--section-y) var(--gutter); max-width: 44rem; }
@media (min-width: 768px) {
  .reference { grid-template-columns: 5fr 7fr; align-items: center; }
  .reference__text { padding-inline: 3rem; }
}

/* Call to action band */
.cta { background: var(--c-primary); color: #fff; padding-block: 2.5rem; }
.cta__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta__phone { font-size: 1.3em; margin: 0; }
.cta a:not(.button) { color: #fff; }

/* Team */
.team { display: flex; justify-content: center; margin-top: 2rem; }
.person { border: 1px solid var(--c-border); width: 17.5rem; text-align: center; padding-bottom: 1rem; transition: transform .2s; }
.person:hover { transform: translateY(-4px); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person__body { padding: 1rem; }
.person__body p { margin: 0 0 .5rem; }
.person__name { font-size: 1.1rem; font-weight: 500; margin: .5rem 0; }
.person__role { font-style: italic; font-size: .875rem; }

/* Contact */
.contact {
  position: relative; isolation: isolate; color: #fff;
  padding-block: var(--section-y);
  background-color: #4a4a4a;
  background-image: var(--bg);
  background-image: var(--bg-set);
  background-size: cover; background-position: center;
}
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(26 26 26 / 0.48); }
.contact h2, .contact .lead { color: #fff; }
.contact__card {
  background: #fff; color: var(--c-text);
  max-width: 49.5rem; margin: 2rem auto; padding: 3rem;
  box-shadow: 0 0 3px rgb(189 189 189 / 0.4), 0 2px 3px rgb(189 189 189 / 0.3);
}
.contact__org { margin-top: 2rem; }
.contact__org a { color: #fff; }

/* ---------- Inner pages ---------- */
.page-content { background: var(--c-tint); padding-block: 6rem; }
.prose { font-size: 1rem; }
.prose h1 { margin-bottom: 1.25rem; }
.prose h1 + p { font-size: 1.1rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.5rem; }
.figure { margin: 2rem 0; }
.figure img { box-shadow: var(--shadow); }
.figure figcaption { font-size: .875rem; text-align: center; margin-top: .75rem; }

/* 404 */
.notfound { text-align: center; }
.notfound ul { list-style: none; padding: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-border); padding-block: 2.5rem; text-align: center; }
.site-footer p { margin: 0; }
