/* =========================================================
   HANDYMAN JAMES — Essex
   Stylesheet
   ========================================================= */

/* Atkinson Hyperlegible Font (self-hosted) */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-700-italic.woff2') format('woff2'); }

:root {
  --c-navy: #1a3a5c;
  --c-navy-deep: #0f2540;
  --c-navy-light: #2c5380;
  --c-amber: #fb8122;
  --c-amber-deep: #d99a1f;
  --c-cream: #faf6ee;
  --c-paper: #ffffff;
  --c-ink: #1a2434;
  --c-ink-soft: #4a5568;
  --c-mute: #718096;
  --c-line: #e2e8f0;
  --c-line-soft: #f1f4f8;
  --c-success: #2f855a;
  --c-error: #c53030;
  --c-border: var(--c-line);
  --c-muted: var(--c-ink-soft);

  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,37,64,.06), 0 1px 3px rgba(15,37,64,.08);
  --shadow-md: 0 4px 12px rgba(15,37,64,.08), 0 2px 4px rgba(15,37,64,.06);
  --shadow-lg: 0 14px 40px rgba(15,37,64,.12), 0 4px 12px rgba(15,37,64,.06);

  --container: 1200px;

  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t-med: 280ms cubic-bezier(.4,0,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-amber-deep); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-body);
  line-height: 1.2; 
  margin: 0 0 .6em; 
  color: var(--c-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li  { margin-bottom: .35em; }

.container { 
  max-width: var(--container); 
  margin: 0 auto; 
  padding: 0 24px; 
}

/* Skip link for accessibility */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--c-navy); color: #fff;
  padding: 12px 20px; z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* =========================
   HEADER
   ========================= */
.site-header {
  position: sticky; top: 0;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255,255,255,0.96);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.logo-link { 
  display: flex; align-items: center;
  flex-shrink: 0;
}
.logo-link img { height: 56px; width: auto; }

.primary-nav {
  display: flex; align-items: center; gap: 6px;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-navy);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--t-fast);
}
.primary-nav a:hover {
  background: var(--c-line-soft);
  color: var(--c-amber-deep);
}
.primary-nav a.active {
  color: var(--c-amber-deep);
}
.primary-nav a.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 16px; right: 16px;
  height: 2px; background: var(--c-amber);
  border-radius: 2px;
}
.header-cta {
  display: inline-block;
  padding: 12px 22px;
  background: var(--c-amber);
  color: var(--c-navy-deep) !important;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--t-fast);
  font-size: 0.95rem;
}
.header-cta:hover {
  background: var(--c-amber-deep);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* The mobile-cta link only appears inside the mobile drawer.
   Hide it on desktop so it doesn't show alongside the .header-cta button. */
.primary-nav .mobile-cta { display: none; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--c-navy);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--c-line-soft);
  border-bottom: 1px solid var(--c-line);
  padding: 12px 0;
  font-size: 0.9rem;
}
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.breadcrumbs li {
  margin: 0;
  color: var(--c-mute);
}
.breadcrumbs li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--c-mute);
}
.breadcrumbs a { 
  color: var(--c-navy);
  font-weight: 600;
}

/* =========================
   HERO
   ========================= */
.hero {
  background:
    linear-gradient(135deg, rgba(26,58,92,0.92) 0%, rgba(15,35,58,0.88) 60%, rgba(15,35,58,0.78) 100%),
    url('/assets/images/hero-header.jpg') center right / cover no-repeat,
    linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(251,129,34,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(251,129,34,0.2);
  color: var(--c-amber);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero h1 span { color: var(--c-amber); }
.hero-lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--c-amber);
  color: var(--c-navy-deep) !important;
  border-color: var(--c-amber);
}
.btn-primary:hover {
  background: var(--c-amber-deep);
  border-color: var(--c-amber-deep);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--c-navy) !important;
  border-color: var(--c-navy);
}
.btn-outline:hover {
  background: var(--c-navy);
  color: #fff !important;
}

/* =========================
   PAGE INTRO (smaller hero)
   ========================= */
.page-intro {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-intro::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 32px 32px;
}
.page-intro-inner { position: relative; z-index: 1; max-width: 800px; }
.page-intro h1 { color: #fff; margin-bottom: 12px; }
.page-intro p { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin: 0; }

/* =========================
   SECTIONS
   ========================= */
.section {
  padding: 72px 0;
}
.section-tight { padding: 48px 0; }
.section-alt { background: var(--c-line-soft); }
.section-cream { background: var(--c-cream); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head .eyebrow {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(251,129,34,0.15);
  color: var(--c-amber-deep);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--c-ink-soft); font-size: 1.1rem; }

/* =========================
   SERVICE CARDS
   ========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--c-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-amber);
}
.service-card a.card-link { display: contents; color: inherit; }
.service-card .img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-line-soft);
}
.service-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.service-card:hover .img-wrap img {
  transform: scale(1.05);
}
.service-card .card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex; flex-direction: column;
}
.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.service-card h3 a { color: var(--c-navy); }
.service-card p {
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
  flex: 1;
}
.service-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  color: var(--c-amber-deep);
  font-weight: 700;
  font-size: 0.9rem;
}
.service-card .read-more::after {
  content: '→'; transition: transform var(--t-fast);
}
.service-card:hover .read-more::after {
  transform: translateX(4px);
}

/* =========================
   GALLERY ROW (Portrait images)
   ========================= */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.gallery-strip img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* =========================
   CONTENT BLOCKS
   ========================= */
.content-block {
  max-width: 820px;
  margin: 0 auto;
}
.content-block h2 { margin-top: 1.5em; }
.content-block h3 { margin-top: 1.4em; }
.content-block ul li, .content-block ol li {
  margin-bottom: .55em;
}

.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.content-grid-2 img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.image-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* =========================
   FAQ
   ========================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq-item:hover { border-color: var(--c-amber); }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--c-amber); }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--c-amber-deep);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--c-ink-soft);
  line-height: 1.65;
}

/* =========================
   REVIEWS
   ========================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.review-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.review-card .stars {
  color: var(--c-amber);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.review-card blockquote {
  margin: 0 0 16px;
  font-style: italic;
  color: var(--c-ink);
  font-size: 0.98rem;
  line-height: 1.6;
}
.review-card cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--c-navy);
  font-size: 0.92rem;
}
.review-card cite small {
  display: block;
  color: var(--c-mute);
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* =========================
   CTA BAND
   ========================= */
.cta-band {
  background: linear-gradient(135deg, var(--c-amber) 0%, var(--c-amber-deep) 100%);
  color: var(--c-navy-deep);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--c-navy-deep);
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 28px;
}
.cta-band .btn-dark {
  background: var(--c-navy-deep);
  color: #fff !important;
  border-color: var(--c-navy-deep);
}
.cta-band .btn-dark:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* =========================
   CONTACT FORM
   ========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-info {
  background: var(--c-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
}
.contact-info h3 { color: #fff; }
.contact-info p { color: rgba(255,255,255,0.9); margin-bottom: 0.6em; }
.contact-info a { color: var(--c-amber); font-weight: 700; }
.contact-info a:hover { color: #fff; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--c-navy);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(251,129,34,0.2);
}
.field textarea { min-height: 140px; resize: vertical; }
.honeypot { 
  position: absolute !important;
  left: -9999px !important;
}
.form-note {
  font-size: 0.85rem;
  color: var(--c-mute);
  margin-top: 6px;
}
.form-success {
  background: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.form-error {
  background: #f8d7da;
  border: 1px solid #dc3545;
  color: #721c24;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

/* =========================
   AREAS LIST
   ========================= */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px 28px;
}
.areas-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.areas-grid li {
  margin-bottom: 6px;
}
.areas-grid a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: all var(--t-fast);
}
.areas-grid a:hover {
  background: var(--c-line-soft);
  border-left-color: var(--c-amber);
  transform: translateX(2px);
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  background: var(--c-navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-amber);
  display: inline-block;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}
.site-footer a:hover {
  color: var(--c-amber);
}
.footer-logo {
  margin-bottom: 18px;
}
.footer-logo img { height: 64px; width: auto; }
.footer-tagline {
  margin-bottom: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

/* =========================
   KEYWORD CLOUD (long content area at page bottom)
   ========================= */
.keyword-cloud {
  background: var(--c-line-soft);
  padding: 36px 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--c-ink-soft);
}
.keyword-cloud h3 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.keyword-cloud p { text-align: center; max-width: 1100px; margin: 0 auto; }
.keyword-cloud a { color: var(--c-navy); font-weight: 600; }
.keyword-cloud a:hover { color: var(--c-amber-deep); }

/* =========================
   MAP EMBED
   ========================= */
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 28px 0;
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* =========================
   FEATURE LIST
   ========================= */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.feature-item {
  padding: 20px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--c-amber);
}
.feature-item h4 {
  color: var(--c-navy);
  margin-bottom: 8px;
}
.feature-item p {
  color: var(--c-ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* =========================
   RESPONSIVE / MOBILE
   ========================= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .content-grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip img:nth-child(4),
  .gallery-strip img:nth-child(5) { display: none; }
  .image-row { grid-template-columns: 1fr 1fr; }
  .image-row img:nth-child(3) { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .container { padding: 0 18px; }

  .menu-toggle { display: block; }
  .header-cta { display: none; }
  
  .primary-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--c-navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 0;
    transition: right var(--t-med);
    z-index: 99;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  }
  .primary-nav.open {
    right: 0;
  }
  .primary-nav a {
    color: #fff;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .primary-nav a:hover { background: rgba(255,255,255,0.06); color: var(--c-amber); }
  .primary-nav a.active { color: var(--c-amber); }
  .primary-nav a.active::after { display: none; }
  .primary-nav .mobile-cta {
    display: block;
    margin-top: 18px;
    background: var(--c-amber);
    color: var(--c-navy-deep) !important;
    text-align: center;
    border-radius: var(--radius-pill);
    border-bottom: none;
    font-weight: 700;
  }
  
  .menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-med);
    z-index: 98;
  }
  .menu-overlay.active {
    opacity: 1; visibility: visible;
  }
  body.menu-open { overflow: hidden; }
  
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip img:nth-child(n+3) { display: none; }
  
  .image-row { grid-template-columns: 1fr; }
  .image-row img:nth-child(n+2) { display: none; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .hero h1 { font-size: 2rem; }
  .hero-lead { font-size: 1.05rem; }
  
  .areas-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .areas-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .logo-link img { height: 48px; }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .menu-toggle, .cta-band, .breadcrumbs {
    display: none;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================
   IMAGE STRIP (3-up gallery)
   ========================= */
.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.image-strip figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 2;
  background: var(--c-cream);
}
.image-strip figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.image-strip figure:hover img { transform: scale(1.04); }
@media (max-width: 720px) {
  .image-strip { grid-template-columns: 1fr; gap: 12px; }
  .image-strip figure { aspect-ratio: 16 / 10; }
}

/* =========================
   LINKS DIRECTORY PAGE
   ========================= */
.links-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--c-border);
}
.links-list li {
  padding: 14px 4px;
  border-bottom: 1px solid var(--c-border);
  font-size: 1rem;
  color: var(--c-muted);
}
.links-list li a {
  color: var(--c-navy);
  font-weight: 700;
  text-decoration: none;
}
.links-list li a:hover {
  color: var(--c-amber);
  text-decoration: underline;
}

/* =========================================================
   ADDITIONS (PHP rebuild, v1) — same colours, styles for
   classes the service pages already used, blog and forms
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lead, .page-hero p { color: rgba(255,255,255,0.86); font-size: 1.08rem; max-width: 820px; }
.page-hero a { color: var(--c-amber); }
.page-hero .post-meta { color: rgba(255,255,255,0.7); font-size: .92rem; margin-bottom: 8px; }
.narrow { max-width: 860px; }
.hero-figure { margin: 0 0 28px; }
.hero-figure img { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); object-fit: cover; aspect-ratio: 16 / 9; }
.service-list { list-style: none; padding: 0; margin: 1em 0 1.4em; }
.service-list li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.service-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--c-amber); font-weight: 700;
}
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-list li { margin: 0; }
.related-list a {
  display: inline-block; padding: 8px 16px; border-radius: var(--radius-pill);
  background: #fff; border: 1.5px solid var(--c-line); color: var(--c-navy); font-weight: 700; font-size: .95rem;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.related-list a:hover { border-color: var(--c-amber); color: var(--c-amber-deep); }
.links-described { grid-template-columns: 1fr; }
.links-described .link-desc { color: var(--c-ink-soft); }
.sitemap-list { columns: 2 260px; column-gap: 32px; }
.sitemap-list li { break-inside: avoid; }
.site-footer .footer-quote-btn {
  display: inline-block; margin-top: 6px; padding: 12px 22px;
  background: var(--c-amber); color: var(--c-ink) !important;
  font-weight: 700; text-decoration: none; border-radius: 0;
  transition: background var(--t-fast);
}
.site-footer .footer-quote-btn:hover { background: var(--c-amber-deep); color: var(--c-ink) !important; text-decoration: none; }
.footer-social a { margin-right: 10px; }
/* Blog */
.blog-grid .post-meta { font-size: .85rem; color: var(--c-mute); margin: 0 0 6px; }
.blog-cats a {
  display: inline-block; margin: 0 6px 8px 0; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--c-line-soft); color: var(--c-navy); font-weight: 700; font-size: .9rem;
}
.blog-cats a:hover { background: var(--c-amber); color: var(--c-ink); }
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.post-body blockquote { border-left: 4px solid var(--c-amber); margin: 1.5em 0; padding: .4em 1.2em; background: var(--c-cream); }
.author-box {
  display: flex; gap: 18px; align-items: flex-start; margin: 40px 0 16px; padding: 22px;
  background: var(--c-cream); border-radius: var(--radius-md); border: 1px solid var(--c-line);
}
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { margin: 0 0 6px; }
.author-box .author-name { font-weight: 700; color: var(--c-navy); }
.post-updated { font-size: .85rem; color: var(--c-mute); }
/* Built-in enquiry form */
.hj-form .field small { font-weight: 400; color: var(--c-mute); }
.hj-form .form-error ul { margin: 6px 0 0; padding-left: 20px; }
.hj-form .btn { border: 0; cursor: pointer; font-size: 1rem; }
@media (max-width: 600px) {
  .author-box { flex-direction: column; }
  .page-hero { padding: 40px 0 32px; }
}
