/* =========================================================
   Raw Electrical Services — site.css
   Concept "Live Wire": graphite + electric yellow from the logo.
   Tailwind (tailwind.css) supplies the reset + flex/grid utilities;
   this file holds tokens and components.
   ========================================================= */

:root {
  --fs: 100%;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --ink: #14161a;
  --muted: #444b59;
  --line: #d3d8e0;
  --field-line: #737b89;
  --accent: #ffe600;
  --accent-ink: #14161a;
  --link: #6a5200;
  --focus: #0b57d0;
  --shadow: 0 10px 28px rgba(20, 22, 26, .10);
  --graphite: #101215;
  --font-h: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-b: 'Barlow', system-ui, 'Segoe UI', Arial, sans-serif;
  --header-h: 76px;
}
[data-theme="dark"] {
  --bg: #0e1013;
  --surface: #171a1f;
  --surface-2: #1f232a;
  --ink: #f3f4f6;
  --muted: #b8beca;
  --line: #2b303a;
  --field-line: #8a92a0;
  --link: #ffe600;
  --focus: #ffe600;
  --shadow: 0 10px 28px rgba(0, 0, 0, .5);
}
/* Always-dark zones (header, banners, footer, CTA) so the white logo stays clear in both themes */
.on-dark {
  --ink: #f3f4f6; --muted: #cdd2dc; --link: #ffe600; --focus: #ffe600; --line: #343a46;
  color: var(--ink);
}

html { font-size: var(--fs); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-b); line-height: 1.6; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { flex: none; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--accent); color: #14161a; padding: .7rem 1rem; border-radius: 8px; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; outline: 3px solid #fff; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }

/* ---------- Headings (kept small on purpose) ---------- */
h1, h2, h3 { font-family: var(--font-h); font-weight: 700; line-height: 1.12; letter-spacing: .005em; margin: 0; }
.h1-sm { font-size: clamp(1.55rem, 3.2vw, 2.45rem); }
.h2-sm { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.h3-sm { font-size: 1.15rem; display: flex; align-items: center; gap: .55rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .6rem 1.15rem; border-radius: 10px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; font-family: var(--font-b); font-size: 1rem; line-height: 1.2;
  transition: transform .15s, background-color .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 50px; padding: .7rem 1.35rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #fff36b; border-color: #fff36b; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.75); background: transparent; }
.btn-ghost:hover { background: #fff; color: #14161a; }
.btn-outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* ---------- Header (transparent over the banner) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: transparent; transition: background-color .25s, box-shadow .25s; }
.site-header.is-solid { background: rgba(14, 16, 19, .94); box-shadow: 0 2px 14px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 200px; height: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 1.1rem; }
.main-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav li a {
  display: block; padding: .5rem .8rem; color: #fff; text-decoration: none; font-weight: 600; border-radius: 8px;
  position: relative; font-size: 1rem;
}
.main-nav li a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav li a:hover::after, .main-nav li a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav li a[aria-current="page"] { color: var(--accent); }
.nav-cta { min-height: 40px; padding: .45rem .95rem; }
.nav-toggle { display: none; color: #fff; background: rgba(14,16,19,.55); border: 2px solid rgba(255,255,255,.6); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .5rem;
    background: rgba(14,16,19,.97); padding: .75rem 1.25rem 1.25rem; display: none; border-top: 1px solid #2b303a;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav li a { padding: .8rem .5rem; border-bottom: 1px solid #2b303a; border-radius: 0; }
  .main-nav li a::after { display: none; }
  .nav-cta { width: 100%; }
  .brand img { width: 170px; }
}

/* ---------- Banners ---------- */
.banner { position: relative; overflow: hidden; background: var(--graphite); isolation: isolate; }
.banner-bg, .banner-bg .banner-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner-bg .banner-img { object-fit: cover; }
.banner-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }   /* flat 50% black — no gradients */
.electric-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.banner > .wrap, .banner > .hero-strip { position: relative; z-index: 2; }

.banner--home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero-grid { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding-top: calc(var(--header-h) + .5rem); padding-bottom: 1rem; }
.hero-copy { max-width: 640px; }
.hero-title { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero-sub { margin: .8rem 0 0; font-size: 1.1rem; color: #e9ecf1; max-width: 46ch; }
.rbw { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.1rem 0 0; }
.rbw li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(14,16,19,.72); border: 1px solid rgba(255,230,0,.55); font-weight: 600; color: #fff; }
.rbw .icon { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

.ticket { width: min(380px, 100%); flex: none; background: rgba(14,16,19,.86); border: 1px solid #3a404c; border-left: 5px solid var(--accent); border-radius: 14px; padding: 1.3rem 1.4rem; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.ticket-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #14161a; display: grid; place-items: center; }
.ticket-ico .icon { animation: flicker 5s infinite; color: #14161a; margin: 0; }
.ticket-title { font-size: 1.35rem; margin: .9rem 0 .6rem; }
.ticket em, .free-line strong { font-style: normal; color: var(--accent); }
.ticket-car, .ticket-meta { display: flex; gap: .55rem; align-items: flex-start; margin: .5rem 0 0; color: #dfe3ea; font-size: .98rem; }
.ticket-car { color: #fff; font-weight: 600; }
.ticket-car .icon, .ticket-meta .icon { margin-top: .22rem; color: var(--accent); }

.hero-strip { background: rgba(14,16,19,.82); border-top: 1px solid rgba(255,230,0,.35); }
.strip-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; list-style: none; margin: 0 auto; padding-top: .7rem; padding-bottom: .7rem; font-size: .95rem; font-weight: 500; }
.strip-row li { display: inline-flex; align-items: center; gap: .5rem; }
.strip-row .icon { color: var(--accent); }

.banner--inner { padding: calc(var(--header-h) + 1.4rem) 0 1.6rem; }
.banner-inner h1 { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.banner-sub { max-width: 70ch; margin: .6rem 0 0; color: #e6e9ef; font-size: 1.02rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 .5rem; padding: 0; font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #b6bcc7; }
.crumbs a { color: #fff; }
.crumbs [aria-current] { color: var(--accent); }

/* hero entrance: one orchestrated moment */
.hero-copy > *, .ticket { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; } .hero-copy > :nth-child(3) { animation-delay: .2s; } .hero-copy > :nth-child(4) { animation-delay: .3s; }
.ticket { animation-delay: .35s; }
.hero-title { animation-name: rise, lamp; animation-duration: .7s, 1.4s; animation-delay: 0s, .25s; animation-fill-mode: both, none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lamp { 0%,18%,22%,60% { opacity: 1; } 20% { opacity: .55; } 24%,58% { opacity: .85; } 100% { opacity: 1; } }
@keyframes flicker { 0%,92%,100% { opacity: 1; } 94% { opacity: .35; } 96% { opacity: 1; } 98% { opacity: .5; } }

@media (max-width: 860px) {
  .hero-grid { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.1rem; }
  .ticket { width: 100%; padding: .9rem 1.1rem; }
  .ticket-ico { display: none; }
  .ticket-title { font-size: 1.1rem; margin-top: 0; }
  .ticket-meta { display: none; }
  .hero-sub { font-size: 1rem; }
  .strip-row li:nth-child(n+3) { display: none; }
}
@media (max-width: 1400px) { .strip-row { padding-left: 190px; padding-right: 90px; } }
@media (max-width: 640px) {
  .hero-strip { display: none; }
  .hero-grid { padding-bottom: 5.5rem; }
  .rbw { gap: .4rem; } .rbw li { padding: .3rem .6rem; font-size: .92rem; }
  .btn-lg { min-height: 46px; padding: .55rem 1.1rem; }
}
@media (max-height: 640px) and (min-width: 861px) { .ticket-meta { display: none; } .rbw { margin-top: .7rem; } .hero-actions { margin-top: .9rem; } }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section--compact { padding: 2rem 0; }
.section--alt { background: var(--surface-2); }
.sec-head { margin-bottom: 1.4rem; }
.sec-head p { margin: .4rem 0 0; color: var(--muted); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; perspective: 1100px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform .2s ease-out, border-color .2s; }
.card:hover { border-color: var(--accent); }
.card-media { display: flex; align-items: center; justify-content: center; background: var(--surface-2); padding: .9rem; min-height: 170px; }
.card-img { width: auto; max-width: 100%; max-height: 240px; height: auto; object-fit: contain; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body p { margin: 0; color: var(--muted); flex: 1; }
.chip-ico, .svc-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #14161a; flex: none; }
.tilt { will-change: transform; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }
.about-text { margin: .8rem 0 0; color: var(--muted); font-size: 1.04rem; max-width: 70ch; }
.checks { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.checks li { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; }
.checks .icon { color: var(--link); margin-top: .2rem; }
.deck { position: relative; height: 360px; perspective: 1100px; }
.deck-card { position: absolute; margin: 0; width: 64%; border-radius: 12px; overflow: hidden; border: 5px solid var(--surface); box-shadow: var(--shadow); background: var(--surface); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.deck-img { display: block; width: 100%; height: auto; }
.deck-1 { left: 0; top: 34px; transform: rotateY(12deg) rotate(-5deg); z-index: 1; }
.deck-2 { left: 18%; top: 0; transform: rotate(1.5deg); z-index: 3; }
.deck-3 { right: 0; bottom: 0; transform: rotateY(-12deg) rotate(5deg); z-index: 2; }
.deck:hover .deck-1 { transform: translateX(-14px) rotateY(0) rotate(-8deg); }
.deck:hover .deck-3 { transform: translateX(14px) rotateY(0) rotate(8deg); }

.years-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1.5rem; align-items: stretch; }
.years-box { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 14px; padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.years-img { width: auto; max-width: 100%; height: auto; max-height: 160px; object-fit: contain; }
.years-box p { margin: 0; color: var(--muted); }
.free-line { display: flex; align-items: center; gap: .5rem; color: var(--ink) !important; }
.free-line strong { color: var(--link); }
.free-line .icon { color: var(--link); }
.trust { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; justify-content: center; }
.trust-logo { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; display: grid; place-items: center; min-height: 84px; }
.trust-img { max-height: 70px; width: auto; max-width: 100%; height: auto; object-fit: contain; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.info { margin: 1.2rem 0 .8rem; display: grid; gap: .9rem; }
.info dt { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-family: var(--font-h); font-size: 1.08rem; }
.info dt .icon { color: var(--link); }
.info dd { margin: .15rem 0 0 1.85rem; color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow); }
.form-card > h2 { margin-bottom: .9rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.req { color: #b00020; } [data-theme="dark"] .req { color: #ff8a9b; }
.field input, .field select, .field textarea {
  width: 100%; padding: .65rem .8rem; font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--field-line); border-radius: 10px; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b00020; }
.field-err, .form-alert { color: #b00020; font-weight: 600; margin: .3rem 0 0; font-size: .95rem; }
[data-theme="dark"] .field-err, [data-theme="dark"] .form-alert { color: #ff9aa8; }
.form-note { margin: 0; color: var(--muted); font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 12px; background: var(--surface-2); border-left: 5px solid #1b8a4b; }
.form-ok .icon { color: #1b8a4b; margin-top: .15rem; }
.form-ok p { margin: 0; }
.map-wrap { margin-top: 1rem; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-link { margin: .8rem 0 0; }

/* ---------- Service pages ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.svc-p { margin: .6rem 0 1rem; color: var(--muted); max-width: 75ch; }
.svc-main > h2 { margin-bottom: .3rem; }
.svc-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .6rem; }
.svc-item { display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 500; line-height: 1.3; transition: border-color .15s, transform .15s; }
.svc-item:hover { border-color: var(--accent); transform: translateX(3px); }
.note-box { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.6rem; }
.note-box p { margin: .5rem 0 0; color: var(--muted); }
.note-box .icon { color: var(--link); }
.svc-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 12px); }
.side-photo { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem; display: grid; place-items: center; }
.side-img { width: auto; max-width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 8px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; display: grid; gap: .6rem; }
.side-card p { margin: 0; color: var(--muted); }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.side-links a { display: flex; align-items: center; gap: .5rem; padding: .5rem .3rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.side-links a:hover { text-decoration: underline; }
.side-links.big { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 1rem; }
.w-full { width: 100%; }

.cta-band { background: var(--graphite); border-top: 4px solid var(--accent); padding: 1.6rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta-inner p { margin: .3rem 0 0; color: #d6dae2; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 1.2rem 0 0; columns: 3 260px; column-gap: 1rem; }
.gal-item { break-inside: avoid; margin: 0 0 1rem; }
.gal-link { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s; }
.gal-link:hover { transform: translateY(-3px); border-color: var(--accent); }
.gal-img { display: block; width: 100%; height: auto; }
.gal-cap { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; font-weight: 600; font-size: .95rem; }
.gal-cap .icon { color: var(--link); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 1rem; }
.lightbox img { max-width: min(94vw, 1200px); max-height: 82vh; width: auto; height: auto; border-radius: 8px; background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: .6rem; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent); background: #14161a; color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }
.lb-prev .icon { transform: rotate(180deg); }

/* ---------- Prose ---------- */
.prose h2 { margin: 1.5rem 0 .5rem; } .prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.bullets { padding-left: 1.2rem; display: grid; gap: .35rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #0b0c0e; overflow: hidden; isolation: isolate; border-top: 4px solid var(--accent); }
.site-footer > .wrap { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.1fr 1.2fr; gap: 2rem; padding-top: 2.4rem; padding-bottom: 1.6rem; }
.footer-brand img { width: 220px; height: auto; }
.footer-tag { margin: .6rem 0 .2rem; font-weight: 600; }
.footer-lic { display: flex; align-items: center; gap: .4rem; margin: 0 0 .8rem; color: #d3d8e0; }
.footer-lic .icon, .footer-addr .icon { color: var(--accent); }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); }
.social:hover { background: var(--accent); color: #14161a; }
.footer-h { font-size: 1.1rem; margin-bottom: .7rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; grid-auto-columns: max-content; column-gap: 2.5rem; row-gap: .1rem; }
.footer-links a { display: inline-block; padding: .3rem 0; color: #e9ecf1; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-addr { font-style: normal; display: grid; gap: .7rem; }
.footer-addr p { margin: 0; display: flex; gap: .6rem; align-items: flex-start; color: #e1e5ec; }
.footer-addr .icon { margin-top: .3rem; }
.footer-addr a { color: #fff; }
.footer-base { border-top: 1px solid #272c35; padding-top: 1rem; padding-bottom: 5.5rem; font-size: .92rem; color: #c3c9d4; }
.footer-base p { margin: 0; }

/* ---------- Floating tools ---------- */
.tools { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; gap: 10px; align-items: center; }
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 60; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: #14161a; color: #ffe600; border: 2px solid #ffe600; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .15s, background-color .15s, color .15s; }
.fab:hover { transform: scale(1.07); background: #ffe600; color: #14161a; }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #14161a; }
.fab-chat { background: #ffe600; color: #14161a; }
.fab-chat:hover { background: #fff36b; }
[data-theme="dark"] .theme-moon, [data-theme="light"] .theme-sun { display: none; }
.panel { position: absolute; bottom: 66px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.35); width: min(340px, calc(100vw - 32px)); z-index: 70; }
.a11y-panel { left: 0; padding: 0 1rem 1rem; }
.chat-panel { right: 0; width: min(370px, calc(100vw - 32px)); display: flex; flex-direction: column; height: min(500px, calc(100vh - 110px)); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0 .6rem; }
.chat-panel .panel-head { padding: .8rem 1rem .6rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.1rem; }
.panel-x { width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.panel-x:hover { background: var(--surface-2); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-opt { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; min-height: 46px; text-align: left; font: inherit; font-size: .94rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.a11y-opt:hover { border-color: var(--ink); }
.a11y-opt[aria-pressed="true"] { background: var(--accent); color: #14161a; border-color: #14161a; }
.a11y-reset { margin-top: .6rem; width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; padding: .55rem; font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 2px dashed var(--field-line); border-radius: 10px; cursor: pointer; }
.a11y-note { margin: .6rem 0 0; text-align: center; font-size: .9rem; }

.chat-log { flex: 1; overflow-y: auto; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { max-width: 88%; padding: .6rem .85rem; border-radius: 14px; line-height: 1.45; font-size: .96rem; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--accent); color: #14161a; border-bottom-right-radius: 4px; font-weight: 500; }
.msg-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.msg-links a, .chat-quick button { display: inline-flex; align-items: center; padding: .35rem .7rem; min-height: 36px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.msg-links a:hover, .chat-quick button:hover { background: var(--ink); color: var(--bg); }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 1.2em; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.chat-form { display: flex; gap: .5rem; padding: .7rem 1rem 1rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: .6rem .8rem; min-height: 46px; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--field-line); border-radius: 10px; }
.chat-send { width: 46px; height: 46px; border-radius: 10px; border: 0; background: var(--accent); color: #14161a; cursor: pointer; display: grid; place-items: center; }


/* ---------- Home gallery slider (4 columns) ---------- */
.gslider { background: #0b0c0e; border-top: 4px solid var(--accent); padding: 1.6rem 0 1.8rem; }
.gs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; margin-bottom: 1rem; }
.gs-controls { display: flex; align-items: center; gap: .5rem; }
.gs-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--accent); border: 2px solid var(--accent); transition: background-color .15s, color .15s; }
.gs-btn:hover { background: var(--accent); color: #14161a; }
#gs-prev .icon { transform: rotate(180deg); }
.gs-all { margin-left: .4rem; min-height: 44px; }
.gs-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; border-radius: 10px; }
.gs-viewport::-webkit-scrollbar { display: none; }
.gs-track { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.gs-slide { flex: 0 0 calc((100% - 3rem) / 4); scroll-snap-align: start; }
.gs-link { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #15181d; border: 1px solid #2b303a; border-radius: 10px; overflow: hidden; transition: border-color .2s, transform .2s; }
.gs-link:hover { border-color: var(--accent); transform: translateY(-3px); }
.gs-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }  /* whole photo, never cropped */
@media (max-width: 1000px) { .gs-slide { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 560px) { .gs-slide { flex-basis: 100%; } .gs-all { display: none; } }
html.a11y-pause .gs-viewport { scroll-behavior: auto; }

/* ---------- Light reveal (cards only) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .about-grid, .contact-grid, .years-grid { grid-template-columns: 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .deck { height: 330px; max-width: 520px; }
}
@media (max-width: 640px) {
  .section { padding: 2.2rem 0; }
  .form-row, .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .deck { height: 280px; }
  .a11y-grid { grid-template-columns: 1fr; }
  .tools { gap: 8px; }
}

/* ---------- Accessibility modes ---------- */
html.a11y-contrast { --bg: #000; --surface: #000; --surface-2: #0a0a0a; --ink: #fff; --muted: #fff; --line: #fff; --field-line: #fff; --link: #ffff00; --focus: #ffff00; }
html.a11y-contrast .on-dark { --muted: #fff; --line: #fff; }
html.a11y-contrast .card, html.a11y-contrast .svc-item, html.a11y-contrast .form-card, html.a11y-contrast .side-card, html.a11y-contrast .note-box, html.a11y-contrast .years-box { border: 2px solid #fff; }
html.a11y-contrast .btn-primary { background: #ffff00; color: #000; border-color: #ffff00; }
html.a11y-contrast .banner-shade { background: rgba(0,0,0,.7); }
html.a11y-contrast .msg-bot { background: #111; border: 1px solid #fff; }
html.a11y-underline a:not(.btn):not(.fab) { text-decoration: underline !important; }
html.a11y-readable body { letter-spacing: .03em; word-spacing: .14em; line-height: 1.9; }
html.a11y-readable p, html.a11y-readable li { max-width: 68ch; }
html.a11y-pause *, html.a11y-pause *::before, html.a11y-pause *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-pause .electric-canvas { display: none; }
html.a11y-pause .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .electric-canvas { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media print { .tools, .chat, .site-header, .electric-canvas { display: none !important; } }
