/* Pinnacle Power LLC — shared styles for all pages */

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #0B0B0C;
  color: #F2EDE3;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.display { font-family: 'Anton', sans-serif; letter-spacing: -0.01em; }
.serif-it { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }

.grid-bg {
  background-image:
    linear-gradient(rgba(242,237,227,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,237,227,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.noise::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .5;
}
.voltline { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s ease forwards .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.svc { position: relative; transition: background-color .3s ease, transform .3s ease; }
.svc:hover { background: #131316; }
.svc:hover .svc-arrow { transform: translate(4px,-4px); color: #D72027; }
.svc-arrow { transition: transform .3s ease, color .3s ease; }

.stat-num { font-feature-settings: "tnum"; }

.field { background: transparent; border: 0; border-bottom: 1px solid #2A2A2E; padding: .9rem 0; color: #F2EDE3; width: 100%; font-size: 1.05rem; transition: border-color .3s; }
.field:focus { outline: none; border-color: #D72027; }
.field::placeholder { color: #6E6E73; }

.nav-solid { background: rgba(11,11,12,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid #1F1F22; }
.nav-link { transition: color .25s; }
.nav-link:hover { color: #D72027; }
.nav-link.active { color: #D72027; }

.tape {
  background-image: repeating-linear-gradient(45deg, #D72027 0 14px, #0B0B0C 14px 28px);
}

.bulb { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100% { opacity: .85; } 50% { opacity: 1; filter: drop-shadow(0 0 22px rgba(215,32,39,.55)); } }

/* Job / gallery cards */
.job-card { position: relative; aspect-ratio: 4/5; overflow: hidden; cursor: pointer; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.job-card:hover { transform: translateY(-6px); }
.job-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11,11,12,.4) 60%, rgba(11,11,12,.95) 100%); z-index: 2; }
.job-card .meta { position: absolute; inset: auto 0 0 0; padding: 1.5rem; z-index: 3; }
.job-card .placeholder-bg { position: absolute; inset: 0; display: grid; place-items: center; }
.job-card .tag { display: inline-flex; align-items: center; gap: .35rem; background: #D72027; color: #fff; padding: .25rem .5rem; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; }

.ph-1 { background: radial-gradient(ellipse at 30% 30%, #2a2a2e 0%, #0B0B0C 70%); }
.ph-2 { background: radial-gradient(ellipse at 70% 40%, #1f1416 0%, #0B0B0C 75%); }
.ph-3 { background: radial-gradient(ellipse at 50% 50%, #221b18 0%, #0B0B0C 80%); }
.ph-4 { background: radial-gradient(ellipse at 20% 80%, #2a1816 0%, #0B0B0C 75%); }
.ph-5 { background: radial-gradient(ellipse at 80% 20%, #2a2520 0%, #0B0B0C 80%); }
.ph-6 { background: radial-gradient(ellipse at 50% 100%, #2a1e1b 0%, #0B0B0C 75%); }
.ph-icon { opacity: .12; transform: scale(1.8); transition: opacity .5s, transform .8s; }
.job-card:hover .ph-icon { opacity: .22; transform: scale(2); }

.job-card .job-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.job-card:hover .job-photo { transform: scale(1.05); }

/* Photo strip */
.photo-strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.photo-strip::-webkit-scrollbar { height: 6px; }
.photo-strip::-webkit-scrollbar-track { background: rgba(11,11,12,.08); }
.photo-strip::-webkit-scrollbar-thumb { background: #D72027; }
.photo-strip img { height: 220px; width: auto; flex: 0 0 auto; scroll-snap-align: start; object-fit: cover; filter: saturate(.9); transition: filter .4s, transform .4s; }
.photo-strip img:hover { filter: saturate(1.1); transform: translateY(-4px); }
@media (min-width: 768px) { .photo-strip img { height: 280px; } }

/* Mobile menu — fully removed when closed (display:none), so its backdrop-blur
   panel can't paint a phantom blurred strip over the page on scroll. */
#mobile-menu.closed { display: none; }

/* ===== Review ticker (runs through the site) ===== */
.ticker-wrap { overflow: hidden; position: relative; }
.ticker { display: flex; align-items: center; gap: 4rem; width: max-content; animation: ticker-scroll 55s linear infinite; padding: .85rem 0; will-change: transform; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker .t-item { display: inline-flex; align-items: baseline; gap: .9rem; white-space: nowrap; font-size: .95rem; }
.ticker .t-stars { color: #F2EDE3; letter-spacing: .15em; font-size: .8rem; }
.ticker .t-name { text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; font-weight: 700; opacity: .8; }
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Review cards ===== */
.review-card { background: #131316; border: 1px solid #1F1F22; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color .3s, transform .3s; }
.review-card:hover { border-color: #D72027; transform: translateY(-4px); }
.review-card .stars { color: #D72027; letter-spacing: .2em; font-size: .95rem; }
.review-card.on-paper { background: #fff; border-color: rgba(11,11,12,.1); color: #0B0B0C; box-shadow: 0 1px 3px rgba(11,11,12,.06); }

/* ===== Full gallery (masonry via columns) ===== */
.masonry { columns: 2; column-gap: 1rem; }
@media (min-width: 768px) { .masonry { columns: 3; } }
@media (min-width: 1200px) { .masonry { columns: 4; } }
.masonry .g-item { break-inside: avoid; margin-bottom: 1rem; display: block; width: 100%; cursor: zoom-in; overflow: hidden; position: relative; background: #131316; }
.masonry .g-item img { width: 100%; height: auto; display: block; filter: saturate(.92); transition: filter .4s, transform .6s cubic-bezier(.2,.6,.2,1); }
.masonry .g-item:hover img { filter: saturate(1.08); transform: scale(1.03); }

/* ===== Hero photo background ===== */
.hero-bg {
  background-image: url('../photos/site/hero-truck.jpg');
  background-size: cover;
  background-position: center 62%;
}
.hero-scrim {
  background:
    linear-gradient(100deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.78) 45%, rgba(11,11,12,.3) 100%),
    linear-gradient(180deg, rgba(11,11,12,.3) 0%, rgba(11,11,12,.38) 60%, rgba(11,11,12,.93) 94%, #0B0B0C 100%);
}

/* ===== Full-bleed photo bands ===== */
.band { position: relative; background-size: cover; background-position: center; overflow: hidden; }
@media (min-width: 1024px) { .band-fixed { background-attachment: fixed; } }
.band .band-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.82) 0%, rgba(11,11,12,.45) 50%, rgba(11,11,12,.88) 100%); }
.band > .band-inner { position: relative; z-index: 1; }

/* ===== Service card photo headers ===== */
.svc-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.svc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .8s cubic-bezier(.2,.6,.2,1), filter .4s; }
.group:hover .svc-img img { transform: scale(1.05); filter: saturate(1.05); }
.svc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,11,12,.55) 100%); }

/* ===== Process steps ===== */
.step { position: relative; border-top: 2px solid #1F1F22; padding-top: 1.5rem; transition: border-color .3s; }
.step:hover { border-top-color: #D72027; }
.step .step-num { font-family: 'Anton', sans-serif; font-size: 3.5rem; line-height: 1; color: #D72027; }

/* ===== FAQ accordion ===== */
.faq details { border-bottom: 1px solid #1F1F22; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; color: #D72027; font-size: 1.6rem; line-height: 1; transition: transform .3s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 1.6rem; color: rgba(242,237,227,.72); max-width: 46rem; line-height: 1.7; }

/* ===== Sticky mobile call bar ===== */
.callbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: 1.2fr 1fr; box-shadow: 0 -6px 24px rgba(0,0,0,.45); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem .5rem; font-family: 'Anton', sans-serif; font-size: 1.15rem; letter-spacing: .04em; }
@media (min-width: 768px) { .callbar { display: none; } }
@media (max-width: 767.98px) { body { padding-bottom: 64px; } }

/* ===== Shared section helpers ===== */
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; }
.eyebrow .tick { width: 2.5rem; height: 1px; background: #D72027; flex: none; }
.eyebrow span:last-child { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: #8A8A8F; }
.eyebrow.on-paper span:last-child { color: rgba(11,11,12,.55); }

/* ===== Nav: Pay Invoice pill ===== */
.nav-pill { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #2A2A2E; padding: .5rem .9rem; font-size: .8rem; letter-spacing: .03em; transition: border-color .25s, color .25s, background-color .25s; }
.nav-pill:hover { border-color: #D72027; color: #D72027; }
.nav-pill.active { border-color: #D72027; color: #D72027; }

/* ===== Pricing ===== */
.price-card { background: #131316; border: 1px solid #1F1F22; padding: 1.75rem; display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.price-card:hover { border-color: #D72027; transform: translateY(-4px); }
.price-card .pc-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #8A8A8F; }
.price-card .pc-figure { font-family: 'Anton', sans-serif; font-feature-settings: "tnum"; line-height: 1; letter-spacing: -.01em; }
.price-card .pc-from { font-size: .85rem; color: #8A8A8F; text-transform: uppercase; letter-spacing: .12em; }
.price-card ul { margin-top: 1rem; }
.price-card li { display: flex; gap: .55rem; padding: .25rem 0; font-size: .9rem; color: rgba(242,237,227,.75); }
.price-card li::before { content: '·'; color: #D72027; }

.rate-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #1F1F22; padding: 1.15rem 0; }
.rate-row .rr-fig { font-family: 'Anton', sans-serif; font-feature-settings: "tnum"; color: #F2EDE3; }

/* ===== Pay / invoice ===== */
.pay-card { background: #131316; border: 1px solid #1F1F22; }
.invoice-line { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #1F1F22; }
.invoice-line:last-child { border-bottom: 0; }
.invoice-line .il-k { color: #8A8A8F; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.invoice-line .il-v { font-feature-settings: "tnum"; text-align: right; }
.status-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; border-radius: 999px; }
.status-badge.due { background: rgba(215,32,39,.14); color: #ff6a6f; border: 1px solid rgba(215,32,39,.4); }
.status-badge.paid { background: rgba(52,168,83,.14); color: #5fcf7e; border: 1px solid rgba(52,168,83,.4); }
.status-badge.overdue { background: rgba(200,75,26,.16); color: #ff9a5c; border: 1px solid rgba(200,75,26,.45); }
.status-badge .dot { width: .45rem; height: .45rem; border-radius: 999px; background: currentColor; }
.pay-method { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #2A2A2E; padding: .5rem .8rem; font-size: .78rem; color: rgba(242,237,227,.8); }
.field-block label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #8A8A8F; margin-bottom: .15rem; }
.lookup-error { color: #ff6a6f; }

/* ===== Mini gallery preview (home) ===== */
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .mini-grid { grid-template-columns: repeat(4, 1fr); } }
.mini-grid a { position: relative; overflow: hidden; aspect-ratio: 1; display: block; background: #131316; }
.mini-grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .4s; }
.mini-grid a:hover img { transform: scale(1.06); filter: saturate(1.08); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(11,11,12,.96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .lb-btn { position: absolute; background: none; border: 1px solid #2A2A2E; color: #F2EDE3; width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; font-size: 1.4rem; transition: border-color .25s, color .25s; }
.lightbox .lb-btn:hover { border-color: #D72027; color: #D72027; }
.lightbox .lb-close { top: 1.25rem; right: 1.25rem; }
.lightbox .lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: #8A8A8F; }
