/* ============================================================
   Vision Fire Protection — styles
   Aesthetic: established Irish fire-safety contractor.
   Light & businesslike: white / soft-grey base, deep navy for
   trust (utility bar, hero, footer), one controlled safety-red
   accent. Photo-led. Conventional, credible, easy to scan.
   Mobile-first. Accessible. Subtle, professional motion.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Trust navy */
  --navy:      #0e2436;
  --navy-2:    #143049;
  --navy-3:    #1c3e5a;

  /* Surfaces — cooler, calmer neutral scale */
  --bg:        #ffffff;
  --bg-alt:    #f4f6fa;   /* soft neutral section */
  --card:      #ffffff;
  --line:      #e7ecf2;
  --line-2:    #d6dde6;

  /* Text */
  --ink:       #28333d;   /* body — softened off-charcoal */
  --heading:   #11243a;   /* headings (deep navy-ink) */
  --muted:     #5d6b78;

  /* Controlled safety-red accent (slightly deepened) */
  --red:       #c4122c;
  --red-dark:  #9c0e22;
  --red-soft:  #fbe9ec;

  /* Type */
  --font-head: 'Barlow', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    14px;       /* softer, more premium card corners */
  --radius-sm: 8px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);   /* refined deceleration */
  --header-h:  96px;
  /* Diffusion shadows — wide, soft, tinted to the navy hue */
  --shadow:    0 10px 34px -18px rgba(14, 36, 54, 0.20);
  --shadow-lg: 0 30px 64px -28px rgba(14, 36, 54, 0.30);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px); /* clears the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); margin: 0; line-height: 1.12; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: -120px; transform: translateX(-50%);
  background: var(--red); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 8px 8px;
  z-index: 300; font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.97rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Utility bar
   ============================================================ */
.utility-bar { background: var(--navy); color: #cdd8e2; font-size: 0.84rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.utility-left { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
.utility-right { margin: 0; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.utility-right a { color: #e4ebf2; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.utility-right a:hover { color: #fff; }
.util-ic { color: var(--red); font-size: 0.9em; }
.util-sep { color: rgba(255,255,255,0.25); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff;                 /* light header to suit the white-background logo */
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px -10px rgba(15,34,51,0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--heading); }
.logo-img { height: clamp(50px, 6.6vw, 70px); width: auto; display: block; }  /* client logo artwork (enlarged) */

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 0.15rem; }
.nav-menu a {
  display: inline-block; padding: 0.55rem 0.85rem; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 0.96rem; color: var(--heading);
  position: relative; transition: color 0.2s var(--ease);
}
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.34rem; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-menu a:not(.nav-cta):hover { color: var(--red); }
.nav-menu a.is-active:not(.nav-cta) { color: var(--red); }
.nav-menu a.is-active:not(.nav-cta)::after { transform: scaleX(1); }

.nav-cta { background: var(--red); color: #fff !important; text-transform: uppercase; letter-spacing: 0.02em; padding: 0.6rem 1.1rem; }
.nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  background: var(--bg); border-radius: 6px; cursor: pointer; position: relative; z-index: 210;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--heading); border-radius: 2px; transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bar::before { transform: translate(-50%, -7px); }
.nav-toggle-bar::after  { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; isolation: isolate;
  background: var(--navy);
  color: #fff;
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem);
  overflow: hidden;
}
/* Optional photo behind the navy overlay; hidden if it fails to load */
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(14,36,54,0.96) 0%, rgba(14,36,54,0.86) 45%, rgba(14,36,54,0.62) 100%);
}
/* When no hero photo is present, JS removes the img and we keep a
   subtle texture so the navy never looks flat. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background:
    radial-gradient(70% 90% at 88% 8%, rgba(200,16,46,0.22) 0%, transparent 55%),
    radial-gradient(60% 80% at 0% 100%, rgba(28,62,90,0.6) 0%, transparent 60%);
}
.hero.has-photo::before { display: none; }

.hero-inner { position: relative; max-width: 760px; }
.hero-eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 0.4rem 0.9rem; border-radius: 3px;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.7rem); font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.08; margin-bottom: 1.2rem; color: #fff;
  text-wrap: balance;
}
.hero-lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); color: #d4dde6; max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.16); }
.hero-badges li { position: relative; padding-left: 1.5rem; font-weight: 600; font-size: 0.92rem; color: #eaf0f5; }
.hero-badges li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; color: #fff;
  background: var(--red); width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.65rem;
}

/* ============================================================
   Credentials strip
   ============================================================ */
.creds { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.creds-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.8rem 2rem; padding-block: 1.1rem; text-align: center; }
.creds-label { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.creds-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; }
.creds-list li { font-size: 0.9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.45rem; }
.creds-list strong { color: var(--heading); font-family: var(--font-head); font-weight: 700; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.services, .equipment, .why, .reviews, .about, .contact { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.equipment, .reviews { background: var(--bg-alt); }

.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-kicker {
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.section-kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.section-kicker.light { color: #ffb3bd; }
.section-kicker.light::before { background: #ffb3bd; }
.section-title { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.7rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.9rem; }
.section-intro { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* ============================================================
   Shared photo / media frame (with graceful placeholder)
   The figure shows a labelled fallback; a real <img.photo>
   covers it. If the image is missing, JS hides the broken img.
   ============================================================ */
.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%);
  display: grid; place-items: center; margin: 0;
}
.card-media .photo { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }

/* Product shots supplied on a white background: show the whole product
   on white rather than cropping it. */
.card-media.is-contain { background: #fff; }
.card-media.is-contain .photo { object-fit: contain; padding: 8%; }
/* Until a product photo is added, show a clean tinted "awaiting photo"
   tile with a dark icon (a white icon would vanish on the white bg). */
.card-media.is-contain:not(.has-img) { background: linear-gradient(135deg, #eef2f7 0%, #e2e9f1 100%); }
.card-media.is-contain::before { background: rgba(17, 36, 58, 0.20); }
.card-media.is-contain::after  { color: rgba(17, 36, 58, 0.42); }

/* Once a real photo has loaded, hide the placeholder icon + label so they
   never show through (especially in the letterboxed margins of contain). */
.card-media.has-img::before, .card-media.has-img::after { display: none; }
/* placeholder icon (centred, behind photo) */
.card-media::before {
  content: ""; z-index: 1; width: 34%; max-width: 110px; aspect-ratio: 1; opacity: 0.55;
  background: rgba(255,255,255,0.85);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
/* placeholder label (bottom) */
.card-media::after {
  content: attr(data-label); position: absolute; z-index: 1; bottom: 10px; left: 0; right: 0;
  text-align: center; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}
/* once a real photo is present, the photo (z-2) simply covers placeholder */
.card-media[data-icon="panel"]::before        { -webkit-mask-image: var(--i-panel);     mask-image: var(--i-panel); }
.card-media[data-icon="detector"]::before     { -webkit-mask-image: var(--i-detector);  mask-image: var(--i-detector); }
.card-media[data-icon="extinguisher"]::before { -webkit-mask-image: var(--i-ext);       mask-image: var(--i-ext); }
.card-media[data-icon="light"]::before        { -webkit-mask-image: var(--i-light);     mask-image: var(--i-light); }
.card-media[data-icon="callpoint"]::before    { -webkit-mask-image: var(--i-callpoint); mask-image: var(--i-callpoint); }
.card-media[data-icon="sounder"]::before      { -webkit-mask-image: var(--i-sounder);   mask-image: var(--i-sounder); }

:root {
  --i-panel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Crect x='7' y='6' width='10' height='5' rx='1'/%3E%3Ccircle cx='8' cy='15.5' r='1'/%3E%3Ccircle cx='12' cy='15.5' r='1'/%3E%3Ccircle cx='16' cy='15.5' r='1'/%3E%3Cline x1='7' y1='18.5' x2='17' y2='18.5'/%3E%3C/svg%3E");
  --i-detector: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E");
  --i-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Cpath d='M9 8h5a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V8Z'/%3E%3Cpath d='M11 8V6a2 2 0 0 1 2-2h3'/%3E%3Cline x1='16' y1='4' x2='16' y2='7'/%3E%3Cline x1='9' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
  --i-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Crect x='3' y='8' width='18' height='8' rx='1.5'/%3E%3Cpath d='M7 12h4l-2 3M13 11l4 2'/%3E%3Cline x1='9' y1='8' x2='9' y2='16'/%3E%3C/svg%3E");
  --i-callpoint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Crect x='5' y='4' width='14' height='16' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='12' y1='7' x2='12' y2='9'/%3E%3C/svg%3E");
  --i-sounder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Cpath d='M5 10v4h3l4 3V7l-4 3H5Z'/%3E%3Cpath d='M15 9a4 4 0 0 1 0 6M17.5 7a7 7 0 0 1 0 10'/%3E%3C/svg%3E");
}

/* ============================================================
   3 · Services — photo cards (Advanced-style red top border)
   ============================================================ */
.service-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }

.card-standard {
  align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.05em; color: var(--red); background: var(--red-soft);
  padding: 0.28rem 0.6rem; border-radius: 3px; margin-bottom: 0.7rem;
}
.service-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.7rem; }
.service-summary { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.1rem; }
.service-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.service-list li {
  font-size: 0.82rem; font-weight: 600; color: var(--heading);
  background: var(--bg-alt); border: 1px solid var(--line); padding: 0.34rem 0.7rem; border-radius: 3px;
}

/* Accordion */
.accordion { margin-top: auto; border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; cursor: pointer; color: var(--heading);
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 1rem 0 0; gap: 1rem;
}
.accordion-trigger:hover { color: var(--red); }
.accordion-icon { position: relative; flex: none; width: 18px; height: 18px; color: var(--red); }
.accordion-icon::before, .accordion-icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.accordion-icon::before { width: 13px; height: 2px; transform: translate(-50%, -50%); }
.accordion-icon::after  { width: 2px; height: 13px; transform: translate(-50%, -50%); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion-panel { overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.accordion-inner { padding: 0.85rem 0 0.2rem; color: var(--muted); font-size: 0.93rem; }
.accordion-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   2 · Equipment marquee
   ============================================================ */
.equipment { overflow: hidden; }
.marquee {
  position: relative; width: 100%; overflow: hidden; margin-top: 0.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
/* Track is driven by JS (script.js) which recycles tiles for a continuous
   loop — each image appears once and cycles through, no duplicated copies. */
.marquee-track { display: flex; gap: 1.25rem; width: max-content; will-change: transform; }

.equip-card { margin: 0; flex: 0 0 auto; width: 300px; }
.equip-media { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.equip-card figcaption { margin-top: 0.85rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--heading); }

/* ============================================================
   7 · Why choose us
   ============================================================ */
.why-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: var(--red-soft); color: var(--red); margin-bottom: 1rem; }
.why-ic svg { width: 27px; height: 27px; }
.why-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ============================================================
   5 · Reviews
   ============================================================ */
.review-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); position: relative; }
.stars { color: var(--red); letter-spacing: 0.16em; font-size: 0.95rem; margin-bottom: 0.8rem; }
.review-card blockquote { margin: 0 0 1.1rem; color: var(--ink); font-size: 0.99rem; }
.review-card figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.review-name { font-family: var(--font-head); font-weight: 700; color: var(--heading); }
.review-role { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   6 · About
   ============================================================ */
.about-inner { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: center; }
.about-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-copy .section-title { margin-bottom: 1rem; }
.about-copy p { color: var(--muted); }
.about-note {
  display: inline-block; font-size: 0.82rem; color: var(--red); background: var(--red-soft);
  border: 1px dashed rgba(200,16,46,0.4); border-radius: 5px; padding: 0.4rem 0.8rem; margin-bottom: 1.2rem;
}
.about-copy .btn { margin-top: 0.6rem; }

/* ============================================================
   4 · Contact (navy panel for trust)
   ============================================================ */
.contact { background: var(--navy); color: #fff; }
.contact .section-title { color: #fff; }
.contact .section-intro { color: #c6d2dd; }
.contact-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }

.contact-points { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.65rem; }
.contact-points li { display: flex; align-items: center; gap: 0.7rem; color: #eaf0f5; }
.contact-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 700; }
.contact-direct { margin-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.3rem; display: grid; gap: 0.55rem; }
.contact-direct p { margin: 0; display: flex; gap: 0.8rem; align-items: baseline; }
.contact-label { font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ffb3bd; min-width: 52px; }
.contact-direct a { color: #fff; font-weight: 600; font-size: 1.05rem; }
.contact-direct a:hover { color: #ffb3bd; }

.enquiry { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.2rem); box-shadow: var(--shadow-lg); }
.form-legend { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--heading); margin-bottom: 1.3rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-family: var(--font-head); font-size: 0.86rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--heading); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem; resize: vertical; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa7b2; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,0.14); }
.enquiry.was-validated :invalid { border-color: var(--red); }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; text-align: center; }
.form-note.is-error { color: var(--red); }
.form-note.is-success { color: #1a7a4a; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #0a1b29; color: #b7c4cf; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-block: 3rem 2.4rem; }
.footer-brand .logo-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: #fff; }
.footer-brand .logo-sub { font-family: var(--font-head); font-weight: 600; font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); }
.footer-brand p { margin-top: 0.8rem; max-width: 340px; font-size: 0.92rem; color: #9fb0bd; }
.footer-nav h4, .footer-contact h4 { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 0.9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.footer-nav a, .footer-contact a { color: #b7c4cf; font-size: 0.94rem; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.footer-standards { font-size: 0.8rem; color: #7f93a1; margin-top: 0.6rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-base-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.3rem; font-size: 0.84rem; color: #7f93a1; }

/* ============================================================
   Scroll-reveal (subtle, professional)
   ============================================================ */
.reveal[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 620px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid    { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid     { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .about-inner  { grid-template-columns: 0.9fr 1.1fr; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1.2fr; }
  /* wider tiles so the 5-image belt always overflows the viewport
     (keeps the recycle loop gap-free without duplicating images) */
  .equip-card   { width: 400px; }
}

/* Mobile navigation */
@media (max-width: 860px) {
  /* Smaller sticky header + logo so the bar doesn't dominate small screens */
  :root { --header-h: 72px; }
  .logo-img { height: 46px; }

  .nav-toggle { display: inline-grid; place-items: center; }
  /* Menu drops directly from the header (absolute → moves with the sticky
     header, so there's never a gap whether at the top or scrolled). */
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: #fff; padding: 0.9rem clamp(1.1rem, 4vw, 2.2rem) 1.4rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 0.85rem 0.4rem; font-size: 1.05rem; }
  .nav-menu a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 0.4rem; }
  /* utility bar is sticky-adjacent; keep address short on mobile */
  .utility-left { display: none; }
  .utility-right { width: 100%; justify-content: center; }
}

/* 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; }
  .reveal[data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ============================================================
   Additions — consultancy strip, about quote, FAQ, footer,
   legal modals.
   ============================================================ */

/* Equipment heading sits right under the nav — a little tighter */
.section-head--tight { margin-bottom: 1.8rem; }
.equipment { padding-top: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); }

/* Services — consultancy / management strip */
.service-extra {
  margin-top: 1.6rem; padding: clamp(1.4rem, 1rem + 2vw, 2rem);
  background: var(--navy); color: #fff; border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.6rem;
}
.service-extra-text { max-width: 760px; }
.service-extra h3 { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 0.4rem; }
.service-extra p { color: #c6d2dd; margin: 0; }
.service-extra .btn { flex: none; }

/* About — mission quote */
.about-quote {
  margin: 1.4rem 0; padding: 0.4rem 0 0.4rem 1.2rem;
  border-left: 3px solid var(--red);
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem;
  font-style: italic; color: var(--heading);
}

/* FAQ */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 820px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0.8rem; padding: 0 1.3rem; box-shadow: var(--shadow);
}
.faq-item .accordion-trigger { padding: 1.15rem 0; text-transform: none; font-size: 1.04rem; letter-spacing: 0; }
.faq-item .accordion-trigger span:first-child { text-align: left; }
.faq-item .accordion-inner { padding-bottom: 1.1rem; }

/* Footer additions */
.footer-areas { font-size: 0.9rem; color: #9fb0bd; margin: 0.4rem 0 0; }
.footer-areas strong { color: #cdd8e2; }
.footer-legal { display: inline-flex; align-items: center; gap: 0.6rem; }
.legal-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #9fb0bd; font: inherit; font-size: 0.84rem; text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-link:hover { color: #fff; }

/* ============================================================
   Legal modals
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,17,26,0.62); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; z-index: 1; background: #fff; color: var(--ink);
  width: min(720px, 100%); max-height: 86vh; overflow-y: auto;
  border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2.5vw, 2.6rem);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  animation: modalIn 0.25s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-box h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); color: var(--heading); margin-bottom: 0.3rem; }
.modal-box h3 { font-size: 1.05rem; color: var(--heading); margin: 1.3rem 0 0.4rem; }
.modal-box p { color: var(--muted); font-size: 0.96rem; }
.modal-box a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.modal-meta { font-size: 0.82rem !important; color: var(--muted-2) !important; margin-bottom: 0.4rem; }
.modal-note {
  margin-top: 1.6rem; font-size: 0.82rem !important; color: var(--red) !important;
  background: var(--red-soft); border: 1px dashed rgba(200,16,46,0.4);
  border-radius: 6px; padding: 0.6rem 0.9rem;
}
.modal-close {
  position: absolute; top: 0.7rem; right: 0.9rem; width: 40px; height: 40px;
  border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--muted);
  cursor: pointer; border-radius: 8px;
}
.modal-close:hover { background: var(--bg-alt); color: var(--heading); }
body.modal-open { overflow: hidden; }

/* Service-extra stacks on small screens */
@media (max-width: 600px) {
  .service-extra { flex-direction: column; align-items: flex-start; }
  /* Comfortable tap targets on touch devices */
  .footer-nav a { padding: 0.35rem 0; }
  .footer-legal { gap: 0.9rem; flex-wrap: wrap; }
  .legal-link { padding: 0.35rem 0; font-size: 0.9rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .utility-right { font-size: 0.8rem; }
}

/* ============================================================
   v2 — PROFESSIONAL POLISH PASS
   Refined typography, materiality, rhythm and a subtle brand
   watermark. Built on the existing system so nothing breaks.
   ============================================================ */

/* Subtle brand watermark — a faint, fixed backdrop that shows
   gently through the light content sections. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("images/watermark.jpg") no-repeat center 38%;
  background-size: min(720px, 72vw);
  opacity: 0.5;
}

/* Confident, tighter display typography */
h1, h2, h3 { letter-spacing: -0.022em; }
.hero-title { letter-spacing: -0.032em; line-height: 1.04; }
.section-title { letter-spacing: -0.028em; }
.section-intro { max-width: 60ch; }
.utility-reg { color: #94a6b4; }

/* A touch more vertical air between major sections */
.services, .why, .reviews, .about, .faq, .contact {
  padding-block: clamp(4.25rem, 3.2rem + 5vw, 7rem);
}
.section-head { margin-bottom: clamp(2.4rem, 2rem + 1.6vw, 3.2rem); }

/* Buttons — softer shape, refined shadow, tactile press */
.btn { border-radius: 9px; }
.btn-primary { box-shadow: 0 12px 26px -16px rgba(196, 18, 44, 0.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(196, 18, 44, 0.55); }
.btn:active { transform: translateY(0) scale(0.985); }

/* Cards — quieter borders, diffusion shadow, smoother lift.
   (Uses the refined --shadow / --radius tokens above.) */
.service-card, .why-card, .review-card {
  border-color: var(--line);
}
.service-card:hover, .why-card:hover, .review-card:hover {
  transform: translateY(-5px);
}
.card-media.is-contain .photo { padding: 9%; }

/* Hero — overlay fades more gracefully across the photo */
.hero-overlay {
  background: linear-gradient(101deg,
    rgba(14,36,54,0.97) 0%, rgba(14,36,54,0.9) 40%,
    rgba(14,36,54,0.6) 76%, rgba(14,36,54,0.4) 100%);
}
.hero-eyebrow { box-shadow: 0 8px 20px -12px rgba(196,18,44,0.7); }

/* Credentials strip — calmer, more editorial */
.creds-inner { gap: 0.8rem 2.4rem; }
.creds-list strong { color: var(--red); }

/* Reviews — first card carries a quiet quote mark for character */
.review-card { padding-top: 1.9rem; }

/* 3-up reviews on larger screens */
@media (min-width: 780px) {
  .review-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Equipment caption — a little more presence */
.equip-card figcaption { letter-spacing: -0.01em; }

/* Watermark scales down a touch on phones */
@media (max-width: 600px) {
  body::before { background-size: 86vw; opacity: 0.42; }
}

/* Areas we cover — local SEO chips */
.areas { padding-block: clamp(4.25rem, 3.2rem + 5vw, 7rem); }
.area-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.area-tag {
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  color: var(--heading); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem;
}
.area-tag--primary {
  color: #fff; background: var(--navy); border-color: var(--navy);
}
.area-towns { color: var(--muted); max-width: 62ch; margin: 0; }
.area-towns strong { color: var(--heading); font-weight: 600; }

/* Review cards — company logo beside the reviewer */
.review-card figcaption { flex-direction: row; align-items: center; gap: 0.9rem; }
.review-meta { display: flex; flex-direction: column; min-width: 0; }
.review-logo {
  height: 44px; width: auto; max-width: 108px; object-fit: contain; flex: none;
}
/* logos supplied on a dark background sit in a tidy rounded tile */
.review-logo--dark { border-radius: 8px; }
