:root {
  --bg: #e7f0fb;
  --surface: #f3f7fc;
  --surface-2: #dce9f8;
  --text: #1f2d4a;
  --muted: #56657f;
  --line: #bfd0e6;
  --blue: #3f74d8;
  --blue-dark: #173a78;
  --hero-light: #d7ebff;
  --btn-bg: #173a78;
  --btn-bg-hover: #5f86ea;
  --btn-text: #ffffff;
  --shadow: 0 18px 40px rgba(31, 45, 74, .12);
  --hero-bg-position: center top;
  --hero-bg-size: 100vw auto;
  --hero-image-offset: 90px;
  --hero-blue-overlay: linear-gradient(rgba(8, 28, 76, 0), rgba(8, 28, 76, 0));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef5fc 0%, #dce9f8 100%);
  color: var(--text);
  line-height: 1.6;
}
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
[id] { scroll-margin-top: 110px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.container.narrow { width: min(760px, calc(100% - 32px)); }

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 247, 252, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}
.brand-wordmark,
.footer-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--text);
}
.wordmark-main,
.footer-wordmark-main {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.05em;
}
.wordmark-it,
.footer-wordmark-main strong { color: var(--blue-dark); }
.wordmark-tagline,
.footer-wordmark-line {
  margin-top: 6px;
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hero-light);
  font-size: 1.06rem;
  font-weight: 800;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 999px;
  transition: background-color .25s ease, color .25s ease;
}
.nav-link:hover { background: rgba(63,116,216,.10); color: var(--blue-dark); }
.nav-link-button { background: var(--blue-dark); color: #fff; }
.nav-link-button:hover { background: var(--btn-bg-hover); color: #fff; }
.menu-toggle { display: none; }

.btn,
button {
  display: inline-block;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--btn-text);
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background-color .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.btn:hover,
button:hover { background: linear-gradient(135deg, #123265 0%, var(--btn-bg-hover) 100%); transform: translateY(-1px); }
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  box-shadow: none;
}
.btn.secondary:hover { background: #fff; border-color: var(--blue); color: var(--blue-dark); }

.hero {
  padding: 72px 0 46px;
  background: linear-gradient(135deg, #173a78 0%, #275aa8 54%, #dce9f8 54.2%, #eaf2fb 100%);
}
.hero-centered { text-align: center; }
.hero-centered-inner {
  max-width: 880px;
  padding: 42px 30px;
  border-radius: 34px;
  background: rgba(243,247,252,.94);
  box-shadow: var(--shadow);
}
.hero-kicker,
.eyebrow,
.kicker {
  color: var(--blue-dark);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2.25rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 4.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 14px; }
.lead,
.hero-intro { font-size: 1.08rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.hero-actions,
.form-actions,
.cta-inline-wrap,
.contact-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.hero-actions-centered { justify-content: center; }

.section { padding: 48px 0; }
.section.alt {
  background: linear-gradient(180deg, rgba(220,233,248,.97), rgba(198,217,242,.98));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.card,
.about-section-card,
.start-choice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.launch-note-card .btn,
.contact-options .btn { margin-top: 8px; }

.checklist {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid rgba(23,58,120,.10);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.services-intro-stack {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}
.start-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-column {
  display: flex;
  flex-direction: column;
}
.service-column .btn { margin-top: auto; }
.why-service-grid { align-items: stretch; }
.why-service-grid > * { height: 100%; }

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: start;
}
.contact-form-card { grid-row: span 2; }
.contact-side-stack {
  display: grid;
  gap: 20px;
}
.contact-side-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.contact-side-actions .btn { width: 100%; text-align: center; }
.form-grid {
  display: grid;
  gap: 16px;
}
.form-grid-two { grid-template-columns: repeat(2, 1fr); }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}
.input:focus {
  outline: 3px solid rgba(63,116,216,.18);
  border-color: var(--blue);
}
textarea.input { resize: vertical; min-height: 160px; }
.form-help,
.privacy-notice,
.form-alert { font-size: .94rem; color: var(--muted); }
.form-alert {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e6bd6b;
  background: #fff8e8;
  color: #66501b;
  margin: 16px 0;
}
.form-field-checkbox label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.privacy-notice {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-area-map-wrap { margin-top: 6px; }
.service-area-page .service-area-map-wrap { border-top: 0; }
.service-area-map-card { padding: 16px; overflow: hidden; }
.service-area-map-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(23,58,120,.10);
  background: #eef0eb;
}
.service-area-town-list { columns: 2; column-gap: 28px; }
.service-area-town-list li { break-inside: avoid; }

footer {
  padding: 38px 0 50px;
  color: #dce7f7;
  background: #102f64;
}
.footer-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr .9fr;
  gap: 28px;
  align-items: start;
}
.footer-wordmark,
.footer-wordmark-line,
.footer-wordmark-main strong { color: #fff; }
.footer-copy { margin-top: 12px; }
.footer-links-grid,
.footer-contact-list,
.footer-submenu {
  display: grid;
  gap: 8px;
}
.footer-links-grid { grid-template-columns: repeat(2, 1fr); }
.footer-nav-heading {
  display: inline-block;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 800;
}
.footer-submenu a,
.footer-contact-list a { color: #dce7f7; }
.footer-submenu a:hover,
.footer-contact-list a:hover { color: #fff; text-decoration: underline; }
.footer-contact-list p { margin-bottom: 6px; }

[data-reveal] { transition: opacity .5s ease, transform .5s ease; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition-delay: var(--reveal-delay, 0s); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

@media (max-width: 980px) {
  .start-choice-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-layout,
  .split,
  .footer-shell { grid-template-columns: 1fr; }
  .contact-form-card { grid-column: auto; grid-row: auto; }
}

@media (max-width: 920px) {
  [id] { scroll-margin-top: 92px; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-link { justify-content: center; }
  .hero { padding-top: 38px; }
  .hero-centered-inner { padding: 32px 22px; }
  .service-area-town-list { columns: 1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1120px); }
  .hero { background: #dce9f8; }
  .hero-centered-inner { border-radius: 24px; }
  .start-choice-grid,
  .form-grid-two,
  .footer-links-grid { grid-template-columns: 1fr; }
  .hero-actions,
  .form-actions,
  .cta-inline-wrap { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

/* Restored visual treatment: image-backed header/hero and modern service columns */
header {
  isolation: isolate;
  overflow: visible;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    var(--hero-blue-overlay),
    url("hero-splash.jpg");
  background-position:
    center,
    var(--hero-bg-position);
  background-size:
    auto,
    var(--hero-bg-size);
  background-repeat: no-repeat;
}
header .container.nav { background: transparent; }
header .brand-wordmark,
header .brand-wordmark:visited,
header .wordmark-main,
header .wordmark-it,
header .wordmark-tagline { color: #fff; }
header .nav-link { color: var(--hero-light); }
header .nav-link:hover { background: rgba(215,235,255,.16); color: #fff; }
header .nav-link-button,
header .nav-link-button:visited {
  background: var(--hero-light);
  color: var(--blue-dark);
}
header .nav-link-button:hover { background: #fff; color: var(--blue-dark); }
header .menu-toggle { background: transparent; border: 1px solid rgba(255,255,255,.35); }
header .menu-toggle span { background: #fff; }

body.soft-launch-page { --hero-image-offset: 78px; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  color: #fff;
  padding: 30px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--hero-image-offset));
  bottom: auto;
  width: 100vw;
  height: calc(100% + var(--hero-image-offset));
  transform: translateX(-50%);
  z-index: -2;
  pointer-events: none;
  background-image:
    var(--hero-blue-overlay),
    url("hero-splash.jpg");
  background-position:
    center,
    var(--hero-bg-position);
  background-size:
    auto,
    var(--hero-bg-size);
  background-repeat: no-repeat;
  clip-path: none;
}
.hero-centered-inner {
  max-width: 930px;
  padding: 16px 0 14px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero h1,
.hero a:not(.btn.secondary) { color: #fff; }
.hero .hero-intro,
.hero p.hero-intro {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--hero-light);
}
.hero-kicker,
.it-hero-plain .hero-kicker {
  position: relative;
  display: inline-block;
  isolation: isolate;
  overflow: visible;
  clip-path: none;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: .9rem 1.85rem;
  color: var(--hero-light);
  --kicker-fill: rgba(23,58,120,.42);
  --kicker-stroke: rgba(215,235,255,.38);
}
.it-hero-plain .hero-kicker {
  color: var(--hero-light);
  --kicker-fill: rgba(23,58,120,.42);
  --kicker-stroke: rgba(215,235,255,.38);
}
.hero-kicker::before,
.it-hero-plain .hero-kicker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--kicker-fill);
  border: 1px solid var(--kicker-stroke);
  border-radius: 16px;
  transform: skewX(-18deg);
}

.services-modern {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding-top: 36px;
  padding-bottom: 70px;
  background: none;
  border: 0;
}
.services-modern::before,
.services-modern::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  clip-path: none;
  pointer-events: none;
}
.services-modern::before {
  z-index: -2;
  background:
    radial-gradient(circle at 14% 22%, rgba(79,111,217,.20), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(23,58,120,.12), transparent 24%),
    linear-gradient(180deg, #edf3fc 0%, #deebf8 52%, #d4e2f5 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84), 0 14px 32px rgba(23,58,120,.09);
}
.services-modern::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 42%);
}
.services-modern .service-column {
  position: relative;
  padding: 20px 20px 0;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  transition: transform .18s ease;
}
.services-modern .service-column::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #4f6fd9, rgba(79,111,217,.25));
}
.services-modern .service-column + .service-column {
  border-left: 1px solid rgba(23,58,120,.10);
}
.services-modern .service-column h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: var(--blue-dark);
}
.services-modern .service-column p {
  max-width: 28ch;
  margin: 0 auto 16px;
}
@media (hover: hover) and (pointer: fine) {
  .services-modern .service-column:hover { transform: translateY(-1px); }
}

.card,
.about-section-card,
.start-choice-card,
.contact-options {
  background: linear-gradient(180deg, rgba(244,248,253,.98), rgba(233,241,251,.98));
  border: 1px solid rgba(23,58,120,.12);
  box-shadow: var(--shadow);
}

footer {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 62px 0 54px;
  background: none;
}
footer::before,
footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  clip-path: none;
  pointer-events: none;
}
footer::before {
  z-index: -2;
  background: linear-gradient(180deg, #234889 0%, #173a78 58%, #123265 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 -12px 28px rgba(17,38,78,.10);
}
footer::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 42%);
}
.footer-shell { position: relative; z-index: 1; }

@media (max-width: 920px) {
  body.soft-launch-page { --hero-image-offset: 90px; }
  .hero { padding: 24px 0 78px; }
  .hero::before { clip-path: none; }
  .nav-links.open { background: rgba(20,42,86,.96); border-color: rgba(255,255,255,.18); }
  .services-modern { padding-top: 26px; }
  .services-modern::before,
  .services-modern::after,
  footer::before,
  footer::after {
    top: 0;
    height: 100%;
    clip-path: none;
  }
  .services-modern .service-column + .service-column { border-left: 0; }
}

@media (max-width: 640px) {
  .hero { background: transparent; padding-bottom: 70px; }
  .hero-centered-inner { padding: 12px 0; }
}


/* Soft-launch home: use one continuous image behind header + hero.
   This removes the visible image jump where two separately-scaled copies met. */
body.soft-launch-page {
  position: relative;
  isolation: isolate;
}

body.soft-launch-page::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 680px;
  z-index: -3;
  pointer-events: none;
  background-image:
    var(--hero-blue-overlay),
    url("hero-splash.jpg");
  background-position:
    center,
    center top;
  background-size:
    auto,
    100vw auto;
  background-repeat: no-repeat;
  clip-path: none;
}

body.soft-launch-page header::before {
  display: block;
  background-image: url("hero-splash.jpg");
  background-position: center top;
  background-size: 100vw auto;
  background-repeat: no-repeat;
}

body.soft-launch-page .hero::before {
  background-image: none;
  background-color: transparent;
}

@media (max-width: 920px) {
  body.soft-launch-page::before {
    height: 630px;
    clip-path: none;
  }
}

@media (max-width: 640px) {
  body.soft-launch-page::before {
    height: 590px;
    background-size:
      auto,
      auto 590px;
    background-position:
      center,
      center top;
    clip-path: none;
  }

  body.soft-launch-page header::before {
    display: block;
    background-image: url("hero-splash.jpg");
    background-position: center top;
    background-size: auto 520px;
    background-repeat: no-repeat;
  }

  body.soft-launch-page .hero::before {
    display: none;
  }

  body.soft-launch-page { --hero-image-offset: 0px; }
}

/* Contact submit page: extend the aligned hero image through the short confirmation page */
body.contact-submit-page main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #173a78;
  color: #fff;
}

body.contact-submit-page main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--hero-image-offset));
  width: 100vw;
  height: calc(100% + var(--hero-image-offset));
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background-image:
    var(--hero-blue-overlay),
    url("hero-splash.jpg");
  background-position:
    center,
    var(--hero-bg-position);
  background-size:
    auto,
    var(--hero-bg-size);
  background-repeat: no-repeat;
}

body.contact-submit-page main > * {
  position: relative;
  z-index: 1;
}

body.contact-submit-page .hero {
  background: transparent;
}

body.contact-submit-page .hero::before {
  display: none;
}

/* Consistent hero-to-content transition for inner pages */
.it-hero-plain + .section.alt {
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin-top: 0;
  padding-top: 48px;
  background: none;
  border-top: 0;
}
.it-hero-plain + .section.alt::before,
.it-hero-plain + .section.alt::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  clip-path: none;
  pointer-events: none;
}
.it-hero-plain + .section.alt::before {
  z-index: -2;
  background:
    radial-gradient(circle at 14% 22%, rgba(79,111,217,.20), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(23,58,120,.12), transparent 24%),
    linear-gradient(180deg, #edf3fc 0%, #deebf8 52%, #d4e2f5 100%);
  box-shadow: none;
}
.it-hero-plain + .section.alt::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 42%);
}
.it-hero-plain + .section.alt > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 920px) {
  .it-hero-plain + .section.alt {
    margin-top: 0;
    padding-top: 48px;
  }
  .it-hero-plain + .section.alt::before,
  .it-hero-plain + .section.alt::after {
    clip-path: none;
  }
}

/* GrubbIT image branding */
.brand-logo,
.footer-brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  line-height: 1;
}
.brand-mark {
  width: clamp(190px, 18vw, 250px);
  height: auto;
}
.brand-tagline {
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .075em;
  white-space: nowrap;
}
.footer-logo {
  width: min(240px, 100%);
  height: auto;
}
.footer-brand-tagline {
  margin-top: 4px;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .075em;
}

/* On narrow screens the original 100vw-auto background became too shallow,
   exposing the page's grey-blue body background below it. Use cover so the
   hero image fills the complete mobile hero while retaining the blue overlay. */
@media (max-width: 640px) {
  header::before,
  .hero::before {
    background-size: auto, cover;
    background-position: center, center;
  }
  .hero::before {
    top: 0;
    height: 100%;
  }
  body.soft-launch-page { --hero-image-offset: 0px; }
  .brand-mark { width: 190px; }
  .brand-tagline { font-size: .58rem; letter-spacing: .055em; }
}
