/* ==========================================================================
   KABLU IT — Website · design system layer
   Tokenuri light/dark (aceleași ca brand kit-ul v2.1) + componente de UI.
   Tailwind CDN folosește aceste tokenuri prin tailwind.config (js/config.js).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS — TEMA CLARA (implicit)
   -------------------------------------------------------------------------- */
:root {
  /* brand (imune la tema) */
  --forest: #0F2E26;
  --lime: #7ED321;
  --navy: #0B1E33;
  --orange: #FF6B35;
  --offwhite: #F5F7FA;

  /* semantice */
  --bg: #F5F7FA;
  --text: #0B1E33;
  --muted: #5A6B7A;
  --card: #FFFFFF;
  --surface: #F5F7FA;
  --border: #E3E8EC;
  --brand-fg: #0F2E26;
  --brand-panel: #0F2E26;
  --brand-border: #1E453A;
  --inverse-bg: #0F2E26;
  --inverse-fg: #FFFFFF;
  --danger: #EF4444;
  --shadow-1: rgba(15, 46, 38, .08);
  --shadow-2: rgba(15, 46, 38, .06);
  --ring: rgba(126, 211, 33, .4);
  --scrollbar: #0F2E26;

  /* canale RGB — folosite de Tailwind (css/tailwind.css) pentru modificatorii
     de opacitate (bg-lime/15, border-lime/40, ring-lime/40).
     Format: "R G B", fără paranteze. */
  --forest-rgb: 15 46 38;
  --lime-rgb: 126 211 33;
  --navy-rgb: 11 30 51;
  --orange-rgb: 255 107 53;
  --offwhite-rgb: 245 247 250;
  --bg-rgb: 245 247 250;
  --text-rgb: 11 30 51;
  --muted-rgb: 90 107 122;
  --card-rgb: 255 255 255;
  --surface-rgb: 245 247 250;
  --border-rgb: 227 232 236;
  --brand-fg-rgb: 15 46 38;
  --brand-panel-rgb: 15 46 38;
  --brand-border-rgb: 30 69 58;
  --inverse-bg-rgb: 15 46 38;
  --inverse-fg-rgb: 255 255 255;
  --danger-rgb: 239 68 68;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. TEMA INCHISA — clasa .dark pe <html>
   -------------------------------------------------------------------------- */
:root.dark {
  --bg: #0A1F19;
  --text: #F5F7FA;
  --muted: #9AA8B5;
  --card: #122D26;
  --surface: #0B241E;
  --border: #1E453A;
  --brand-fg: #7ED321;
  --brand-panel: #17483B;
  --brand-border: #2A6B58;
  --inverse-bg: #FFFFFF;
  --inverse-fg: #0F2E26;
  --danger: #F87171;
  --shadow-1: rgba(0, 0, 0, .45);
  --shadow-2: rgba(0, 0, 0, .35);
  --ring: rgba(126, 211, 33, .45);
  --scrollbar: #2C5A4C;

  /* canale RGB — tema întunecată */
  --bg-rgb: 10 31 25;
  --text-rgb: 245 247 250;
  --muted-rgb: 154 168 181;
  --card-rgb: 18 45 38;
  --surface-rgb: 11 36 30;
  --border-rgb: 30 69 58;
  --brand-fg-rgb: 126 211 33;
  --brand-panel-rgb: 23 72 59;
  --brand-border-rgb: 42 107 88;
  --inverse-bg-rgb: 255 255 255;
  --inverse-fg-rgb: 15 46 38;
  --danger-rgb: 248 113 113;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   3. BAZA
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .display { font-family: 'Poppins', sans-serif; letter-spacing: -.02em; }
::selection { background: var(--lime); color: var(--forest); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 99px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.kb-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow-1), 0 1px 3px var(--shadow-2);
}
.kb-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}

/* butoane */
.kb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 44px; padding-inline: 1.5rem; border-radius: 9999px;
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: filter .2s, background-color .2s, border-color .2s, transform .15s, color .2s;
}
.kb-btn:active { transform: scale(.97); }
.kb-btn-primary { background: var(--lime); color: var(--forest); }
.kb-btn-primary:hover { filter: brightness(1.06); }
.kb-btn-cta { background: var(--orange); color: #fff; }
.kb-btn-cta:hover { filter: brightness(1.07); }
.kb-btn-outline { background: var(--card); border-color: var(--border); color: var(--text); font-weight: 600; }
.kb-btn-outline:hover { background: var(--surface); }
.kb-btn-ghost { background: transparent; color: var(--text); }
.kb-btn-ghost:hover { background: var(--surface); }
.kb-btn-sm { height: 36px; padding-inline: 1rem; font-size: 13px; }

/* linkuri */
.kb-link { color: var(--brand-fg); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.kb-link:hover { text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   4. COMPONENTE SPECIFICE SITE-ULUI
   -------------------------------------------------------------------------- */

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-panel);
  border-bottom: 1px solid var(--brand-border);
}
.site-header a { color: #fff; }
.site-header .nav-link { font-size: 13px; font-weight: 600; opacity: .82; }
.site-header .nav-link:hover, .site-header .nav-link[aria-current="page"] { opacity: 1; }
.site-header .nav-link[aria-current="page"] { color: var(--lime); }
/* clasa aplica linkului activ (sursa de adevar: atributul aria-current) */
.site-header .nav-link.nav-link-active { opacity: 1; color: var(--lime); }

/* hero */
.hero {
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(126, 211, 33, .16), transparent 60%),
    radial-gradient(760px 420px at 8% 110%, rgba(255, 107, 53, .10), transparent 62%),
    var(--brand-panel);
  color: #fff;
}
.hero h1 { color: #fff; }
.hero .accent { color: var(--lime); }

/* badges / pilule */
.kb-pill {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .375rem .75rem; border-radius: 9999px;
  font-size: 12px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.kb-pill-lime { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.kb-pill-forest { background: var(--brand-panel); border-color: var(--brand-panel); color: #fff; }

/* card de serviciu */
.svc-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 8px 30px var(--shadow-1), 0 1px 3px var(--shadow-2);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--brand-fg); }
.svc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--brand-fg);
}
.svc-card:hover .svc-icon { background: var(--lime); color: var(--forest); }
.svc-icon svg { width: 22px; height: 22px; stroke-width: 2; }

/* lista de check-uri */
.check-list { display: grid; gap: .625rem; }
.check-list li { display: flex; gap: .625rem; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--lime); stroke-width: 2.5; }

/* tabel de prețuri */
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table thead th {
  background: var(--brand-panel); color: #fff;
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-align: left;
  padding: .875rem 1rem;
}
.price-table thead th:first-child { border-top-left-radius: 12px; }
.price-table thead th:last-child { border-top-right-radius: 12px; text-align: right; }
.price-table tbody td { padding: .875rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table tbody tr:nth-child(even) { background: var(--surface); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .price { font-weight: 700; color: var(--brand-fg); white-space: nowrap; text-align: right; }
.price-table .note { display: block; font-size: 12px; color: var(--muted); font-style: italic; }

/* FAQ / acordion */
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq-item + .faq-item { margin-top: .625rem; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.125rem; text-align: left; font-weight: 600; font-size: 14px;
  background: transparent; border: 0; color: var(--text); cursor: pointer;
}
.faq-q svg { width: 18px; height: 18px; flex: none; transition: transform .2s; color: var(--muted); }
.faq-item[data-open="true"] .faq-q svg { transform: rotate(180deg); }
.faq-a { padding: 0 1.125rem 1rem; font-size: 14px; line-height: 1.65; color: var(--muted); }
.faq-item[data-open="false"] .faq-a { display: none; }

/* recenzii */
.review-card {
  padding: 1.25rem; border-radius: 16px; background: var(--card);
  border: 1px solid var(--border); box-shadow: 0 4px 16px var(--shadow-2);
}
.review-card p { font-size: 14px; line-height: 1.65; color: var(--text); }
.stars { color: var(--orange); letter-spacing: 2px; }

/* footer */
.site-footer { background: var(--brand-panel); color: rgba(255, 255, 255, .82); }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a:hover { color: var(--lime); }
.site-footer .footer-title { font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }

/* cookie banner */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 44rem; margin-inline: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  padding: 1.125rem 1.25rem;
}
@media (max-width: 640px) { .cookie-bar { left: .75rem; right: .75rem; bottom: .75rem; } }

/* butoane flotante */
.float-cta {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: flex; flex-direction: column; gap: .625rem;
}
.float-cta a {
  width: 52px; height: 52px; border-radius: 9999px;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .2s;
}
.float-cta a:hover { transform: scale(1.06); }
.float-cta svg { width: 24px; height: 24px; }
.float-wa { background: #25D366; }
.float-tel { background: var(--forest); }
@media (max-width: 768px) { .float-cta { right: .75rem; bottom: 5.5rem; } }

/* meniu mobil */
#menu-mobile { display: none; }
#menu-mobile[data-open="true"] { display: block; }

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--lime); color: var(--forest); padding: .75rem 1rem; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* conținut legal */
.legal h2 { font-size: 20px; font-weight: 700; margin-top: 2rem; margin-bottom: .75rem; }
.legal h3 { font-size: 16px; font-weight: 700; margin-top: 1.5rem; margin-bottom: .5rem; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--text); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0 1rem; }
.legal a { color: var(--brand-fg); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1rem 0; }
.legal th, .legal td { border: 1px solid var(--border); padding: .625rem .75rem; text-align: left; }
.legal th { background: var(--surface); font-weight: 700; }

/* breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-fg); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--text); }

/* structură */
.section { padding-block: 4rem; }
.section-tight { padding-block: 3rem; }
.container-site { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .container-site { padding-inline: 2rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
