/* نهر الغدير — palette pulled from the logo: electric blue, lightning amber, appliance steel */
:root {
  --ink: #0A1F4F;        /* navy text, panel body */
  --ink-2: #13306F;
  --volt: #1652D8;       /* logo blue */
  --volt-2: #2F74F2;
  --amber: #F4A419;      /* lightning gold */
  --amber-deep: #D9800B;
  --steel: #DCE2EA;      /* appliance steel */
  --steel-2: #EEF2F7;
  --paper: #F7F9FC;
  --white: #FFFFFF;
  --muted: #4E5D7D;

  --f-display: "Alexandria", "Almarai", system-ui, sans-serif;
  --f-body: "Almarai", "Alexandria", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 36px);
  --section: clamp(52px, 6.5vw, 88px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.35; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: .9rem;
  padding: 9px 18px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 11px 24px; font-size: .95rem; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #FFB733; }
.btn-volt { background: var(--volt); color: var(--white); }
.btn-volt:hover { background: var(--volt-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ink-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ink-outline:hover { background: rgba(10, 31, 79, .08); }

/* Ticked lists */
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-inline-start: 24px; font-size: .9rem; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .55em;
  width: 10px; height: 6px; border-left: 2px solid var(--volt); border-bottom: 2px solid var(--volt);
  transform: rotate(-45deg);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--steel); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.brand-text small { font-size: .7rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .88rem; font-weight: 700; color: var(--ink); position: relative; padding-block: 4px; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .25s;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding-block: clamp(24px, 4.5vw, 56px) clamp(80px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(20px, 4vw, 56px); }
.hero-kicker { color: var(--volt); font-weight: 700; font-size: .88rem; margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(1.75rem, 3.3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-lead { font-size: clamp(.95rem, 1.2vw, 1.05rem); color: var(--muted); max-width: 54ch; margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-phone { margin-top: 16px; color: var(--muted); font-size: .88rem; }
.hero-phone a { font-family: var(--f-display); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--amber); }

.hero-visual { position: relative; display: grid; place-items: center; }
.halo {
  position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(47, 116, 242, .2), rgba(47, 116, 242, 0) 62%);
}
.hero-logo { position: relative; width: min(100%, 440px); filter: drop-shadow(0 20px 34px rgba(10, 31, 79, .18)); }

.current { position: absolute; inset-inline: 0; bottom: 14px; width: 100%; height: clamp(50px, 7vw, 90px); }
.current path { fill: none; stroke-linecap: round; }
.current-base { stroke: var(--volt); stroke-width: 8; opacity: .9; }
.current-flow { stroke: var(--amber); stroke-width: 3.5; stroke-dasharray: 1600; stroke-dashoffset: 1600; }

/* load sequence: logo powers on, then current runs along the cable */
.js .hero-logo { opacity: 0; transform: scale(.96); }
.js.is-loaded .hero-logo { animation: power-on 1.1s cubic-bezier(.2, .7, .2, 1) forwards; }
.js.is-loaded .current-flow { animation: run-current 1.6s .5s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes power-on {
  0% { opacity: 0; transform: scale(.96); filter: brightness(.6) drop-shadow(0 20px 34px rgba(10, 31, 79, 0)); }
  35% { opacity: 1; filter: brightness(1.25) drop-shadow(0 0 26px rgba(244, 164, 25, .45)); }
  50% { filter: brightness(.9) drop-shadow(0 20px 34px rgba(10, 31, 79, .18)); }
  65% { filter: brightness(1.15) drop-shadow(0 0 20px rgba(244, 164, 25, .35)); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1) drop-shadow(0 20px 34px rgba(10, 31, 79, .18)); }
}
@keyframes run-current { to { stroke-dashoffset: 0; } }

/* Facts strip */
.facts { background: var(--white); border-block: 1px solid var(--steel); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 22px 18px; }
.fact + .fact { border-inline-start: 1px solid var(--steel); }
.fact svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--volt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.fact h3 { font-size: .92rem; font-weight: 600; }
.fact p { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* Section heads */
.section-head { max-width: 600px; margin-bottom: clamp(26px, 3.5vw, 42px); }
.section-head h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 700; }
.section-head p { margin-top: 8px; color: var(--muted); font-size: .97rem; }
.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark p { color: #B7C5E6; }

/* About */
.about { padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-copy h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 700; margin-bottom: 14px; }
.about-lead { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; line-height: 1.7; margin-bottom: 14px; }
.about-copy p + p { margin-top: 12px; }
.about-copy p:not(.about-lead) { color: var(--muted); max-width: 62ch; }

/* company card, styled after the rating plate on an appliance */
.plate {
  background: linear-gradient(160deg, #F4F6FA, #DDE3EC);
  border: 1px solid #C5CEDB; border-radius: var(--r-md);
  padding: 18px; position: relative;
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px rgba(10, 31, 79, .1);
}
.plate::before, .plate::after {
  /* rivets */
  content: ""; position: absolute; top: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #9AA6BD);
}
.plate::before { inset-inline-start: 10px; }
.plate::after { inset-inline-end: 10px; }
.plate-head { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; border-bottom: 2px solid var(--ink); }
.plate-head img { width: 42px; height: 42px; }
.plate-head strong { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.plate-head span { font-size: .75rem; color: var(--muted); }
.plate-rows { margin: 0; padding: 0 8px; }
.plate-rows div { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px dashed #B9C3D3; font-size: .86rem; }
.plate-rows dt { color: var(--muted); }
.plate-rows dd { margin: 0; font-weight: 700; text-align: left; }
.plate-rows a { text-decoration: none; color: var(--volt); }
.plate-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 0; font-family: var(--f-display); font-size: .75rem; color: var(--muted); }
.plate-mark { color: var(--amber-deep); font-size: 1rem; }

/* Products: breaker panel */
.products { background: var(--ink); padding-block: var(--section); color: var(--white); }
.panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(18px, 2.5vw, 32px);
  background: #0E2A66; border: 1px solid #23428A; border-radius: var(--r-lg);
  padding: clamp(16px, 2.5vw, 28px);
}
.breakers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  position: relative; padding-block: 14px;
  align-content: center;
}
/* DIN rails behind each row */
.breakers::before, .breakers::after {
  content: ""; position: absolute; inset-inline: -6px; height: 12px;
  background: linear-gradient(#5D6E92, #3B4B70); border-radius: 3px; z-index: 0;
}
.breakers::before { top: 25%; }
.breakers::after { top: 75%; }

.breaker {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: linear-gradient(180deg, #FFFFFF, #E4E9F1);
  border: 0; border-radius: 9px; padding: 13px 8px 11px;
  color: var(--ink); cursor: pointer; font: inherit; text-align: center;
  box-shadow: inset 0 -3px 0 #C3CBD8, 0 6px 14px rgba(0, 0, 0, .25);
}
.breaker-slot {
  position: relative; width: 28px; height: 48px; border-radius: 5px;
  background: #2A3550; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5);
}
.breaker-lever {
  position: absolute; inset-inline: 4px; height: 19px; bottom: 4px; border-radius: 3px;
  background: linear-gradient(180deg, #F2F5FA, #C9D1DE);
  transition: bottom .28s cubic-bezier(.3, 1.5, .5, 1), background-color .2s;
}
.breaker-led {
  width: 8px; height: 8px; border-radius: 50%; background: #9AA6BD;
  position: absolute; top: 9px; inset-inline-end: 9px; transition: background-color .2s, box-shadow .2s;
}
.breaker-name { font-family: var(--f-display); font-weight: 600; font-size: .82rem; line-height: 1.45; }
.breaker-state { font-size: .7rem; color: var(--muted); font-family: var(--f-display); }
.breaker:hover .breaker-lever { background: linear-gradient(180deg, #FFFFFF, #D6DCE7); }
.breaker[aria-selected="true"] .breaker-lever { bottom: 25px; background: linear-gradient(180deg, #FFC64D, var(--amber)); }
.breaker[aria-selected="true"] .breaker-led { background: var(--amber); box-shadow: 0 0 0 3px rgba(244, 164, 25, .25), 0 0 10px var(--amber); }
.breaker[aria-selected="true"] .breaker-state { color: var(--amber-deep); font-weight: 600; }

.panel-screen {
  background: var(--white); color: var(--ink); border-radius: 16px;
  padding: clamp(18px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 13px;
  min-height: 100%;
}
.screen-top { display: flex; align-items: center; gap: 12px; }
.screen-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--steel-2); color: var(--volt);
}
.screen-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel-screen h3 { font-size: 1.2rem; font-weight: 700; }
.panel-screen .screen-desc { color: var(--muted); font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: var(--steel-2); border: 1px solid var(--steel); border-radius: 999px;
  padding: 3px 12px; font-size: .82rem;
}
.panel-screen .btn { align-self: flex-start; margin-top: auto; }
.screen-swap { animation: screen-in .3s ease-out; }
@keyframes screen-in { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Buying guides */
.guides { padding-block: var(--section); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.guide { background: var(--white); border: 1px solid var(--steel); border-radius: var(--r-md); padding: 20px 22px; }
.guide h3 { font-size: 1.02rem; font-weight: 600; }
.guide-note { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.guide table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .86rem; }
.guide th { text-align: start; font-family: var(--f-display); font-weight: 600; font-size: .78rem; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--ink); }
.guide td { padding: 8px; border-bottom: 1px solid var(--steel); }
.guide tbody tr:last-child td { border-bottom: 0; }
.guide td:not(:first-child) { font-weight: 700; font-variant-numeric: tabular-nums; }
.guide tbody tr:hover td { background: var(--steel-2); }

/* Clients */
.clients { padding-block: var(--section); background: var(--white); border-block: 1px solid var(--steel); }
.client-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px); }
.client { border-top: 3px solid var(--ink); padding-top: 20px; }
.client:nth-child(2) { border-top-color: var(--volt); }
.client:nth-child(3) { border-top-color: var(--amber); }
.client-icon { width: 36px; height: 36px; fill: none; stroke: var(--volt); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.client h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.client p { color: var(--muted); font-size: .92rem; max-width: 40ch; }

/* Order steps */
.order { padding-block: var(--section); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 32px);
  position: relative;
}
/* a cable connecting the steps */
.steps::before {
  content: ""; position: absolute; top: 22px; inset-inline: 22px calc(25% - 22px);
  height: 3px; background: var(--steel); border-radius: 2px;
}
.steps li { position: relative; }
.step-n {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--amber);
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem;
  border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--steel);
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .9rem; max-width: 34ch; }

/* FAQ */
.faq { padding-block: var(--section); background: var(--white); border-top: 1px solid var(--steel); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 96px; }
.faq-list { border-top: 1px solid var(--steel); }
.faq-list details { border-bottom: 1px solid var(--steel); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding-block: 17px; font-family: var(--f-display); font-weight: 600; font-size: .98rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--volt); border-bottom: 2px solid var(--volt);
  transform: rotate(45deg); transition: transform .25s; margin-top: -5px;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq-list details p { color: var(--muted); font-size: .92rem; padding-bottom: 18px; max-width: 62ch; }

/* Quote form */
.quote { padding-block: var(--section); background: var(--steel-2); border-top: 1px solid var(--steel); }
.quote-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.quote-intro h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 700; }
.quote-intro > p { color: var(--muted); margin-top: 8px; max-width: 46ch; }
.quote-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
  background: var(--white); border: 1px solid var(--steel); border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 14px 34px rgba(10, 31, 79, .07);
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--f-display); font-weight: 600; font-size: .82rem; padding: 0; }
.field input[type="text"], .field select, .field textarea {
  font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--steel); border-radius: var(--r-sm);
  padding: 9px 12px; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--volt); background: var(--white); }
.field [aria-invalid="true"] { border-color: #C62828; }
.field-error { color: #C62828; font-size: .78rem; min-height: 0; }
.field-error:empty { display: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .85rem;
  border: 1.5px solid var(--steel); background: var(--paper); transition: background-color .2s, border-color .2s, color .2s;
}
.segmented input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.segmented input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.quote-form .btn { justify-self: stretch; }

/* Contact */
.contact {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(ellipse at 20% 40%, #143A8C 0%, var(--ink) 60%);
  padding-block: clamp(60px, 8vw, 108px);
}
.contact-arcs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact-arcs path { fill: none; stroke-linecap: round; }
.arc-gold { stroke: var(--amber); stroke-width: 3; opacity: .55; }
.arc-blue { stroke: var(--volt-2); stroke-width: 10; opacity: .22; }

.contact-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.contact h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; }
.contact-note { color: #B7C5E6; margin-top: 10px; max-width: 44ch; }

.ways { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 420px; }
.way {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 16px; text-align: start;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--white); text-decoration: none; font: inherit; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.way:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.way-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1);
}
.way-icon svg { width: 20px; height: 20px; fill: currentColor; }
.way-icon svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.way-icon-wa { background: #25D366; }
.way-text { display: flex; flex-direction: column; line-height: 1.45; }
.way-text strong { font-family: var(--f-display); font-weight: 600; font-size: .95rem; }
.way-text small { font-size: .8rem; color: #A9B8DC; }
.way-primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.way-primary:hover { background: #FFB733; border-color: #FFB733; }
.way-primary .way-icon { background: var(--ink); color: var(--amber); }
.way-primary .way-text small { color: #5A4310; }
.copy-btn.is-copied { border-color: var(--amber); }
.copy-btn.is-copied small { color: var(--amber); font-weight: 700; }

/* the meter */
.meter {
  position: relative;
  background: linear-gradient(165deg, #F5F7FB 0%, #D5DCE7 100%);
  border-radius: 26px; padding: 20px 20px 16px; color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, inset 0 -4px 0 #B7C1D1, 0 30px 60px rgba(0, 0, 0, .35);
}
.meter::before, .meter::after {
  /* mounting screws */
  content: ""; position: absolute; top: 14px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #8D99B0);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.meter::before { inset-inline-start: 14px; }
.meter::after { inset-inline-end: 14px; }
.meter-top { display: flex; align-items: center; gap: 10px; padding: 4px 18px 14px; }
.meter-top img { width: 40px; height: 40px; }
.meter-brand { display: flex; flex-direction: column; line-height: 1.35; }
.meter-brand strong { font-family: var(--f-display); font-size: 1rem; }
.meter-brand small { font-size: .74rem; color: var(--muted); }
.meter-led {
  margin-inline-start: auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 3px rgba(244, 164, 25, .22), 0 0 12px var(--amber);
}

.meter-display {
  display: flex; justify-content: center; align-items: center;
  background: linear-gradient(180deg, #04102E, #0A1F4F);
  border-radius: 14px; padding: clamp(16px, 2.4vw, 24px) 12px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .6), 0 0 0 4px #BCC6D5;
  text-decoration: none; overflow: hidden;
}
.meter-num {
  display: inline-flex; align-items: center; direction: ltr;
  font-family: var(--f-display); font-weight: 700; color: var(--amber);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.2; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(244, 164, 25, .55);
}
.meter-display:hover .meter-num { color: #FFC64D; }
/* drum digits, built by main.js */
.digit { display: inline-block; height: 1.2em; overflow: hidden; width: .68em; text-align: center; }
.digit + .digit { margin-inline-start: .04em; }
.digit-gap { display: inline-block; width: .32em; }
.reel { display: flex; flex-direction: column; transform: translateY(calc(var(--n) * -1.2em)); }
.reel span { height: 1.2em; }
.js .contact:not(.is-on) .reel { transform: translateY(0); }
.js .contact.is-on .reel { transition: transform 1.3s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 70ms); }

.meter-scale {
  height: 12px; margin: 16px 6px 0;
  background: repeating-linear-gradient(90deg, #8D99B0 0 1.5px, transparent 1.5px 10px);
  -webkit-mask: linear-gradient(180deg, #000 50%, transparent 50%);
          mask: linear-gradient(180deg, #000 50%, transparent 50%);
}
.meter-foot { display: flex; justify-content: space-between; padding: 6px 6px 0; font-family: var(--f-display); font-size: .74rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid #23428A; color: #C6D2EC; padding-block: 48px 28px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer-about p { margin-top: 14px; color: #9FB0D6; max-width: 38ch; line-height: 1.8; }
.brand-footer img { width: 52px; height: 52px; }
.brand-footer .brand-text strong { color: var(--white); }
.brand-footer .brand-text small { color: #9FB0D6; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { font-size: .92rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--amber); }
.footer-col span { color: #9FB0D6; }
.footer-phone { font-family: var(--f-display); font-weight: 600; color: var(--amber); align-self: flex-start; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid #23428A; padding-top: 18px; margin-top: 8px; font-size: .8rem; color: #9FB0D6; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 60;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white); box-shadow: 0 10px 24px rgba(10, 31, 79, .3);
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* Responsive */
@media (max-width: 1040px) {
  .site-nav { gap: 16px; }
  .site-nav a:not(.btn) { font-size: .82rem; }
}

@media (max-width: 980px) {
  .hero-grid, .about-grid, .quote-grid, .contact-grid { grid-template-columns: 1fr; }
  .meter { max-width: 520px; }
  .ways { max-width: none; }
  .hero-visual { order: -1; }
  .hero-logo { width: min(70vw, 360px); }
  .panel { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--steel); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .plate { max-width: 460px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--steel);
    padding: 6px var(--gutter) 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding-block: 12px; font-size: .92rem; border-bottom: 1px solid var(--steel); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-call { margin-top: 14px; }
}

@media (max-width: 760px) {
  .client-cols, .steps, .faq-grid, .guide-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .steps { row-gap: 22px; }
  .steps::before { display: block; top: 23px; bottom: 23px; inset-inline: 21px auto; width: 3px; height: auto; }
  .steps li { padding-inline-start: 66px; min-height: 46px; }
  .step-n { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
}

@media (max-width: 520px) {
  body { font-size: .94rem; }
  .brand-text small { display: none; }
  .breakers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .breakers::before, .breakers::after { display: none; }
  .breaker { padding: 12px 6px 10px; }
  .breaker-name { font-size: .8rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .meter { padding: 16px 12px 12px; border-radius: 20px; }
  .meter-num { font-size: 1.75rem; }
  .facts-row { grid-template-columns: 1fr; }
  .fact { padding: 14px 4px; }
  .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--steel); }
  .quote-form { grid-template-columns: 1fr; }
  .guide { padding: 16px; }
  .guide table { font-size: .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .hero-logo { opacity: 1; transform: none; }
  .current-flow { stroke-dashoffset: 0; }
  .js .contact:not(.is-on) .reel { transform: translateY(calc(var(--n) * -1.2em)); }
}
