/* ========================================================================
   Karotrec Rigelsi — Shared Stylesheet
   Used by every page. Page-specific styles remain in the page's <style> block.
   ======================================================================== */

:root{
  --brand:#FF6A00;
  --dark:#0B1F3A;
  --muted:#6B7280;
  --bg:#F9FAFB;
  --card:#ffffff;
  --border:#EEF2F7;
  --radius:14px;
  --container:1200px;
  --transition:0.25s ease;
}

/* ---------- Reset & base ---------- */
*{box-sizing:border-box}
html,body{height:100%;overflow-x:hidden;max-width:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--dark);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
figure{margin:0}
h1,h2,h3{margin:0 0 12px}

/* ---------- Layout ---------- */
.container{max-width:var(--container);margin:0 auto;padding:0 16px}
.section{margin-top:40px}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  margin-bottom:20px;
  transition:transform var(--transition),box-shadow var(--transition);
}
.muted{color:var(--muted)}
.muted-small{color:var(--muted);font-size:13px}
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgba(148,163,184,0.08);color:var(--muted);font-size:12px}

/* Grids with min-width:0 to prevent grid blowout */
.grid-2{display:grid;grid-template-columns:1fr;gap:20px}
.grid-2 > *{min-width:0}
@media(min-width:768px){.grid-2{grid-template-columns:repeat(2,1fr)}}
.grid-3{display:grid;grid-template-columns:1fr;gap:20px}
.grid-3 > *{min-width:0}
@media(min-width:900px){.grid-3{grid-template-columns:repeat(3,1fr)}}

/* ---------- Header ---------- */
header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:50;
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:12px}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.brand img{width:48px;height:48px;border-radius:999px;object-fit:cover}
.nav-links{display:none;gap:16px;flex-wrap:wrap}
.nav-cta{display:none;gap:10px;align-items:center}
.mobile-toggle{display:inline-flex}
@media(min-width:768px){
  .nav-links{display:flex}
  .nav-cta{display:flex}
  .mobile-toggle{display:none !important}
}
#mobileMenu{display:none;background:#fff;border-top:1px solid var(--border);padding:12px 0}
#mobileMenu a{display:block;padding:8px 16px;color:var(--dark)}
@media(min-width:768px){#mobileMenu{display:none !important}}

/* ---------- Buttons ---------- */
.btn-primary{
  background:var(--brand);
  color:#fff;
  padding:10px 18px;
  border-radius:999px;
  display:inline-block;
  font-weight:600;
  border:none;
  cursor:pointer;
  transition:transform var(--transition),box-shadow var(--transition);
}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(0,0,0,0.1)}
.btn-ghost{
  border:1px solid var(--dark);
  color:var(--dark);
  padding:8px 14px;
  border-radius:999px;
  display:inline-block;
  background:transparent;
  font-weight:500;
  cursor:pointer;
  transition:background var(--transition),color var(--transition);
}
.btn-ghost:hover{background:rgba(0,0,0,0.04)}

/* ---------- Forms ---------- */
.input{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #d1d5db;
  font-size:15px;
  font-family:inherit;
}
.input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 1px rgba(255,106,0,0.2)}
textarea.input{resize:vertical}
label{display:block}

/* ---------- Accessibility ---------- */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:fixed;left:12px;top:12px;width:auto;height:auto;background:var(--brand);color:#fff;padding:10px 14px;border-radius:8px;z-index:9999}

/* ---------- Sticky mobile call button ---------- */
.sticky-call{
  position:fixed;
  bottom:16px;
  right:16px;
  z-index:300;
  background:var(--brand);
  color:#fff;
  width:56px;
  height:56px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 30px rgba(255,106,0,0.45);
  text-decoration:none;
  font-size:22px;
  animation:pulse-call 2.5s ease-in-out infinite;
}
.sticky-call:hover{transform:scale(1.05)}
@keyframes pulse-call{
  0%,100%{box-shadow:0 12px 30px rgba(255,106,0,0.45)}
  50%{box-shadow:0 12px 30px rgba(255,106,0,0.45),0 0 0 12px rgba(255,106,0,0)}
}
@media(min-width:768px){.sticky-call{display:none}}

/* ---------- Live status dot ---------- */
.live-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#10b981;
  margin-right:6px;
  vertical-align:middle;
  animation:pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0.6)}
  50%{box-shadow:0 0 0 6px rgba(16,185,129,0)}
}

/* ---------- Language switcher ---------- */
.lang-switch{display:inline-flex;gap:4px;font-size:13px;align-items:center}
.lang-switch a{padding:4px 8px;border-radius:6px;color:var(--muted);font-weight:600}
.lang-switch a.active{background:rgba(148,163,184,0.12);color:var(--dark)}
.lang-switch a:hover{background:rgba(148,163,184,0.08)}
.lang-switch-disabled{padding:4px 8px;border-radius:6px;color:#cbd5e1;font-weight:600;cursor:not-allowed;font-size:13px}

/* ---------- Cookie banner ---------- */
#cookieBanner{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  background:var(--dark);
  color:#fff;
  padding:14px 18px;
  border-radius:12px;
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow:0 18px 50px rgba(0,0,0,0.25);
  z-index:500;
  flex-wrap:wrap;
  font-size:14px;
}
#cookieBanner.show{display:flex}
#cookieBanner button{
  background:var(--brand);
  color:#fff;
  border:none;
  padding:8px 16px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}
@media(min-width:768px){
  #cookieBanner{left:auto;right:18px;bottom:18px;max-width:420px}
}

/* ---------- Reveal-on-scroll ---------- */
.reveal{opacity:0;transform:translateY(16px);transition:opacity 0.6s ease,transform 0.6s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
.reveal.slide-left{transform:translateX(16px)}
.reveal.slide-right{transform:translateX(-16px)}
.reveal.slide-left.visible,.reveal.slide-right.visible{transform:translateX(0)}

/* ---------- Back to top ---------- */
#backToTop{
  position:fixed;
  right:16px;
  bottom:84px;
  width:40px;
  height:40px;
  border-radius:999px;
  border:none;
  background:var(--dark);
  color:#fff;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,0.18);
  z-index:60;
}
#backToTop.show{display:flex}
@media(min-width:768px){#backToTop{bottom:24px;right:24px}}

/* ---------- Image safety ---------- */
.aspect-ratio-3-2{aspect-ratio:3/2;overflow:hidden;border-radius:12px;background:var(--border)}
.aspect-ratio-3-2 img{width:100%;height:100%;object-fit:cover;display:block}
