/* ==========================================================================
   E.S.D Electrical Ltd — Design System
   RTL · Hebrew · Mobile-first · WCAG 2.0 AA / ת"י 5568
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — lightning gradient (from logo PDF) */
  --bolt-yellow: #FFC93C;
  --energy-orange: #F58220;
  --deep-ember: #E84E0F;

  /* Dark */
  --ink: #1A1A1A;
  --charcoal: #242424;
  --steel: #5C5C5C;

  /* Light */
  --white: #FFFFFF;
  --surface: #F5F6F7;
  --surface-2: #EEF0F2;
  --border: #E3E5E8;
  --warm-tint: #FFF6E3;

  /* Functional */
  --cta: var(--energy-orange);
  --cta-hover: #D3660D;
  --success: #1F9D55;
  --error: #D64541;
  --whatsapp: #25D366;

  /* Text roles */
  --text-strong: #1A1A1A;
  --text-body: #33373B;
  --text-muted: #5C6167;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #C9CCCF;

  /* Gradients */
  --gradient-bolt: linear-gradient(135deg, #FFC93C 0%, #F58220 55%, #E84E0F 100%);
  --gradient-bolt-text: linear-gradient(120deg, #F5A623 0%, #F58220 45%, #E84E0F 100%);
  --gradient-hero-dark: radial-gradient(ellipse 70% 60% at 85% 15%, rgba(245,130,32,.20), transparent 65%), linear-gradient(160deg, #1A1A1A 0%, #202020 55%, #2A1B0E 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255,201,60,.10) 0%, rgba(232,78,15,.08) 100%);

  /* Typography */
  --font-body: 'Heebo', 'Assistant', system-ui, sans-serif;
  --font-head: 'Rubik', 'Heebo', system-ui, sans-serif;

  /* Fluid type scale */
  --fs-h1: clamp(2.1rem, 1.3rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 2vw, 2.7rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .7vw, 1.5rem);
  --fs-lead: clamp(1.05rem, .98rem + .5vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9rem;
  --fs-xs: .8rem;

  /* Spacing */
  --space-section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --container: 1240px;
  --container-narrow: 900px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(26,26,26,.06);
  --shadow-sm: 0 4px 16px rgba(26,26,26,.07);
  --shadow-md: 0 12px 34px rgba(26,26,26,.10);
  --shadow-lg: 0 24px 60px rgba(26,26,26,.14);
  --shadow-cta: 0 8px 22px rgba(245,130,32,.34);
  --shadow-glow: 0 0 40px rgba(245,130,32,.28);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .5s;

  /* Layout */
  --header-h: 80px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-strong);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--deep-ember);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--energy-orange); color: #fff; }

/* Keep Latin tokens LTR inside RTL text */
bdi, .ltr { unicode-bidi: isolate; direction: ltr; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, .5rem + 2.5vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }
.section--tint { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: var(--deep-ember);
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  inline-size: 26px;
  block-size: 3px;
  border-radius: 2px;
  background: var(--gradient-bolt);
}
.section--dark .eyebrow { color: var(--bolt-yellow); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); margin-top: .8rem; }
.section--dark .section-head p { color: var(--text-on-dark-muted); }

.text-gradient {
  background: var(--gradient-bolt-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-py: .85rem;
  --btn-px: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), filter .2s var(--ease);
  will-change: transform;
  text-align: center;
}
.btn svg { inline-size: 1.15em; block-size: 1.15em; flex: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); } /* RTL: arrow points left, moves toward text */

.btn-primary {
  background: var(--gradient-bolt);
  color: var(--ink);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 12px 30px rgba(245,130,32,.42); }
.btn-primary:active { transform: translateY(0); }

.btn-solid {
  background: var(--cta);
  color: var(--ink);
  box-shadow: var(--shadow-cta);
}
.btn-solid:hover { background: var(--cta-hover); color: #fff; transform: translateY(-2px); }

.btn-outline {
  border-color: var(--border);
  color: var(--text-strong);
  background: transparent;
}
.btn-outline:hover { border-color: var(--energy-orange); color: var(--deep-ember); background: var(--warm-tint); }

.section--dark .btn-outline { border-color: rgba(255,255,255,.28); color: #fff; }
.section--dark .btn-outline:hover { border-color: var(--energy-orange); background: rgba(245,130,32,.12); color: #fff; }

.btn-ghost { background: transparent; color: var(--text-strong); padding-inline: .4rem; }
.btn-ghost:hover { color: var(--deep-ember); }

.btn-lg { --btn-py: 1.05rem; --btn-px: 2rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* Link with animated arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--deep-ember);
}
.link-arrow .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--bolt-yellow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  block-size: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), block-size .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-block-end-color: var(--border);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, .5rem + 2.5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
/* Oversized transparent logo — overflows the fixed-height bar without growing it */
.site-header, .header-inner { overflow: visible; }
.brand { position: relative; display: block; inline-size: clamp(150px, 15vw, 200px); block-size: var(--header-h); flex: none; }
.brand img {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: -6px;
  transform: translateY(-50%);
  width: clamp(150px, 15vw, 200px); height: auto;
  max-inline-size: none;
}

.main-nav ul { display: flex; align-items: center; gap: clamp(.6rem, .2rem + 1vw, 1.7rem); }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--text-body);
  padding: .4rem .2rem;
  position: relative;
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  block-size: 3px;
  border-radius: 2px;
  background: var(--gradient-bolt);
  transform: scaleX(0);
  transition: transform .28s var(--ease);
}
.main-nav a:hover { color: var(--text-strong); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--text-strong); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: .9rem; flex: none; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-strong);
}
.header-phone svg { color: var(--deep-ember); inline-size: 1.1em; block-size: 1.1em; }
.header-phone:hover { color: var(--deep-ember); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  inline-size: 46px;
  block-size: 46px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle span { display: block; block-size: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block-start: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4.5rem));
  padding-block-end: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset-block-start: -10%;
  inset-inline-start: -8%;
  inline-size: 40vw;
  block-size: 40vw;
  max-inline-size: 620px;
  max-block-size: 620px;
  background: var(--gradient-soft);
  filter: blur(40px);
  border-radius: 50%;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 { font-size: var(--fs-h1); font-weight: 900; }
.hero-copy .lead { font-size: var(--fs-lead); color: var(--text-muted); margin-block: 1.3rem 2rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-block-start: 2.2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--text-muted); font-weight: 500; }
.hero-badge svg { color: var(--success); inline-size: 1.2em; block-size: 1.2em; flex: none; }

.hero-visual { position: relative; }
.hero-visual img {
  inline-size: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.15;
  object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset-block-end: -14px;
  inset-inline-end: -14px;
  inline-size: 62%;
  block-size: 62%;
  border-radius: var(--r-lg);
  background: var(--gradient-bolt);
  z-index: -1;
  opacity: .16;
  filter: blur(8px);
}
.hero-float {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: -22px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: .85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  max-inline-size: 230px;
}
.hero-float .ic {
  inline-size: 42px; block-size: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gradient-bolt);
  color: var(--ink);
}
.hero-float .ic svg { inline-size: 22px; block-size: 22px; }
.hero-float strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); line-height: 1.2; }
.hero-float span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- Trust / Stats bar ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-block-start: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat {
  background: #fff;
  padding: clamp(1.3rem, 1rem + 1vw, 1.9rem) 1rem;
  text-align: center;
  transition: background .25s var(--ease);
}
.stat:hover { background: var(--warm-tint); }
.stat .num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.05;
  background: var(--gradient-bolt-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
}
.stat .num--text { font-size: clamp(1.15rem, .85rem + 1.1vw, 1.65rem); }
.stat .num bdi { white-space: nowrap; }
.stat .label { display: block; margin-block-start: .5rem; font-size: var(--fs-sm); color: var(--text-muted); font-weight: 500; }

/* ---------- Cards grid (audience / services) ---------- */
.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.6rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 4px;
  background: var(--gradient-bolt);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card .ic {
  inline-size: 56px; block-size: 56px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  color: var(--deep-ember);
  margin-block-end: 1.1rem;
}
.card .ic svg { inline-size: 28px; block-size: 28px; }
.card h3 { font-size: var(--fs-h3); margin-block-end: .5rem; }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Split / About ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); inline-size: 100%; object-fit: cover; }
.split ul.checks { display: grid; gap: .8rem; margin-block-start: 1.4rem; }
.checks li { display: flex; align-items: flex-start; gap: .7rem; color: var(--text-body); }
.checks li svg { color: var(--deep-ember); inline-size: 1.4em; block-size: 1.4em; flex: none; margin-block-start: .15em; }

/* ---------- Smart Home banner ----------
   The generated image IS the template: it already contains the villa (start),
   an empty dark text zone (center), and the neon house (end). We do NOT lay a
   dark overlay over it — text sits directly in the built-in dark zone. */
.smart {
  position: relative;
  background: var(--ink);
  border-radius: clamp(var(--r-md), 2vw, var(--r-lg));
  overflow: hidden;
  isolation: isolate;
}
/* The image defines the box height at its natural aspect ratio, so the whole
   template shows (villa + dark text-zone + neon house) with no crop and no
   dark overlay. Text is overlaid in the built-in dark zone. */
.smart-bg { display: block; line-height: 0; }
.smart-bg img { width: 100%; height: auto; display: block; }
.smart-content {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 16%;      /* offset from the start edge (right in RTL) — sits left of the neon house */
  inline-size: 40%;
  max-inline-size: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-shadow: 0 1px 16px rgba(0,0,0,.65);
}
.smart-content .eyebrow { display: none; }   /* the template's dark zone carries the message — heading first, like the reference */
.smart-content h2 { color: #fff; font-size: clamp(1.15rem, .6rem + 1.9vw, 2.3rem); margin: 0; line-height: 1.15; }
.smart-content p { color: #eceef0; margin-block: clamp(.4rem, 1vw, .8rem) clamp(.7rem, 1.4vw, 1.25rem); font-size: clamp(.78rem, .6rem + .55vw, 1.1rem); line-height: 1.45; }
.smart-content .btn { align-self: flex-start; --btn-py: clamp(.5rem, 1vw, .85rem); }
/* Outline button on the banner image (matches reference) */
.smart-content .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(0,0,0,.14); }
.smart-content .btn-outline:hover { border-color: var(--energy-orange); background: rgba(245,130,32,.2); color: #fff; }

@media (max-width: 900px) {
  .smart { border-radius: var(--r-md); }
  .smart-content {
    position: absolute;
    inset-block: 0 auto;
    inset-inline: 0;
    inline-size: auto;
    max-inline-size: none;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: clamp(1.5rem, 6vw, 2.4rem) clamp(1.2rem, 5vw, 2rem) 0;
  }
  .smart-content .eyebrow { display: inline-flex; justify-content: center; }
  .smart-content h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
  .smart-content p { font-size: clamp(.9rem, 2.6vw, 1.1rem); }
  .smart-content .btn { align-self: center; --btn-py: .85rem; }
}

/* ---------- Story stats (250 / 1350) ---------- */
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 1rem + 2vw, 2.6rem); }
.story {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, .5rem + 2vw, 2rem);
  align-items: center;
  padding: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.story:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.story .big {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3.4rem, 2rem + 6vw, 5.6rem);
  line-height: .85;
  background: var(--gradient-bolt-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.03em;
}
.story .unit { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--deep-ember); margin-block-start: .3rem; }
.story h3 { font-size: 1.15rem; margin-block-end: .4rem; }
.story p { color: var(--text-muted); font-size: var(--fs-sm); }

.stories-note {
  text-align: center;
  margin-block-start: 2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-lead);
  color: var(--text-strong);
}

/* ---------- Numbered list (why-us) ---------- */
.numbered { display: grid; gap: clamp(1.2rem, .8rem + 1.5vw, 2rem); counter-reset: n; }
.numbered.cols { grid-template-columns: 1fr 1fr; }
.num-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: start;
  padding-block-end: clamp(1.2rem, .8rem + 1vw, 1.8rem);
  border-block-end: 1px solid var(--border);
}
.num-item::before {
  counter-increment: n;
  content: counter(n);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  line-height: 1;
  background: var(--gradient-bolt-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  min-inline-size: 1.6ch;
}
.num-item h3 { font-size: var(--fs-h3); margin-block-end: .35rem; }
.num-item p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Vision timeline ---------- */
.timeline { display: grid; gap: 0; position: relative; margin-block-start: 1rem; }
.tl-item {
  position: relative;
  padding-inline-start: 2.5rem;
  padding-block-end: 2.2rem;
  border-inline-start: 2px solid var(--border);
}
.tl-item:last-child { border-inline-start-color: transparent; padding-block-end: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -9px;
  inset-block-start: 2px;
  inline-size: 16px; block-size: 16px;
  border-radius: 50%;
  background: var(--gradient-bolt);
  box-shadow: 0 0 0 4px rgba(245,130,32,.15);
}
.tl-item h3 { font-size: var(--fs-h3); margin-block-end: .4rem; }
.tl-item p { color: var(--text-muted); }
.section--dark .tl-item { border-inline-start-color: rgba(255,255,255,.15); }
.section--dark .tl-item p { color: var(--text-on-dark-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--gradient-hero-dark);
  padding: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset-block-start: -40%; inset-inline-end: -10%;
  inline-size: 380px; block-size: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,130,32,.30), transparent 70%);
  z-index: -1;
}
.cta-band h2 { color: #fff; font-size: var(--fs-h2); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--text-on-dark-muted); font-size: var(--fs-lead); margin-block: 1rem 1.8rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.3); color: #fff; }
.cta-band .btn-outline:hover { border-color: var(--energy-orange); background: rgba(245,130,32,.14); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.field { display: grid; gap: .4rem; margin-block-end: 1.1rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--text-strong); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text-strong);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--energy-orange);
  box-shadow: 0 0 0 4px rgba(245,130,32,.14);
}
.field textarea { resize: vertical; min-block-size: 130px; }

.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}
.contact-card .ic {
  inline-size: 46px; block-size: 46px; flex: none;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--gradient-soft); color: var(--deep-ember);
}
.contact-card .ic svg { inline-size: 22px; block-size: 22px; }
.contact-card b { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.contact-card span { font-size: var(--fs-sm); color: var(--text-muted); }

/* Placeholder token for missing client data */
.tbd {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82em; color: var(--steel);
  background: var(--surface-2);
  border: 1px dashed #c7ccd1;
  border-radius: var(--r-pill);
  padding: .12em .7em;
  font-family: var(--font-body);
  direction: rtl;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(2.2rem, 1.4rem + 3vw, 4rem)) clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  background: var(--gradient-hero-dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute; inset-block-end: -50%; inset-inline-start: -5%;
  inline-size: 420px; block-size: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,130,32,.22), transparent 70%);
  z-index: -1;
}
.page-hero h1 { color: #fff; font-size: var(--fs-h1); max-width: 20ch; }
.page-hero p { color: var(--text-on-dark-muted); font-size: var(--fs-lead); margin-block-start: 1rem; max-width: 60ch; }
.breadcrumb { display: flex; gap: .5rem; font-size: var(--fs-sm); color: var(--text-on-dark-muted); margin-block-end: 1.2rem; }
.breadcrumb a:hover { color: var(--bolt-yellow); }
.breadcrumb span { opacity: .5; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 68ch; }
.prose p { margin-block-end: 1.1rem; color: var(--text-body); }
.prose h2 { font-size: var(--fs-h2); margin-block: 2rem 1rem; }
.prose h3 { font-size: var(--fs-h3); margin-block: 1.4rem .6rem; }
.prose ul.checks { margin-block: 1rem; }

.quote {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 1rem + 2vw, 2.6rem) clamp(1.8rem, 1rem + 3vw, 3.4rem);
  font-family: var(--font-head);
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.6;
}
.quote::before {
  content: "\201D";
  position: absolute;
  inset-block-start: -.1em; inset-inline-start: .3em;
  font-size: 5rem;
  color: var(--energy-orange);
  opacity: .3;
  font-family: Georgia, serif;
}
.quote cite { display: block; margin-block-start: 1rem; font-size: var(--fs-sm); font-style: normal; font-weight: 400; color: var(--text-muted); font-family: var(--font-body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(1.6rem, 1rem + 3vw, 3rem); padding-block-end: 2.6rem; }
.footer-brand img { width: 200px; height: auto; margin-block-end: 1rem; margin-inline-start: -6px; }
.footer-brand p { font-size: var(--fs-sm); max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-block-end: 1rem; font-family: var(--font-head); }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: var(--fs-sm); color: var(--text-on-dark-muted); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--bolt-yellow); }
.footer-contact li { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-sm); margin-block-end: .6rem; }
.footer-contact svg { color: var(--energy-orange); inline-size: 1.1em; block-size: 1.1em; flex: none; }
.footer-bottom {
  border-block-start: 1px solid rgba(255,255,255,.1);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: var(--fs-xs);
}
.footer-bottom nav { display: flex; gap: 1.2rem; }
.footer-bottom a:hover { color: var(--bolt-yellow); }

/* ---------- Studio signature (developer credit + soft marketing CTA) ---------- */
.studio-credit { position: relative; background: #131313; }
.studio-credit::before {
  content: "";
  position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 2px;
  background: var(--gradient-bolt); opacity: .75;
}
.studio-credit__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .7rem 1.6rem; padding-block: 1.05rem;
}
.studio-credit__msg { margin: 0; font-size: var(--fs-sm); color: #9a9ea2; }
.studio-credit__msg strong { color: #fff; font-family: var(--font-head); font-weight: 700; }
.studio-credit__cta { display: inline-flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-size: var(--fs-sm); color: #b9bcbf; }
.studio-credit__by b { color: #fff; font-family: var(--font-head); }
.studio-credit__cta .go {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 700; white-space: nowrap;
  background: var(--gradient-bolt); color: var(--ink);
  padding: .5rem 1.05rem; border-radius: var(--r-pill);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.studio-credit__cta .go .arrow { transition: transform .25s var(--ease); }
.studio-credit__cta:hover .go { transform: translateY(-2px); box-shadow: var(--shadow-cta); filter: brightness(1.04); }
.studio-credit__cta:hover .go .arrow { transform: translateX(-4px); }
@media (max-width: 640px) {
  .studio-credit__inner { flex-direction: column; text-align: center; gap: .9rem; }
  .studio-credit__cta { flex-direction: column; gap: .6rem; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 90;
  inline-size: 58px; block-size: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.42);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { inline-size: 30px; block-size: 30px; }
.wa-float::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Visually-hidden (screen-reader only) ---------- */
.sr-only {
  position: absolute;
  inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  inset-block-start: -60px;
  inset-inline-start: 1rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: var(--r-sm);
  transition: inset-block-start .2s var(--ease);
}
.skip-link:focus { inset-block-start: 1rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Free up header space on narrow desktops so the 6-item nav stays on one line */
@media (max-width: 1080px) { .header-phone { display: none; } }
@media (max-width: 960px) { .main-nav ul { gap: .5rem; } .main-nav a { font-size: .92rem; } }

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand { inline-size: 150px; }
  .brand img { width: 150px; inset-inline-start: -4px; }
  .main-nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    background: #fff;
    border-block-start: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem clamp(1.1rem, .5rem + 2.5vw, 2.5rem) 1.6rem;
    transform: translateY(-140%);
    transition: transform .35s var(--ease);
    max-block-size: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-block-end: 1px solid var(--surface-2); }
  .main-nav a { display: block; padding: 1rem .2rem; font-size: 1.1rem; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .header-actions .btn { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .stories { grid-template-columns: 1fr; }
  .numbered.cols { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .smart-bg::after { background: linear-gradient(180deg, rgba(26,26,26,.55) 0%, rgba(26,26,26,.9) 100%); }
  .smart-content { margin-inline-start: 0; max-inline-size: none; }
}

@media (max-width: 520px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-float { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .story { grid-template-columns: 1fr; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .nav-toggle, .hero-actions, .cta-band { display: none !important; }
}
