/* =========================================================
   SK9 Training World UAE - styles.css (FINAL / READY)
   Brand: Black / White / #bb9b49
   Includes:
   - ONE CTA system (.btn) + makes .cta identical (backward compatible)
   - Topbar + social + header CTA behaviour
   - Proper mobile toggle + nav-open behaviour
   - BIPDT badge styled like UK and KEPT ON MOBILE (scaled)
   - Fixes hero overlay / “grey page” issues
   - Performance-safe effects only
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root{
  --bg:#000000;
  --panel:#0f0f0f;
  --text:#ffffff;
  --muted:#cfcfcf;
  --line:rgba(255,255,255,.14);
  --accent:#bb9b49;
  --accent2:#ebca87;
  --max:1120px;

  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --shadow-soft:0 8px 18px rgba(0,0,0,.25);
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

img{ max-width:100%; height:auto; display:block; }

a{
  color:inherit;
  text-decoration:none;
}
a:hover{ opacity:.92; }

/* ---------- Layout Helpers ---------- */
.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

.section{ padding:64px 0; }

.section.alt{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

.section h2{
  font-size:clamp(1.6rem, 2.4vw, 2.2rem);
  line-height:1.2;
  margin:0 0 18px 0;
  text-align:center;
  color:var(--accent);
}

.content-section{ text-align:center; }

.content-section p{
  max-width:860px;
  margin:0 auto 14px auto;
  color:var(--muted);
  font-size:1rem;
}

.section-top{ margin-top:34px; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar{
  background:#000;
  border-bottom:1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
}

.topbar-left{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  align-items:center;
  color:rgba(255,255,255,.86);
  font-weight:650;
  font-size:.95rem;
}

.topbar-left a{
  color:#fff;
  font-weight:800;
  text-decoration:none;
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.topbar-right a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-weight:800;
  font-size:.9rem;
  line-height:1;
}

.topbar-right a:hover{
  background:rgba(255,255,255,.10);
  opacity:1;
}

/* make topbar CTA match your button system */
.topbar-right .btn.btn-header{
  background:var(--accent);
  color:#000;
  border-color:transparent;
}

.topbar-right .btn.btn-header:hover{
  background:var(--accent2);
  opacity:1;
}

@media (max-width:900px){
  .topbar-inner{
    flex-direction:column;
    align-items:stretch;
  }
  .topbar-left{
    justify-content:center;
    text-align:center;
  }
  .topbar-right{
    justify-content:center;
    flex-wrap:wrap;
  }
}

/* =========================================================
   HEADER / NAV
   - Normal height (not huge)
   - Badge kept on mobile (scaled)
   - Proper mobile toggle + nav-open behaviour
   ========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(0,0,0,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}

/* Brand (logo + badge) */
.site-header .brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  min-width:0;
}

.site-header .brand .logo{
  height:78px;
  width:auto;
  max-width:none;
  display:block;
}

/* BIPDT badge (UK-style), kept on mobile */
.site-header .bipdt-badge{
  margin-left:12px;
  max-width:120px;
  width:auto;            /* IMPORTANT: do not use 100% */
  height:auto;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
  border:3px solid #d6b969;
  display:block;
}

/* Desktop nav */
.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1;
  justify-content:flex-end;
}

.nav a{
  color:var(--text);
  font-weight:700;
  font-size:.92rem;
  padding:10px 8px;
  border-radius:12px;
  white-space:nowrap; /* prevents “Dog Training” / “Dubai” wrap */
}

.nav a:hover{
  background:rgba(255,255,255,.06);
  opacity:1;
}

/* Mobile toggle button */
.nav-toggle{
  display:none;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
}

/* Mobile: collapsible nav */
@media (max-width:900px){
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .header-inner{
    flex-wrap:wrap;
  }

  /* scale brand on mobile (badge remains visible) */
  .site-header .brand .logo{ height:64px; }
  .site-header .bipdt-badge{ max-width:96px; margin-left:10px; }

  /* collapsed by default */
  .nav{
    display:none;
    width:100%;
    flex:0 0 100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    padding:12px 0 6px;
    border-top:1px solid var(--line);
    margin-top:10px;
  }

  /* opened */
  .nav.nav-open{ display:flex; }

  .nav a{
    padding:10px 12px;
  }
}

@media (max-width:520px){
  .site-header .brand .logo{ height:58px; }
  .site-header .bipdt-badge{ max-width:84px; margin-left:8px; }
}

/* =========================================================
   UAE CTA STANDARD (LOCKED)
   Use .btn everywhere.
   Backward compatible: a.cta behaves exactly like .btn
   ========================================================= */
.cta-group{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:0;
}

/* PRIMARY + CTA alias */
.btn,
a.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:12px 16px;
  border-radius:12px;
  font-weight:800;
  letter-spacing:.2px;
  text-decoration:none;
  white-space:nowrap;

  margin:6px 6px 0 0;

  background:var(--accent);
  color:#000;
  border:1px solid transparent;
  box-shadow:var(--shadow-soft);
  transition:transform .12s ease, background .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.btn:hover,
a.cta:hover{
  transform:translateY(-1px);
  background:var(--accent2);
  opacity:1;
}

.btn:active,
a.cta:active{ transform:translateY(0); }

/* Prevent purple visited CTAs */
.btn:visited,
a.cta:visited{ color:#fff; }

/* OUTLINE */
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:12px 16px;
  border-radius:12px;
  font-weight:800;
  letter-spacing:.2px;
  text-decoration:none;
  white-space:nowrap;

  margin:6px 6px 0 0;

  background:transparent;
  border:1px solid rgba(187,155,73,.55);
  color:var(--accent);
  box-shadow:none;
  transition:transform .12s ease, background .18s ease, opacity .18s ease, border-color .18s ease;
}

.btn-outline:hover{
  transform:translateY(-1px);
  background:rgba(187,155,73,.12);
  border-color:rgba(187,155,73,.75);
  opacity:1;
}

.btn-outline:active{ transform:translateY(0); }
.btn-outline:visited{ color:var(--accent); }

/* HEADER CTA (tight) */
.btn-header{
  padding:10px 14px;
  border-radius:12px;
  font-weight:900;
  margin:0;         /* header uses nav/topbar gap */
  box-shadow:none;  /* keeps header clean */
}

/* FOOTER CTA */
.btn-footer{
  padding:14px 18px;
  border-radius:14px;
  font-weight:900;
}

/* Mobile: full-width CTA stack */
@media (max-width:600px){
  .cta-group{
    flex-direction:column;
    align-items:stretch;
  }
  .cta-group .btn,
  .cta-group a.cta,
  .cta-group .btn-outline{
    width:100%;
    margin:10px 0 0 0;
  }
}

/* =========================================================
   HERO (WITH HERO IMAGE)
   ========================================================= */
.hero{
  position:relative;
  min-height:86vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:86px 0 40px;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("/assets/img/hero.jpg") center 35% / cover no-repeat;
}

/* CRITICAL FIX: keep overlays contained */
.hero-inner{
  position:relative;
  z-index:2;
  width:100%;
  max-width:980px;
  margin:0 auto;
  padding:0 18px;
}

.hero h1{
  margin:0 0 10px;
  font-size:clamp(2.2rem, 4.8vw, 4.1rem);
  line-height:1.06;
  letter-spacing:-.5px;
  color:#fff;
}

.hero h2{
  margin:0 0 14px;
  font-size:clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight:800;
  color:var(--accent2);
}

.hero p{
  margin:0 auto 22px;
  max-width:760px;
  color:rgba(255,255,255,.88);
  font-weight:650;
  font-size:1.02rem;
}

@media (max-width:900px){
  .hero{
    min-height:78vh;
    padding:78px 0 36px;
  }
}

/* =========================================================
   TRUST SECTION / BADGES
   ========================================================= */
.trust-section{
  padding:44px 0;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(187,155,73,.20), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border-bottom:1px solid var(--line);
}

.trust-section h4{
  margin:0 0 18px;
  text-align:center;
  font-size:1.35rem;
  font-weight:900;
  color:#fff;
}

.badges{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}

.badge{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:10px 14px;
  min-width:120px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.55);
  color:#fff;
  font-weight:800;
  font-size:.85rem;
  line-height:1.15;
}

.badge:hover{
  border-color:rgba(187,155,73,.55);
}

/* =========================================================
   GRID / CARDS
   ========================================================= */
.grid{
  display:grid;
  gap:18px;
}

@media (min-width:768px){
  .columns-2{ grid-template-columns:repeat(2,1fr); }
  .columns-3{ grid-template-columns:repeat(3,1fr); }
  .columns-4{ grid-template-columns:repeat(4,1fr); }
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
}

.card h3{
  margin:0 0 10px;
  font-size:1.18rem;
  line-height:1.25;
  color:#fff;
}

.card h3 a{ color:#fff; }
.card h3 a:hover{ color:var(--accent2); }

.card p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:.98rem;
}

/* Lists used in Behaviour Issues */
.list{
  margin:0;
  padding-left:18px;
  color:rgba(255,255,255,.85);
}
.list li{ margin:8px 0; }

/* =========================================================
   DETAILS / FAQ
   ========================================================= */
.details-summary{
  max-width:880px;
  margin:0 auto 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  padding:12px 14px;
}

details summary{
  cursor:pointer;
  font-weight:900;
  color:var(--accent2);
  list-style:none;
}
details summary::-webkit-details-marker{ display:none; }

details p{
  margin:10px 0 0;
  color:rgba(255,255,255,.85);
}

/* =========================================================
   FOOTER CTA
   ========================================================= */
.footer-cta{
  padding:70px 0;
  border-top:1px solid var(--line);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(187,155,73,.18), rgba(0,0,0,0));
  text-align:center;
}

.footer-cta h2{
  color:var(--accent);
  margin:0 0 10px;
}

.footer-cta p{
  margin:0 auto 18px;
  max-width:860px;
  color:rgba(255,255,255,.86);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  border-top:1px solid var(--line);
  padding:34px 0;
}

.footer-grid{
  display:grid;
  gap:18px;
}

@media (min-width:900px){
  .footer-grid{ grid-template-columns:1.3fr 1fr 1fr; }
}

.footer-title,
.footer-brand{
  font-weight:900;
  margin:0 0 10px;
}

.footer-links{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}

.footer-links a{ color:rgba(255,255,255,.82); }
.footer-links a:hover{ color:#fff; }

.footer-bottom{
  border-top:1px solid var(--line);
  margin-top:18px;
  padding-top:14px;
  color:rgba(255,255,255,.65);
  font-size:.92rem;
}
