/* =========================================================
   Galaxy Property Maintenance Solutions — Design System
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #e8eef8;
  --line: rgba(0, 24, 96, 0.12);
  --text: #666666;
  --text-dim: #666666;
  --text-heading: #333333;
  --brand: #2ea3f2;
  --brand-2: #0084e4;
  --brand-light: #2ea3f2;
  --brand-navy: #001860;
  --footer-bg: #ffffff;
  --accent: #2ea3f2;
  --grad: linear-gradient(120deg, #2ea3f2 0%, #0084e4 100%);
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 24, 96, 0.1);
  --font-head: "Open Sans", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

p { padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text-heading);
  line-height: 1em;
  letter-spacing: normal;
  font-weight: 500;
  padding-bottom: 10px;
}

h1 { font-size: 34px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

.lead {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  padding-bottom: 1em;
}

img, svg { display: block; }

.container {
  width: min(1080px, 80%);
  margin-inline: auto;
}

p { color: var(--text-dim); }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  padding: 0.3em 1em;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 132, 228, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 132, 228, 0.45); }

.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-navy);
}
.btn-ghost:hover { background: var(--bg-soft); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--brand-navy);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 24, 96, 0.18); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 24, 96, 0.06);
}

.site-header .container {
  width: min(1440px, 94%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-width: 0;
  margin-left: 2.5cm;
}

.logo-tagline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--brand-navy);
  white-space: nowrap;
}

.logo-tagline::before,
.logo-tagline::after {
  content: "";
  height: 2px;
  width: 30px;
  background: var(--brand);
  border-radius: 2px;
}

.logo-banner {
  display: inline-block;
  margin-top: 0.25rem;
  background: var(--brand-2);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 20px;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}

.logo-sectors {
  display: inline-block;
  margin-top: 0.2rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brand-navy);
}

.logo-icon {
  display: block;
  height: 58px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-house {
  display: block;
  height: 54px;
  width: auto;
  object-fit: contain;
}

.logo-name-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* compensate trailing letter-spacing so text centers */
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--brand-navy);
  margin-top: 0.15rem;
}

.logo-name-sub {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-right: -0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--brand-navy);
  white-space: nowrap;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(0.72rem, 1.15vw, 0.98rem);
  line-height: 1.18;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-navy);
  text-align: center;
}

.logo-tagline-img {
  display: block;
  margin-top: 0.35rem;
  height: 13px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  align-self: center;
}

.logo-on-dark {
  display: inline-flex;
  align-items: center;
}

.site-footer .logo-icon {
  height: 50px;
}

.site-footer .logo-name {
  color: var(--brand-navy);
}

.site-footer .logo-tagline-img {
  height: 12px;
  filter: none;
  opacity: 1;
}

.site-footer .logo-img {
  height: 92px;
}

.site-footer .logo-tagline {
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}
.main-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a.active {
  color: #333;
  font-weight: 600;
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.nav-dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.nav-dropdown-toggle:hover { color: var(--brand); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 120;
}
.nav-dropdown-menu.open,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-dim);
}
.nav-dropdown-menu a:hover {
  background: var(--bg-soft);
  color: var(--brand-navy);
}
.nav-dropdown-menu a.active {
  background: rgba(0, 132, 228, 0.1);
  color: var(--brand-navy);
  font-weight: 600;
}

/* Grouped services mega-menu — drops under the Services tab, services fly out beside each group */
.nav-dropdown-menu--mega {
  width: min(620px, 94vw);
  padding: 0.85rem;
}

.nav-mega-inner {
  width: 280px;
}

.nav-mega-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.nav-mega-heading::after {
  content: "›";
  font-size: 1.1rem;
  line-height: 1;
  color: #9aa8bf;
}

.nav-mega-group:hover .nav-mega-heading,
.nav-mega-group:focus-within .nav-mega-heading {
  background: var(--bg-soft);
  color: var(--brand);
}

.nav-mega-group:hover .nav-mega-heading::after,
.nav-mega-group:focus-within .nav-mega-heading::after {
  color: var(--brand);
}

/* Flyout sits in the empty area to the right of the group list */
/* Left edge must meet the group list exactly (280px + the menu's 0.85rem padding).
   Any gap between them drops :hover on the way across and the links become unclickable. */
.nav-mega-panel {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  left: calc(280px + 0.85rem);
  padding-left: 1.35rem;
  border-left: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.nav-mega-group:hover .nav-mega-panel,
.nav-mega-group:focus-within .nav-mega-panel {
  opacity: 1;
  visibility: visible;
}

.nav-mega-panel-title {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-navy);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-mega-links a {
  padding: 0.3rem 0.5rem;
  font-size: 14px;
  line-height: 1.3;
}

.home-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}
.home-intro .about-tagline {
  text-align: left;
  max-width: 28rem;
  margin-inline: auto;
}

.preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.preview-head h2 { margin: 0; }

.services-grid.services-grid--home {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) {
  .services-grid.services-grid--home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .services-grid.services-grid--home { grid-template-columns: 1fr; }
}

.service-card--image {
  padding: 0;
  overflow: hidden;
}
.service-card--image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-card--image .service-card-body {
  padding: 1.4rem 1.6rem 1.6rem;
}

.page-head {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.page-head .container { max-width: 42rem; }
.page-head h1 { font-size: 34px; margin-bottom: 0.75rem; }
.page-head p { font-size: 16px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-quote-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 16px;
  color: var(--brand-navy);
  transition: color 0.2s;
}
.header-phone:hover { color: var(--brand); }
.header-phone svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-cta {
  display: none;
}

body.nav-open {
  overflow: hidden;
}
.hero-slider {
  position: relative;
  overflow: hidden;
  height: clamp(340px, 52vh, 520px);
}
.hero-slides { height: 100%; position: relative; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 24, 96, 0.72) 0%, rgba(0, 24, 96, 0.35) 55%, rgba(0, 24, 96, 0.15) 100%);
  display: flex;
  align-items: center;
}
.hero-slide-content {
  max-width: 640px;
  color: #fff;
}
.hero-slide-content h1,
.hero-slide-content h2 {
  font-size: 34px;
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero-slide-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}
.hero-slide-content .btn-primary {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hero-dots button.active { background: #fff; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-navy);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.hero-arrow-prev { left: 1rem; }
.hero-arrow-next { right: 1rem; }

.page-banner {
  position: relative;
  height: clamp(220px, 32vh, 360px);
  background-size: cover;
  background-position: center;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 24, 96, 0.15) 0%, rgba(0, 24, 96, 0.35) 100%);
}

/* Full photo banners (About / Reviews / Contact) — show the whole image */
.page-banner--full {
  height: auto;
  background-image: none !important;
  background-color: #001860;
  overflow: hidden;
}
.page-banner--full img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.home-callback {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1000px) {
  .home-callback { grid-template-columns: 1fr; }
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 55%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.orb-1 {
  width: 480px; height: 480px;
  background: var(--brand);
  top: -160px; right: -100px;
}
.orb-2 {
  width: 420px; height: 420px;
  background: var(--brand-light);
  bottom: -180px; left: -120px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 132, 228, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 132, 228, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-copy .lead {
  font-size: 16px;
  margin: 1.2rem 0 1.8rem;
  max-width: 34rem;
}

.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}
.hero-trust span { font-size: 16px; color: var(--text-dim); }

/* Quote card */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
}
.quote-card h3 { font-size: 24px; margin-bottom: 0.3rem; }
.quote-card > p { font-size: 16px; margin-bottom: 1.3rem; }

.mini-form { display: flex; flex-direction: column; gap: 0.8rem; }

/* ---------- Forms (shared) ---------- */
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 132, 228, 0.15);
}
select { appearance: none; cursor: pointer; }
select option { background: var(--surface); color: var(--text); }
textarea { resize: vertical; }

.form-note {
  font-size: 16px;
  text-align: center;
  margin-top: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head {
  max-width: 42rem;
  margin: 0 auto 3.2rem;
  text-align: center;
}
.section-head p { margin-top: 0.9rem; }

/* ---------- What We Do (painting site layout) ---------- */
.section-what-we-do {
  background: #fff;
  border-block: none;
}

.what-we-do-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.what-we-do-head h2 {
  font-size: 32px;
  color: #2ea3f2;
  font-weight: 600;
}

.what-we-do-head h5 {
  font-size: 18px;
  color: #666;
  font-weight: 500;
  line-height: 1.7;
  padding-bottom: 0;
}

.what-we-do-panel {
  background: #f2f8fc;
  padding: 3.75rem 2.5rem 2.6rem;
}

.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.what-we-do-col {
  padding: 0 15px;
}

.what-we-do-col:not(:last-child) {
  border-right: 1px solid #d6d6d6;
}

.what-we-do-col h3 {
  font-size: 20px;
  color: #2ea3f2;
  font-weight: 600;
  margin-bottom: 0;
  padding: 0 0 12px;
  line-height: 1.4;
}

.what-we-do-list {
  list-style: none;
  background: transparent;
}

.what-we-do-list li {
  border: none;
  border-bottom: 1px solid #d6d6d6;
  background: transparent;
}

.what-we-do-list h4 {
  font-size: 18px;
  color: #6b6b6b;
  font-weight: 600;
  padding: 16px 0;
  margin: 0;
  line-height: 1.4;
}

.what-we-do-list a {
  display: block;
  color: #6b6b6b;
  transition: color 0.2s ease, background 0.2s ease;
}

.what-we-do-list a:hover {
  color: #2ea3f2;
  background: rgba(255, 255, 255, 0.55);
}

.what-we-do-list a:hover h4 {
  color: #2ea3f2;
}

.what-we-do-more {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 0;
}

.services-subhead {
  text-align: center;
  margin-bottom: 2rem;
}

.services-subhead h2 {
  font-size: 30px;
  color: #333;
}

.services-subhead p {
  font-size: 16px;
  color: #666;
  padding-bottom: 0;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 24, 96, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 132, 228, 0.45);
  box-shadow: var(--shadow);
}
.service-card h3 { margin: 1.1rem 0 0.5rem; font-size: 24px; color: #333; }
.service-card p { font-size: 16px; color: #666; }

a.service-card { display: block; color: inherit; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.2s ease;
}
.service-card:hover .card-more { gap: 0.65rem; color: var(--brand-navy); }

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 132, 228, 0.1);
  border: 1px solid rgba(0, 132, 228, 0.25);
  color: var(--brand);
}
.service-icon svg { width: 26px; height: 26px; }

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-tagline {
  margin: 1.8rem 0 2rem;
  padding: 1.5rem 1.8rem;
  border-left: 4px solid var(--brand);
  background: rgba(0, 132, 228, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-tagline p {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.about-tagline cite {
  display: block;
  font-family: var(--font-head);
  font-style: normal;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why-badges {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}
.why-badges img {
  height: 72px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--line);
}

.why-location {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 24, 96, 0.06);
}
.why-location-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.why-location-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.why-location-item strong {
  font-size: 16px;
}
.why-location-item a,
.why-location-item span {
  font-size: 16px;
  color: var(--text-dim);
}
.why-location-item a:hover { color: var(--brand); }

/* ---------- Split layout (Why us / Contact) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-copy h2 { margin-bottom: 1rem; }
.split-copy > p { margin-bottom: 1.6rem; }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 2rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-dim);
  font-size: 16px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  border-radius: 50%;
}
.check-list strong { color: var(--text); }

/* Media stack cards */
.media-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 24, 96, 0.06);
}
.media-card.big {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  padding: 2.4rem;
  gap: 1rem;
}
.media-card.big svg {
  width: 54px;
  height: 54px;
  color: var(--brand);
}
.media-card strong {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}
.media-card.big strong { font-size: 24px; line-height: 1.4; }
.media-card span { font-size: 16px; color: var(--text-dim); }
.media-card.accent { border-color: rgba(141, 198, 63, 0.45); background: rgba(141, 198, 63, 0.08); }
.media-card.accent strong { color: #6a9e2a; }

.split .steps {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 16px rgba(0, 24, 96, 0.06);
}
.step-num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.step h3 { margin: 0.9rem 0 0.5rem; }
.step p { font-size: 16px; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0, 24, 96, 0.06);
}
.stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; }
.testimonial blockquote {
  font-size: 16px;
  color: var(--text-dim);
  flex: 1;
}
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial figcaption strong { font-size: 16px; }
.testimonial figcaption span { font-size: 16px; color: var(--text-dim); }

.reviews-actions {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--grad);
  padding: 3.2rem 0;
}

.cta-banner--light {
  background: linear-gradient(180deg, #d4ecfc 0%, #2ea3f2 38%, #0084e4 68%, #001860 100%);
  border-block: none;
}

.cta-banner--light .cta-inner h2,
.cta-banner--light .cta-inner p {
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2, .cta-inner p { color: #fff; }
.cta-inner p { font-weight: 500; margin-top: 0.3rem; }

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-size: 16px; }
.contact-list a, .contact-list div span {
  font-size: 16px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.contact-list a:hover { color: var(--brand); }

.contact-ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(0, 132, 228, 0.1);
  border: 1px solid rgba(0, 132, 228, 0.25);
  color: var(--brand);
}
.contact-ico svg { width: 20px; height: 20px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding-top: 3.8rem;
  color: var(--text-dim);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.8rem;
}
.footer-brand p {
  font-size: 16px;
  margin-top: 0.75rem;
  max-width: 22rem;
  color: var(--text-dim);
}
.footer-tagline {
  font-family: var(--font-head);
  font-size: 16px !important;
  font-weight: 700;
  color: var(--brand-navy) !important;
  margin-top: 1rem !important;
}
.footer-sectors {
  font-size: 16px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand) !important;
  margin-top: 0.35rem !important;
  opacity: 1;
}
.footer-contact {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-contact p {
  margin: 0;
  line-height: 1.55;
}
.footer-contact strong {
  color: var(--brand-navy);
  font-weight: 600;
}
.footer-contact a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--brand); }
.footer-credentials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.footer-credentials li {
  font-size: 16px;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-self: end;
  text-align: right;
  min-width: 11rem;
}
.footer-col h4 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}
.footer-col a, .footer-col span {
  font-size: 16px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--text-dim);
}
.back-top { color: var(--brand); }
.back-top:hover { color: var(--brand-navy); }

/* ---------- Service detail pages ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 55%);
}
.page-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.page-hero h1 { font-size: 34px; }
.page-hero .lead { font-size: 16px; margin: 1.2rem 0 1.8rem; max-width: 32rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.page-hero-img img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

.badges {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.8rem;
}
.badges img {
  height: 84px;
  width: auto;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--line);
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: rgba(46, 163, 242, 0.08);
  border: 1px solid rgba(46, 163, 242, 0.25);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-top: 2.5rem;
}
.partner-card h3 { margin-bottom: 0.35rem; font-size: 24px; }
.partner-card p { font-size: 16px; max-width: 38rem; color: #666; }

/* ---------- Homepage work strip ---------- */
.work-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.work-strip figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.work-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.work-strip figure:hover img { transform: scale(1.05); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--brand-navy);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 200;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .what-we-do-grid { grid-template-columns: repeat(2, 1fr); }
  .what-we-do-col { border-right: none; }
  .what-we-do-col:nth-child(odd) { border-right: 1px solid #d6d6d6; }
  .what-we-do-col:nth-child(-n+2) {
    border-bottom: 1px solid #d6d6d6;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 2.8rem; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .work-strip { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .steps, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.8rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { margin-bottom: 0.5rem; }
  .footer-col {
    justify-self: start;
    text-align: left;
  }
  .header-phone span { display: none; }
}

@media (max-width: 1200px) {
  .site-header .logo-tagline-img { display: none; }

  .main-nav { gap: 1.1rem; }

  .main-nav a,
  .nav-dropdown-toggle {
    font-size: 15px;
  }

  .header-quote-btn {
    padding: 0.55rem 0.95rem;
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  .container {
    width: min(1080px, 92%);
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 0.75rem;
    padding: 0.7rem 0;
  }

  .site-header .logo {
    order: 1;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 0.2rem;
    align-items: center;
    margin-left: 0;
    padding: 0 3.25rem; /* balance hamburger so Galaxy sits visually centered */
    text-align: center;
  }

  .site-header .logo-icon {
    height: 44px;
  }

  .site-header .logo-img {
    height: 48px;
  }

  .site-header .logo-house {
    height: 40px;
  }

  .site-header .logo-name-main {
    font-size: 23px;
    letter-spacing: 0.28em;
    margin-right: -0.28em;
  }

  .site-header .logo-name-sub {
    font-size: 12px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .site-header .logo-tagline {
    font-size: 12px;
  }

  .site-header .logo-banner {
    font-size: 10.5px;
    padding: 4px 14px;
  }

  .site-header .logo-sectors {
    font-size: 9.5px;
  }

  .site-header .logo-text {
    align-items: center;
  }

  .site-header .logo-name {
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.035em;
    text-align: center;
  }

  .header-actions {
    order: 2;
    position: absolute;
    top: 0.7rem;
    right: 0;
    flex: 0 0 auto;
    margin-left: 0;
    z-index: 2;
  }

  .header-quote-btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: 0.15rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-dropdown:hover .nav-dropdown-menu:not(.open) {
    max-height: 0;
  }

  .main-nav {
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid transparent;
    transition: max-height 0.35s ease, border-color 0.2s ease;
  }

  .main-nav.open {
    max-height: min(78vh, 640px);
    overflow-y: auto;
    border-top-color: var(--line);
    -webkit-overflow-scrolling: touch;
  }

  .main-nav a,
  .nav-dropdown-toggle {
    font-size: 16px;
    white-space: normal;
  }

  .main-nav > a {
    display: block;
    padding: 0.95rem 0.25rem;
    border-top: 1px solid var(--line);
  }

  .nav-dropdown {
    border-top: 1px solid var(--line);
  }

  .nav-dropdown-toggle {
    width: 100%;
    padding: 0.95rem 0.25rem;
    justify-content: space-between;
    color: var(--text-dim);
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown-menu.open {
    max-height: 360px;
  }

  .nav-dropdown-menu a {
    padding: 0.85rem 0.25rem 0.85rem 1rem;
    border-top: 1px solid var(--line);
    border-radius: 0;
    font-size: 15px;
  }

  /* No room for a side flyout on mobile — stack the services under each group */
  .nav-dropdown-menu--mega,
  .nav-dropdown:hover .nav-dropdown-menu--mega {
    left: auto;
    width: auto;
    padding: 0;
    transform: none;
  }

  .nav-dropdown-menu--mega.open {
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-mega-inner {
    width: auto;
  }

  .nav-mega-heading {
    border-radius: 0;
    border-top: 1px solid var(--line);
    padding: 0.85rem 0.25rem 0.85rem 1rem;
    font-size: 15px;
  }

  .nav-mega-heading::after {
    content: none;
  }

  .nav-mega-panel,
  .nav-mega-group:hover .nav-mega-panel {
    position: static;
    padding-left: 0;
    border-left: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-mega-panel-title {
    display: none;
  }

  .nav-mega-links a {
    padding-left: 2rem;
    font-size: 14px;
    color: var(--text-dim);
  }

  .mobile-nav-cta {
    display: inline-flex;
    margin: 1rem 0 0.25rem;
    padding: 0.85rem 1.2rem;
    font-size: 16px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .site-header .logo-icon {
    height: 40px;
  }

  .site-header .logo-img {
    height: 40px;
  }

  .site-header .logo-house {
    height: 34px;
  }

  .site-header .logo-name-main {
    font-size: 19px;
    letter-spacing: 0.24em;
    margin-right: -0.24em;
  }

  .site-header .logo-name-sub {
    font-size: 10.5px;
  }

  .site-header .logo-tagline {
    font-size: 10px;
  }

  .site-header .logo-banner {
    font-size: 8.5px;
    padding: 3px 10px;
  }

  .site-header .logo-sectors {
    font-size: 8px;
  }

  .site-header .logo-name {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 680px) {
  .section-what-we-do { padding: 3.5rem 0; }

  .what-we-do-panel { padding: 2rem 1.25rem; }

  .what-we-do-col {
    padding: 0;
    border-right: none !important;
    border-bottom: 1px solid #d6d6d6;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .what-we-do-col:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .services-grid, .steps, .testimonials-grid { grid-template-columns: 1fr; }
  .what-we-do-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 0; }
  .hero { padding: 3.5rem 0; }
  .hero-trust { gap: 1.4rem 2rem; }
  .media-stack { grid-template-columns: 1fr; }
  .cta-inner { justify-content: center; text-align: center; }
}

/* =========================================================
   Flyer-style homepage: Our Services
   ========================================================= */

.flyer-services {
  padding-top: 1.5rem;
}

.flyer-services .container,
.flyer-strip-section .container {
  width: min(1440px, 94%);
}

.flyer-services-banner {
  background: var(--brand-navy);
  color: #fff;
  width: fit-content;
  margin: 0 auto 1.6rem;
  padding: 0.55rem 4.5rem;
  clip-path: polygon(3.5% 0, 100% 0, 96.5% 100%, 0 100%);
}

.flyer-services-banner h2 {
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
}

.flyer-services-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 2rem 1.5rem;
}

.flyer-service-list {
  list-style: none;
  padding: 0 1.25rem;
}

.flyer-service-list + .flyer-service-list {
  border-left: 1px solid var(--line);
}

.flyer-service-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
  padding: 0.42rem 0;
}

.svc-ico {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--brand-2);
  color: #fff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   Flyer-style photo strip
   ========================================================= */

.flyer-strip-section {
  padding: 1rem 0 3.5rem;
}

.flyer-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
}

.flyer-strip figure {
  margin: 0;
}

.flyer-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.flyer-strip figcaption {
  text-align: center;
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.45rem;
}

/* =========================================================
   Flyer-style footer
   ========================================================= */

.flyer-footer {
  /* Exact navy sampled from the flyer so extracted icons blend in */
  background: #011f51;
  color: #fff;
  padding-top: 0;
  border-top: none;
}

.footer-badges-band {
  padding: 1.9rem 0 1.4rem;
}

.footer-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-badge-img {
  flex-shrink: 0;
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}

.footer-badge-text {
  line-height: 1.35;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.footer-badge-text strong {
  display: block;
  color: #fff;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-cred-strip {
  padding: 0.4rem 0 1.4rem;
}

.footer-cred-strip .container {
  width: min(1440px, 94%);
}

.footer-cred-inner {
  background: #fff;
  color: var(--brand);
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding: 0.7rem 3.5rem;
  font-weight: 600;
  font-size: 15.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.footer-cred-divider {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: #a9b7cf;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.footer-contactbar {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.3rem 0;
}

.footer-contactbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem 2.5rem;
  flex-wrap: wrap;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.footer-ci-img {
  flex-shrink: 0;
  display: block;
  width: auto;
  height: 21px;
  object-fit: contain;
}

.footer-ci-pin {
  height: 26px;
}

a.footer-contact-item:hover {
  color: var(--brand);
}

.footer-contact-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

/* Mobile and office numbers share the same weight in the footer. */
.footer-contact-phone,
.footer-contact-office {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-ci-svg {
  flex-shrink: 0;
  display: block;
  width: auto;
  height: 21px;
}

.footer-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-phone-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.footer-social-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

.footer-social-link:hover {
  background: #fff;
  color: var(--brand-navy);
  border-color: #fff;
}

.footer-tagline-strip {
  /* Bright blue sampled from the flyer's bottom band */
  background: #054eb4;
  padding: 0.6rem 0;
}

.footer-tagline-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.footer-tagline-text {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.55em;
}

.footer-tagline-text::before,
.footer-tagline-text::after {
  content: "";
  height: 2px;
  width: 80px;
  background: #fff;
  border-radius: 2px;
}

.footer-tagline-text::after {
  margin-left: -0.55em; /* offset trailing letter-spacing so both lines sit evenly */
}

.footer-copyright {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 992px) {
  .flyer-services-panel {
    grid-template-columns: 1fr 1fr;
    row-gap: 1.5rem;
  }

  .flyer-service-list:nth-child(3) {
    border-left: none;
  }

  .flyer-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-badges {
    justify-content: center;
  }

  .footer-contactbar-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-contact-links,
  .footer-contact-phones {
    align-items: center;
  }

}

@media (max-width: 680px) {
  .flyer-services-panel {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
  }

  .flyer-service-list {
    padding: 0;
  }

  .flyer-service-list + .flyer-service-list {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
  }

  .flyer-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .footer-cred-inner {
    border-radius: 16px;
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }

  .footer-cred-divider {
    display: none;
  }

  .footer-contactbar-inner {
    flex-direction: column;
  }
}

/* =========================================================
   Services page — brochure layout
   ========================================================= */

.brochure-page-inner {
  width: min(1440px, 94%);
}

.brochure-page {
  padding: 2rem 0 2.5rem;
}

.brochure-page .flyer-services-banner {
  margin-bottom: 1.25rem;
}

/* =========================================================
   Home page — intro banner
   ========================================================= */

.home-trades-banner {
  border-block: none;
  text-align: center;
  /* Neutral scrim concentrated behind the copy, so the photos stay bright out at
     the edges and only darken where text needs contrast. Regenerate the photo
     with _pdf_render/build-home-montage.mjs */
  background-image:
    radial-gradient(ellipse 76% 104% at 50% 50%,
      rgba(0, 0, 0, 0.74) 0%,
      rgba(0, 0, 0, 0.52) 55%,
      rgba(0, 0, 0, 0.16) 100%),
    url("images/home-trades.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.home-trades-banner-inner {
  max-width: 52rem;
  margin-inline: auto;
}

.home-trades-banner h2 { color: #fff; }
.home-trades-banner .lead { color: rgba(255, 255, 255, 0.88); }

/* Brand gradient lightened so the heading holds contrast against the navy scrim */
.home-trades-banner .grad-text {
  background: linear-gradient(120deg, #8fd0ff 0%, #35a9f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Home page — service group highlights
   ========================================================= */

.home-groups-intro {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  color: #5a6b85;
  font-size: 1.05rem;
  text-align: center;
}

.home-groups-list {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.home-group {
  display: grid;
  grid-template-columns: minmax(0, 44%) 1fr;
  gap: 2.25rem;
  align-items: center;
}

/* Alternate the photo side so the page reads as a zig-zag */
.home-group:nth-child(even) .home-group-media {
  grid-column: 2;
  grid-row: 1;
}

.home-group:nth-child(even) .home-group-body {
  grid-column: 1;
  grid-row: 1;
}

.home-group-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 324 / 295;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(1, 31, 81, 0.14);
}

.home-group-body h3 {
  color: #011f51;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
}

.home-group-body p {
  margin-top: 0.6rem;
  color: #5a6b85;
  font-size: 1rem;
  line-height: 1.6;
}

.home-group-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #0084e4;
  font-weight: 700;
}

.home-group-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.home-group-link:hover {
  color: #011f51;
}

.home-group-link:hover::after {
  transform: translateX(3px);
}

.home-groups-cta {
  margin-top: 2.75rem;
  text-align: center;
}

@media (max-width: 768px) {
  .home-group,
  .home-group:nth-child(even) .home-group-media,
  .home-group:nth-child(even) .home-group-body {
    grid-column: 1;
  }

  .home-group {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .home-group:nth-child(even) .home-group-media {
    grid-row: 1;
  }

  .home-group:nth-child(even) .home-group-body {
    grid-row: 2;
  }
}

/* Category quick-links above the grouped grids */
.service-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 2rem;
}

.service-jump a {
  padding: 0.45rem 0.95rem;
  border: 1px solid #d8e0ef;
  border-radius: 999px;
  background: #fff;
  color: #011f51;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-jump a:hover {
  background: #011f51;
  border-color: #011f51;
  color: #fff;
}

.service-group {
  margin-bottom: 2.75rem;
  /* Clear the sticky header so the group title is visible on arrival */
  scroll-margin-top: calc(var(--header-h, 6rem) + 1.75rem);
}

/* .reveal slides its target up by 26px as it fades in, which lands an anchored
   group that much too high — under the sticky header. Fade these without moving. */
.service-group.reveal {
  transform: none;
}

.service-group:last-child {
  margin-bottom: 0;
}

.service-group-head {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e4eaf5;
}

.service-group-title {
  color: #011f51;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.service-group-desc {
  margin-top: 0.25rem;
  color: #5a6b85;
  font-size: 15px;
}

.service-group-ext {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 14px;
  padding: 0.55rem 1rem;
}

/* Galaxy Painting Group external link chip */
.gpg-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.7rem 1.05rem 0.7rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0084e4 0%, #2ea3f2 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 132, 228, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.gpg-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(0, 132, 228, 0.35);
  color: #fff !important;
}
.gpg-link-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.gpg-link-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.gpg-link-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}
.gpg-link-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.gpg-link-name {
  font-size: 14px;
  font-weight: 800;
}
.gpg-link-arrow {
  margin-left: 0.15rem;
  font-weight: 800;
  opacity: 0.9;
}

.home-group-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.35rem;
}
.home-group-actions .home-group-link {
  margin-top: 0;
}
.home-group-actions .gpg-link {
  margin-top: 0;
}

.footer-gpg {
  margin-top: 0.55rem;
}
.footer-gpg .gpg-link {
  margin-top: 0;
  background: linear-gradient(135deg, #2ea3f2 0%, #4bb8ff 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.footer-gpg .gpg-link:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.brochure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: #fff;
  align-items: start;
}

.brochure-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem 2rem;
}

.brochure-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #031646;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.35rem 0;
}

.brochure-list-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #0084e4;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.brochure-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  min-width: 0;
}

.brochure-card-photo {
  flex: 1 1 auto;
  overflow: hidden;
  background: #e8eef8;
}

.brochure-card-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.brochure-card-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #031646;
  padding: 0.42rem 0.5rem;
  min-height: 38px;
  flex-shrink: 0;
}

.brochure-card-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #0084e4;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brochure-card-title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(8px, 0.72vw, 11px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brochure-tile-img {
  display: block;
  width: 100%;
  height: auto;
}

.brochure-card--full {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0.5cm 0 1cm;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(1, 31, 81, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brochure-card--full:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(1, 31, 81, 0.16);
}

/* Source crops vary in size — lock every tile to one ratio so rows stay even */
.brochure-tile-photo {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
  aspect-ratio: 324 / 295;
  object-fit: cover;
  object-position: center;
}

/* Keep the ladder at the right edge of the painting photo in frame */
.brochure-tile-photo[src*="01-painting"] {
  object-position: 100% center;
}

.brochure-tile-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.2cm 0.35rem 0;
  min-height: 0.75cm;
  line-height: 1.15;
  text-align: center;
}

.brochure-tile-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #0084e4;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.brochure-tile-title {
  color: #011f51;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brochure-tile-full {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* Value propositions band */
.brochure-values {
  background: #011f51;
  padding: 2rem 0;
}

.brochure-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
}

.brochure-value {
  text-align: center;
  color: #fff;
}

.brochure-value-icon {
  display: block;
  width: 77px;
  height: 77px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.brochure-value h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.brochure-value p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

/* Insurance panel */
.brochure-insurance {
  padding: 1.75rem 0 2rem;
  background: #fff;
}

.brochure-insurance-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 1.1fr;
  gap: 0;
  border: 1px solid #d8e0ef;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.brochure-insurance-col {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-right: 1px solid #d8e0ef;
}

.brochure-insurance-col:last-child {
  border-right: none;
}

.brochure-insurance-img {
  flex-shrink: 0;
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
}

.brochure-insurance-img--shield {
  height: 78px;
}

.brochure-insurance-copy {
  min-width: 0;
}

.brochure-insurance-col--shield strong {
  display: block;
  color: #011f51;
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.05;
}

.brochure-insurance-col--shield span {
  display: block;
  margin-top: 0.2rem;
  color: #011f51;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brochure-insurance-sub {
  display: block;
  color: #0084e4;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brochure-insurance-col--workcover strong {
  display: block;
  margin-top: 0.1rem;
  color: #011f51;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.brochure-insurance-col--liability {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
}

.brochure-insurance-col--liability strong {
  display: block;
  color: #011f51;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.brochure-insurance-amount {
  color: #2ea3f2;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Closing strip (brochure footer) */
.brochure-closing {
  background: #054eb4;
  padding: 0.75rem 0;
}

.brochure-closing-inner {
  width: min(1440px, 94%);
  text-align: center;
}

.brochure-closing-text {
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.brochure-closing-text strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brochure-closing-text em {
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brochure-closing-divider {
  opacity: 0.7;
}

@media (max-width: 1200px) {
  .brochure-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .brochure-card-title {
    font-size: 9px;
  }

  .brochure-card-label {
    min-height: 34px;
    padding: 0.35rem 0.4rem;
  }

  .brochure-card-num {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .brochure-tile-num {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .brochure-tile-title {
    font-size: 15.5px;
  }

  .brochure-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brochure-insurance-panel {
    grid-template-columns: 1fr;
  }

  .brochure-insurance-col {
    border-right: none;
    border-bottom: 1px solid #d8e0ef;
  }

  .brochure-insurance-col:last-child {
    border-bottom: none;
  }
}

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

  .brochure-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .brochure-values-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .brochure-closing-text {
    flex-direction: column;
    gap: 0.25rem;
  }

  .brochure-closing-divider {
    display: none;
  }
}

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

  .brochure-list {
    grid-template-columns: 1fr;
  }
}
