/* =============================================================
   COAST LINE LOCATING — GLOBAL STYLESHEET
   Lightweight, single-file. Color tokens extracted from the
   badge logo. Type system: Barlow / Barlow Semi Condensed
   (Caltrans highway-signage heritage — fits the utility brand).
   ============================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand — pulled directly from the logo */
  --navy:         #031A33;  /* COAST LINE wordmark + badge border */
  --navy-700:     #0A2440;  /* lighter navy for cards on navy */
  --slate-ink:    #121B24;  /* underground band — darkest sections */
  --orange:       #E06F17;  /* CTA / accent — the pipe + signal color */
  --orange-bright:#F4811F;  /* hover */
  --orange-deep:  #C75E0E;  /* active / shadow */
  --teal:         #0E7385;  /* "UTILITY LOCATING" — secondary accent / links */
  --teal-soft:    #39868F;
  --sky:          #A5C9DC;  /* logo sky */
  --mist:         #CCE0E9;  /* light wash */

  /* Neutrals */
  --white:        #FFFFFF;
  --paper:        #F6F9FB;  /* page background */
  --paper-2:      #EEF3F7;  /* alt section */
  --line:         #DCE5EC;  /* hairlines */
  --ink:          #1A2530;  /* body text */
  --ink-soft:     #4A5965;  /* muted text */

  /* Typographic + layout scale */
  --font-display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --font-body:    "Barlow", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw:         1180px;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(3,26,51,.06), 0 12px 32px -12px rgba(3,26,51,.18);
  --shadow-lg:    0 24px 60px -20px rgba(3,26,51,.35);
  --ring:         0 0 0 3px rgba(224,111,23,.35);
}

/* ---------- RESET ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--orange); }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  font-weight: 800;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); text-transform: uppercase; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Section eyebrow label */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--orange); display: inline-block;
}

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--mist); }
.section--navy h1,.section--navy h2,.section--navy h3 { color: var(--white); }
.section--ink { background: var(--slate-ink); color: var(--sky); }
.center { text-align: center; }
.measure { max-width: 720px; }
.measure.center { margin-inline: auto; }

/* ---------- BUTTONS ---------- */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.02rem;
  padding: .92rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  line-height: 1;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active { transform: translateY(1px); }

/* Primary = logo orange, the high-visibility CTA */
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(224,111,23,.6);
}
.btn--primary:hover { background: var(--orange-bright); color:#fff; transform: translateY(-2px); }

/* Call button variant */
.btn--call { background: var(--orange); color:#fff; }
.btn--call:hover { background: var(--orange-bright); color:#fff; }

/* Secondary outline (on light) */
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color:#fff; }

/* Outline on dark */
.btn--ghost-light { background: transparent; color:#fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background:#fff; color: var(--navy); }

.btn--lg { font-size: 1.12rem; padding: 1.05rem 1.9rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- HEADER / NAV ---------- */
.topbar {
  background: var(--navy);
  color: var(--mist);
  font-size: .88rem;
  font-weight: 500;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; padding-block: 6px;
}
.topbar a { color: var(--white); font-weight: 600; white-space: nowrap; }
.topbar a:hover { color: var(--orange-bright); }
.topbar .dim { color: var(--sky); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 52px; width: auto; }
@media (min-width: 900px){ .brand img { height: 58px; } }

.nav { display: none; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .95rem;
  color: var(--navy);
  padding: .35rem 0;
  position: relative;
}
.nav a::after {
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background: var(--orange); transition: width .2s ease;
}
.nav a:hover { color: var(--orange); }
.nav a:hover::after { width:100%; }

.header-cta { display: none; }

/* Dropdown for Services */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 580px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity:0; visibility:hidden; transition: opacity .18s ease, transform .18s ease;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity:1; visibility:visible; transform: translateX(-50%) translateY(0);
}
.drop a {
  text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .92rem;
  color: var(--ink); padding: .55rem .7rem; border-radius: 8px;
}
.drop a::after { display:none; }
.drop a:hover { background: var(--paper-2); color: var(--orange); }

/* Mobile menu (CSS-only toggle) */
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content:center;
  width: 46px; height: 42px; padding: 9px 10px; background: var(--navy);
  border:0; border-radius: 9px; cursor: pointer;
}
.menu-toggle span { height: 3px; background:#fff; border-radius: 2px; transition: .2s; }
.nav-checkbox { position: absolute; opacity: 0; pointer-events: none; }

.mobile-panel {
  display: none;
  background:#fff; border-bottom: 1px solid var(--line);
}
.nav-checkbox:checked ~ .mobile-panel { display: block; }
.mobile-panel ul { padding: 10px 0; }
.mobile-panel a {
  display:block; padding: 13px 22px; font-family: var(--font-display);
  font-weight:600; text-transform: uppercase; letter-spacing:.03em; color: var(--navy);
  border-bottom: 1px solid var(--paper-2);
}
.mobile-panel a:hover { background: var(--paper); color: var(--orange); }
.mobile-panel .sub { padding-left: 38px; font-size:.92rem; text-transform:none; letter-spacing:0; color: var(--ink-soft); }
.mobile-panel .mobile-call { margin: 14px 22px; }

@media (min-width: 980px){
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-panel { display: none !important; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; color:#fff; overflow:hidden;
  background:
    linear-gradient(180deg, rgba(3,26,51,.86) 0%, rgba(3,26,51,.93) 55%, var(--slate-ink) 100%);
  isolation: isolate;
}
.hero::before {
  /* subtle topographic / underground-line texture */
  content:""; position:absolute; inset:0; z-index:-1; opacity:.5;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(14,115,133,.35), transparent 38%),
    radial-gradient(circle at 82% 12%, rgba(165,201,220,.18), transparent 42%);
}
.hero::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:120px; z-index:-1;
  background:
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(224,111,23,.10) 60px 62px);
  -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent,#000);
}
.hero .container { padding-block: clamp(64px, 11vw, 132px); }
.hero h1 { color:#fff; max-width: 16ch; }
.hero .lead { color: var(--sky); max-width: 54ch; }
.hero-badge {
  display:inline-flex; align-items:center; gap:.5rem; background: rgba(14,115,133,.22);
  border:1px solid rgba(165,201,220,.35); color: var(--mist);
  padding:.4rem .9rem; border-radius:999px; font-weight:600; font-size:.85rem;
  text-transform:uppercase; letter-spacing:.1em; margin-bottom:1.2rem;
}
.hero-actions { display:flex; flex-wrap:wrap; gap: .9rem; margin-top: 1.7rem; }

.trust-row {
  display:grid; grid-template-columns: repeat(2,1fr); gap: 1px;
  background: rgba(255,255,255,.12); border-radius: var(--radius); overflow:hidden;
  margin-top: 2.6rem;
}
@media(min-width:760px){ .trust-row { grid-template-columns: repeat(4,1fr); } }
.trust-row div { background: rgba(3,26,51,.55); padding: 1.1rem 1rem; text-align:center; }
.trust-row b { display:block; font-family: var(--font-display); font-size:1.6rem; color: var(--orange-bright); }
.trust-row span { font-size:.82rem; color: var(--sky); text-transform:uppercase; letter-spacing:.06em; }

/* ---------- SERVICE GRID ---------- */
.grid { display:grid; gap: 22px; }
.grid--3 { grid-template-columns: 1fr; }
@media(min-width:680px){ .grid--3 { grid-template-columns: repeat(2,1fr);} }
@media(min-width:980px){ .grid--3 { grid-template-columns: repeat(3,1fr);} }

.card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  display:flex; flex-direction:column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--mist); }
.card h3 { margin-bottom:.4rem; }
.card h3 a { color: var(--navy); }
.card:hover h3 a { color: var(--orange); }
.card p { color: var(--ink-soft); flex:1; margin-bottom: 1rem; }
.card .more { font-family: var(--font-display); font-weight:700; text-transform:uppercase; letter-spacing:.04em; font-size:.85rem; color: var(--orange); }
.card .ic {
  width:48px; height:48px; border-radius:12px; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--teal), var(--navy)); color:#fff; margin-bottom: 1rem;
}
.card .ic svg { width:26px; height:26px; }

/* ---------- FEATURE / WHY ---------- */
.stat-grid { display:grid; gap: 22px; grid-template-columns: 1fr; }
@media(min-width:680px){ .stat-grid { grid-template-columns: repeat(2,1fr);} }
@media(min-width:980px){ .stat-grid { grid-template-columns: repeat(4,1fr);} }
.stat {
  background: var(--navy-700); border:1px solid rgba(165,201,220,.18);
  border-radius: var(--radius); padding: 1.6rem;
}
.stat b { font-family: var(--font-display); font-size: 2.6rem; color: var(--orange-bright); display:block; line-height:1; }
.stat h3 { color:#fff; margin:.6rem 0 .4rem; }
.stat p { color: var(--sky); margin:0; font-size:.96rem; }

/* ---------- SERVICE AREA ---------- */
.chips { display:flex; flex-wrap:wrap; gap:.6rem; }
.chip {
  background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:.5rem 1.05rem; font-weight:600; font-size:.95rem; color: var(--navy);
}
.chip:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- CTA / FORM BLOCK ---------- */
.cta-split { display:grid; gap: 30px; grid-template-columns: 1fr; align-items:center; }
@media(min-width:900px){ .cta-split { grid-template-columns: 1.05fr .95fr; } }

.form-card {
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.4rem; border-top: 5px solid var(--orange);
}
.form-card h3 { color: var(--navy); }
/* GHL embed placeholder */
.ghl-embed {
  min-height: 460px; border:2px dashed var(--mist); border-radius: var(--radius-sm);
  display:grid; place-items:center; text-align:center; color: var(--ink-soft);
  background: var(--paper); padding: 1.5rem; font-size:.95rem;
}
.ghl-embed code { background:#fff; border:1px solid var(--line); padding:.15rem .4rem; border-radius:6px; color: var(--teal); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--slate-ink); color: var(--sky); padding: 56px 0 30px; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--orange-bright); }
.foot-grid { display:grid; gap: 32px; grid-template-columns: 1fr; }
@media(min-width:760px){ .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid h4 { color:#fff; font-size:1rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:1rem; }
.foot-grid img { height:64px; width:auto; margin-bottom:1rem; }
.foot-grid li { margin-bottom:.5rem; }
.foot-bottom {
  border-top:1px solid rgba(165,201,220,.18); margin-top:36px; padding-top:20px;
  font-size:.85rem; color:#7c98a8; display:flex; flex-wrap:wrap; gap:.6rem; justify-content:space-between;
}

/* ---------- STICKY MOBILE CLICK-TO-CALL ---------- */
.sticky-call {
  position: fixed; left:0; right:0; bottom:0; z-index: 60;
  background: var(--orange);
  box-shadow: 0 -6px 20px rgba(3,26,51,.3);
  display: flex;
}
.sticky-call a {
  flex:1; display:flex; align-items:center; justify-content:center; gap:.55rem;
  color:#fff; font-family: var(--font-display); font-weight:800; text-transform:uppercase;
  letter-spacing:.05em; font-size:1.1rem; padding: 1rem;
}
.sticky-call a:hover { color:#fff; background: var(--orange-deep); }
body { padding-bottom: 0; }
@media (max-width: 979px){ body { padding-bottom: 60px; } }
@media (min-width: 980px){ .sticky-call { display:none; } }

/* ---------- SERVICE-PAGE HELPERS ---------- */
.breadcrumbs { font-size:.85rem; color: var(--ink-soft); padding: 14px 0; }
.breadcrumbs a { color: var(--teal); }
.prose h2 { margin-top: 1.8rem; }
.prose ul.ticks li { position:relative; padding-left: 1.7rem; margin-bottom:.6rem; }
.prose ul.ticks li::before {
  content:""; position:absolute; left:0; top:.45em; width:12px; height:7px;
  border-left:2.5px solid var(--orange); border-bottom:2.5px solid var(--orange);
  transform: rotate(-45deg);
}
.faq details {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: .3rem 1.1rem; margin-bottom:.7rem;
}
.faq summary {
  font-family: var(--font-display); font-weight:700; color: var(--navy);
  cursor:pointer; padding:.9rem 0; list-style:none;
}
.faq summary::-webkit-details-marker { display:none; }
.faq details[open] summary { color: var(--orange); }
.faq p { color: var(--ink-soft); padding-bottom:.9rem; margin:0; }

/* ---------- UTILITIES ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.skip-link {
  position:absolute; left:-999px; top:0; background: var(--orange); color:#fff;
  padding:.6rem 1rem; z-index:100;
}
.skip-link:focus { left:8px; top:8px; }

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =============================================================
   ADD-ONS — text wordmark, two-column hero, photo placeholders
   ============================================================= */

/* ---------- TEXT WORDMARK (header + footer) ---------- */
.wordmark { display:flex; flex-direction:column; gap:3px; line-height:1; align-items:center; }
.wm-top {
  font-family: var(--font-display); font-weight:800; text-transform:uppercase;
  letter-spacing:-.01em; color: var(--navy); text-align:center;
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
}
.wm-bot {
  display:flex; align-items:center; gap:7px;
  font-family: var(--font-display); font-weight:700; text-transform:uppercase;
  letter-spacing:.2em; color: var(--orange);
  font-size: clamp(.6rem, 2vw, .72rem);
}
.wm-bot::before, .wm-bot::after {
  content:""; height:2px; width:13px; background: var(--orange); flex:0 0 auto;
}
/* Light variant for dark backgrounds (footer) */
.wordmark--light .wm-top { color:#fff; }
.wordmark--light .wm-bot { color: var(--orange-bright); }

/* ---------- TWO-COLUMN HERO ---------- */
.hero-grid { display:grid; gap: 2.4rem; align-items:center; grid-template-columns: 1fr; }
@media (min-width: 900px){ .hero-grid { grid-template-columns: 1.12fr .88fr; } }
.hero-copy { min-width:0; }
.hero-art {
  justify-self:center; width:100%; max-width: 440px;
  background:#fff; border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow-lg); border:1px solid rgba(255,255,255,.6);
}
.hero-art img { width:100%; height:auto; display:block; }
@media (max-width: 899px){ .hero-art { max-width: 340px; order:-1; } }

/* ---------- IMAGE PLACEHOLDER (drop-in photo slots) ---------- */
.img-ph {
  position:relative; width:100%; border:2px dashed var(--mist); border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 14px, var(--paper) 14px 28px);
  display:grid; place-items:center; text-align:center; color: var(--ink-soft);
  padding: 1.4rem; overflow:hidden;
}
.img-ph[data-ratio="4-3"] { aspect-ratio: 4/3; }
.img-ph[data-ratio="3-2"] { aspect-ratio: 3/2; }
.img-ph[data-ratio="1-1"] { aspect-ratio: 1/1; }
.img-ph .ph-inner { max-width: 90%; }
.img-ph .ph-ic {
  width:46px; height:46px; margin:0 auto .6rem; border-radius:12px;
  background: linear-gradient(135deg, var(--teal), var(--navy)); color:#fff;
  display:grid; place-items:center;
}
.img-ph .ph-ic svg { width:24px; height:24px; }
.img-ph strong { color: var(--navy); display:block; font-family:var(--font-display); text-transform:uppercase; letter-spacing:.04em; }
.img-ph small { font-size:.8rem; }
/* When a real <img> is added inside, it covers the placeholder art */
.img-ph > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }

/* ---------- GALLERY ("See Us In Action") ---------- */
.gallery { display:grid; gap:18px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .gallery { grid-template-columns: repeat(2,1fr);} }
@media (min-width: 980px){ .gallery { grid-template-columns: repeat(3,1fr);} }

/* ---------- OWNER / TEAM BAND ---------- */
.owner-band { display:grid; gap: 30px; grid-template-columns: 1fr; align-items:center; }
@media (min-width: 820px){ .owner-band { grid-template-columns: .8fr 1.2fr; } }
.owner-photo { max-width: 360px; width:100%; }
.owner-band blockquote {
  margin:0; font-size:1.15rem; color: var(--ink); border-left:4px solid var(--orange);
  padding-left:1.1rem; font-style:italic;
}
.owner-band .sig { font-family:var(--font-display); font-weight:700; color:var(--navy); margin-top:.8rem; text-transform:uppercase; letter-spacing:.04em; }

/* ---------- TESTIMONIALS ---------- */
.quote-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:1.5rem; box-shadow:var(--shadow); display:flex; flex-direction:column; }
.quote-card .stars { color: var(--orange); letter-spacing:2px; margin-bottom:.6rem; font-size:1.05rem; }
.quote-card p { color: var(--ink); font-style:italic; flex:1; }
.quote-card .who { font-family:var(--font-display); font-weight:700; color:var(--navy); text-transform:uppercase; letter-spacing:.03em; font-size:.9rem; margin-top:.6rem; }
.quote-card .who span { display:block; color:var(--ink-soft); font-weight:500; text-transform:none; letter-spacing:0; font-size:.85rem; }

/* Compact dropdown for a short service list */
.drop--sm { grid-template-columns: 1fr; min-width: 320px; }
