/* S.J. Electricals — site styles (hand-written, no framework) */

:root {
  --red: #e11d48;
  --red-600: #be123c;
  --green: #10b981;
  --green-600: #059669;
  --indigo: #4338ca;
  --indigo-400: #818cf8;
  --ink: #0a0f1f;
  --ink-2: #111833;
  --ink-3: #1b2347;
  --text: #0f172a;
  --muted: #5b6478;
  --line: #e4e7ef;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --on-dark: #e8ebf7;
  --on-dark-muted: #a3abc6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 15, 31, .06), 0 8px 24px rgba(10, 15, 31, .06);
  --shadow-lg: 0 20px 50px rgba(10, 15, 31, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --header-h: 72px;
  --gradient: linear-gradient(100deg, var(--red) 0%, #a21caf 45%, var(--indigo) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: inherit; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--indigo-400); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 28px; } }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .7em 1.25em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-sm { min-height: 38px; padding: .5em 1em; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: .85em 1.6em; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(225, 29, 72, .7); }
.btn-primary:hover { background: var(--red-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); background: #f1f2f8; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
.btn-whatsapp { background: var(--green); color: #04261b; }
.btn-whatsapp:hover { background: #34d399; color: #04261b; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 15, 31, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.logo-mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 4px 14px rgba(225, 29, 72, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; }
.brand-text small { font-size: .7rem; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.nav-mobile-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .92rem; }
.header-phone .icon { color: var(--green); }
.header-phone:hover { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }

@media (max-width: 1100px) { .header-phone span { display: none; } }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-quote { display: none; }
  .header-phone { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 16px;
    background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-mobile-cta { display: grid; gap: 10px; margin-top: 12px; }
  .header-actions { margin-left: auto; }
  .nav-open .nav-toggle-open { display: none; }
  .nav-open .nav-toggle-close { display: inline; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-a { width: 620px; height: 620px; left: -180px; top: -260px; background: radial-gradient(circle, var(--red) 0%, transparent 65%); }
.glow-b { width: 720px; height: 720px; right: -260px; top: -120px; background: radial-gradient(circle, var(--indigo) 0%, transparent 65%); opacity: .7; }
.glow-c { width: 520px; height: 520px; left: 35%; bottom: -380px; background: radial-gradient(circle, var(--green) 0%, transparent 65%); opacity: .28; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 30%, transparent 100%);
}
.hero-inner { display: grid; gap: 48px; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px); align-items: center; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.25fr .9fr; gap: 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem; font-weight: 500; color: var(--on-dark);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(16, 185, 129, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; color: #fff; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 24px; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--on-dark-muted); max-width: 40rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 32px 0 0; font-size: .9rem; color: var(--on-dark-muted); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; }
.hero-meta a:hover { color: #fff; }
.hero-meta .icon { color: var(--green); }

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px); overflow: hidden;
}
.hero-panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 600 .78rem var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.dots i:nth-child(2) { background: #f59e0b; }
.dots i:nth-child(3) { background: var(--green); }
.hero-panel-list { list-style: none; margin: 0; padding: 8px; }
.hero-panel-list a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; color: var(--on-dark); text-decoration: none; font-weight: 500; }
.hero-panel-list a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.hp-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(129, 140, 248, .14); color: #c7d2fe; flex: none; }
.hero-panel-list li:nth-child(3n+2) .hp-icon { background: rgba(16, 185, 129, .14); color: #6ee7b7; }
.hero-panel-list li:nth-child(3n) .hp-icon { background: rgba(225, 29, 72, .16); color: #fda4af; }
.hp-arrow { margin-left: auto; opacity: 0; transform: translateX(-4px); transition: .15s; }
.hero-panel-list a:hover .hp-arrow { opacity: 1; transform: none; }

/* Page hero (inner pages) */
.page-hero-inner { padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); color: #fff; max-width: 22ch; }
.page-lead { font-size: 1.1rem; color: var(--on-dark-muted); max-width: 46rem; margin: 0; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero .glow-a { opacity: .4; }
.page-hero .glow-b { opacity: .5; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .88rem; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.error-code { font: 700 clamp(4rem, 14vw, 9rem)/1 var(--font-display); margin: 0 0 8px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero--error .hero-actions { margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section-head--row h2 { margin: 0; }
.kicker { font: 600 .78rem var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 10px; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Service cards */
.service-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card h3 { font-size: 1.25rem; margin: 18px 0 8px; }
.service-card p { color: var(--muted); margin-bottom: 20px; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--indigo); }
.service-card:hover .card-more { color: var(--red); }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; }
.service-icon .icon { width: 26px; height: 26px; }
.service-icon--0 { background: #eef0ff; color: var(--indigo); }
.service-icon--1 { background: #e7f8f1; color: var(--green-600); }
.service-icon--2 { background: #ffeef2; color: var(--red); }

/* Services list page */
.service-list { display: grid; gap: 14px; }
.service-row {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 20px;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none;
  transition: .2s ease;
}
.service-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--text); border-color: #d5d9ea; }
.service-row h2 { font-size: 1.3rem; margin: 0 0 4px; }
.service-row p { margin: 0; color: var(--muted); }
.service-num { font: 700 .9rem var(--font-display); color: var(--muted); }
.service-row-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: .2s; }
.service-row:hover .service-row-arrow { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 640px) {
  .service-row { grid-template-columns: auto 1fr; padding: 18px; gap: 14px; }
  .service-num, .service-row-arrow { display: none; }
}

/* Stats */
.stats-band { background: var(--ink); color: #fff; padding-block: 48px; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: .18; }
.stats-grid { position: relative; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.stat-value { font: 700 clamp(2.2rem, 5vw, 3.2rem)/1 var(--font-display); margin: 0 0 8px; }
.stat-value span { color: var(--green); }
.stat-label { margin: 0; color: var(--on-dark-muted); }

/* Projects */
.project-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.project-card { height: 100%; }
.project-card-link {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: .2s ease;
}
.project-card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.project-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card-link:hover .project-cover img { transform: scale(1.04); }
.project-cover--placeholder {
  display: grid; place-items: center; color: rgba(255, 255, 255, .85);
  background:
    radial-gradient(circle at 20% 0%, rgba(225, 29, 72, .55), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(67, 56, 202, .75), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ink);
}
.project-cover--large { aspect-ratio: 16 / 9; border-radius: var(--radius); margin-bottom: 32px; }
.project-cover-icon { width: 64px; height: 64px; stroke-width: 1.3; }
.project-body { padding: 20px 22px 22px; }
.project-service { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--green-600); margin-bottom: 6px; }
.project-title { font-size: 1.2rem; margin: 0 0 10px; }
.project-location { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .92rem; }
.project-location .icon { width: 1em; height: 1em; }
.tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tag-sample { background: rgba(255, 255, 255, .92); color: var(--ink); }

.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 28px; scrollbar-width: thin; }
.filter-chips a {
  flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .9rem;
}
.filter-chips a:hover { border-color: var(--ink); color: var(--ink); }
.filter-chips a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty-state { padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Why */
.why-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why-item { padding: 26px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.why-item > .icon { width: 30px; height: 30px; color: var(--red); margin-bottom: 16px; }
.why-item:nth-child(2) > .icon { color: var(--indigo); }
.why-item:nth-child(3) > .icon { color: var(--green-600); }
.why-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); margin: 0; }

/* Testimonials */
.testimonial-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.testimonial { margin: 0; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.05rem; }
.testimonial blockquote::before { content: "“"; display: block; font: 700 3rem/1 var(--font-display); color: var(--red); height: 28px; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial figcaption span { color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: .9; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-inner { position: relative; z-index: 1; display: grid; gap: 24px; padding-block: clamp(44px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-inner h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Prose & detail pages */
.prose { max-width: 46rem; font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red); }
.detail-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; } }
.detail-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: #fff; margin-bottom: 24px; }
.detail-icon .icon { width: 32px; height: 32px; }
.detail-aside { display: grid; gap: 20px; align-content: start; }
@media (min-width: 960px) { .detail-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.side-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: var(--bg-alt); color: var(--red); }
.side-nav .icon { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }

.contact-card { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.4rem; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-row:hover { color: var(--red); }
.contact-row .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--bg-alt); color: var(--indigo); }
.contact-row span { display: flex; flex-direction: column; line-height: 1.3; }
.contact-row small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.contact-card .btn-block { margin-top: 16px; }

.facts { margin: 0; padding: 8px 24px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; }
.gallery-item { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item--lead { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: var(--radius); }

.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid; }
.notice-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.notice-error { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.notice-info, .notice-sample { background: #eef2ff; border-color: #c7d2fe; color: #312e81; }

/* About */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; } }
.check-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--green-600); margin-top: 3px; }

.office-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.office-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.office-map { display: block; width: 100%; height: 260px; border: 0; }
.office-body { padding: 24px; }
.office-body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.office-body h3 .icon { color: var(--red); }
.office-body address { color: var(--muted); margin-bottom: 18px; }

/* Contact form */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; } }
.form-card { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d3d8e6; border-radius: var(--radius-sm); background: #fff;
  font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(67, 56, 202, .15); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red-600); font-size: .88rem; margin: 6px 0 0; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { display: grid; gap: 20px; }
@media (min-width: 960px) { .contact-side { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-motto { font-family: var(--font-display); font-size: 1.15rem; color: #fff; font-style: italic; }
.footer-title { font: 600 .78rem var(--font); text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 14px; }
.site-footer address { line-height: 1.7; margin-bottom: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.footer-link .icon { width: .95em; height: .95em; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact .icon { color: var(--green); margin-top: 3px; }
.footer-social { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 18px; }

/* WhatsApp FAB */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--green); color: #04261b; text-decoration: none;
  font-weight: 700; box-shadow: 0 12px 30px -8px rgba(16, 185, 129, .7); transition: transform .15s;
}
.wa-fab:hover { transform: translateY(-2px); color: #04261b; }
.wa-fab .icon { width: 22px; height: 22px; }
@media (max-width: 640px) { .wa-fab span { display: none; } .wa-fab { padding: 14px; } }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(5, 8, 18, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 8, 18, .9); }
.lightbox figure { margin: 0; padding: 64px 16px; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: min(1400px, 92vw); max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: var(--on-dark-muted); font-size: .92rem; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .15); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll (only applied by JS to below-the-fold elements) */
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

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

@media print {
  .site-header, .wa-fab, .cta-band, .hero-bg { display: none !important; }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
  .hero, .page-hero, .site-footer { background: #fff; color: #000; }
}
