/* =========================
   HAGAY MADA'I - PREMIUM THEME
   Black + Gold | RTL | Clean Animations
   ========================= */

/* --- Reset / Base --- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html{
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: "Heebo", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: #07070a;
  color: rgba(255,255,255,.92);
  overflow-x: hidden; /* prevents "white cube" caused by overflow */
}

/* Prevent random inline gaps / tiny squares */
img, svg, video, canvas, iframe { display:block; max-width:100%; }
button, input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible{
  outline: 2px solid rgba(245,217,122,.55);
  outline-offset: 3px;
}

/* --- Theme Vars --- */
:root{
  --bg: #07070a;
  --panel: rgba(255,255,255,.03);
  --panel2: rgba(255,255,255,.02);
  --stroke: rgba(202,167,74,.18);
  --stroke2: rgba(245,217,122,.28);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.58);

  --gold: #caa74a;
  --gold2: #f5d97a;
  --gold3: #ffd27a;

  --gold-gradient: linear-gradient(90deg, rgba(202,167,74,.95), rgba(245,217,122,.95));
  --shadow: 0 20px 70px rgba(0,0,0,.55), 0 0 26px rgba(202,167,74,.10);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --container: 1120px;
}

/* --- Background glow layer --- */
body::before{
  content:"";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(900px 350px at 80% 10%, rgba(245,217,122,.12), rgba(0,0,0,0) 55%),
    radial-gradient(900px 420px at 15% 20%, rgba(202,167,74,.10), rgba(0,0,0,0) 58%),
    radial-gradient(900px 380px at 50% 90%, rgba(202,167,74,.08), rgba(0,0,0,0) 60%);
  pointer-events:none;
  z-index:-1;
}

/* --- Layout Helpers --- */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.center{ text-align:center; }
.muted{ color: var(--muted); }
.tiny{ font-size: 12px; color: var(--muted2); }
.w100{ width:100%; }

/* --- Sections --- */
.section{ padding: 44px 0; }
.section-soft{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.section-title{
  margin: 0;
  font-size: 26px;
  letter-spacing: .2px;
}
.section-sub{
  margin: 10px 0 0 0;
  color: var(--muted);
  line-height: 1.8;
}

/* --- Topbar --- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,7,10,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}
.brand-logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(202,167,74,.22);
  background: rgba(202,167,74,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 18px rgba(202,167,74,.12);
}
.brand-text strong{
  display:block;
  font-weight: 900;
  line-height: 1.1;
  color: rgba(255,255,255,.95);
}
.brand-text span{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,.68);
  margin-top: 2px;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav-link{
  font-size: 14px;
  color: rgba(255,255,255,.78);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover{
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  transform: translateY(-1px);
}
.nav-link.is-active{
  background: rgba(202,167,74,.10);
  border: 1px solid rgba(202,167,74,.18);
  color: rgba(245,217,122,.95);
}

/* CTA in topbar */
.topbar-cta{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Mobile toggle */
.nav-toggle{
  display:none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap: 5px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.nav-toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(245,217,122,.35);
  background: rgba(245,217,122,.06);
}
.nav-toggle span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(245,217,122,.92);
  border-radius: 999px;
}

/* Mobile nav panel */
.mobile-nav{
  display:none;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(7,7,10,.84);
  backdrop-filter: blur(14px);
}
.mobile-nav.is-open{ display:block; }

.mobile-link{
  display:block;
  padding: 12px 10px;
  border-radius: 14px;
  color: rgba(255,255,255,.82);
  transition: background .2s ease;
}
.mobile-link:hover{ background: rgba(255,255,255,.04); }
.mobile-link.is-active{
  background: rgba(202,167,74,.10);
  border: 1px solid rgba(202,167,74,.18);
  color: rgba(245,217,122,.95);
}
.mobile-actions{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}

/* Responsive topbar */
@media (max-width: 980px){
  .nav{ display:none; }
  .topbar-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .brand{ min-width: unset; }
}

/* --- Buttons --- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor:pointer;
  user-select:none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}

.btn-primary{
  background: var(--gold-gradient);
  color: #0b0b0f;
  border-color: rgba(245,217,122,.15);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 22px rgba(202,167,74,.18);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,.62), 0 0 28px rgba(245,217,122,.18);
}
.btn-ghost{
  background: rgba(255,255,255,.03);
  border-color: rgba(202,167,74,.18);
  color: rgba(255,255,255,.92);
}
.btn-ghost:hover{
  transform: translateY(-2px);
  border-color: rgba(245,217,122,.35);
  background: rgba(245,217,122,.06);
}

/* --- Hero Panel --- */
.hero-panel{
  padding: 22px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero-panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(700px 260px at 70% 0%, rgba(245,217,122,.14), rgba(0,0,0,0) 55%);
  pointer-events:none;
}
.badge{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(202,167,74,.10);
  border: 1px solid rgba(202,167,74,.16);
  color: rgba(245,217,122,.95);
  font-weight: 900;
  font-size: 12px;
}
h1{
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: .2px;
}
h1 .muted{
  display:block;
  font-size: 16px;
  margin-top: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.68);
}

.lead{
  margin: 14px auto 0;
  color: rgba(255,255,255,.78);
  line-height: 1.85;
  font-size: 16px;
}
.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.hero-actions .btn{ flex: 1 1 170px; }
@media (max-width: 560px){
  h1{ font-size: 30px; }
}

/* --- Grid helpers used across pages --- */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.cards3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 980px){
  .cards3{ grid-template-columns: 1fr; }
}

.card{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.03);
  padding: 16px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(650px 240px at 75% 10%, rgba(245,217,122,.10), rgba(0,0,0,0) 55%);
  pointer-events:none;
  opacity:.85;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(245,217,122,.35);
  box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 24px rgba(202,167,74,.12);
}
.card h3{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  position:relative;
}
.card p{ margin: 10px 0 0; color: rgba(255,255,255,.74); line-height: 1.75; position:relative; }

/* Tiles (Services jump + previews) */
.grid-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 980px){ .grid-cards{ grid-template-columns: 1fr; } }

.tile{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.02);
  padding: 16px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(245,217,122,.35);
  box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 24px rgba(202,167,74,.12);
}
.tile h3{ margin:0; font-size:16px; font-weight:900; }
.tile p{ margin: 10px 0 0; color: rgba(255,255,255,.72); line-height:1.7; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 980px){ .steps{ grid-template-columns: 1fr; } }
.step{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.02);
  padding: 16px;
}
.step-num{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: rgba(202,167,74,.12);
  border: 1px solid rgba(202,167,74,.20);
  color: rgba(245,217,122,.95);
}
.step h3{ margin: 10px 0 0; font-size: 16px; }
.step p{ margin: 8px 0 0; color: rgba(255,255,255,.72); line-height:1.75; }

/* Quotes (index) */
.quotes{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 980px){ .quotes{ grid-template-columns: 1fr; } }

.quote{
  margin:0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.02);
  padding: 16px;
}
.quote blockquote{
  margin:0;
  color: rgba(255,255,255,.84);
  line-height: 1.75;
}
.quote figcaption{
  margin-top: 10px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

/* CTA */
.cta{ padding: 44px 0; }
.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.cta-inner h2{
  margin:0;
  font-size: 22px;
}
.cta-inner p{
  margin: 8px 0 0;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
}
.cta-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width: 980px){
  .cta-inner{ flex-direction:column; align-items:stretch; text-align:center; }
  .cta-actions{ justify-content:center; }
}

/* Footer */
.footer{
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-grid{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}
.footer-brand{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}
.footer-links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 10px;
  color: rgba(255,255,255,.78);
}
.dotsep{ color: rgba(255,255,255,.30); }
.footer-small{
  color: rgba(255,255,255,.60);
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 980px){
  .footer-grid{ flex-direction:column; }
}

/* Floating buttons */
.float-wa, .float-call{
  position: fixed;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 60;
  border: 1px solid rgba(202,167,74,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 55px rgba(0,0,0,.55), 0 0 18px rgba(202,167,74,.12);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.float-wa{
  right: 18px;
  background: rgba(202,167,74,.14);
}
.float-call{
  right: 82px;
  background: rgba(255,255,255,.04);
}
.float-wa:hover, .float-call:hover{
  transform: translateY(-2px);
  border-color: rgba(245,217,122,.35);
  background: rgba(245,217,122,.10);
}
.float-wa span, .float-call span{
  font-size: 20px;
  line-height: 1;
}

/* --- Reveal animations (JS toggles .is-revealed) --- */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-revealed{
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn, .card, .tile, .faq-item, .reveal, .nav-link{ transition:none !important; }
}
/* ===== Custom Scrollbar ===== */

/* Firefox */
html{
  scrollbar-width: thin;
  scrollbar-color: rgba(202,167,74,.75) rgba(255,255,255,.05);
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar{
  width: 12px;
}

::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
  border-left: 1px solid rgba(255,255,255,.03);
}

::-webkit-scrollbar-thumb{
  background: linear-gradient(
    180deg,
    rgba(245,217,122,.95),
    rgba(202,167,74,.95)
  );
  border-radius: 999px;
  border: 2px solid rgba(7,7,10,.95);
  box-shadow:
    0 0 10px rgba(202,167,74,.18),
    inset 0 0 6px rgba(255,255,255,.12);
}

::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(
    180deg,
    rgba(255,230,150,1),
    rgba(214,178,82,1)
  );
}

::-webkit-scrollbar-corner{
  background: rgba(255,255,255,.04);
}
.hero-layout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:50px;
  margin-top:40px;
}

.hero-image img{
  width:340px;
  border-radius:20px;
  border:1px solid rgba(202,167,74,.25);
  box-shadow:
    0 30px 80px rgba(0,0,0,.6),
    0 0 30px rgba(202,167,74,.15);
}

@media (max-width:900px){
  .hero-layout{
    flex-direction:column;
    text-align:center;
  }
}
/* =========================
   HAGAY MADA'I - PREMIUM THEME
   Black + Gold | RTL | Clean Animations
   ========================= */

/* --- Reset / Base --- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html{
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: "Heebo", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: #07070a;
  color: rgba(255,255,255,.92);
  overflow-x: hidden; /* prevents "white cube" caused by overflow */
}

/* Prevent random inline gaps / tiny squares */
img, svg, video, canvas, iframe { display:block; max-width:100%; }
button, input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible{
  outline: 2px solid rgba(245,217,122,.55);
  outline-offset: 3px;
}

/* --- Theme Vars --- */
:root{
  --bg: #07070a;
  --panel: rgba(255,255,255,.03);
  --panel2: rgba(255,255,255,.02);
  --stroke: rgba(202,167,74,.18);
  --stroke2: rgba(245,217,122,.28);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.58);

  --gold: #caa74a;
  --gold2: #f5d97a;
  --gold3: #ffd27a;

  --gold-gradient: linear-gradient(90deg, rgba(202,167,74,.95), rgba(245,217,122,.95));
  --shadow: 0 20px 70px rgba(0,0,0,.55), 0 0 26px rgba(202,167,74,.10);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --container: 1120px;
}

/* --- Background glow layer --- */
body::before{
  content:"";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(900px 350px at 80% 10%, rgba(245,217,122,.12), rgba(0,0,0,0) 55%),
    radial-gradient(900px 420px at 15% 20%, rgba(202,167,74,.10), rgba(0,0,0,0) 58%),
    radial-gradient(900px 380px at 50% 90%, rgba(202,167,74,.08), rgba(0,0,0,0) 60%);
  pointer-events:none;
  z-index:-1;
}

/* --- Layout Helpers --- */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.center{ text-align:center; }
.muted{ color: var(--muted); }
.tiny{ font-size: 12px; color: var(--muted2); }
.w100{ width:100%; }

/* --- Sections --- */
.section{ padding: 44px 0; }
.section-soft{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.section-title{
  margin: 0;
  font-size: 26px;
  letter-spacing: .2px;
}
.section-sub{
  margin: 10px 0 0 0;
  color: var(--muted);
  line-height: 1.8;
}

/* --- Topbar --- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,7,10,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}
.brand-logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(202,167,74,.22);
  background: rgba(202,167,74,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 18px rgba(202,167,74,.12);
}
.brand-text strong{
  display:block;
  font-weight: 900;
  line-height: 1.1;
  color: rgba(255,255,255,.95);
}
.brand-text span{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,.68);
  margin-top: 2px;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav-link{
  font-size: 14px;
  color: rgba(255,255,255,.78);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover{
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  transform: translateY(-1px);
}
.nav-link.is-active{
  background: rgba(202,167,74,.10);
  border: 1px solid rgba(202,167,74,.18);
  color: rgba(245,217,122,.95);
}

/* CTA in topbar */
.topbar-cta{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Mobile toggle */
.nav-toggle{
  display:none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap: 5px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.nav-toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(245,217,122,.35);
  background: rgba(245,217,122,.06);
}
.nav-toggle span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(245,217,122,.92);
  border-radius: 999px;
}

/* Mobile nav panel */
.mobile-nav{
  display:none;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(7,7,10,.84);
  backdrop-filter: blur(14px);
}
.mobile-nav.is-open{ display:block; }

.mobile-link{
  display:block;
  padding: 12px 10px;
  border-radius: 14px;
  color: rgba(255,255,255,.82);
  transition: background .2s ease;
}
.mobile-link:hover{ background: rgba(255,255,255,.04); }
.mobile-link.is-active{
  background: rgba(202,167,74,.10);
  border: 1px solid rgba(202,167,74,.18);
  color: rgba(245,217,122,.95);
}
.mobile-actions{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}

/* Responsive topbar */
@media (max-width: 980px){
  .nav{ display:none; }
  .topbar-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .brand{ min-width: unset; }
}

/* --- Buttons --- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor:pointer;
  user-select:none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}

.btn-primary{
  background: var(--gold-gradient);
  color: #0b0b0f;
  border-color: rgba(245,217,122,.15);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 22px rgba(202,167,74,.18);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,.62), 0 0 28px rgba(245,217,122,.18);
}
.btn-ghost{
  background: rgba(255,255,255,.03);
  border-color: rgba(202,167,74,.18);
  color: rgba(255,255,255,.92);
}
.btn-ghost:hover{
  transform: translateY(-2px);
  border-color: rgba(245,217,122,.35);
  background: rgba(245,217,122,.06);
}

/* --- Hero Panel --- */
.hero-panel{
  padding: 22px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero-panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(700px 260px at 70% 0%, rgba(245,217,122,.14), rgba(0,0,0,0) 55%);
  pointer-events:none;
}
.badge{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(202,167,74,.10);
  border: 1px solid rgba(202,167,74,.16);
  color: rgba(245,217,122,.95);
  font-weight: 900;
  font-size: 12px;
}
h1{
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: .2px;
}
h1 .muted{
  display:block;
  font-size: 16px;
  margin-top: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.68);
}

.lead{
  margin: 14px auto 0;
  color: rgba(255,255,255,.78);
  line-height: 1.85;
  font-size: 16px;
}
.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.hero-actions .btn{ flex: 1 1 170px; }
@media (max-width: 560px){
  h1{ font-size: 30px; }
}

/* --- Grid helpers used across pages --- */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.cards3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 980px){
  .cards3{ grid-template-columns: 1fr; }
}

.card{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.03);
  padding: 16px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(650px 240px at 75% 10%, rgba(245,217,122,.10), rgba(0,0,0,0) 55%);
  pointer-events:none;
  opacity:.85;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(245,217,122,.35);
  box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 24px rgba(202,167,74,.12);
}
.card h3{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  position:relative;
}
.card p{ margin: 10px 0 0; color: rgba(255,255,255,.74); line-height: 1.75; position:relative; }

/* Tiles (Services jump + previews) */
.grid-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 980px){ .grid-cards{ grid-template-columns: 1fr; } }

.tile{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.02);
  padding: 16px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(245,217,122,.35);
  box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 24px rgba(202,167,74,.12);
}
.tile h3{ margin:0; font-size:16px; font-weight:900; }
.tile p{ margin: 10px 0 0; color: rgba(255,255,255,.72); line-height:1.7; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 980px){ .steps{ grid-template-columns: 1fr; } }
.step{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.02);
  padding: 16px;
}
.step-num{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: rgba(202,167,74,.12);
  border: 1px solid rgba(202,167,74,.20);
  color: rgba(245,217,122,.95);
}
.step h3{ margin: 10px 0 0; font-size: 16px; }
.step p{ margin: 8px 0 0; color: rgba(255,255,255,.72); line-height:1.75; }

/* Quotes (index) */
.quotes{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 980px){ .quotes{ grid-template-columns: 1fr; } }

.quote{
  margin:0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.02);
  padding: 16px;
}
.quote blockquote{
  margin:0;
  color: rgba(255,255,255,.84);
  line-height: 1.75;
}
.quote figcaption{
  margin-top: 10px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

/* CTA */
.cta{ padding: 44px 0; }
.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.cta-inner h2{
  margin:0;
  font-size: 22px;
}
.cta-inner p{
  margin: 8px 0 0;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
}
.cta-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width: 980px){
  .cta-inner{ flex-direction:column; align-items:stretch; text-align:center; }
  .cta-actions{ justify-content:center; }
}

/* Footer */
.footer{
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-grid{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}
.footer-brand{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}
.footer-links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 10px;
  color: rgba(255,255,255,.78);
}
.dotsep{ color: rgba(255,255,255,.30); }
.footer-small{
  color: rgba(255,255,255,.60);
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 980px){
  .footer-grid{ flex-direction:column; }
}

/* Floating buttons */
.float-wa, .float-call{
  position: fixed;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 60;
  border: 1px solid rgba(202,167,74,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 55px rgba(0,0,0,.55), 0 0 18px rgba(202,167,74,.12);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.float-wa{
  right: 18px;
  background: rgba(202,167,74,.14);
}
.float-call{
  right: 82px;
  background: rgba(255,255,255,.04);
}
.float-wa:hover, .float-call:hover{
  transform: translateY(-2px);
  border-color: rgba(245,217,122,.35);
  background: rgba(245,217,122,.10);
}
.float-wa span, .float-call span{
  font-size: 20px;
  line-height: 1;
}

/* --- Reveal animations (JS toggles .is-revealed) --- */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-revealed{
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn, .card, .tile, .faq-item, .reveal, .nav-link{ transition:none !important; }
}
/* ===== Custom Scrollbar ===== */

/* Firefox */
html{
  scrollbar-width: thin;
  scrollbar-color: rgba(202,167,74,.75) rgba(255,255,255,.05);
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar{
  width: 12px;
}

::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
  border-left: 1px solid rgba(255,255,255,.03);
}

::-webkit-scrollbar-thumb{
  background: linear-gradient(
    180deg,
    rgba(245,217,122,.95),
    rgba(202,167,74,.95)
  );
  border-radius: 999px;
  border: 2px solid rgba(7,7,10,.95);
  box-shadow:
    0 0 10px rgba(202,167,74,.18),
    inset 0 0 6px rgba(255,255,255,.12);
}

::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(
    180deg,
    rgba(255,230,150,1),
    rgba(214,178,82,1)
  );
}

::-webkit-scrollbar-corner{
  background: rgba(255,255,255,.04);
}
.hero-layout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:50px;
  margin-top:40px;
}

.hero-image img{
  width:340px;
  border-radius:20px;
  border:1px solid rgba(202,167,74,.25);
  box-shadow:
    0 30px 80px rgba(0,0,0,.6),
    0 0 30px rgba(202,167,74,.15);
}

@media (max-width:900px){
  .hero-layout{
    flex-direction:column;
    text-align:center;
  }
}
/* ===== Better services / expertise cards ===== */

.grid-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  margin-top:24px;
}

@media (max-width: 980px){
  .grid-cards{
    grid-template-columns:1fr;
  }
}

.tile{
  min-height: 320px;
  padding: 26px 24px 22px;
  border-radius: 28px;
  border: 1px solid rgba(202,167,74,.20);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018)),
    radial-gradient(500px 180px at 50% 0%, rgba(245,217,122,.06), transparent 60%);
  box-shadow:
    0 18px 55px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.03);
  text-align: center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
  position:relative;
  overflow:hidden;
}

.tile::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(320px 120px at 50% 0%, rgba(245,217,122,.10), transparent 70%);
  opacity:.7;
  pointer-events:none;
}

.tile:hover{
  transform: translateY(-6px);
  border-color: rgba(245,217,122,.34);
  box-shadow:
    0 28px 75px rgba(0,0,0,.55),
    0 0 24px rgba(202,167,74,.12);
}

.service-icon{
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 18px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  filter:
    drop-shadow(0 16px 30px rgba(0,0,0,.35))
    drop-shadow(0 0 14px rgba(202,167,74,.12));
  transition: transform .28s ease, filter .28s ease;
  position:relative;
  z-index:1;
}

.tile:hover .service-icon{
  transform: scale(1.05);
  filter:
    drop-shadow(0 22px 36px rgba(0,0,0,.45))
    drop-shadow(0 0 18px rgba(245,217,122,.18));
}

.tile h3{
  margin: 4px 0 10px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  color: rgba(255,255,255,.96);
  position:relative;
  z-index:1;
}

.tile p{
  margin: 0;
  max-width: 95%;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,.74);
  position:relative;
  z-index:1;
}

/* little gold line under heading */
.tile h3::after{
  content:"";
  display:block;
  width:54px;
  height:2px;
  border-radius:999px;
  margin:12px auto 0;
  background: linear-gradient(90deg, rgba(245,217,122,.95), rgba(202,167,74,.35));
}

/* section header nicer */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom: 8px;
}

.section-head .section-title{
  font-size: 34px;
}

.section-head .section-sub{
  font-size: 17px;
  max-width: 760px;
}
/* gold underline for section titles */

.section-title{
position:relative;
display:inline-block;
padding-bottom:10px;
}

.section-title::after{

content:"";

position:absolute;

bottom:0;

right:0;

width:60px;

height:3px;

background:linear-gradient(
90deg,
#caa74a,
#f5d97a,
#caa74a
);

border-radius:2px;

box-shadow:0 0 10px rgba(202,167,74,.35);

}
.card{
transition:transform .25s ease, box-shadow .25s ease;
}

.card:hover{

transform:translateY(-6px);

box-shadow:
0 20px 40px rgba(0,0,0,.35),
0 0 20px rgba(202,167,74,.15);

}
html{
scroll-behavior:smooth;
}

section{
scroll-margin-top:120px;
}
html{
  scroll-behavior: smooth;
}

#criminal,
#traffic,
#military,
#family,
#poa,
#civil{
  scroll-margin-top: 120px;
}
.grid-about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.about-image img{
  width:100%;
  border-radius:20px;
  border:1px solid rgba(202,167,74,.18);
  box-shadow:0 20px 50px rgba(0,0,0,.35), 0 0 20px rgba(202,167,74,.10);
}

@media (max-width:900px){
  .grid-about{
    grid-template-columns:1fr;
  }
}
.review-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.filter-btn{
  appearance:none;
  border:1px solid rgba(202,167,74,.24);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.88);
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  transition:transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.filter-btn:hover{
  transform:translateY(-2px);
  border-color:rgba(245,217,122,.42);
  background:rgba(245,217,122,.06);
}

.filter-btn.is-active{
  background:linear-gradient(90deg, rgba(202,167,74,.92), rgba(245,217,122,.92));
  color:#0a0a0d;
  border-color:transparent;
  box-shadow:0 12px 30px rgba(202,167,74,.18);
}

.reviews-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  margin-top:22px;
}

.review-card{
  border-radius:24px;
  border:1px solid rgba(202,167,74,.18);
  background:rgba(255,255,255,.03);
  padding:18px;
  box-shadow:0 18px 55px rgba(0,0,0,.35), 0 0 18px rgba(202,167,74,.08);
  transition:transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.review-card:hover{
  transform:translateY(-3px);
  border-color:rgba(245,217,122,.35);
  box-shadow:0 24px 65px rgba(0,0,0,.42), 0 0 24px rgba(202,167,74,.12);
}

.review-stars{
  font-size:18px;
  color:var(--gold2);
  letter-spacing:2px;
  margin-bottom:10px;
}

.review-text{
  margin:0;
  color:rgba(255,255,255,.9);
  line-height:1.95;
  white-space:pre-line;
}

.review-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.review-tag{
  font-size:12px;
  color:rgba(245,217,122,.95);
  border:1px solid rgba(202,167,74,.18);
  background:rgba(202,167,74,.08);
  padding:6px 10px;
  border-radius:999px;
}

.reviews-empty{
  display:none;
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(202,167,74,.18);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.72);
  text-align:center;
}

@media (max-width: 980px){
  .reviews-grid{
    grid-template-columns:1fr;
  }
}

.faq-search-wrap{
  max-width:760px;
}

.faq-search{
  width:100%;
  height:56px;
  border-radius:18px;
  border:1px solid rgba(202,167,74,.20);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.92);
  padding:0 18px;
  font-size:16px;
  box-shadow:0 16px 40px rgba(0,0,0,.22);
}

.faq-search::placeholder{
  color:rgba(255,255,255,.45);
}

.faq-list{
  display:grid;
  gap:12px;
  margin-top:22px;
}

.faq-item{
  border-radius:22px;
  border:1px solid rgba(202,167,74,.18);
  background:rgba(255,255,255,.03);
  box-shadow:0 16px 44px rgba(0,0,0,.25), 0 0 18px rgba(202,167,74,.06);
  overflow:hidden;
}

.faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:18px 20px;
  font-weight:800;
  color:rgba(255,255,255,.94);
  position:relative;
  transition:background .2s ease, color .2s ease;
}

.faq-item summary::-webkit-details-marker{
  display:none;
}

.faq-item summary::before{
  content:"+";
  position:absolute;
  left:20px;
  top:50%;
  transform:translateY(-50%);
  color:rgba(245,217,122,.95);
  font-size:24px;
  line-height:1;
  font-weight:700;
}

.faq-item[open] summary::before{
  content:"−";
}

.faq-item[open] summary{
  background:rgba(245,217,122,.05);
}

.faq-answer{
  padding:0 20px 18px;
}

.faq-answer p{
  margin:0;
  color:rgba(255,255,255,.78);
  line-height:1.9;
}

.faq-empty{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(202,167,74,.18);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.72);
  text-align:center;
}

.footer-legal{
margin-top:20px;
text-align:center;
font-size:13px;
color:rgba(255,255,255,.6);
}

.footer-legal a{
color:rgba(255,255,255,.7);
text-decoration:none;
margin:0 6px;
transition:color .2s ease;
}

.footer-legal a:hover{
color:rgba(245,217,122,.95);
}

.footer-credit{
margin-top:10px;
font-size:13px;
color:rgba(255,255,255,.55);
}

.footer-credit a{
color:rgba(245,217,122,.9);
text-decoration:none;
font-weight:600;
transition:opacity .2s ease;
}

.footer-credit a:hover{
opacity:.8;
}
.footer-legal{
text-align:center;
margin-top:14px;
font-size:13px;
color:rgba(255,255,255,.6);
}

.footer-legal a{
color:rgba(255,255,255,.7);
text-decoration:none;
transition:color .2s ease;
}

.footer-legal a:hover{
color:rgba(245,217,122,.95);
}

.footer-credit{
text-align:center;
margin-top:8px;
font-size:13px;
color:rgba(255,255,255,.5);
padding-bottom:16px;
}

.footer-credit a{
color:rgba(245,217,122,.95);
font-weight:600;
text-decoration:none;
}

.footer-credit a:hover{
opacity:.85;
}
.consent-box{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:4px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(202,167,74,.18);
  background: rgba(255,255,255,.02);
}

.consent-box input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:#d5b256;
  flex:0 0 auto;
}

.consent-box label{
  margin:0;
  font-size:13px;
  line-height:1.8;
  color: rgba(255,255,255,.78);
}

.consent-box a{
  color: rgba(245,217,122,.95);
  text-decoration: underline;
  text-decoration-color: rgba(245,217,122,.28);
}