/* ==========================================================
   Kodex Digital — design system v2
   Clean white background, confident blue + teal accents,
   rounded cards, hero slider, service specialty cards.
   Variable NAMES kept the same as v1 so every existing page
   re-themes automatically — only values changed below.
   ========================================================== */

:root {
  --ink: #FFFFFF;            /* page background */
  --panel: #FFFFFF;          /* card surface */
  --panel-2: #F4F7FB;        /* soft section / input background */
  --line: #E6EAF0;           /* borders */
  --text: #16213A;           /* body text, deep navy (not pure black) */
  --text-muted: #64748B;     /* secondary text */
  --accent: #2E6BF2;         /* primary blue */
  --accent-2: #1E4FD1;       /* blue hover / darker */
  --mint: #12B8A6;           /* teal — success, highlights, service icons */
  --amber: #F59A3C;          /* featured / rating */
  --orange: #F5820C;         /* CTA orange — top bar accents, floating buttons */
  --dark: #0B0E14;           /* top bar / footer background */
  --dark-2: #151A24;         /* footer secondary surface */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(22,33,58,0.06);
  --shadow-md: 0 14px 34px rgba(22,33,58,0.09);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); max-width: 62ch; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

section { padding: 84px 0; }
section.tight { padding: 52px 0; }
section.alt { background: var(--panel-2); }
.border-top { border-top: 1px solid var(--line); }

.label {
  font-size: 0.82rem;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 10px;
  display: inline-block;
}

/* ---------- buttons: rounded / pill ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(46,107,242,0.28); }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #E23E3E; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand .mark { width: 30px; height: 30px; background: var(--accent); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; font-weight: 700; }
.brand-logo { max-height: 34px; width: auto; display: block; }
.brand:hover { text-decoration: none; color: var(--text); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.94rem; font-weight: 600; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.cart-icon-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cart-icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; background: var(--orange); color: #fff;
  font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; }

/* ---------- top bar ---------- */
.top-bar { background: var(--dark); color: rgba(255,255,255,0.85); font-size: 0.82rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 9px 24px; max-width: var(--max); margin: 0 auto; }
.top-bar-contact { display: flex; gap: 26px; }
.top-bar-contact a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.85); font-size: 0.82rem; }
.top-bar-contact a:hover { color: #fff; text-decoration: none; }
.top-bar-contact svg { width: 15px; height: 15px; flex-shrink: 0; }
.top-bar-social { display: flex; gap: 10px; }
.top-bar-social a {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.top-bar-social a:hover { background: var(--accent); text-decoration: none; }
.top-bar-social svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .top-bar-contact span.contact-label { display: none; } .top-bar-contact { gap: 16px; } }

/* ---------- mobile nav menu ---------- */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 60; background: rgba(11,14,20,0.5);
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: #fff; padding: 22px 22px 32px; overflow-y: auto;
  box-shadow: -12px 0 30px rgba(0,0,0,0.15);
}
.mobile-menu-close { background: none; border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.mobile-menu-links { margin-top: 24px; display: flex; flex-direction: column; }
.mobile-menu-links a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 1.02rem; }
.mobile-menu-links a:hover { color: var(--accent); text-decoration: none; }
.mobile-menu-links a.active { color: var(--accent); }
.mobile-menu-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) { .nav-toggle { display: inline-flex; align-items: center; justify-content: center; } }

/* ---------- floating action buttons ---------- */
.floating-actions { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 14px; z-index: 55; }
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-md); transition: transform 0.15s ease;
}
.fab:hover { transform: scale(1.07); text-decoration: none; }
.fab svg { width: 26px; height: 26px; }
.fab-whatsapp { background: #25D366; }
.fab-quote { background: var(--orange); }
@media (max-width: 640px) { .floating-actions { right: 14px; bottom: 14px; gap: 10px; } .fab { width: 46px; height: 46px; } .fab svg { width: 22px; height: 22px; } }

/* ---------- hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--panel-2); }
.hero-slides { display: flex; transition: transform 0.55s cubic-bezier(.65,0,.35,1); }
.hero-slide { min-width: 100%; padding: 92px 0 88px; }
.hero-slide .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-slide h1 { max-width: 15ch; }
.hero-slide p.lead { font-size: 1.08rem; max-width: 48ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-icon-wrap {
  width: 100%; aspect-ratio: 1.1/1; max-width: 380px; margin: 0 auto;
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.hero-icon-wrap svg { width: 46%; height: 46%; }

.slider-controls {
  position: absolute; bottom: 22px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px; z-index: 5;
}
.slider-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--line);
  border: none; cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s;
}
.slider-dot.active { background: var(--accent); transform: scale(1.25); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text); font-size: 1.1rem; box-shadow: var(--shadow);
}
.slider-arrow:hover { border-color: var(--accent); color: var(--accent); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
@media (max-width: 900px) { .slider-arrow { display: none; } }

/* ---------- panel / card ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.panel h3 { margin-bottom: 8px; }
.panel p { font-size: 0.93rem; margin-bottom: 0; }
.corner-mark { border-top: 3px solid var(--accent); }

/* ---------- service specialty cards (replaces the old numbered row list) ---------- */
.service-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); height: 100%;
  display: flex; flex-direction: column; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ---------- client logo cards (homepage strip + /clients page) ---------- */
.client-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; min-height: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.client-card.is-link { cursor: pointer; }
a.client-card-link { display: block; }
a.client-card-link:hover .client-card { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.client-card img { max-height: 40px; max-width: 100%; }
.client-card .client-name { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(18,184,166,0.1); color: var(--mint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.service-card p { font-size: 0.9rem; margin-bottom: 16px; }
.service-card .more { margin-top: auto; font-weight: 600; font-size: 0.88rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 24px; }
.section-head p { margin: 0; }

/* ---------- stat strip ---------- */
.stat-strip { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 24px; }
.stat-strip .stat b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; color: var(--accent); }
.stat-strip .stat span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- testimonials ---------- */
.testimonial { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.testimonial .quote { font-size: 1.02rem; color: var(--text); margin-bottom: 16px; }
.testimonial .who { font-size: 0.85rem; color: var(--text-muted); }
.testimonial .who b { color: var(--text); }

/* ---------- product cards ---------- */
.product-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.product-card .thumb { aspect-ratio: 4/3; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-family: 'Plus Jakarta Sans',sans-serif; font-size: 0.85rem; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; color: var(--text); margin-top: auto; font-weight: 700; }
.product-card .price .old { color: var(--text-muted); text-decoration: line-through; font-size: 0.85rem; margin-right: 8px; font-weight: 400; }
.badge { display: inline-block; font-size: 0.74rem; padding: 4px 12px; border-radius: 999px; background: var(--panel-2); color: var(--text-muted); font-weight: 600; }
.badge.mint { color: var(--mint); background: rgba(18,184,166,0.1); }

/* ---------- forms ---------- */
label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
input, textarea, select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); background: #fff; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row input { width: auto; }
.check-row label { margin: 0; }

.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 20px; border: 1px solid; }
.alert-success { background: rgba(18,184,166,0.08); border-color: var(--mint); color: #0B8C7E; }
.alert-error { background: rgba(226,62,62,0.07); border-color: #E23E3E; color: #C22; }

/* ---------- footer (black, matches reference layout) ---------- */
.site-footer { background: var(--dark); border-top: none; padding: 56px 0 0; margin-top: 56px; color: rgba(255,255,255,0.65); }
.site-footer .brand { color: #fff; }
.site-footer .brand .mark { background: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 40px; align-items: start; }
.footer-grid h4 { font-size: 0.88rem; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.9rem; display: block; margin-bottom: 11px; }
.footer-grid a:hover { color: #fff; }
.footer-about p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 12px 0 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer-social a:hover { background: var(--accent); text-decoration: none; }
.footer-social svg { width: 16px; height: 16px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.footer-newsletter { display: flex; gap: 8px; margin-top: 16px; }
.footer-newsletter input { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: #fff; flex: 1; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter .btn-primary { background: var(--orange); box-shadow: none; white-space: nowrap; }
.footer-newsletter .btn-primary:hover { background: #D66F08; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px; }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; }

.crumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--accent); }

/* ---------- gradient page-header banner (title + breadcrumb) ---------- */
.page-header {
  background: linear-gradient(120deg, #141A3D 0%, #232E6E 50%, #303E8C 100%);
  padding: 58px 0 50px;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p.lead { color: rgba(255,255,255,0.88); max-width: 60ch; margin: 0; }
.breadcrumb-inline { font-size: 0.86rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb-inline a { color: rgba(255,255,255,0.8); }
.breadcrumb-inline a:hover { color: #fff; text-decoration: none; }
.breadcrumb-inline .current { color: #fff; font-weight: 600; }
.breadcrumb-inline .sep { color: rgba(255,255,255,0.4); }

/* ---------- admin shell (unchanged dark, kept for operator clarity) ---------- */
.admin-shell { display: flex; min-height: 100vh; background: #0D1117; color: #E6E8EB; }
.admin-sidebar { width: 240px; background: #161B22; border-right: 1px solid #2A3140; padding: 22px 0; flex-shrink: 0; }
.admin-sidebar .brand { padding: 0 22px 22px; border-bottom: 1px solid #2A3140; margin-bottom: 14px; color: #E6E8EB; }
.admin-sidebar .brand .mark { background: #4F7CFF; border-radius: 3px; }
.admin-sidebar a { display: block; padding: 10px 22px; color: #8B93A3; font-size: 0.9rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: #E6E8EB; background: rgba(79,124,255,0.08); border-left: 2px solid #4F7CFF; text-decoration: none; }
.admin-sidebar .group-label { padding: 18px 22px 6px; font-size: 0.72rem; color: #8B93A3; }
.admin-main { flex: 1; padding: 32px 40px; max-width: 1100px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-main h2 { color: #E6E8EB; }
.admin-main .panel { background: #161B22; border-color: #2A3140; box-shadow: none; border-radius: 2px; color: #E6E8EB; }
.admin-main .panel p, .admin-main table th, .admin-main table td, .admin-main label { color: #8B93A3; }
.admin-main table td { color: #E6E8EB; }
.admin-main table th, .admin-main table td { border-color: #2A3140; }
.admin-main input, .admin-main textarea, .admin-main select { background: #1C2330; border-color: #2A3140; color: #E6E8EB; border-radius: 2px; }
.admin-main .btn-outline { border-color: #2A3140; color: #E6E8EB; background: transparent; }
.admin-main .btn-primary { border-radius: 3px; box-shadow: none; }
.admin-main .badge { border-radius: 2px; background: transparent; border: 1px solid #2A3140; color: #8B93A3; }
.admin-main .badge.mint { color: #35D07F; border-color: #35D07F; background: transparent; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }
.stat-card { background: #161B22; border: 1px solid #2A3140; padding: 20px; }
.stat-card b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; color: #E6E8EB; }
.stat-card span { font-size: 0.8rem; color: #8B93A3; }

@media (max-width: 900px) {
  .hero-slide .container, .grid-3, .grid-4, .footer-grid, .stat-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: inline-block; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .hero-icon-wrap { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-slides { transition: none !important; }
}

/* ---------- small-screen table scroll (cart, checkout summary, admin) ---------- */
@media (max-width: 640px) {
  table { display: block; overflow-x: auto; white-space: nowrap; }
}
