/* SES Electrical NI: shared styles on top of Tailwind */
:root { --brand: #03A9F4; --ink: #17252A; --ink-900: #0E171A; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { overflow-x: hidden; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.text-fluid-hero { font-size: clamp(2.35rem, 1.3rem + 3.6vw, 4.9rem); line-height: 0.98; letter-spacing: -0.035em; }
.text-fluid-h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.03em; }
.text-fluid-h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.025em; }
.text-fluid-h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem); line-height: 1.2; letter-spacing: -0.015em; }
.eyebrow { font-family: Sora, sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; border-radius: 2px; }

/* Header */
.site-header { transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; background: linear-gradient(to bottom, rgba(14,23,26,.75), rgba(14,23,26,0)); }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(14,23,26,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav-link { position: relative; padding: .55rem .8rem; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.82); border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--brand); }
.mobile-menu { background: rgba(14,23,26,.97); border-top: 1px solid rgba(255,255,255,.08); max-height: calc(100vh - 72px); overflow-y: auto; }
.mnav-link { display: block; padding: 1rem .25rem; font-family: Sora, sans-serif; font-size: 1.15rem; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.mnav-link[aria-current="page"] { color: var(--brand); }

/* Buttons and cards */
.btn-lift { transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s, color .2s, box-shadow .25s; }
.btn-lift:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(3,169,244,.6); }
.btn-lift svg:last-child { transition: transform .25s; }
.btn-lift:hover svg:last-child { transform: translateX(3px); }
.card-lift { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(14,23,26,.45); }
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.zoom-img:hover img, .card-lift:hover .zoom-img img { transform: scale(1.06); }
.accr img { border-radius: .5rem; box-shadow: 0 10px 30px -15px rgba(14,23,26,.35); }
.accr { border-radius: .5rem; }
.social { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; transition: background-color .2s, transform .2s; }
.social:hover { background: var(--brand); color: var(--ink-900); transform: translateY(-2px); }

/* Decorative */
.grid-lines { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); }
.chrome-text { background: linear-gradient(180deg, #ffffff 0%, #D2D2D4 55%, #9aa3a6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-shape { clip-path: polygon(0 0, 62% 0, 44% 100%, 0 100%); }
@media (max-width: 1023px) { .hero-shape { clip-path: none; } }

/* Accordion */
.acc summary { list-style: none; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .acc-chev { transition: transform .3s; }
.acc[open] summary .acc-chev { transform: rotate(180deg); }
.acc[open] { background: #fff; box-shadow: 0 20px 50px -30px rgba(14,23,26,.35); }

/* Forms */
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; border-radius: .9rem; border: 1px solid rgba(23,37,42,.15); background: #fff; padding: .85rem 1rem; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(3,169,244,.18); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }
.tab-btn[aria-selected="true"] { background: var(--ink); color: #fff; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero-in { animation: heroIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero-in-2 { animation-delay: .12s; } .hero-in-3 { animation-delay: .24s; } .hero-in-4 { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-img { animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Home hero: keep the Scrabo sunset visible on small screens */
.hero-photo { object-position: 70% 50%; }
@media (max-width: 767px) {
  .hero-photo { object-position: 70% 40%; }
}
.hero-fade { background: linear-gradient(to top, rgba(17,26,30,.85) 0%, rgba(17,26,30,.6) 28%, rgba(17,26,30,0) 55%); }
@media (max-width: 1023px) {
  .hero-title { text-shadow: 0 2px 18px rgba(17,26,30,.55), 0 1px 3px rgba(17,26,30,.45); }
  .hero-title .chrome-text { background: none; color: #fff; }
  p.hero-eyebrow.eyebrow { color: #fff; text-shadow: 0 1px 8px rgba(17,26,30,.7); }
  p.hero-eyebrow.eyebrow::before { background: #03A9F4; }
  .hero-lede { text-shadow: 0 1px 10px rgba(17,26,30,.6); }
}
