/*
  Grice Systems - main stylesheet
  Fire alarm & security work, blue/silver look.
  Shared across every page. Page-specific stuff lives in location.css / blog.css.
*/

/* Fonts are loaded from the HTML <head> (async, non-render-blocking) rather
   than @import here, which used to stall first paint. */

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

/* colors, fonts and a few sizing knobs all live here so they're easy to tweak */
:root {
  --blue: #2a6fb0;
  --blue-light: #5a9fd4;
  --blue-bright: #68b5e8;
  --blue-pale: #e8f2fa;
  --blue-dark: #1e3a5f;
  --blue-deep: #0f2440;
  --silver: #b8c4d0;
  --silver-light: #d5dde6;
  --silver-dark: #8a9aad;
  --steel: #4a5a6a;
  --charcoal: #1c2836;
  --graphite: #2a3848;
  --slate: #3a4a5a;
  --off-white: #f4f7fa;
  --white: #ffffff;
  --text-primary: #1c2836;
  --text-body: #4a5a6a;
  --text-muted: #5f6e7e;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1200px;
  --radius: 6px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* headings + body copy */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text-body); }

/* buttons - primary is the blue one we use most */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,196,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--graphite); transform: translateY(-2px); }

/* thin dark strip above the header with phone + email */
.top-bar { background: var(--charcoal); color: var(--silver); font-size: 0.82rem; padding: 8px 0; letter-spacing: 0.02em; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--silver-light); transition: color var(--transition); }
.top-bar a:hover { color: var(--blue-bright); }
.top-bar-contact { display: flex; gap: 20px; align-items: center; }

/* sticky header + logo - shadow deepens once you scroll (see .scrolled) */
.header { background: var(--white); border-bottom: 1px solid var(--silver-light); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.05); transition: box-shadow var(--transition); }
.header.scrolled { box-shadow: 0 6px 28px rgba(0,0,0,0.12); }
.header .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 106px; position: relative; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--charcoal); display: flex; align-items: center; gap: 12px; flex-shrink: 0; z-index: 2; }
.logo-img { height: 80px; width: auto; }

/* main nav sits centered between the logo and the CTA */
.nav { display: flex; align-items: center; gap: 12px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav a { padding: 8px 18px; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--steel); border-radius: var(--radius); transition: var(--transition); }
.nav a:hover, .nav a.active { color: var(--blue); background: var(--blue-pale); }
/* the call + contact buttons, kept together on the right */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; z-index: 2; margin-left: auto; }
.header-cta { padding: 10px 24px; background: var(--blue); color: var(--white); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.header-cta:hover { background: var(--blue-light); }
.nav-mobile-cta { display: none; }
.nav-top, .nav-contact { display: none; } /* menu chrome, only shows in the mobile drawer */

/* click-to-call - ghost button so it reads as secondary next to Contact */
.header-call { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--silver-light); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--charcoal); transition: var(--transition); white-space: nowrap; }
.header-call svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 2; }
.header-call:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
/* tablet band - the nav is still centered here, so shrink the call button to its icon */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-call span { display: none; }
  .header-call { padding: 10px; }
}

/* services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: '▾'; margin-left: 4px; font-size: 0.7em; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 240px; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,0.1); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); z-index: 100; border: 1px solid var(--silver-light); }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.88rem; border-radius: 0; }
.dropdown-menu a:hover { background: var(--blue-pale); }

/* mobile menu button */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 26px; height: 2.5px; background: var(--charcoal); border-radius: 2px; transition: var(--transition); }

/* home page hero - big image with a dark gradient over it */
.hero { position: relative; padding: 118px 0 0; overflow: hidden; background: var(--blue-deep); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0, #21436c 0%, #0f2440 60%); opacity: 0.9; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 600px; margin-bottom: 32px; }
.hero-label { display: inline-block; color: var(--blue-bright); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 22px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* centered hero content */
.hero-centered { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-centered p { margin-left: auto; margin-right: auto; }
.hero-centered .hero-buttons { justify-content: center; }

/* stats bar pinned to the bottom edge of the hero */
.hero-stats { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-bottom: none; border-radius: 18px 18px 0 0; overflow: hidden; }
.hero-stats > div { padding: 30px 18px; text-align: center; }
.hero-stats > div + div { border-left: 1px solid rgba(255,255,255,0.1); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--blue-bright); line-height: 1; }
.hero-stats span { display: block; margin-top: 8px; font-size: 0.86rem; color: rgba(255,255,255,0.62); }
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:nth-child(3) { border-left: none; }
  .hero-stats > div:nth-child(3), .hero-stats > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1); }
}

/* shorter hero used on the inner pages */
.page-hero { padding: 100px 0 70px; position: relative; overflow: hidden; background: var(--blue-deep); }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,36,64,0.9) 0%, rgba(30,58,95,0.8) 60%, rgba(59,130,196,0.5) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 600px; }

/* generic section spacing + the little eyebrow label/heading combo */
section { padding: 80px 0; }
.section-label { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 14px; }
.section-heading { margin-bottom: 16px; }
.section-desc { color: var(--text-muted); max-width: 600px; font-size: 1.05rem; margin-bottom: 48px; }

/* service cards - the grid of what we do, with a blue bar that slides in on hover */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.service-card { background: var(--white); border-radius: 10px; padding: 36px 28px; border: 1px solid var(--silver-light); transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--blue); border-radius: 10px; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(59,130,196,0.1); }
.service-icon { width: 56px; height: 56px; background: var(--blue-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 16px; }
.service-card .card-link { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.service-card .card-link:hover { gap: 10px; }

/* the big number row (years, 24/7, etc) */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 60px 0; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* text-next-to-image layout, collapses to one column on tablets */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col-text h2 { margin-bottom: 16px; }
.two-col-text p { margin-bottom: 20px; }
.feature-list { margin: 24px 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 0.95rem; color: var(--text-body); }
.feature-list li svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--blue); fill: none; stroke-width: 2; margin-top: 2px; }

/* framed image with the little blue corner accent */
.section-img { border-radius: 10px; overflow: hidden; position: relative; box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.section-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-img-landscape { aspect-ratio: 16/10; }
.section-img-square { aspect-ratio: 1/1; }
.section-img::after { content: ''; position: absolute; bottom: -2px; right: -2px; width: 60px; height: 60px; border-bottom: 4px solid var(--blue); border-right: 4px solid var(--blue); border-radius: 0 0 10px 0; pointer-events: none; }

/* call-to-action banners - one plain, one with a background image */
.cta-banner { background: var(--blue-deep); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(59,130,196,0.15), transparent 70%); }
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-banner .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-banner-img { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.cta-banner-img .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-banner-img .cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,36,64,0.9), rgba(30,58,95,0.85)); }
.cta-banner-img .container { position: relative; z-index: 2; }
.cta-banner-img h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner-img p { color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 32px; font-size: 1.05rem; }
/* every CTA button row, whatever section it sits in, gets even spacing */
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* the "our values" cards (centered icon on top) */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.value-card { padding: 32px 24px; background: var(--white); border-radius: 10px; border: 1px solid var(--silver-light); text-align: center; transition: var(--transition); }
.value-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(59,130,196,0.08); }
.value-card h3 { margin-bottom: 10px; color: var(--text-primary); font-size: 1.1rem; }
.value-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }
.value-icon { width: 52px; height: 52px; margin: 0 auto 16px; background: var(--blue-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.value-icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 2; }

/* checklist-style benefit items */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.benefit-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--white); border-radius: 8px; border: 1px solid var(--silver-light); transition: var(--transition); }
.benefit-item:hover { box-shadow: 0 4px 16px rgba(59,130,196,0.08); }
.benefit-item svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--blue); fill: none; stroke-width: 2; margin-top: 3px; }
.benefit-item span { font-size: 0.95rem; color: var(--text-body); }

/* contact page - info column on the left, form on the right */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: stretch; }
.contact-form { order: -1; display: flex; flex-direction: column; }
.contact-form form { display: flex; flex-direction: column; flex: 1; }
.contact-form .form-group:last-of-type { flex: 1; display: flex; flex-direction: column; }
.contact-form .form-group:last-of-type textarea { flex: 1; }
.contact-info { display: flex; flex-direction: column; }
.contact-info .section-img { flex: 1 1 auto; margin-top: 16px; }
.contact-info .section-img-landscape { aspect-ratio: auto; min-height: 220px; }
.contact-info .section-img img { height: 100%; }
.contact-info-block { margin-bottom: 32px; }
.contact-info-block h3 { margin-bottom: 8px; color: var(--text-primary); font-size: 1.1rem; }
.contact-info-block p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }
.contact-info-block a { color: var(--blue); transition: color var(--transition); }
.contact-info-block a:hover { color: var(--blue-light); }
.contact-form { background: var(--white); padding: 40px; border-radius: 10px; border: 1px solid var(--silver-light); box-shadow: 0 8px 32px rgba(0,0,0,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--silver-light); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; color: var(--text-primary); background: var(--off-white); transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,196,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* numbered "how it works" steps - number comes from a CSS counter */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 24px; counter-reset: step; }

/* fixed column counts to keep these icon grids balanced (no orphan rows) -
   defined after the grids above so they win on equal specificity */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.process-step { padding: 28px 24px; background: var(--white); border-radius: 10px; border: 1px solid var(--silver-light); counter-increment: step; position: relative; padding-top: 56px; transition: var(--transition); }
.process-step:hover { box-shadow: 0 8px 24px rgba(59,130,196,0.08); }
.process-step::before { content: counter(step, decimal-leading-zero); position: absolute; top: 24px; left: 24px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: rgba(59,130,196,0.25); }
.process-step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.process-step p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }

/* footer */
.footer { background: var(--charcoal); padding: 64px 0 0; color: var(--silver); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer h3 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; color: var(--silver-dark); }
.footer a { display: block; font-size: 0.9rem; color: var(--silver-dark); padding: 4px 0; transition: color var(--transition); }
.footer a:hover { color: var(--blue-bright); }
.footer-bottom { border-top: 1px solid var(--slate); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--silver-dark); }

/* long list of service-area links at the bottom, separated by dots */
.footer-areas {
  border-top: 1px solid var(--slate);
  padding: 32px 0;
  margin-bottom: 0;
}
.footer-areas h3 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.footer-areas-list a {
  display: inline;
  font-size: 0.78rem;
  color: var(--silver-dark);
  padding: 0;
  transition: color var(--transition);
}
.footer-areas-list a:hover { color: var(--blue-bright); }
.footer-areas-list a:not(:last-child)::after {
  content: ' · ';
  color: var(--slate);
}
/* collapsed by default: the extra areas hide behind the "view all" button */
.footer-areas-list .area-extra { display: none; }
.footer-areas-list.expanded .area-extra { display: inline; }
.footer-areas-list:not(.expanded) .area-edge::after { content: ''; }
.footer-areas-toggle {
  margin-top: 16px;
  background: none;
  border: 1px solid var(--slate);
  color: var(--silver-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.footer-areas-toggle:hover { border-color: var(--blue-bright); color: var(--blue-bright); }

/* breakpoints - 1024 handles the two-column layouts, 768 is where the mobile menu kicks in */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-cta { display: none; }
  /* the click-to-call now lives in the top bar, so drop the header icon */
  .header-call { display: none; }
  /* logo starts big and centered, then shrinks to the top-left as you scroll.
     only transform is animated (GPU-composited) so the motion stays smooth, and
     the header keeps a fixed height so nothing reflows mid-scroll */
  .header .container { height: 88px; gap: 8px; }
  .logo { position: absolute; top: 50%; left: 24px; transform-origin: left center;
          transform: translateY(-50%) translateX(calc(50vw - 105px)) scale(1.35);
          transition: transform 0.35s ease; will-change: transform; }
  .logo-img { height: 60px; }
  .header.scrolled .logo { transform: translateY(-50%) scale(1); }
  .hamburger { padding: 10px; gap: 5px; margin-right: -6px; }
  .hamburger span { width: 25px; }
  .nav { position: fixed; top: 0; right: -100%; left: auto; width: min(87vw, 340px); height: 100vh; height: 100dvh; flex-direction: column; background: var(--white); padding: 0; box-shadow: -10px 0 40px rgba(0,0,0,0.2); transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1); align-items: stretch; gap: 0; z-index: 1101; transform: none; overflow-y: auto; }
  .nav.open { right: 0; }

  /* drawer top bar - sits above the links, replaces the hamburger */
  .nav-top { display: flex; align-items: center; justify-content: space-between; background: var(--charcoal); padding: 18px 22px; position: sticky; top: 0; z-index: 1; }
  .nav-top-label { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--silver-light); }
  .nav-close { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: rgba(255,255,255,0.08); border: none; border-radius: 8px; color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; line-height: 1; cursor: pointer; transition: background var(--transition); }
  .nav-close .nav-close-x { font-size: 1.4rem; }
  .nav-close:hover { background: rgba(255,255,255,0.18); }

  .nav a { display: flex; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--silver-light); font-size: 1.02rem; color: var(--steel); border-radius: 0; }
  .nav a:hover, .nav a.active { background: var(--blue-pale); color: var(--blue); }
  .nav-dropdown > a::after { margin-left: auto; }

  /* services submenu stays expanded on mobile (no hover on touch) */
  .nav .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; padding: 0; min-width: auto; background: var(--off-white); }
  .nav .dropdown-menu a { padding: 13px 22px 13px 40px; font-size: 0.92rem; color: var(--text-body); }

  .nav .nav-mobile-cta { display: block; margin: 18px 22px; text-align: center; justify-content: center; padding: 14px 24px; background: var(--blue); color: var(--white); border-radius: var(--radius); font-weight: 600; border-bottom: none; }
  .nav .nav-mobile-cta:hover { background: var(--blue-light); color: var(--white); }

  /* contact block at the bottom - the info from the hidden desktop top bar */
  .nav-contact { display: block; margin-top: auto; background: var(--charcoal); padding: 22px; }
  .nav-serving { font-size: 0.78rem; line-height: 1.55; color: var(--silver); margin-bottom: 14px; }
  .nav-contact a { display: block; padding: 6px 0; border: none; color: var(--silver-light); font-size: 0.98rem; font-weight: 600; }
  .nav-contact a:hover { background: none; color: var(--blue-bright); }
  .hero { padding: 100px 0 80px; }
  .page-hero { padding: 70px 0 50px; }
  section { padding: 56px 0; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  /* slim brand-gradient call bar that stays attached to the header and sticks with it */
  .top-bar { display: block; height: 38px; padding: 0; position: sticky; top: 0; z-index: 1001; background: linear-gradient(135deg, #2a6fb0, #68b5e8); }
  .top-bar .container { height: 38px; display: flex; align-items: center; justify-content: center; gap: 0; }
  .top-bar .container > span { display: none; }
  .top-bar-contact { gap: 0; }
  .top-bar-contact a[href^="mailto"] { display: none; }
  .top-bar-contact a[href^="tel"], .top-bar a:hover { color: var(--white); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; }
  /* the header sits directly under the sticky bar, so the two scroll as one unit;
     it stays just below the top bar in z-order so the logo never paints over it */
  .header { top: 38px; }
  /* when the menu is open, drop the top bar under the drawer so 'See Less' shows */
  body.nav-locked .top-bar { z-index: 998; }
  .section-img::after { width: 40px; height: 40px; }
}

/* dark backdrop behind the open mobile menu */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition); }
.nav-overlay.open { opacity: 1; visibility: visible; }
body.nav-locked { overflow: hidden; } /* stop the page scrolling behind an open menu */

/* little fade-up entrance, staggered with the delay helpers */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-d1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-d2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-d3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-d4 { animation-delay: 0.4s; opacity: 0; }

/* on mobile, stack CTA buttons full-width so they never crowd or touch each other */
@media (max-width: 768px) {
  .cta-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
}
