/* ==== Design tokens ==== */
:root {
  --brand-blue: #2ba9e0;
  --brand-blue-dark: #1e8dc0;
  --ink: #222222;
  --ink-soft: #4a4a4a;
  --muted: #7a7a7a;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-dark: #1f2a30;
  --footer-bg: #232a2e;

  --font-body: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-condensed: "Roboto Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gap: 24px;
  --topbar-h: 96px;
}

/* ==== Reset / base ==== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-condensed); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==== Header ==== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { flex: 0 0 auto; }
.brand img { height: 48px; width: auto; }

.primary-nav { flex: 1 1 auto; }
.primary-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.primary-nav a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.primary-nav a:hover,
.primary-nav li.is-active > a,
.primary-nav li:hover > a { color: var(--brand-blue); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-blue);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
  z-index: 110;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .18s ease, transform .18s ease;
}
.dropdown a {
  padding: 10px 20px;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--bg-alt); }

.phone-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff !important;
  padding: 12px 22px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  border-radius: 3px;
  transition: background .15s ease;
}
.phone-cta:hover { background: var(--brand-blue); color: #fff !important; }
.phone-cta::before {
  content: "";
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.24 11.4 11.4 0 003.6.58 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.24.2 2.45.58 3.6a1 1 0 01-.24 1z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.24 11.4 11.4 0 003.6.58 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.24.2 2.45.58 3.6a1 1 0 01-.24 1z'/></svg>") center/contain no-repeat;
}

/* ==== Mobile nav toggle ==== */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  color: var(--ink);
  margin-left: auto;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
  position: relative;
}
.nav-toggle span { margin: 0 auto; }
.nav-toggle span::before { position: absolute; top: -8px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  8px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); top: 0; }

/* ==== Hero (Nivo Slider) ==== */
.hero { position: relative; background: #000; overflow: hidden; }
.hero .slider-wrapper {
  position: relative;
  height: 700px;
  width: 100%;
  margin: 0;
}
.hero .nivoSlider {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  background: #000;
}
.hero .nivoSlider > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Nivo builds slice/box divs with background-image at the image's NATURAL
   pixel size and positions them using slider width — which doesn't match
   the main <img>'s object-fit: cover crop when natural width != container
   width. Force each layer to background-size: cover + center to match. */
.hero .nivoSlider .nivo-slice,
.hero .nivoSlider .nivo-box {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
/* Dark scrim from left for caption legibility (source has similar treatment) */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 8;
}
/* Caption — replaces Nivo's default black bar with our custom "Specialist Services" overlay */
.hero .nivo-html-caption,
.hero .nivo-caption {
  position: absolute;
  left: 6%;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  max-width: 640px;
  background: transparent;
  color: #fff;
  padding: 0;
  opacity: 1 !important;
  display: block !important;
  z-index: 10;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  pointer-events: none;
}
.hero .hero-caption-top,
.hero .hero-caption-bot {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 900;
  color: #fff;
  line-height: .95;
  font-size: clamp(2.8rem, 8.2vw, 6.5rem);
  letter-spacing: -.01em;
}
.hero .hero-caption-bot { padding-left: 1.2em; }

/* ==== Inner page banner ==== */
.page-banner {
  position: relative;
  background: #333;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--b);
  background-position: center;
  background-size: cover;
  opacity: .55;
  z-index: 0;
}
.page-banner .wrap { position: relative; z-index: 1; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.page-banner h1 {
  color: #fff;
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* ==== Sections ==== */
.section { padding: 80px 0; }
.section-narrow { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #eee; }
.section-dark h2, .section-dark h3 { color: #fff; }

/* Welcome intro */
.intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.intro h2 { font-weight: 700; }
.intro p { color: var(--ink-soft); font-size: 1.05rem; }

/* CTA button */
.btn {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  padding: 12px 28px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-blue-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* ==== Feature grid (6 alternating tiles) ==== */
.feature-grid { display: grid; gap: 6px; margin-top: 40px; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.feature-tile-img {
  aspect-ratio: 720 / 300;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
  overflow: hidden;
  position: relative;
}
.feature-tile-img::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.06);
  transition: background .2s ease;
}
.feature-tile-img:hover::after { background: rgba(0,0,0,0); }
.feature-tile-text {
  background: #fff;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-tile-text h3 {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: .01em;
}
.feature-tile-text p {
  color: var(--ink-soft);
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
  line-height: 1.35;
}

/* ==== Content column ==== */
.content { max-width: 820px; margin: 0 auto; }
.content h2 { font-family: var(--font-condensed); text-transform: uppercase; }
.content h3 { font-family: var(--font-condensed); text-transform: uppercase; color: var(--brand-blue-dark); font-size: 1.2rem; margin-top: 32px; }
.content p { color: var(--ink-soft); font-size: 1rem; }
.content ul { padding-left: 20px; color: var(--ink-soft); }
.content ul li { margin-bottom: 6px; }

/* CTA band */
.cta-band {
  background: var(--brand-blue);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0 auto 24px; max-width: 640px; font-size: 1.1rem; }
.cta-band a.phone { color: #fff; font-weight: 700; }

/* ==== Gallery ==== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery a:hover img { transform: scale(1.05); }

/* ==== Lightbox ==== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; box-shadow: 0 0 40px rgba(0,0,0,0.6); }
.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 0;
  width: 48px; height: 48px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { top: 50%; left: 24px; transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 24px; transform: translateY(-50%); }

/* ==== Contact page layout ==== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-details h2 { color: var(--ink); }
.contact-details .details-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-details .details-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.contact-details .details-list li strong { min-width: 80px; color: var(--ink); font-weight: 700; }
.contact-details .details-list a { color: var(--ink-soft); }
.contact-details .details-list a:hover { color: var(--brand-blue); }

form.contact-form { display: grid; gap: 16px; }
form.contact-form label {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
form.contact-form input[type="text"],
form.contact-form input[type="tel"],
form.contact-form input[type="email"],
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: 0;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(43,169,224,0.15);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form .checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 20px;
  margin-top: 8px;
}
form.contact-form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
}
form.contact-form .checkbox-group input { width: auto; margin: 0; }
form.contact-form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.contact-form .form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: -6px;
}
form.contact-form .form-status {
  min-height: 20px;
  font-size: 14px;
  color: var(--brand-blue-dark);
}
form.contact-form .form-status.is-error { color: #b00020; }

/* Grid row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ==== Footer ==== */
.site-footer {
  background: var(--footer-bg);
  color: #cfd6da;
  padding: 40px 0 24px;
  border-top: 4px solid var(--brand-blue);
  font-size: 14px;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.site-footer .brand img { height: 56px; filter: brightness(0) invert(1) opacity(0.95); }
.footer-meta { text-align: center; color: #b7bec3; font-size: 13px; }
.footer-meta a { color: #fff; font-weight: 700; }
.footer-copy { text-align: right; color: #8b9195; }

/* ==== Responsive ==== */
@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .primary-nav > ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .primary-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav li.has-dropdown > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 10px;
  }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: var(--bg-alt);
    transition: max-height .3s ease;
    display: block;
    min-width: 0;
  }
  .has-dropdown.is-open > .dropdown {
    visibility: visible;
    max-height: 400px;
    padding: 0;
    transform: none;
  }
  .dropdown a { padding-left: 40px; font-size: 13px; }
  .nav-toggle { display: block; }
  body.menu-open .primary-nav { max-height: calc(100vh - var(--topbar-h)); overflow-y: auto; }
  .phone-cta { padding: 10px 14px; font-size: 13px; }
  .phone-cta span { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .site-footer .brand { display: flex; justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 76px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-tile-text { padding: 28px 24px; text-align: center; }
  .brand img { height: 40px; }
  .section { padding: 56px 0; }
  .hero .slider-wrapper { height: 420px; }
  .hero .nivo-html-caption { left: 24px; right: 24px; max-width: none; text-align: center; }
  .hero .hero-caption-bot { padding-left: 0; }
}
