/* Shoreline Electric — style.css
   "Power, From the Shore" — marine blue (shoreline/trust) + spark amber (electrical/energy) */

:root {
  --ink-950: #0e1b23;
  --marine-800: #123448;
  --marine-600: #1f6c8f;
  --marine-400: #6fa8c2;
  --spark-600: #c97e0a;
  --spark-500: #f2a71b;
  --slate-500: #56666e;
  --mist: #eef3f5;
  --line: #d7e1e5;

  --grad-marine: linear-gradient(135deg, var(--marine-400), var(--marine-800));
  --grad-spark: linear-gradient(135deg, var(--spark-500), var(--spark-600));
  --grad-ink: linear-gradient(135deg, var(--marine-800), var(--ink-950));

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --sh-sm: 0 2px 10px rgba(14, 27, 35, .08);
  --sh-md: 0 10px 30px rgba(14, 27, 35, .12);
  --sh-lg: 0 24px 60px rgba(14, 27, 35, .22);

  --radius: 16px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-950);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
svg { display: block; }

.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.accent-spark { background: var(--grad-spark); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--spark-600);
  margin-bottom: .6rem;
}
.section-h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--ink-950); max-width: 640px; }
.section-lead { color: var(--slate-500); font-size: 1.05rem; max-width: 560px; margin-top: .9rem; line-height: 1.65; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  white-space: nowrap;
}
.btn-spark { background: var(--grad-spark); color: var(--ink-950); box-shadow: var(--sh-md); }
.btn-spark:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; will-change: transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
}

/* ===== NAV ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,0); transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
#nav.scrolled {
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-sm);
}
.nav-inner {
  max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-main {
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: .02em;
  color: var(--ink-950);
}
#nav.at-top .nav-logo-main, #nav.at-top .nav-logo-sub { color: #fff; }
.nav-logo-sub {
  font-family: var(--font-display); font-weight: 600; font-size: .62rem; letter-spacing: .32em;
  color: var(--spark-600); margin-top: .12rem;
}
.nav-links { display: none; gap: 2.1rem; }
.nav-links a {
  font-weight: 600; font-size: .94rem; color: var(--ink-950); position: relative; padding-bottom: 4px;
}
#nav.at-top .nav-links a { color: #fff; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--grad-spark);
  transition: width .25s ease;
}
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-phone {
  display: none; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem;
  color: var(--ink-950); padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line);
}
#nav.at-top .nav-phone { color: #fff; border-color: rgba(255,255,255,.55); }
#nav.scrolled .nav-phone { color: var(--marine-800); border-color: var(--line); }

.hbg {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: none; cursor: pointer; padding: 0;
}
.hbg span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .3s ease, opacity .3s ease, background .3s ease; }
#nav.scrolled .hbg span { background: var(--ink-950); }
.hbg.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hbg.open span:nth-child(2) { opacity: 0; }
.hbg.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-phone { display: inline-flex; }
  .hbg { display: none; }
}

/* ===== MOBILE MENU ===== */
.mob-ov {
  position: fixed; inset: 0; z-index: 99; background: var(--grad-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.4,0,.2,1);
}
.mob-ov.open { transform: translateX(0); }
.mob-links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.mob-links a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.mob-phone {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink-950);
  background: var(--grad-spark); padding: .9rem 1.8rem; border-radius: 999px;
}
@media (min-width: 900px) { .mob-ov { display: none; } }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 5rem; overflow: hidden; background: var(--grad-ink);
}
.hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.wave { transform-origin: center; }
.wave-1 { animation: drift1 28s ease-in-out infinite alternate; }
.wave-2 { animation: drift2 34s ease-in-out infinite alternate; }
.wave-3 { animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translateX(-2%); } to { transform: translateX(2.5%); } }
@keyframes drift2 { from { transform: translateX(2%); } to { transform: translateX(-3%); } }
@keyframes drift3 { from { transform: translateX(-1.5%); } to { transform: translateX(2%); } }

.current-dash { animation: currentTravel 5.5s linear infinite; }
@keyframes currentTravel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1460; } }

@media (prefers-reduced-motion: reduce) {
  .wave, .current-dash { animation: none !important; }
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; width: 100%; text-align: center; }
.hero-panel {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px; padding: 2.75rem 2.25rem 2.3rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--sh-lg);
}
.hero-eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--marine-400); margin-bottom: 1rem;
}
.hero-h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); color: #fff; margin-bottom: 1.15rem; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.12rem); color: rgba(255,255,255,.82); max-width: 540px; margin: 0 auto 1.85rem; line-height: 1.7; }
.hero-cta { display: flex; flex-direction: column; gap: .9rem; align-items: center; }
@media (min-width: 560px) { .hero-cta { flex-direction: row; justify-content: center; } }

/* ===== TRUST BAR ===== */
.trust-bar {
  border-top: 3px solid transparent; border-image: var(--grad-marine) 1;
  background: var(--mist); padding: 1.6rem 0;
}
.trust-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.1rem 1.6rem;
}
.trust-item { display: flex; align-items: center; gap: .5rem; }
.trust-stars { color: var(--spark-600); letter-spacing: .1em; font-size: 1.05rem; }
.trust-label { font-weight: 600; color: var(--ink-950); font-size: .96rem; }
.trust-link { font-weight: 700; color: var(--marine-800); text-decoration: underline; text-underline-offset: 3px; }
.trust-div { width: 1px; height: 18px; background: var(--line); }

/* ===== SERVICES ===== */
.services { padding: 6rem 0; background: #fff; }
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-top: 2.8rem;
}
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  padding: 2rem 1.7rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--mist); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: transparent; }
.service-badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 1.2rem;
}
.badge-marine { background: var(--grad-marine); }
.badge-spark { background: var(--grad-spark); }
.service-card h3 { font-size: 1.12rem; margin-bottom: .55rem; color: var(--ink-950); }
.service-card p { color: var(--slate-500); font-size: .96rem; line-height: 1.6; }

/* ===== WHY ===== */
.why { padding: 6rem 0; background: var(--mist); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; margin-top: 2.8rem; }
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { position: relative; padding-top: .5rem; }
.why-num {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 4.4rem; line-height: 1;
  background: var(--grad-marine); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .32; margin-bottom: .3rem;
}
.why-card h3 { font-size: 1.28rem; margin-bottom: .7rem; color: var(--ink-950); }
.why-card p { color: var(--slate-500); line-height: 1.7; font-size: .98rem; }

/* ===== REVIEWS ===== */
.reviews { padding: 6rem 0; background: #fff; }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-top: 2.8rem; }
@media (min-width: 820px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
.review-card {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
}
.quote-mark { margin-bottom: .9rem; opacity: .9; }
.stars { color: var(--spark-600); letter-spacing: .12em; margin-bottom: 1rem; font-size: 1rem; }
.review-body { color: var(--ink-950); font-size: 1rem; line-height: 1.7; margin-bottom: 1.2rem; }
.review-name { color: var(--slate-500); font-weight: 600; font-size: .9rem; }

/* ===== SERVICE AREA ===== */
.area { padding: 4.5rem 0; background: var(--grad-marine); }
.area-inner { text-align: center; max-width: 680px; }
.area .eyebrow { color: var(--ink-950); }
.area .section-h2, .area-body { color: #fff; margin-left: auto; margin-right: auto; }
.area-body { margin-top: 1rem; font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.92); }

/* ===== CTA BAND ===== */
.cta-band { padding: 5.5rem 0; background: var(--grad-ink); text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .85rem; }
.cta-inner p { color: rgba(255,255,255,.78); font-size: 1.05rem; margin-bottom: 2rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink-950); color: rgba(255,255,255,.75); padding: 4rem 0 0;
  border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--marine-600), var(--spark-500)) 1;
}
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2.6rem; padding-bottom: 3rem; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; display: block; margin-bottom: .8rem; }
.footer-logo span { color: var(--spark-500); }
.footer-tag { font-size: .92rem; line-height: 1.6; margin-bottom: 1.1rem; }
.footer-phone { display: inline-block; font-family: var(--font-display); font-weight: 700; color: var(--spark-500); font-size: 1.05rem; margin-bottom: .5rem; }
.footer-area { font-size: .88rem; color: rgba(255,255,255,.55); }
.footer h4 { color: #fff; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul { display: flex; flex-direction: column; gap: .7rem; }
.footer ul a { font-size: .94rem; transition: color .2s ease; }
.footer ul a:hover { color: var(--spark-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem;
  text-align: center; font-size: .84rem; color: rgba(255,255,255,.5);
}

/* ===== SCROLL TOP ===== */
.scr-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad-spark); color: var(--ink-950); box-shadow: var(--sh-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.scr-top.vis { opacity: 1; transform: translateY(0); pointer-events: auto; }
