/* =========================================================
   ElectriK-City
   ========================================================= */
:root {
  --blue: #1463e6;
  --blue-dark: #0e4fbd;
  --blue-light: #4ea8f0;      /* logo "K-C" blue */
  --blue-tint: #eef4fe;
  --yellow: #fdc937;
  --yellow-soft: #fdd15c;
  --ink: #0f1b2d;
  --navy: #0d1626;
  --text: #24324a;
  --muted: #5d6b82;
  --line: #e3e9f2;
  --bg-soft: #f6f8fc;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 16px 36px -18px rgba(15, 27, 45, .28);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 96px) 0; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.blue { color: var(--blue); }
.blue-light { color: var(--blue-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  padding: 12px 22px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { transition: transform .2s; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -12px rgba(20,99,230,.7); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-outline:hover { background: var(--blue-tint); }
.btn-outline svg:first-child:not(:last-child) { transform: none !important; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(15,27,45,.25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { width: 58px; height: auto; }
.logo-word { font-family: "Nunito", var(--font-head); font-weight: 900; font-size: 1.65rem; color: #151515; letter-spacing: -.01em; line-height: 1; }
.logo-word b { color: var(--blue-light); font-weight: 900; }

.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a { font-size: .92rem; font-weight: 500; color: var(--text); position: relative; padding: 6px 0; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); border-radius: 2px; }
.main-nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.header-phone svg { color: var(--blue); font-size: 1.1rem; }
.header-phone:hover { color: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 80px; min-height: min(720px, 100vh); display: flex; align-items: center; overflow: hidden; background: var(--white); }
.hero-bg {
  position: absolute; inset: var(--header-h) 0 0 0;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.97) 34%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 66%),
    url("../images/hero.jpg") 80% center / cover no-repeat;
}
.hero-inner { position: relative; }
.hero-content { max-width: 640px; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.hero-lead { font-size: 1.08rem; color: var(--text); max-width: 540px; margin-bottom: 30px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 0; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 500; line-height: 1.35; color: var(--ink); padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--line); }
.hero-points li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-points svg { font-size: 1.6rem; color: var(--blue); }

/* ---------- Trust bar ---------- */
.trust { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; position: relative; z-index: 1; box-shadow: 0 10px 30px -24px rgba(15,27,45,.3); }
.trust-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 4px 14px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
a.trust-item:hover strong { color: var(--blue); }
.ti { width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.7rem; flex-shrink: 0; }
.ti-yellow { color: var(--yellow); filter: drop-shadow(0 1px 0 #c99a12); }
.ti-yellow svg { stroke: #1a1a1a; stroke-width: .6px; }
.ti-blue { color: var(--blue); }
.ti-star { color: var(--yellow); }
.trust-item strong { display: block; white-space: nowrap; font-family: var(--font-head); font-size: .95rem; color: var(--ink); transition: color .2s; }
.trust-item span:not(.ti) { font-size: .78rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p:not(.eyebrow) { max-width: 640px; color: var(--muted); margin: 0; }
.service-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service-card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15,27,45,.05); transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-icon {
  position: absolute; left: 12px; top: 0; margin-top: calc(75% - 20px);
  width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #1a1a1a;
  display: grid; place-items: center; font-size: 1.15rem; border: 3px solid var(--white); box-shadow: 0 4px 12px rgba(15,27,45,.2);
}
.service-body { display: flex; flex-direction: column; flex: 1; padding: 28px 14px 18px; }
.service-body h3 { font-size: .98rem; margin-bottom: 6px; }
.service-body p { font-size: .82rem; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.service-link { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--blue); }
.service-link svg { transition: transform .2s; }
.service-card:hover .service-link svg { transform: translateX(4px); }
.also { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: .9rem; }
.also strong { color: var(--ink); font-family: var(--font-head); }
.also ul { display: flex; flex-wrap: wrap; gap: 8px; }
.also li { padding: 6px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--text); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 40px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% center; border-radius: 16px; box-shadow: var(--shadow); }
.about-tag {
  position: absolute; right: -16px; bottom: 24px; display: flex; align-items: center; gap: 10px;
  background: var(--white); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow);
  font-size: .78rem; font-weight: 700; line-height: 1.2; color: var(--ink); font-family: var(--font-head);
}
.about-tag svg { font-size: 1.8rem; color: var(--blue); }
.about-content p:not(.eyebrow) { color: var(--text); font-size: .96rem; }
.about-sign { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.about-sign strong { display: block; font-family: var(--font-head); color: var(--ink); }
.about-sign span { font-size: .82rem; color: var(--muted); }
.why { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.why h3 { font-size: 1.15rem; margin-bottom: 16px; }
.why ul { display: grid; gap: 12px; }
.why li { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.why svg { font-size: 1.25rem; color: var(--blue); }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-soft); }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.reviews-head h2 { margin: 0; }
.rating-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.rating-badge {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s, border-color .2s;
}
.rating-badge:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.rating-badge strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); line-height: 1; }
.rating-badge strong small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.rating-badge span { font-size: .76rem; line-height: 1.3; color: var(--muted); }
.rating-badge > svg { color: var(--blue); font-size: .9rem; }
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.stars { display: inline-flex; gap: 2px; color: var(--yellow); font-size: 1.1rem; }
.review-card h3 { font-size: 1.02rem; margin: 0; }
.review-card blockquote { margin: 0; flex: 1; font-size: .9rem; color: var(--text); }
.review-card figcaption { padding-top: 12px; border-top: 1px solid var(--line); }
.review-card figcaption strong { display: block; font-size: .88rem; color: var(--ink); }
.review-card figcaption span { font-size: .78rem; color: var(--muted); }
.reviews-note { margin: 24px 0 0; font-size: .88rem; color: var(--muted); }
.reviews-note a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--navy); color: var(--white); padding: clamp(64px, 8vw, 96px) 0; overflow: hidden; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; color: rgba(255,255,255,.04); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact h2 { color: var(--white); }
.contact .eyebrow { color: var(--blue-light); }
.contact-lead { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.contact-phone { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.contact-phone small { display: block; font-family: var(--font-body); font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.7); }
.cp-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 10px 24px -10px rgba(20,99,230,.9); }
.contact-phone:hover { color: var(--blue-light); }
.contact-details { display: grid; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.8); }
.contact-details li { display: flex; align-items: center; gap: 10px; }
.contact-details svg { color: var(--yellow); font-size: 1.1rem; }

.quote-form { background: var(--white); color: var(--text); border-radius: 16px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.quote-form h3 { font-size: 1.35rem; margin-bottom: 4px; }
.form-sub { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.field-wide { grid-column: 1 / -1; }
.field { position: relative; display: block; }
.field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #93a0b4; font-size: .92rem; pointer-events: none; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .9rem; color: var(--text); background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 12px 12px 36px; outline: none; transition: border-color .2s, background .2s;
}
.field textarea { padding-left: 14px; resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: var(--white); }
.field.invalid input, .field.invalid textarea { border-color: #e0505a; }
.btn-submit { width: 100%; padding: 14px; }
.form-status { margin: 10px 0 0; font-size: .86rem; min-height: 1.2em; color: #1d7a46; }
.form-status.error { color: #c62f3a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 28px 0 18px; font-size: .86rem; }
.footer-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer-inner .logo img { width: 48px; }
.footer-inner .logo-word { font-size: 1.35rem; }
.footer-items { display: flex; gap: 28px; flex-wrap: wrap; color: var(--ink); font-weight: 500; }
.footer-items > * { display: inline-flex; align-items: center; gap: 8px; }
.footer-items svg { color: var(--blue); }
.footer-items a:hover, .footer-nav a:hover { color: var(--blue); }
.footer-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; color: var(--text); }
.footer-bottom { padding-top: 16px; font-size: .78rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

.mobile-bar { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .service-icon { margin-top: calc(75% - 20px); }
  .trust-inner { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .trust-item:nth-child(4) { border-left: 0; padding-left: 0; }
  .about-grid { grid-template-columns: 280px 1fr; }
  .why { grid-column: 1 / -1; }
  .why ul { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 24px; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--white); padding: 8px 24px 24px; height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1; border-top: 1px solid var(--line);
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 15px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .main-nav .nav-cta { display: flex; margin-top: 20px; border: 0; padding: 15px; color: var(--white); }
  .header-actions { margin-left: auto; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .review-cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-nav { margin-left: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .container { width: calc(100% - 32px); }
  .logo img { width: 46px; }
  .logo-word { font-size: 1.35rem; }
  .header-phone span { display: none; }
  .header-phone { width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 50%; justify-content: center; }

  /* Hero: photo on top, content below */
  .hero { display: block; min-height: auto; padding: var(--header-h) 0 48px; }
  .hero-bg {
    position: relative; inset: auto; height: 62vw; min-height: 220px; max-height: 340px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%),
      url("../images/hero.jpg") 78% 30% / cover no-repeat;
  }
  .hero-inner { margin-top: -12px; }
  .hero .eyebrow { font-size: .68rem; letter-spacing: .16em; }
  .hero h1 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); margin-bottom: 14px; }
  .hero-lead { font-size: .98rem; margin-bottom: 24px; }
  .hero-buttons { gap: 10px; margin-bottom: 28px; }
  .hero-buttons .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 12px; }
  .hero-points li { border: 0; margin: 0; padding: 0; }
  .hero-points br { display: none; }

  .trust { padding: 22px 0; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .trust-item, .trust-item:first-child { padding: 0; border-left: 0 !important; gap: 10px; }
  .trust-item:last-child { grid-column: 1 / -1; }
  .ti { width: 34px; height: 34px; font-size: 1.45rem; }
  .trust-item { min-width: 0; }
  .trust-item strong { white-space: normal; font-size: .9rem; line-height: 1.25; margin-bottom: 2px; }
  .trust-item span:not(.ti) { line-height: 1.35; display: block; }

  .service-cards { grid-template-columns: 1fr; gap: 14px; }
  .service-card { flex-direction: row; }
  .service-img { aspect-ratio: auto; width: 38%; flex-shrink: 0; }
  .service-icon { margin-top: 0; top: 10px; left: 10px; width: 34px; height: 34px; font-size: 1rem; }
  .service-body { padding: 14px 14px 14px 16px; }
  .service-body p { margin-bottom: 8px; }
  .also { flex-direction: column; align-items: flex-start; gap: 10px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media img { aspect-ratio: 4 / 3; }
  .about-tag { right: 12px; bottom: 12px; }
  .why { padding: 22px; }
  .why ul { grid-template-columns: 1fr; }

  .review-cards { grid-template-columns: 1fr; }
  .rating-badges { width: 100%; }
  .rating-badge { flex: 1; }

  .contact-phone { font-size: 1.6rem; }
  .quote-form { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-items { flex-direction: column; gap: 10px; }
  .site-footer { padding-bottom: 92px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(15,27,45,.3);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 8px; font-weight: 600; }
  .mb-call { border: 2px solid var(--blue); color: var(--blue); }
  .mb-quote { background: var(--blue); color: var(--white); }
}
