/* ==========================================================================
   5 STAR PLUMBING & SEWER — Master Stylesheet
   ========================================================================== */

:root {
  --navy: #0a2942;
  --navy-dark: #071b2e;
  --navy-light: #123a5c;
  --blue: #146ca8;
  --blue-light: #eaf3fa;
  --gold: #f0ab1c;
  --gold-dark: #cf8e0e;
  --red: #d8402f;
  --red-dark: #b12f21;
  --ink: #1b2733;
  --gray: #56677a;
  --gray-light: #8296a8;
  --bg-soft: #f5f8fb;
  --bg-soft-2: #eef2f6;
  --white: #ffffff;
  --border: #e1e8ef;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(10, 41, 66, 0.07);
  --shadow-md: 0 10px 30px rgba(10, 41, 66, 0.12);
  --shadow-lg: 0 22px 60px rgba(10, 41, 66, 0.18);
  --ff-head: "Poppins", "Segoe UI", sans-serif;
  --ff-body: "Inter", "Segoe UI", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { color: var(--gray); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(240, 171, 28, 0.12);
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.eyebrow.on-dark { color: var(--gold); background: rgba(240, 171, 28, 0.16); }
.eyebrow i { font-size: 0.7rem; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

.section { padding: 96px 0; }
.section.tight { padding: 70px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: #cfe0ee; }
.bg-navy h2, .bg-navy h3, .bg-navy h1 { color: var(--white); }
.bg-navy p { color: #b9cbdc; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--navy-dark); box-shadow: 0 10px 24px rgba(240, 171, 28, 0.35); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(240, 171, 28, 0.45); }
.btn-red { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; box-shadow: 0 10px 24px rgba(216, 64, 47, 0.35); }
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(216, 64, 47, 0.45); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #a9bfd3;
  font-size: 0.85rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #cfe0ee; transition: color 0.2s; }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); margin-right: 6px; width: 14px; text-align: center; }
.topbar .stars { color: var(--gold); letter-spacing: 2px; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.topbar-social a:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  /* No backdrop-filter here on purpose: filter/backdrop-filter creates a
     new containing block for position:fixed descendants, which would trap
     the full-screen mobile nav overlay (.main-nav.mobile-open, a fixed
     descendant of this header) inside the header's own small box instead
     of letting it cover the viewport. */
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 18px rgba(10,41,66,0.08);
  transition: padding 0.25s ease;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--ff-head); font-weight: 800; font-size: 1.28rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-name span { color: var(--gold-dark); }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); font-weight: 600; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.mobile-nav-close { display: none; }
.main-nav a {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { background: var(--blue-light); color: var(--blue); }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--gold);
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: flex; align-items: center; gap: 10px; }
.nav-phone .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-phone-text { line-height: 1.1; }
.nav-phone-text small { display: block; font-size: 0.68rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; }
.nav-phone-text a { font-family: var(--ff-head); font-weight: 700; color: var(--navy); font-size: 1rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 30px; background: none; border: none; }
.hamburger span { display: block; height: 3px; border-radius: 2px; background: var(--navy); transition: 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Logo (SVG) ---------- */
.logo-mark { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 140px 0 110px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 65%, #051422 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(240,171,28,0.14), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(20,108,168,0.35), transparent 45%);
  pointer-events: none;
}
.hero-pipe-deco {
  position: absolute; right: -80px; top: -60px; width: 480px; opacity: 0.12; pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.14rem; color: #c6d7e6; max-width: 540px; margin-bottom: 32px; }
.hero-badges { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 12px; }
.hero-badge .num { font-family: var(--ff-head); font-weight: 800; font-size: 1.5rem; color: var(--gold); }
.hero-badge .lbl { font-size: 0.78rem; color: #9fb6c9; line-height: 1.2; }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,0.08); }
.hero-media-tag {
  position: absolute; bottom: -22px; left: -22px; background: #fff; color: var(--navy);
  padding: 16px 20px; border-radius: 14px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; max-width: 250px;
}
.hero-media-tag .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.hero-media-tag strong { display: block; font-family: var(--ff-head); font-size: 0.95rem; }
.hero-media-tag span { font-size: 0.78rem; color: var(--gray); }

/* small inner-page hero */
.hero.hero-sm { padding: 76px 0 74px; }
.hero.hero-sm .hero-grid { grid-template-columns: 1fr; text-align: center; }
.hero.hero-sm p.lead { margin: 0 auto 10px; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: 0.85rem; color: #9fb6c9; margin-bottom: 18px; }
.breadcrumb a { color: #cfe0ee; } .breadcrumb a:hover { color: var(--gold); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border); padding: 26px 0; }
.trust-strip .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--navy); font-family: var(--ff-head); font-weight: 600; font-size: 0.92rem; }
.trust-item i { color: var(--gold-dark); font-size: 1.3rem; }

/* ---------- Service Cards ---------- */
.grid-5 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-card .thumb { position: relative; height: 210px; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .num-badge {
  position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10,41,66,0.85); color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 0.95rem; backdrop-filter: blur(4px);
}
.service-card .body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.service-card .icon-chip { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.94rem; margin-bottom: 18px; flex: 1; }
.service-card .more { font-family: var(--ff-head); font-weight: 600; font-size: 0.88rem; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.service-card .more i { transition: transform 0.2s; }
.service-card:hover .more i { transform: translateX(5px); }

/* ---------- Feature list ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature-item { display: flex; gap: 16px; }
.feature-item .ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; background: var(--gold); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.feature-item h4 { margin-bottom: 6px; font-size: 1.05rem; }
.feature-item p { font-size: 0.92rem; margin: 0; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split-media .float-card {
  position: absolute; bottom: -26px; right: -26px; background: var(--navy); color: #fff; border-radius: 14px;
  padding: 20px 24px; box-shadow: var(--shadow-lg); text-align: center;
}
.split-media .float-card .big { font-family: var(--ff-head); font-weight: 800; font-size: 2.1rem; color: var(--gold); }
.split-media .float-card small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #b9cbdc; margin-top: 2px; }

/* ---------- Stats ---------- */
.stats-bar { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .n { font-family: var(--ff-head); font-weight: 800; font-size: 2.6rem; color: var(--gold); display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.stat .l { color: #b9cbdc; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.process-step { position: relative; padding: 30px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.process-step .step-n { font-family: var(--ff-head); font-weight: 800; font-size: 2.2rem; color: rgba(20,108,168,0.15); position: absolute; top: 14px; right: 20px; }
.process-step .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.testi-stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 3px; }
.testi-card p.quote { color: var(--ink); font-size: 0.98rem; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-weight: 700; }
.testi-author strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testi-author span { font-size: 0.78rem; color: var(--gray); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 22px; padding: 54px 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: 0 30px 60px rgba(240,171,28,0.28);
}
.cta-band h2, .cta-band h3 { color: var(--navy-dark); margin-bottom: 8px; }
.cta-band p { color: rgba(10,41,66,0.75); margin: 0; }
.cta-band-inner { max-width: 600px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; font-family: var(--ff-head); font-weight: 600; color: var(--navy); }
.faq-q i { color: var(--blue); transition: transform 0.25s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 24px; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 22px; }
.faq-a p { margin: 0; font-size: 0.94rem; }

/* ---------- Service detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 34px; }
.detail-body h2 { margin-top: 34px; margin-bottom: 14px; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 16px; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--ink); }
.check-list i { color: #1f9d55; margin-top: 4px; }
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.sidebar-card h4 { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--bg-soft-2); }
.sidebar-services { display: flex; flex-direction: column; gap: 4px; }
.sidebar-services a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--navy); transition: background 0.2s; }
.sidebar-services a:hover, .sidebar-services a.active { background: var(--blue-light); color: var(--blue); }
.sidebar-card.emergency { background: linear-gradient(150deg, var(--navy), var(--navy-dark)); color: #fff; text-align: center; }
.sidebar-card.emergency h4 { color: #fff; border-color: rgba(255,255,255,0.15); }
.sidebar-card.emergency p { color: #b9cbdc; font-size: 0.9rem; margin-bottom: 18px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,41,66,0.85) 0%, rgba(10,41,66,0) 55%);
  display: flex; align-items: flex-end; padding: 20px; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: 0.95rem; }
.gallery-overlay i { position: absolute; top: 16px; right: 16px; color: #fff; background: rgba(255,255,255,0.2); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.lightbox { position: fixed; inset: 0; background: rgba(4,14,24,0.92); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-caption { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; color: #cfe0ee; font-size: 0.95rem; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background 0.2s; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--navy-dark); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Service Area ---------- */
.area-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.area-tags span { background: #fff; border: 1px solid var(--border); padding: 10px 20px; border-radius: 30px; font-size: 0.88rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.area-tags i { color: var(--gold-dark); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px; }
.contact-info-card h3 { color: #fff; }
.contact-line { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-line:last-of-type { border-bottom: none; }
.contact-line .ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(240,171,28,0.15); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-line strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.contact-line span, .contact-line a { color: #b9cbdc; font-size: 0.92rem; }
.contact-line a:hover { color: var(--gold); }
.contact-hours { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); }
.contact-hours .row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 6px 0; color: #cfe0ee; }
.contact-hours .row strong { color: #fff; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); font-family: var(--ff-head); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.95rem; color: var(--ink); transition: border 0.2s, box-shadow 0.2s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,108,168,0.12); }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: var(--red); }
.form-error { font-size: 0.78rem; color: var(--red); min-height: 16px; }
.form-note { font-size: 0.8rem; color: var(--gray-light); margin-top: 12px; text-align: center; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; }
.form-success i { font-size: 3rem; color: #1f9d55; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 10px; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Values / About page ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 22px; box-shadow: var(--shadow-sm); }
.value-card .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 18px; }

.timeline { display: flex; flex-direction: column; gap: 0; position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.timeline-item { display: flex; gap: 24px; padding-bottom: 40px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--ff-head); font-weight: 700; flex-shrink: 0; z-index: 1; box-shadow: 0 0 0 6px #fff; }
.timeline-content h4 { margin-bottom: 6px; }
.timeline-content span.yr { font-size: 0.78rem; color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #9fb6c9; padding-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { color: #8ba3b8; font-size: 0.9rem; margin: 16px 0 20px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06); color: #cfe0ee; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; color: #9fb6c9; transition: color 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--gold); }
.footer-col a i { font-size: 0.7rem; color: var(--gold-dark); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: #9fb6c9; margin-bottom: 14px; }
.footer-contact i { color: var(--gold); margin-top: 3px; width: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.82rem; color: #71889c; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #9fb6c9; } .footer-bottom a:hover { color: var(--gold); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold); border: none; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 450; background: var(--navy-dark); padding: 12px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,0.25); }
.mobile-call-bar .row { display: flex; gap: 10px; }
.mobile-call-bar a { flex: 1; text-align: center; padding: 13px; border-radius: 10px; font-family: var(--ff-head); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mobile-call-bar .call { background: var(--gold); color: var(--navy-dark); }
.mobile-call-bar .quote { background: rgba(255,255,255,0.1); color: #fff; }

/* ---------- Reveal animation ----------
   Progressive enhancement: content is visible by default so it never
   depends on JavaScript running. Only when the "js" class has been set
   on <html> (by an inline script that runs before paint) do .reveal
   elements start hidden, ready to be faded in by script.js. This means
   JS errors, blockers, slow connections, or search engine crawlers that
   skip script execution all still see full content immediately. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 140px 0; }
.error-page .code { font-family: var(--ff-head); font-weight: 800; font-size: 7rem; color: var(--gold); line-height: 1; }
.error-page h1 { margin: 10px 0 14px; }

/* ---------- Badges row (about credentials) ---------- */
.badge-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.badge-pill { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); padding: 12px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
.badge-pill i { color: var(--gold-dark); font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .nav-phone-text { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-media { margin-top: 20px; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 76px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .main-nav.mobile-open {
    display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--navy-dark);
    flex-direction: column; padding: 100px 30px 30px; gap: 6px; z-index: 600; overflow-y: auto;
  }
  .main-nav.mobile-open a { color: #fff; font-size: 1.1rem; padding: 16px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0; }
  .main-nav.mobile-open a:hover, .main-nav.mobile-open a.active { color: var(--gold); background: none; }
  .mobile-nav-close { display: none; }
  .main-nav.mobile-open .mobile-nav-close {
    display: flex; position: absolute; top: 24px; right: 24px; width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff; align-items: center; justify-content: center; font-size: 1.2rem;
  }
}

@media (max-width: 720px) {
  .grid-5, .process-grid, .value-grid, .testi-grid, .feature-grid, .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 40px 26px; flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
  .topbar-right .topbar-social { display: none; }
}
