@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ══════════════════════════════════════════
   DESIGN TOKENS — Glass colour palette
   ══════════════════════════════════════════ */
:root {
  /* Core glass palette */
  --navy:       #0d2d45;
  --navy-mid:   #1a4568;
  --blue:       #2a7ab8;
  --blue-light: #4fa3d8;
  --sky:        #c8e6f5;
  --ice:        #e8f4fb;
  --frost:      #f4f9fd;
  --white:      #ffffff;

  /* Glass effects */
  --glass-bg:      rgba(255,255,255,0.55);
  --glass-border:  rgba(79,163,216,0.25);
  --glass-shadow:  0 8px 32px rgba(13,45,69,0.12);

  /* Text */
  --text-dark:   #0d2d45;
  --text-mid:    #2d5572;
  --text-light:  #7099b5;
  --text-muted:  #a8c4d8;

  /* Accents */
  --accent:      #2a7ab8;
  --accent-dark: #1a5a8f;
  --accent-warm: #e8732a;   /* CTA orange — pops on blue */

  --radius:  6px;
  --nav-h:   72px;
  --max:     1280px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: var(--blue-light); color: var(--white); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ice); }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 3px; }

/* ── TYPE ── */
h1,h2,h3,h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.1;
  color: var(--navy);
}
p { color: var(--text-mid); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ── */
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 6rem); }

/* ══════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a { color: var(--sky); transition: color .2s; }
.topbar a:hover { color: white; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.5rem; }

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--sky);
  box-shadow: 0 2px 12px rgba(13,45,69,0.06);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.logo-img--footer {
  height: 60px;
  filter: brightness(0) invert(1);  /* white version for dark footer */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--ice);
  color: var(--navy);
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: 0.7rem; opacity: .6; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--sky);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  border-radius: 0;
  transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--ice); color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-phone {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 850;
  background: var(--white);
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ice);
}
.mobile-nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-mid);
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .22s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-warm);
  color: white;
}
.btn-primary:hover { background: #d0621f; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,115,42,.35); }
.btn-blue {
  background: var(--accent);
  color: white;
}
.btn-blue:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--sky);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--ice); }
.btn-white {
  background: white;
  color: var(--navy);
}
.btn-white:hover { background: var(--ice); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding-inline: 0;
  gap: 0.4rem;
}
.btn-ghost:hover { gap: 0.7rem; }
.btn svg { flex-shrink: 0; transition: transform .2s; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #1e5f8a 100%);
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: grid;
  place-items: center;
}
/* Glass shards decorative */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(79,163,216,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(200,230,245,.08) 0%, transparent 60%);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,163,216,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,163,216,.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
  width: min(var(--max), 100% - 2.5rem);
}
.hero-content { color: white; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79,163,216,.2);
  border: 1px solid rgba(79,163,216,.4);
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: white;
  margin-bottom: 1.1rem;
  line-height: 1.08;
}
.hero h1 em { color: var(--sky); font-style: italic; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  max-width: 46ch;
}
.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Glass card on right side of hero */
.hero-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
}
.hero-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sky);
}
.service-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.sel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  background: var(--ice);
  border: 1.5px solid var(--sky);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all .2s;
}
.sel-btn .icon { font-size: 1.4rem; }
.sel-btn:hover, .sel-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.hero-card .btn { width: 100%; justify-content: center; }
.hero-card-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}
.hero-card-note a { color: var(--blue); text-decoration: underline; }

/* ══════════════════════════════════════════
   STATS BAND
   ══════════════════════════════════════════ */
.stats-band {
  background: var(--ice);
  border-bottom: 1px solid var(--sky);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--sky);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   SERVICES TABS (Speedy Glass style)
   ══════════════════════════════════════════ */
.services-section { background: var(--white); }
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.services-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--sky);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 0;
}
.services-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 0.9rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tab-visual {
  background: var(--ice);
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tab-visual-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.18;
}
.tab-visual-icon { font-size: 7rem; }
.tab-visual-label {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
}
.tab-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,163,216,.12), rgba(13,45,69,.05));
}
.tab-content {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.tab-content h3 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}
.tab-content > p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 48ch;
}
.service-list-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.65rem;
}
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}
.service-list li {
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.service-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
}
.tab-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   SERVICES CARD GRID (for services page)
   ══════════════════════════════════════════ */
.services-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--sky);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.svc-card:hover {
  box-shadow: 0 8px 30px rgba(13,45,69,.12);
  transform: translateY(-3px);
}
.svc-card-visual {
  height: 160px;
  background: linear-gradient(135deg, var(--ice), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.svc-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(13,45,69,.08));
}
.svc-card-body { padding: 1.4rem; }
.svc-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.svc-card-body p {
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}
.svc-card-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}
.svc-card-body li {
  font-size: 0.83rem;
  color: var(--text-mid);
  display: flex; align-items: center; gap: 0.4rem;
}
.svc-card-body li::before {
  content: '✓';
  font-size: 0.7rem;
  color: var(--blue);
  font-weight: 700;
}

/* ══════════════════════════════════════════
   WHY US
   ══════════════════════════════════════════ */
.why-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
}
.why-section .section-title { color: white; }
.why-section .section-label { color: var(--sky); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.why-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 1.75rem;
  transition: background .25s;
}
.why-card:hover { background: rgba(255,255,255,.1); }
.why-icon {
  width: 48px; height: 48px;
  background: rgba(79,163,216,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.why-card h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.why-card p {
  color: rgba(255,255,255,.65);
  font-size: 0.88rem;
  max-width: none;
}

/* ══════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════ */
.cta-banner {
  background: var(--accent-warm);
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { color: white; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-banner p { color: rgba(255,255,255,.85); margin-top: 0.35rem; }

/* ══════════════════════════════════════════
   PORTFOLIO
   ══════════════════════════════════════════ */
.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--sky);
  background: transparent;
  color: var(--text-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 4px;
}
.port-item {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--ice);
  cursor: pointer;
  border-radius: 4px;
}
.port-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  font-size: 2.5rem;
  opacity: 0.2;
}
.port-placeholder span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .7;
}
.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,45,69,.8) 0%, transparent 55%);
  opacity: 0;
  display: flex; align-items: flex-end;
  padding: 1rem;
  transition: opacity .3s;
}
.port-item:hover .port-overlay { opacity: 1; }
.port-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
}
.port-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.port-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-close {
  position: fixed; top: 1.5rem; right: 2rem;
  color: rgba(255,255,255,.6); font-size: 2rem;
  cursor: pointer; transition: color .2s; z-index: 10001;
}
.lb-close:hover { color: white; }
.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: white; width: 48px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer; z-index: 10001;
  transition: background .2s;
}
.lb-arrow:hover { background: var(--blue); }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-ph {
  width: min(80vw, 700px);
  aspect-ratio: 4/3;
  background: var(--navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; font-size: 6rem; opacity: .15;
  border-radius: 4px;
}
.lb-caption {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 0.85rem; text-align: center;
}

/* Spinner */
.spinner {
  display: none; width: 36px; height: 36px;
  border: 3px solid var(--sky);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2.5rem auto 0;
}
.spinner.on { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 0.75rem; }
.contact-info > p { margin-bottom: 2rem; }
.info-card {
  background: var(--ice);
  border: 1px solid var(--sky);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: white;
}
.info-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.2rem;
}
.info-text span, .info-text a {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.emergency-box {
  background: linear-gradient(135deg, #fff3f0, #fff8f5);
  border: 1.5px solid #f5b89e;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}
.emergency-box strong {
  display: block;
  color: var(--accent-warm);
  font-size: 0.8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.emergency-box p { font-size: 0.88rem; max-width: none; }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--sky);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 4px 20px rgba(13,45,69,.06);
}
.form-head {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sky);
}
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-light);
}
.field input, .field textarea, .field select {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--frost);
  border: 1.5px solid var(--sky);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue);
  background: white;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select option { background: white; }

/* ══════════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 80% 50%, rgba(79,163,216,.15) 0%, transparent 70%);
}
.page-hero-inner { position: relative; }
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--sky); }
.breadcrumb span { opacity: .4; }
.page-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,.7); max-width: 52ch; }

/* ══════════════════════════════════════════
   SERVICE DETAIL
   ══════════════════════════════════════════ */
.detail-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}
.detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.feat-card {
  background: var(--ice);
  border: 1px solid var(--sky);
  border-radius: 8px;
  padding: 1.25rem;
}
.feat-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.feat-card p { font-size: 0.85rem; max-width: none; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--sky);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(13,45,69,.07);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.sidebar-card h4 { margin-bottom: 1rem; font-size: 1.05rem; }
.other-services-list { list-style: none; }
.other-services-list li + li { border-top: 1px solid var(--sky); }
.other-services-list a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0;
  font-size: 0.88rem; color: var(--text-mid);
  transition: color .2s;
}
.other-services-list a:hover { color: var(--blue); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}
.footer-brand .logo { color: white; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.88rem; max-width: 30ch; }
.footer-col h5 {
  font-family: 'DM Serif Display', serif;
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--sky); }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Responsive helper grids ── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ══════════════════════════════════════════
   RESPONSIVE — comprehensive breakpoints
   ══════════════════════════════════════════ */

/* ── Tablet landscape / small desktop (≤1100px) ── */
@media (max-width: 1100px) {
  /* Footer: compress to 2+2 */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Why grid: 3 col */
  .why-grid { grid-template-columns: repeat(3, 1fr); }

  /* Services card grid: 2 col */
  .services-card-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tab panels: stack */
  .tab-panel.active { grid-template-columns: 1fr; }
  .tab-visual { min-height: 260px; }
  .tab-content { padding: 2rem; }

  /* Service detail: stack */
  .detail-grid { grid-template-columns: 1fr; }
  .detail-features { grid-template-columns: repeat(2, 1fr); }
  .sidebar-card { position: static; margin-top: 0; }

  /* Contact: stack */
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Tablet portrait (≤900px) ── */
@media (max-width: 900px) {
  /* Hide full nav, show hamburger */
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }

  /* Hero: single col, centred */
  .hero-inner {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
    text-align: center;
  }
  .hero-content { text-align: center; }
  .hero-eyebrow { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .hero-sub { max-width: none; margin-inline: auto; }
  .hero-card { display: none; }

  /* Stats: 2×2 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--sky); }
  .stat-item:last-child { border-bottom: none; }

  /* How-we-work: stack */
  .two-col-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Why: 2 col */
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  /* Services card grid: 2 col */
  .services-card-grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA: stack */
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner > div:last-child { justify-content: center; }

  /* Topbar: show only right side */
  .topbar-left { display: none; }
  .topbar .container { justify-content: flex-end; }
}

/* ── Mobile landscape / large phone (≤768px) ── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Nav tightening */
  .logo-img { height: 40px; }
  nav { height: var(--nav-h); }

  /* Hero */
  .hero { min-height: auto; padding-block: 0; }
  .hero-inner { padding-block: 3rem 2.5rem; gap: 2rem; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-sub { font-size: 0.95rem; }

  /* Stats: 2 col, remove dividers */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 1.5rem 1rem; }
  .stat-num { font-size: 2rem; }

  /* Services tabs: scroll horizontally, smaller text */
  .tab-btn { padding: 0.75rem 1rem; font-size: 0.82rem; }
  .tab-visual { min-height: 200px; }
  .tab-content { padding: 1.5rem; }
  .service-list { grid-template-columns: 1fr; gap: 0.35rem; }
  .tab-actions { gap: 0.5rem; }

  /* Why: 2 col (keep) */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .why-card { padding: 1.25rem; }

  /* Services card page: 1 col */
  .services-card-grid { grid-template-columns: 1fr; }

  /* Portfolio grid: tighter */
  .port-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 4px;
  }
  .port-item { height: 160px; }

  /* Detail features: 1 col */
  .detail-features { grid-template-columns: 1fr; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand p { max-width: none; }

  /* Page hero */
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: clamp(1.75rem, 6vw, 2.4rem); }

  /* Section headings */
  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }

  /* Sidebar detail page */
  .sidebar-card { padding: 1.25rem; }
}

/* ── Small phone (≤480px) ── */
@media (max-width: 480px) {
  .container { width: calc(100% - 2rem); }

  /* Nav */
  .nav-inner { gap: 0.75rem; }
  .nav-actions { gap: 0.5rem; }
  /* Hide quote button on very small, keep phone + hamburger */
  .nav-actions .btn-primary { display: none; }

  /* Hero */
  .hero-inner { padding-block: 2.5rem 2rem; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-btns { flex-direction: column; gap: 0.6rem; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Stats: 2 col */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why: 1 col */
  .why-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-banner { padding: 2.5rem 0; }
  .cta-inner > div:last-child { flex-direction: column; width: 100%; }
  .cta-inner .btn { width: 100%; justify-content: center; }

  /* Footer: full width cols */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  footer { padding: 2.5rem 0 1.25rem; }

  /* Portfolio */
  .port-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }

  /* Services tabs */
  .services-tabs { gap: 0; }
  .tab-btn { padding: 0.6rem 0.85rem; font-size: 0.78rem; }

  /* Section padding */
  .section { padding-block: clamp(2.5rem, 6vw, 4rem); }

  /* How we work + any two-col layout */
  .two-col-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .three-col-grid { grid-template-columns: 1fr !important; }

  /* Service detail why cards on services page */
  .detail-features { gap: 0.75rem; }
  .feat-card { padding: 1rem; }
  .feat-card h4 { font-size: 0.9rem; }

  /* Topbar: hide entirely on small */
  .topbar { display: none; }

  /* Contact */
  .info-card { padding: 1rem; }
  .emergency-box { padding: 1rem 1.25rem; }
}

/* ── Extra small (≤360px) ── */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.7rem; }
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tab-btn { padding: 0.55rem 0.7rem; font-size: 0.74rem; }
}

/* ══════════════════════════════════════════
   MOBILE TOUCH & OVERFLOW FIXES
   ══════════════════════════════════════════ */
/* Prevent horizontal scroll on all pages */
html, body { max-width: 100%; overflow-x: hidden; }

/* Tap targets: minimum 44px height on mobile interactive elements */
@media (max-width: 768px) {
  .btn { min-height: 44px; }
  .tab-btn { min-height: 44px; }
  .hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .sel-btn { min-height: 72px; }
  /* Prevent sub-nav buttons wrapping oddly */
  .nav-actions .btn-primary { white-space: nowrap; }
  /* Mobile nav full-height backdrop */
  .mobile-nav { z-index: 950; }
  /* Ensure images don't overflow on service detail pages */
  .detail-features img, .port-item img { max-width: 100%; }
  /* CTA banner text centred on mobile */
  .cta-banner { text-align: center; }
  .cta-inner { align-items: center; }
  /* Fix contact grid gap on mobile */
  .contact-grid { gap: 2rem; }
}

@media (max-width: 480px) {
  /* Port grid aspect ratio on small screens */
  .port-item { height: 140px; }
  /* Ensure form doesn't overflow */
  .form input, .form textarea, .form select { font-size: 16px; /* prevents iOS zoom */ }
  /* Hero eyebrow wrap nicely */
  .hero-eyebrow { font-size: 0.7rem; padding: 0.3rem 0.7rem; text-align: center; }
  /* Service selector on hero card (hidden on mobile but just in case) */
  .service-selector { grid-template-columns: repeat(2, 1fr); }
}
