/* ============================================================
   Prograde Refrigeration — site stylesheet (PREMIUM MONOTONE GREY)
   Drop-in replacement for static/css/style.css. Same class names,
   no template markup changes required. Sky-blue accent retired;
   emphasis now comes from contrast + space. Pairs with
   colors_and_type.css (load that first) and the Montserrat /
   Mulish / IBM Plex Mono font stack from base.html.
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%; /* respects the visitor's browser font-size preference */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #f4f5f3;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Navbar ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 76px;
  background: #2a2d30;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.nav-logo img.nav-textlogo {
  height: 24px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: #c3c6c6;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta-wrap a {
  background: #1f2123;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
  margin-left: 0.75rem;
}

.nav-cta-wrap a:hover {
  background: #141618;
}

/* ── Flash messages ── */
.flash-messages {
  padding: 0.75rem 2rem;
}

.flash {
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.flash--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ── Footer ── */
footer {
  background: #2a2d30;
  color: #c3c6c6;
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.footer-col {
  flex: 1;
  min-width: 180px;
}

.footer-col strong {
  display: block;
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col a {
  color: #c3c6c6;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.footer-social svg {
  flex-shrink: 0;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #6c7073;
  border-top: 1px solid #3c4043;
  padding-top: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-sep {
  color: #4a4e51;
  margin: 0 0.4rem;
}

.footer-login {
  color: #6c7073;
  text-decoration: none;
}

.footer-login:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Shared inner-page hero ── */
.page-hero {
  background-color: #2a2d30;
  color: #fff;
  padding: 4rem 1.25rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: #c3c6c6;
  max-width: 560px;
  margin: 0 auto;
}

/* Photo variant of the inner-page hero */
.page-hero--photo {
  position: relative;
  padding: 6rem 1.25rem;            /* a touch taller than the plain band */
  background-image:
    linear-gradient(to bottom, rgba(20, 22, 24, 0.72), rgba(20, 22, 24, 0.62)),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Home page ── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
  background: #141618;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 22, 24, 0.65) 0%,
    rgba(20, 22, 24, 0.3) 40%,
    transparent 70%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: #c3c6c6;
  margin-bottom: 2rem;
}

.summary {
  padding: 4rem 2rem;
  background: #ffffff;
}

.summary h2,
.areas h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #2a2d30;
}

.summary p {
  max-width: 680px;
  font-size: 1.05rem;
  color: #444;
}

.areas {
  padding: 4rem 2rem;
}

.areas-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.areas-list li {
  background: #e8e8e6;
  color: #2a2d30;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-banner {
  background: #2a2d30;
  color: #fff;
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-banner p {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ── Utility ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: #ffffff;
  color: #2a2d30;
  border: none;
}

.btn-primary:hover {
  background: #f4f5f3;
}

/* ── Hamburger (hidden on desktop) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

header.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

header.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

header.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Nav drawer (mobile dropdown) ── */
.nav-drawer {
  background: #1f2123;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

header.nav-open .nav-drawer {
  max-height: 320px;
}

.nav-drawer ul {
  list-style: none;
  padding: 0.5rem 0 1rem;
}

.nav-drawer ul li a {
  display: block;
  padding: 0.85rem 1.5rem;
  color: #c3c6c6;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-drawer ul li a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* ── Mobile (768px and under) ── */
@media (max-width: 768px) {

  .nav-right {
    display: none;
  }


  .hamburger {
    display: flex;
  }

  /* Hero shrinks heading */
  .page-hero {
    padding: 2.5rem 1.25rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 3rem 1.25rem;
    min-height: 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  /* Sections reduce padding */
  .summary,
  .areas {
    padding: 2.5rem 1.25rem;
  }

  .summary h2,
  .areas h2 {
    font-size: 1.35rem;
  }

  .cta-banner {
    padding: 2.5rem 1.25rem;
  }

  .cta-banner p {
    font-size: 1.2rem;
  }

  /* Footer stacks into single column */
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* =====================
   Services page
   ===================== */


.services-section {
  padding: 4rem 1.25rem;
  background-color: #f4f5f3;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 6px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #1f2123;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h2,
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.service-card p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Centred "view all" link under the homepage services grid */
.services-more {
  text-align: center;
  margin-top: 2rem;
}

/* Jump-to-service links (services page) */
.services-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.services-jump a {
  padding: 0.4rem 0.85rem;
  border: 1px solid #d7d9d6;
  border-radius: 999px;
  background: #fff;
  color: #2a2d30;
  font-size: 0.85rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.services-jump a:hover,
.services-jump a:focus-visible {
  background: #1f2123;
  border-color: #1f2123;
  color: #fff;
}

/* Full-width stacked service rows (services page) */

.services-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-row {
  background: #fff;
  border-left: 4px solid #1f2123;
  padding: 1.5rem 1.75rem;
  border-radius: 0 4px 4px 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  /* clear the 76px sticky header when jumped to via an anchor */
  scroll-margin-top: 92px;
}

.service-row-icon {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: #1f2123;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.service-row-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}

.service-row-text h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.service-row-text p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.service-includes-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6c7073;
  margin: 1rem 0 0.6rem;
}

.service-includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1.5rem;
}

.service-includes li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

.service-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1f2123;
}

.service-includes a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #b0b4b7;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.service-includes a:hover {
  color: #1f2123;
  text-decoration-color: #1f2123;
}

@media (max-width: 768px) {
  .service-row {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
  }
  .service-includes {
    grid-template-columns: 1fr;
  }
}

/* =====================
   Contact page
   ===================== */

.contact-section {
  padding: 4rem 1.25rem;
  background-color: #f4f5f3;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.contact-details h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.contact-details > p {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-list strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}

.contact-list a,
.contact-list span {
  color: #1a1a1a;
  font-size: 1rem;
  text-decoration: none;
}

.contact-list a:hover {
  color: #1f2123;
}

.contact-form {
  background: #fff;
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Narrow, centered card for the client login page. */
.auth-form {
  max-width: 420px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.required {
  color: #9a4a44;
}

.optional {
  color: #888;
  font-weight: 400;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1f2123;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   Gallery page
   ===================== */

.gallery-section {
  padding: 4rem 1.25rem;
  background-color: #f4f5f3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Each tile is a button so it's keyboard-focusable and announced. */
.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: var(--grey-200);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.05);
}

.gallery-tile:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Play badge overlay on video tiles. */
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}

.play-badge svg {
  background: rgba(20, 22, 24, 0.55);
  border-radius: 50%;
  padding: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.gallery-tile--video:hover .play-badge svg,
.gallery-tile--video:focus-visible .play-badge svg {
  background: rgba(20, 22, 24, 0.8);
}

.gallery-placeholder {
  background-color: #d0d0d0;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

/* =====================
   Gallery lightbox
   ===================== */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 16, 18, 0.92);
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-media {
  max-width: min(1400px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}

.lightbox-close {
  top: 1rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.gallery-note {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   About page
   ===================== */


.about-section {
  padding: 4rem 1.25rem;
  background-color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.about-text p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.qualifications-section {
  padding: 3rem 1.25rem;
  background-color: #f4f5f3;
}

.qualifications-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.quals-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quals-list li {
  background: #fff;
  border-left: 4px solid #1f2123;
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quals-list li strong {
  color: #1a1a1a;
}

.quals-list li span {
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   Monotone design-system additions
   ============================================================ */

/* Montserrat for headings, nav, buttons & labels (Mulish handles body) */
h1, h2, h3, h4,
.hero h1, .page-hero h1,
.nav-links a, .nav-cta-wrap a,
.btn, .btn-primary,
.areas-list li,
.footer-col strong,
.quals-list li strong,
.cta-banner p {
  font-family: var(--font-display);
}

/* Tighten large display type the premium way */
.hero h1, .page-hero h1 { letter-spacing: -0.02em; }

/* Softer, neutral focus ring on form fields */
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(42, 45, 48, 0.18);
}

/* Service-card top-rule: thinner & graphite (was a 4px blue bar) */
.service-card { border-top-width: 3px; }

/* Service icon -> graphite chip with a white Lucide glyph */
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: #1f2123;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.service-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }

/* Mono spec/eyebrow helper (optional): <span class="overline">…</span> */
.overline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6c7073; /* AA-contrast on white (was #8a8d8f, ~2.9:1) */
  margin-bottom: 0.7rem;
}
/* On the dark page-hero, lift the eyebrow slightly for contrast */
.page-hero .overline,
.hero .overline { color: #b4b7b8; }

/* ============================================================
   Hero — premium monotone treatment + legibility fix
   ============================================================ */

.hero-video {
  filter: contrast(1.04) brightness(0.92);
}

/* Even, full-height scrim (the old gradient faded to transparent at the
   bottom, washing out the subtitle + button). Keeps every line legible. */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(20, 22, 24, 0.82) 0%,
    rgba(20, 22, 24, 0.62) 45%,
    rgba(20, 22, 24, 0.78) 100%
  );
}

/* Brighter, higher-contrast hero copy on the now-dark scrim. */
.hero h1 { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35); }
.hero-sub {
  color: #e2e3e2;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

/* Constrain hero text width so lines break cleanly, not edge-to-edge. */
.hero-content { max-width: 760px; margin: 0 auto; }

/* ── Hero trust-strip ── (credibility row beneath the hero) */
.hero-trust {
  background: #141618;
  border-top: 1px solid #3c4043;
}
.hero-trust ul {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.25rem;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #c3c6c6;
}
.hero-trust li img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .hero-trust ul { gap: 1.1rem 1.5rem; padding: 0.9rem 1.25rem; }
  .hero-trust li { font-size: 0.72rem; }
}

/* Tōtika accreditation badge, last column of the footer. */
.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 240px;
}
.footer-badge img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 68px;
}
.footer-badge p {
  line-height: 1.5;
}

/* =====================
   Who We Are page
   ===================== */

.values-intro {
  padding: 4rem 1.25rem;
  background: #fff;
  text-align: center;
}

.values-intro p {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
}

.values-divider {
  border: none;
  border-top: 2px solid #e2e3e2;
  max-width: 120px;
  margin: 0 auto;
}

.values-list-section {
  padding: 4rem 1.25rem;
  background: #f4f5f3;
}

.values-list-section .overline {
  margin-bottom: 1.5rem;
}

.values-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-item {
  background: #fff;
  border-left: 4px solid #1f2123;
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.value-icon {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: #1f2123;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.value-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}

.value-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}

.value-text p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .values-intro { padding: 2.5rem 1.25rem; }
  .values-list-section { padding: 2.5rem 1.25rem; }
  .value-item { flex-direction: column; gap: 0.75rem; }
}

/* ============================================================
   Accessibility & polish
   ============================================================ */

/* Shared section heading (replaces inline font-size styles) */
.section-heading {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #2a2d30;
}

/* Skip-to-content link — visible only when focused */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3.5rem;
  z-index: 200;
  background: #1f2123;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s var(--ease, ease);
}
.skip-link:focus {
  top: 0.5rem;
}

/* Visible keyboard focus ring — a two-tone ring that shows on both
   light and dark backgrounds. Inputs keep their own focus style above. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid transparent; /* preserved for Windows High Contrast Mode */
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2a2d30;
  border-radius: 4px;
}

/* Active page in the nav */
.nav-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}
.nav-drawer a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* Admin enquiries table */
.admin-section {
  padding: 3rem 1.25rem;
  background: #f4f5f3;
}
.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e3e2;
  vertical-align: top;
}
.admin-table th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c7073;
  white-space: nowrap;
}
.admin-table td:last-child {
  min-width: 280px;
  white-space: pre-wrap;
}

/* Admin gallery manager */
.admin-nav {
  font-size: 0.9rem;
}
.admin-nav a {
  text-decoration: underline;
}
.admin-upload {
  max-width: 640px;
  margin: 0 auto 3rem;
}
.admin-upload-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
}
.admin-grid-heading {
  margin-bottom: 1rem;
}
.form-hint {
  font-size: 0.85rem;
  color: #6c7073;
  margin: 0;
}
.admin-upload input[type="file"] {
  font-size: 0.95rem;
  padding: 0.5rem 0;
}
/* The site's .btn-primary is white, which disappears against this white card.
   The admin's main action needs to be unmissable, so fill it. */
.admin-upload .btn-primary {
  background: #1f2123;
  color: #fff;
}
.admin-upload .btn-primary:hover {
  background: #2a2d30;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.admin-tile {
  position: relative;
  margin: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.admin-tile img {
  display: block;
  width: 100%;
  /* height:auto is load-bearing: the img carries width/height attributes, and
     without it that presentational height wins over aspect-ratio. */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--grey-200);
}
/* Marks the tiles that can only be replaced by rebuilding the media offline. */
.admin-tile-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(31, 33, 35, 0.85);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}
.admin-tile figcaption {
  padding: 0.5rem;
}
.admin-tile-remove {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  padding: 0.4rem;
  font: inherit;
  font-size: 0.85rem;
  color: #9a4a44;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.admin-tile-remove:hover {
  background: #9a4a44;
  border-color: #9a4a44;
  color: #fff;
}
.admin-tile-remove:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.admin-grid-note {
  margin-top: 1rem;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Panning photo hero — About page
   ============================================================
   The source is a phone-shaped portrait (1122x2208) in a wide band, so rather
   than freezing on one thin slice it drifts from the top of the photo to the
   bottom and back. The photo is a real <img> moved with transform (composited)
   instead of an animated background-position, which would repaint the whole
   band every frame. */
.page-hero--pan {
  position: relative;
  overflow: hidden;
  padding: 7rem 1.25rem;   /* a taller band gives the pan room to read */
}

.hero-pan {
  position: absolute;
  inset: 0;
  z-index: 0;
  container-type: size;    /* lets the keyframes below read the band height as cqh */
}

.hero-pan img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;            /* natural 1:1.968 — always far taller than the band */
  animation: hero-pan 40s ease-in-out infinite alternate;
  will-change: transform;
}

/* 0            → photo's top edge aligned with the band's top edge
   -100%+100cqh → photo's bottom edge aligned with the band's bottom edge */
@keyframes hero-pan {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-100% + 100cqh)); }
}

/* The same dark wash .page-hero--photo bakes into its background, held still
   over the moving photo so the text contrast never changes. */
.page-hero--pan::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(20, 22, 24, 0.72), rgba(20, 22, 24, 0.62));
}

.page-hero--pan > .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .page-hero--pan { padding: 3.5rem 1.25rem; }
}

/* The global reduced-motion rule above collapses the animation to 0.001ms,
   which would leave the photo parked on its top edge. Compose it mid-photo. */
@media (prefers-reduced-motion: reduce) {
  .hero-pan img { transform: translateY(calc((-100% + 100cqh) / 2)); }
}
