/* ==========================================================================
   Ankaraservislerim — Site stylesheet
   Premium corporate design system v3 (Bosch/Siemens-inspired).
   Palette: Navy #0B2A4A · Blue #1E73C2 · Amber #F5A623
   Pure-CSS redesign: every selector matches the existing markup — no HTML,
   SEO, URL or schema changes required.
   Mobile-first, single file, no external assets (fast first paint).
   System font stack avoids render-blocking font downloads.
   Animations use transform/opacity only (compositor-friendly, no reflow).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #ffffff;
  --color-surface: #f6f9fc;
  --color-ink: #1b2a3a;
  --color-ink-soft: #4d6076;
  --color-brand: #1e73c2;
  --color-brand-dark: #0b2a4a;
  --color-brand-deep: #071e38;
  --color-accent: #f5a623;
  --color-accent-dark: #c97f0a;
  --color-whatsapp: #1ebe5d;
  --color-whatsapp-dark: #149c49;
  --color-line: #dde6f0;

  /* Gradients */
  --grad-brand: linear-gradient(140deg, #0b2a4a 0%, #1e73c2 100%);
  --grad-accent: linear-gradient(135deg, #f5a623 0%, #e08c0b 100%);
  --grad-whatsapp: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
  --grad-deep:
    radial-gradient(48rem 30rem at 88% -10%, rgba(30, 115, 194, 0.38), transparent 62%),
    radial-gradient(36rem 26rem at -5% 110%, rgba(245, 166, 35, 0.14), transparent 58%),
    linear-gradient(160deg, #0e3560 0%, #071e38 58%, #04111f 100%);

  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 1px 2px rgba(11, 42, 74, 0.06), 0 6px 20px rgba(11, 42, 74, 0.08);
  --shadow-lift: 0 10px 24px rgba(11, 42, 74, 0.14), 0 24px 56px rgba(11, 42, 74, 0.14);
  --glow-whatsapp: 0 10px 28px rgba(30, 190, 93, 0.38);
  --glow-accent: 0 10px 28px rgba(245, 166, 35, 0.38);
  --container: 74rem;
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-bg);
  /* Mobile hardening: nothing may create a horizontal page scrollbar.
     `clip` (not `hidden`) so the body doesn't become a scroll container. */
  overflow-x: clip;
}

/* Long Turkish/Arabic compounds must wrap instead of overflowing cards */
h1,
h2,
h3,
h4,
p,
li,
a {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 0.8rem;
  color: var(--color-ink);
  text-wrap: balance;
  letter-spacing: -0.022em;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.17rem;
  font-weight: 750;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem; /* logical: flips automatically in RTL */
}

a {
  color: var(--color-brand);
}

a:hover {
  color: var(--color-brand-dark);
}

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-alt {
  background-color: var(--color-surface);
  background-image: linear-gradient(180deg, #eef3f9 0%, #f7fafd 100%);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head p {
  color: var(--color-ink-soft);
  font-size: 1.1rem;
}

/* Small uppercase eyebrow label above section titles */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.section-label::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-accent);
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 40em) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 73em) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-brand-dark);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Buttons — strong, rounded, glowing CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.9rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex-shrink: 0;
}

/* Extra-large CTA variant */
.btn-xl {
  width: 100%;
  padding: 1.15rem 2.4rem;
  font-size: 1.12rem;
}

@media (min-width: 30em) {
  .btn-xl {
    width: auto;
  }
}

.btn-primary {
  background: var(--grad-accent);
  color: #2a1c05;
  box-shadow: var(--glow-accent);
}

.btn-primary:hover {
  color: #2a1c05;
  filter: brightness(1.06);
  /* Lifted glow: same accent colour, wider halo + depth shadow. */
  box-shadow: var(--glow-accent), 0 12px 28px rgba(4, 17, 31, 0.18);
}

.btn-whatsapp {
  background: var(--grad-whatsapp);
  color: #fff;
  box-shadow: var(--glow-whatsapp);
}

.btn-whatsapp:hover {
  color: #fff;
  filter: brightness(1.07);
  box-shadow: var(--glow-whatsapp), 0 12px 28px rgba(4, 17, 31, 0.18);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.btn-outline:hover {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.btn-light {
  background-color: #fff;
  color: var(--color-brand-dark);
  box-shadow: 0 8px 22px rgba(4, 17, 31, 0.25);
}

.btn-light:hover {
  background-color: #f2f7fc;
  color: var(--color-brand-deep);
}

/* Hero/CTA buttons go full-width on small phones for thumb reach */
@media (max-width: 30em) {
  .hero-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   5. Floating WhatsApp button (every page) — with soft pulse ring
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.9rem;
  height: 3.9rem;
  border-radius: 50%;
  background: var(--grad-whatsapp);
  color: #fff;
  box-shadow: var(--glow-whatsapp), 0 6px 18px rgba(4, 17, 31, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.wa-float:hover {
  transform: scale(1.08);
  filter: brightness(1.07);
  color: #fff;
}

/* Pulse ring — transform/opacity only; disabled by the global
   prefers-reduced-motion override. */
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: wa-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  70%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   6. Header / navigation — frosted, elevated
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(11, 42, 74, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 24px rgba(11, 42, 74, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-brand-dark);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0; /* never let the nav squeeze the logo lockup */
}

.brand svg {
  flex-shrink: 0;
  color: var(--color-brand);
}

/* Real logo image in header (assets/ankaraservislerim-logo.webp) */
.brand img {
  height: 4.5rem; /* ~72px — prominent but leaves room for the 8-item nav */
  width: auto;
}

/* Phones: keep the lockup readable without inflating the sticky bar. */
@media (max-width: 36em) {
  .brand img {
    height: 4rem;
  }
}

/* --------------------------------------------------------------------------
   6b. Language switcher (TR / AR / EN)
   -------------------------------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(11, 42, 74, 0.06);
}

.lang-btn {
  border: 0;
  background: transparent;
  /* ≥40px touch target on phones */
  min-height: 2.5rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--color-brand);
}

.lang-btn[aria-pressed="true"] {
  background: var(--grad-brand);
  color: #fff;
}

/* Mobile drawer: switcher sits under the CTA */
.site-nav .lang-switch {
  margin-top: 1rem;
}

@media (min-width: 73em) {
  .site-nav .lang-switch {
    margin-top: 0;
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0.7rem;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.site-nav li + li {
  border-top: 1px solid var(--color-line);
}

.site-nav a:not(.btn) {
  display: block;
  padding: 0.9rem 0.25rem;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--color-ink);
  text-decoration: none;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--color-brand);
}

.site-nav a[aria-current="page"]:not(.btn) {
  font-weight: 800;
}

.nav-cta {
  width: 100%;
  padding-block: 0.7rem;
}

@media (min-width: 73em) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.1vw, 1.25rem);
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(0.7rem, 1vw, 1.2rem);
    margin: 0;
  }

  .site-nav li + li {
    border-top: 0;
  }

  /* Group the service-related trio (Hizmetler · Markalar · Servis Bölgeleri)
     from the secondary nav with a hairline before Blog. */
  .site-nav .nav-divider {
    padding-inline-end: clamp(0.85rem, 1.4vw, 1.4rem);
    border-inline-end: 1px solid var(--color-line);
  }

  .site-nav a:not(.btn) {
    position: relative;
    padding: 0.4rem 0;
    font-size: 0.96rem;
    white-space: nowrap;
  }

  /* Animated underline on desktop nav links */
  .site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
  }

  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current="page"]:not(.btn)::after {
    transform: scaleX(1);
  }

  .nav-cta {
    width: auto;
    padding: 0.6rem 1.15rem;
  }
}

/* --------------------------------------------------------------------------
   6c. Rotating promotion bar (above the hero) — pure CSS cycle, no JS.
   Five items cross-fade on a 20s loop; reduced-motion shows the first only.
   -------------------------------------------------------------------------- */
.promo-bar {
  background: linear-gradient(90deg, #0e3560 0%, #1e73c2 100%);
  border-bottom: 1px solid rgba(122, 184, 240, 0.25);
}

.promo-track {
  position: relative;
  height: 2.5rem;
}

.promo-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  font-size: 0.88rem;
  font-weight: 650;
  color: #dcebf9;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  animation: promo-cycle 20s linear infinite;
}

.promo-item::before {
  content: "★";
  flex-shrink: 0;
  color: var(--color-accent);
}

/* Promo items are WhatsApp links — keep the bar look, add affordance */
a.promo-item {
  color: #dcebf9;
  text-decoration: none;
}

a.promo-item:hover span:first-of-type {
  text-decoration: underline;
  color: #fff;
}

.promo-item:nth-child(2) { animation-delay: 4s; }
.promo-item:nth-child(3) { animation-delay: 8s; }
.promo-item:nth-child(4) { animation-delay: 12s; }
.promo-item:nth-child(5) { animation-delay: 16s; }

@keyframes promo-cycle {
  0% { opacity: 0; }
  2%, 18% { opacity: 1; }
  20%, 100% { opacity: 0; }
}

/* Reduced motion: the global override neutralises the cycle — pin the
   first promotion visible instead of showing an empty bar. */
@media (prefers-reduced-motion: reduce) {
  .promo-item {
    animation: none;
  }

  .promo-item:first-child {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   6d. Appliance coverage quick-nav — compact icon tiles
   -------------------------------------------------------------------------- */
.coverage {
  padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.75rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coverage-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.1rem 0.5rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 0.9rem;
  box-shadow: 0 2px 8px rgba(11, 42, 74, 0.05);
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.coverage-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 115, 194, 0.45);
  box-shadow: 0 10px 22px rgba(11, 42, 74, 0.12);
  color: var(--color-brand);
}

.coverage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: var(--grad-brand);
  color: #fff;
}

.coverage-icon svg {
  width: 55%;
  height: 55%;
}

/* Muted second line inside coverage cards (markalar / servis-bolgeleri). */
.coverage-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.62;
}

/* Closing SEO note under listing grids (markalar / servis-bolgeleri). */
.page-note {
  max-width: 56rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Compact related-links line under each service article (hizmetler). */
.service-links {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--color-muted, #5b6b7b);
}

.service-links a {
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 650;
}

.service-links a:hover {
  text-decoration: underline;
}

/* Three-CTA action row on service articles — wraps cleanly on mobile. */
.service-actions {
  margin-top: 1.5rem;
}

/* Homepage quick-access buttons (by brand / by district) — centred row. */
.routes-actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   7. Hero (homepage) — bigger, layered, premium
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #bdd4e9;
  background-color: var(--color-brand-deep);
  /* Dot grid + mesh glows + deep gradient, one composite paint. */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.5px),
    radial-gradient(48rem 30rem at 88% -10%, rgba(30, 115, 194, 0.38), transparent 62%),
    radial-gradient(36rem 26rem at -5% 110%, rgba(245, 166, 35, 0.14), transparent 58%),
    linear-gradient(160deg, #0e3560 0%, #071e38 58%, #04111f 100%);
  background-size: 30px 30px, auto, auto, auto;
  /* SaaS-tight vertical rhythm: ~40% less headroom than the original. */
  padding-block: clamp(2.4rem, 5.5vw, 4.5rem) clamp(4rem, 8vw, 6.5rem);
}

/* Static glow accent — deliberately NOT animated (no moving background;
   keeps paint cost at zero after first frame). */
.hero::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -12%;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(30, 115, 194, 0.32), rgba(30, 115, 194, 0) 62%);
  pointer-events: none;
}

.hero .container {
  position: relative; /* keeps content above the glow */
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

/* Desktop: van on the LEFT, copy + CTAs on the RIGHT.
   Mobile keeps DOM order (copy first, van below the CTAs).
   Under dir="rtl" the grid mirrors automatically.
   The van dominates: wider hero container, ~2:1 column split with a
   guaranteed minimum for the copy, tighter gap, uncapped illustration. */
@media (min-width: 56em) {
  .hero .container {
    max-width: 96rem;
  }

  .hero-grid {
    /* ~65% visual / ~35% copy — SaaS hero proportions. */
    grid-template-columns: 2fr minmax(19rem, 1fr);
    gap: clamp(1.75rem, 2.5vw, 2.5rem);
  }

  .hero-illustration {
    order: 1;
    max-width: none; /* column width governs; image keeps its crop ratio */
    /* Bleed through the container padding so the van reads
       edge-to-edge on the leading side (hero clips overflow). */
    width: calc(100% + clamp(1.25rem, 4vw, 2rem));
    margin-inline-start: calc(-1 * clamp(1.25rem, 4vw, 2rem));
  }

  .hero-copy {
    order: 2;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(122, 184, 240, 0.45);
  border-radius: 999px;
  background-color: rgba(30, 115, 194, 0.18);
  box-shadow: 0 0 0 4px rgba(30, 115, 194, 0.07);
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #abd0f1;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.15rem;
  text-shadow: 0 2px 24px rgba(4, 17, 31, 0.45);
}

/* Gradient-filled keyword inside the headline */
.text-accent {
  background: linear-gradient(92deg, #ffb938 0%, #ffd47e 55%, #ffb938 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 38rem;
  font-size: clamp(1.18rem, 2.3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #cfe2f4;
  text-wrap: balance;
}

/* Secondary support line under the subtitle */
.hero-sub {
  max-width: 36rem;
  margin-top: -0.2rem;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  color: #a3bfd9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-phone-note {
  margin: 1.1rem 0 0;
  font-size: 1rem;
  color: #7e9cba;
}

.hero-phone-note a {
  color: #dcebf9;
  font-weight: 800;
  text-decoration: none;
}

.hero-phone-note a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.9rem;
  font-weight: 650;
  color: #dcebf9;
}

.hero-badges li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 800;
}

.hero-illustration {
  position: relative;
  margin-inline: auto;
  max-width: 58rem;
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(2, 12, 22, 0.5));
  /* Van fades in once — opacity/transform only, then static. */
  animation: hero-enter 0.8s ease-out both;
}

/* Branded van photo (assets/service-van.webp) — fills the wrapper.
   16:9 crop trims dead sky/asphalt from the 3:2 source so the van
   carries more of the frame; center 55% keeps roof rack and wheels
   fully in view (van spans ~21–86% of the source height). */
.hero-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 55%;
  border-radius: var(--radius);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero copy: staggered fade-up on load (one-shot, opacity/transform only;
   the global prefers-reduced-motion override flattens it to instant). */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy > * {
  animation: hero-rise 0.65s ease-out both;
}

.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.13s; }
.hero-copy > :nth-child(3) { animation-delay: 0.21s; }
.hero-copy > :nth-child(4) { animation-delay: 0.29s; }
.hero-copy > :nth-child(5) { animation-delay: 0.37s; }
.hero-copy > :nth-child(6) { animation-delay: 0.45s; }
.hero-copy > :nth-child(7) { animation-delay: 0.53s; }

/* Scroll-triggered reveals — js/main.js adds .reveal-init on load and
   .reveal-in when the element enters the viewport (IntersectionObserver).
   :where() keeps specificity at zero so card hover transforms still win.
   Without JS the classes never appear and everything stays visible. */
:where(.reveal-init) {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

:where(.reveal-init.reveal-in) {
  opacity: 1;
  transform: none;
}

/* Gentle stagger when a row of cards enters together. */
:where(.reveal-init:nth-child(2)) { transition-delay: 0.07s; }
:where(.reveal-init:nth-child(3)) { transition-delay: 0.14s; }
:where(.reveal-init:nth-child(4)) { transition-delay: 0.21s; }
:where(.reveal-init:nth-child(5)) { transition-delay: 0.28s; }
:where(.reveal-init:nth-child(6)) { transition-delay: 0.35s; }

/* Floating appliance chips around the van — gentle, staggered,
   transform-only float (disabled by prefers-reduced-motion). */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 5.5vw, 3.1rem);
  height: clamp(2.5rem, 5.5vw, 3.1rem);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(122, 184, 240, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #cfe2f4;
  box-shadow: 0 8px 22px rgba(2, 12, 22, 0.35);
  animation: chip-float 6s ease-in-out infinite;
}

.hero-chip svg {
  width: 45%;
  height: 45%;
}

@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

.hero-chip-tv {
  top: 4%;
  inset-inline-start: 3%;
  animation-delay: -0.8s;
}

.hero-chip-klima {
  top: 0;
  inset-inline-end: 16%;
  animation-delay: -2.1s;
}

.hero-chip-buzdolabi {
  top: 34%;
  inset-inline-start: -1%;
  animation-delay: -3.4s;
}

.hero-chip-bulasik {
  top: 24%;
  inset-inline-end: -1%;
  animation-delay: -1.5s;
}

.hero-chip-camasir {
  bottom: 13%;
  inset-inline-start: 7%;
  animation-delay: -4.6s;
}

.hero-chip-kombi {
  bottom: 18%;
  inset-inline-end: 3%;
  animation-delay: -2.8s;
}

.hero-chip-sofben {
  top: 52%;
  inset-inline-end: -2%;
  animation-delay: -5.2s;
}

.hero-chip-hidrofor {
  top: 50%;
  inset-inline-start: -2%;
  animation-delay: -3.9s;
}

/* Accent (offer) badge in the hero badge row */
.hero-badge-accent {
  background-color: rgba(245, 166, 35, 0.16) !important;
  border-color: rgba(245, 166, 35, 0.55) !important;
  color: #ffd685 !important;
}

.hero-badges .hero-badge-accent::before {
  content: "★";
}

/* Soft conversion pulse on the primary WhatsApp CTA — same ring as the
   floating bubble, transform/opacity only. */
.wa-pulse {
  position: relative;
}

.wa-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. Stats card (overlaps hero bottom edge)
   -------------------------------------------------------------------------- */
.stats-band {
  position: relative;
  z-index: 2;
  margin-top: clamp(-4rem, -5.5vw, -3rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 48em) {
  .stats-card {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-card .stat + .stat {
    border-left: 1px solid var(--color-line);
  }
}

.stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.stat strong {
  display: block;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  font-weight: 550;
}

/* --------------------------------------------------------------------------
   9. Cards — hover lift + gradient top bar
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Gradient top edge revealed on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 115, 194, 0.35);
  box-shadow: var(--shadow-lift);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: 1.2rem;
  background: var(--grad-brand);
  border-radius: 1rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 42, 74, 0.28);
}

.card p {
  color: var(--color-ink-soft);
  margin-bottom: 0;
}

.card .card-link {
  margin-top: auto;
  padding-top: 1.2rem;
  font-weight: 800;
  color: var(--color-brand);
  text-decoration: none;
}

.card .card-link::after {
  content: " →";
  transition: none;
}

.card .card-link:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
}

/* Service grid (homepage): tighter rhythm in the 4-column layout */
.services-grid .card {
  padding: clamp(1.4rem, 2.5vw, 1.7rem);
}

.services-grid .card-icon {
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1rem;
}

.services-grid h3 {
  font-size: 1.06rem;
}

.services-grid .card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.services-grid .card .card-link {
  font-size: 0.95rem;
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   9a-2. Offers / campaigns — app-style carousel (homepage)
   Mobile-first: horizontal scroll-snap swipe; desktop: 3-col grid.
   Pure CSS (no JS, no images). RTL-safe via logical properties; the
   scroll container reverses automatically under dir="rtl".
   -------------------------------------------------------------------------- */
.offers {
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}

.offers-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 19rem);
  gap: 0.9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  padding: 0.25rem 0.25rem 1.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.offers-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 73em) {
  .offers-track {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    overflow: visible;
    padding-bottom: 0.25rem;
  }
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 1.4rem 1.3rem 1.1rem;
  background-color: var(--color-bg);
  background-image: radial-gradient(14rem 8rem at 100% 0%, rgba(30, 115, 194, 0.07), transparent 65%);
  border: 1px solid var(--color-line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.offer-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--grad-accent);
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 115, 194, 0.35);
  box-shadow: var(--shadow-lift);
}

.offer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.9rem;
  border-radius: 0.9rem;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 42, 74, 0.25);
}

.offer-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.45rem;
}

.offer-card p {
  margin-bottom: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  overflow-wrap: break-word;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.1rem;
}

.offer-actions .btn {
  flex: 1 1 auto;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.offer-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   9a-3. Sticky mobile CTA bar — WhatsApp + Call always one thumb away.
   Visible only on narrow screens; respects the iPhone home indicator.
   -------------------------------------------------------------------------- */
.cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem clamp(0.75rem, 3vw, 1rem) calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -6px 24px rgba(11, 42, 74, 0.12);
}

.cta-bar .btn {
  padding: 0.7rem 0.5rem;
  font-size: 0.95rem;
}

.cta-bar .btn-light {
  border: 1px solid var(--color-line);
  box-shadow: none;
}

/* While the bar is shown: keep page content reachable above it and
   hide the floating WhatsApp bubble (the bar replaces it). */
@media (max-width: 47.99em) {
  body:has(.cta-bar) {
    padding-bottom: 4.6rem;
  }

  body:has(.cta-bar) .wa-float {
    display: none;
  }
}

@media (min-width: 48em) {
  .cta-bar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9a-4. Recent repairs / our work — placeholder before/after cards
   -------------------------------------------------------------------------- */
.work-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.1rem 1.25rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 115, 194, 0.35);
  box-shadow: var(--shadow-lift);
}

/* Before/after placeholder strip — two flex halves so RTL mirrors natively */
.work-visual {
  display: flex;
  height: 6.5rem;
  margin-bottom: 0.95rem;
  border-radius: 0.8rem;
  overflow: hidden;
}

.work-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8eef5;
  color: var(--color-ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-half-after {
  background: var(--grad-brand);
  color: #fff;
}

.work-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}

.work-meta {
  margin: 0 0 0.95rem;
  font-size: 0.86rem;
  color: var(--color-ink-soft);
}

.work-card .btn {
  margin-top: auto;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   9a-5. "Send fault photo/video" conversion band
   -------------------------------------------------------------------------- */
.photo-cta {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.photo-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #25d366 0%, #128a43 100%);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(24rem 14rem at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

@media (min-width: 56em) {
  .photo-band {
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
  }
}

.photo-copy {
  position: relative;
}

.photo-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.photo-band h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.photo-band p:not(.photo-label) {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.photo-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.photo-actions .btn {
  width: 100%;
}

.photo-call {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.photo-call:hover {
  background-color: #fff;
  color: #128a43;
}

/* --------------------------------------------------------------------------
   9b. Trust strip — compact assurance cards
   -------------------------------------------------------------------------- */
/* Flexible column count (holds 5 cards gracefully on any width) */
.trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}

.trust-item {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.1rem) clamp(1.25rem, 2.5vw, 1.6rem);
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 115, 194, 0.35);
  box-shadow: var(--shadow-lift);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 42, 74, 0.28);
}

.trust-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   9c. Brand logo strip — text wordmarks (no external assets, CSP-safe)
   -------------------------------------------------------------------------- */
.brands-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1.1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  /* Muted wordmark grey-blue, but ≥4.5:1 on white (WCAG AA / Lighthouse). */
  color: var(--color-ink-soft);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.brand-logo:hover {
  transform: translateY(-3px);
  color: var(--color-brand);
  border-color: rgba(30, 115, 194, 0.4);
  box-shadow: var(--shadow-lift);
}

/* --------------------------------------------------------------------------
   9d. Customer review cards
   -------------------------------------------------------------------------- */
.review-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(1.6rem, 3vw, 2rem);
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 115, 194, 0.35);
  box-shadow: var(--shadow-lift);
}

.review-stars {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

.review-quote {
  margin: 0 0 1.4rem;
}

.review-quote p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-line);
}

.review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.review-id strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--color-ink);
}

.review-meta {
  display: block;
  font-size: 0.83rem;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   10. Process steps
   -------------------------------------------------------------------------- */
.step {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2rem);
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #2a1c05;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--glow-accent);
}

.step p {
  margin-bottom: 0;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   11. Service areas + brand chips + address panel
   -------------------------------------------------------------------------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  padding: 0.55rem 1.2rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--color-ink-soft);
  box-shadow: 0 2px 8px rgba(11, 42, 74, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease;
}

.area-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 115, 194, 0.45);
  color: var(--color-brand);
  box-shadow: 0 6px 16px rgba(11, 42, 74, 0.10);
}

/* Linked chips (district coverage pages) inherit the chip look */
.area-list li:has(> a) {
  padding: 0;
}

.area-list a {
  display: block;
  padding: 0.55rem 1.2rem;
  color: inherit;
  text-decoration: none;
}

.area-list a:hover {
  color: var(--color-brand);
}

/* Link line under the brand chips (district pages) */
.guide-link {
  margin: 1.25rem 0 0;
  font-weight: 750;
}

/* Related blog-guide links block (district + brand pages) */
.guide-links {
  margin-top: 2rem;
}

.guide-links h3 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.8rem;
}

/* Brand wordmark chips on the homepage can be links; the whole card is
   the click target (mobile-friendly hit area). */
.brand-logo:has(> a) {
  padding: 0;
}

.brand-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.35rem 1rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo a:hover {
  color: var(--color-brand);
}

/* Categorised brand groups (homepage premium brand section) */
.brand-group + .brand-group {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.brand-group-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.brand-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-line);
}

/* Denser wordmark chips when groups hold many brands */
.brand-group .brands-strip {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
}

.brand-group .brand-logo {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.brand-group .brand-logo a {
  padding: 1rem 0.75rem;
}

.areas-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 56em) {
  .areas-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.address-card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-brand-dark);
  background-image:
    radial-gradient(20rem 14rem at 100% 0%, rgba(245, 166, 35, 0.18), transparent 60%),
    linear-gradient(150deg, #1e73c2 0%, #0b2a4a 70%);
  color: #c2d6ea;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lift);
}

.address-card h3 {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
}

.address-card h3 svg {
  color: var(--color-accent);
}

.address-card p {
  color: #bcd3e8;
}

.address-card a:not(.btn) {
  color: #eaf3fb;
  font-weight: 700;
}

.address-card a:not(.btn):hover {
  color: #fff;
}

.address-card .hero-actions {
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   11b. Service / Brand / Area explorer (tabs + search + cards)
   -------------------------------------------------------------------------- */
.ex-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ex-tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.3rem;
  background-color: #fff;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(11, 42, 74, 0.06);
}

.ex-tab {
  border: 0;
  background: transparent;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ex-tab:hover {
  color: var(--color-brand);
}

.ex-tab[aria-selected="true"] {
  background: var(--grad-brand);
  color: #fff;
}

.ex-search {
  position: relative;
  flex: 1;
  min-width: 15rem;
  max-width: 26rem;
}

.ex-search svg {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-ink-soft);
  pointer-events: none;
}

.ex-search input {
  width: 100%;
  padding-block: 0.8rem;
  padding-inline: 2.8rem 1.1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background-color: #fff;
  font: inherit;
  color: var(--color-ink);
}

.ex-search input:focus {
  border-color: var(--color-brand);
  outline: 2px solid var(--color-brand);
  outline-offset: 0;
}

.ex-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
}

/* Group headings span the full grid row */
.ex-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0 0.1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.ex-group::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-line);
}

.ex-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.05rem;
  background-color: #fff;
  border: 1px solid var(--color-line);
  border-radius: 0.9rem;
  box-shadow: 0 2px 8px rgba(11, 42, 74, 0.05);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ex-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 115, 194, 0.5);
  box-shadow: 0 10px 22px rgba(11, 42, 74, 0.12);
}

.ex-card svg {
  flex-shrink: 0;
  color: var(--color-brand);
}

.ex-card-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-ink);
}

.ex-card-tag {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
}

.ex-empty {
  margin: 1rem 0 0;
  color: var(--color-ink-soft);
  font-weight: 600;
}

.ex-address {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   11c. Detail modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background-color: rgba(4, 17, 31, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: 88vh;
  overflow: auto;
  background-color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lift);
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  inset-inline-end: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background-color: #fff;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.modal-close:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.modal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.modal h3 {
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
  padding-inline-end: 2.5rem;
}

.modal-desc {
  color: var(--color-ink-soft);
}

.modal-pagelink {
  font-weight: 750;
}

.modal-actions {
  margin: 1.4rem 0;
}

.modal-related h4 {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.modal-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-related-list button {
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background-color: var(--color-surface);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 650;
  color: var(--color-brand-dark);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.modal-related-list button:hover {
  border-color: rgba(30, 115, 194, 0.5);
  color: var(--color-brand);
  transform: translateY(-1px);
}

/* Scroll lock while the modal is open */
.modal-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   12. CTA band — high-contrast conversion strip
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: #b3cce4;
  text-align: center;
  background-color: var(--color-brand-deep);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
    radial-gradient(34rem 20rem at 50% -15%, rgba(30, 115, 194, 0.4), transparent 65%),
    linear-gradient(160deg, #0e3560 0%, #071e38 100%);
  background-size: 30px 30px, auto, auto;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.cta-band h2 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(4, 17, 31, 0.4);
}

.cta-band p {
  font-size: 1.08rem;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   13. Inner page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #bdd4e9;
  background-color: var(--color-brand-deep);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
    radial-gradient(36rem 20rem at 88% 0%, rgba(30, 115, 194, 0.36), transparent 62%),
    linear-gradient(160deg, #0e3560 0%, #071e38 100%);
  background-size: 30px 30px, auto, auto;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 4.6vw, 3rem);
  text-shadow: 0 2px 20px rgba(4, 17, 31, 0.45);
}

.page-hero p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.08rem;
  color: #a3bfd9;
}

/* Taller hero variant with CTAs (contact + service pages) */
.page-hero-lg {
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  text-align: center;
}

.page-hero-lg h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
}

.page-hero-lg p {
  margin-inline: auto;
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.page-hero-lg .hero-actions {
  justify-content: center;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   14. Service detail sections (hizmetler.html)
   -------------------------------------------------------------------------- */
.service-detail {
  scroll-margin-top: 6rem;
  padding-block: clamp(2.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--color-line);
}

.service-detail:last-child {
  border-bottom: 0;
}

.service-detail ul {
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   15. Contact page — conversion panels
   -------------------------------------------------------------------------- */
.contact-cta-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 48em) {
  .contact-cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2rem, 4.5vw, 2.75rem);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

/* Subtle radial sheen on panels */
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem 14rem at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
}

.cta-panel-whatsapp {
  background: linear-gradient(150deg, #25d366 0%, #128a43 100%);
}

.cta-panel-call {
  background: linear-gradient(150deg, #1e73c2 0%, #0b2a4a 100%);
}

.cta-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.2rem;
  border-radius: 1.1rem;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  box-shadow: 0 6px 16px rgba(4, 17, 31, 0.18);
}

.cta-panel h2 {
  color: #fff;
  font-size: 1.5rem;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.cta-panel .phone-big {
  display: block;
  margin-bottom: 1.1rem;
  font-size: clamp(1.8rem, 4.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(4, 17, 31, 0.3);
}

.cta-panel .btn {
  margin-top: auto;
}

/* Contact info cards reuse .card; map section below */
.map-shell {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  /* Light backdrop shows while the lazy iframe loads, avoiding a flash. */
  background: linear-gradient(150deg, #eef4fb 0%, #dfeaf6 100%);
}

.map-shell iframe {
  display: block;
  width: 100%;
  height: clamp(18rem, 45vw, 26rem);
  border: 0;
}

.map-actions {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   15b. FAQ (native <details> — no JS needed)
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 1rem;
  max-width: 50rem;
}

.faq details {
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq details:hover {
  border-color: rgba(30, 115, 194, 0.4);
}

.faq details[open] {
  border-color: rgba(30, 115, 194, 0.45);
  box-shadow: var(--shadow-lift);
}

.faq summary {
  font-weight: 750;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--color-ink);
}

.faq summary::marker {
  color: var(--color-brand);
}

.faq details[open] summary {
  margin-bottom: 0.6rem;
  color: var(--color-brand-dark);
}

.faq details p {
  margin: 0;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   16. Footer — deep gradient, amber heading accents
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #04111f;
  background-image:
    radial-gradient(30rem 18rem at 90% 0%, rgba(30, 115, 194, 0.16), transparent 60%),
    linear-gradient(180deg, #081c33 0%, #04111f 100%);
  color: #8fa6bd;
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  font-size: 0.97rem;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 40em) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1.1fr 1.1fr;
  }
}

.site-footer h2 {
  position: relative;
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
}

.site-footer h2::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-accent);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: #c2d6ea;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   16a. Social presence — icon links (footer + contact/about sections).
   44px+ touch targets, wraps gracefully on phones (mobile-first).
   -------------------------------------------------------------------------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background-color: var(--color-bg);
  color: var(--color-brand-dark);
  transition: transform 0.18s ease, background-color 0.18s ease,
    color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 42, 74, 0.25);
}

/* Footer variant — dark background */
.footer-social {
  margin-bottom: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(194, 214, 234, 0.14);
}

.footer-social p {
  max-width: 38rem;
  margin-bottom: 0.9rem;
}

.footer-handle {
  font-weight: 800;
  color: #c2d6ea;
  letter-spacing: 0.01em;
}

.site-footer .social-links a {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(194, 214, 234, 0.22);
  color: #c2d6ea;
}

.site-footer .social-links a:hover {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(194, 214, 234, 0.14);
  padding-top: 1.5rem;
  font-size: 0.87rem;
  text-align: center;
}

/* Footer logo image (assets/ankaraservislerim-logo.webp on dark bg).
   Full-colour lockup on a white chip — the navy wordmark needs a light
   backdrop, and inverting flattens the emblem into a blob. */
.footer-logo {
  height: 4rem; /* +25% */
  width: auto;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  background-color: #fff;
  box-shadow: 0 6px 18px rgba(2, 12, 22, 0.35);
  box-sizing: content-box;
}

/* --------------------------------------------------------------------------
   16b. RTL (Arabic) adjustments — layout mirrors automatically via flex/grid
   direction; these cover the few physical-position exceptions.
   -------------------------------------------------------------------------- */
[dir="rtl"] .wa-float {
  right: auto;
  left: 1.15rem;
}

[dir="rtl"] .card .card-link::after {
  content: " ←";
}

[dir="rtl"] .hero::before {
  right: auto;
  left: -12%;
}

/* --------------------------------------------------------------------------
   16c. Blog — article prose, tips card, related-service box, index cards
   -------------------------------------------------------------------------- */
.page-hero .post-meta {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: #a3bfd9;
}

.page-hero .post-meta a {
  color: #dcebf9;
  font-weight: 700;
  text-decoration: none;
}

.page-hero .post-meta a:hover {
  color: #fff;
  text-decoration: underline;
}

.article-body {
  max-width: 46rem;
}

.article-body h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.8rem;
}

.article-body p {
  color: var(--color-ink-soft);
}

.article-lead {
  font-size: 1.12rem;
  line-height: 1.75;
}

.tips-card {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.tips-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.tips-card ul {
  margin: 0;
  color: var(--color-ink-soft);
}

.tips-card li {
  margin-bottom: 0.45rem;
}

.related-box {
  margin-top: 2.5rem;
  padding: 1.4rem 1.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  box-shadow: var(--shadow);
}

.related-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.related-box a {
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
}

.related-box a:hover {
  text-decoration: underline;
}

/* Blog index cards: clickable titles inherit card typography */
.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   17. Error page
   -------------------------------------------------------------------------- */
.error-page {
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.error-page .hero-actions {
  justify-content: center;
}

.error-page .error-code {
  font-size: clamp(4.5rem, 16vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}
