/* =========================================================
   SLV GROUP - CLEAN MASTER STYLE.CSS (FINAL)
   - Single Header (dark + burger)
   - Single Footer (fTop/fAcc version)
   - Unified Typography
========================================================= */

/* =========================
   TOKENS / BASE
========================= */
:root{
  --font-primary: system-ui,-apple-system,Segoe UI,Roboto,Arial;

  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --blue:#0b63f6;

  --bg:#ffffff;

  --header-bg:#0f172a;
  --header-text:#cbd5e1;
  --header-text-active:#ffffff;

  --footer-bg:#0b1220;
  --footer-text:#e5e7eb;
  --footer-muted:rgba(229,231,235,.72);
  --footer-border:rgba(255,255,255,.12);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font-primary);
  color: var(--text);
  background: var(--bg);
}

img{ max-width:100%; display:block; }
a{ color:inherit; }
.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

/* Optional: simple container used by some pages */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

/* =========================
   HEADER (DARK + BURGER)
   Works with /includes/header.php
========================= */
.site-header{
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.logo img{
  height:38px;
  width:auto;
  display:block;
}

/* Desktop nav */
.nav{
  display:flex;
  gap:28px;
  align-items:center;
}

.nav a{
  color: var(--header-text);
  text-decoration:none;
  font-weight:600;
  padding:8px 10px;
  border-radius:10px;
  transition: .2s ease;
}
.nav a:hover{
  color: var(--header-text-active);
  background: rgba(255,255,255,.06);
}
.nav a.active{
  color: var(--header-text-active);
  background: rgba(255,255,255,.08);
}

/* Header CTA */
.btnTop{
  background:#22c55e;
  color:#fff;
  padding:10px 18px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  transition:.2s ease;
  border:1px solid rgba(34,197,94,.35);
}
.btnTop:hover{
  background:#16a34a;
}

/* Burger button (hidden on desktop) */
.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  border-radius:10px;
}
.burger span{
  width:26px;
  height:3px;
  background:#ffffff;
  transition:.25s ease;
}

/* Burger active animation */
.burger.burger-active span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.burger-active span:nth-child(2){
  opacity:0;
}
.burger.burger-active span:nth-child(3){
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile nav dropdown */
@media (max-width: 992px){
  .burger{ display:flex; }
  .btnTop{ display:none; }

  .nav{
    position:absolute;
    top: 70px;
    left:0;
    right:0;
    background: var(--header-bg);
    flex-direction:column;
    align-items:center;
    gap: 14px;
    padding: 16px 0 18px;
    display:none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav.nav-open{
    display:flex;
  }

  .nav a{
    width: 92%;
    max-width: 520px;
    text-align:center;
    padding: 12px 12px;
    border-radius:12px;
    background: rgba(255,255,255,.04);
  }
  .nav a.active{
    background: rgba(255,255,255,.10);
  }
}

/* =========================
   MAIN
========================= */
#main-content{ min-height: 60vh; }

/* =========================
   FOOTER (Unified + Premium)
   Matches /includes/footer.php classes: fTop,fBrand,fCols,fAcc...
========================= */
.site-footer{
  margin-top: 60px;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid rgba(255,255,255,.10);
  font-family: var(--font-primary);
}

.site-footer .wrap{ padding:34px 16px 18px; }

.fTop{
  display:grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap:22px;
  align-items:start;
}

.fBrand{ max-width:520px; }
.fLogoText{
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:.2px;
}
.fDesc{
  margin:10px 0 12px;
  color: var(--footer-muted);
  font-weight:500;
  line-height:1.65;
}

.fSocial{ display:flex; gap:10px; flex-wrap:wrap; }
.fIcon{
  width:40px;height:40px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;text-decoration:none;font-weight:700;
  transition:transform .15s, background .15s, border-color .15s;
}
.fIcon:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.18);
}

.fCols{
  display:grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap:18px;
}
.fH{
  font-weight:700;
  margin-bottom:10px;
  color:#fff;
}
.fA{
  display:block;
  padding:7px 0;
  color:rgba(229,231,235,.86);
  text-decoration:none;
  font-weight:500;
}
.fA:hover{ color:#fff; text-decoration:underline; }

.fMuted{
  color:rgba(229,231,235,.55);
  font-weight:500;
  font-size:.92rem;
  padding:6px 0;
}

/* Footer bottom */
.fBottom{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.12);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(229,231,235,.68);
  font-weight:500;
  font-size:.92rem;
}
.fMiniLinks a{
  color:rgba(229,231,235,.68);
  text-decoration:none;
  font-weight:600;
}
.fMiniLinks a:hover{ color:#fff; text-decoration:underline; }
.fMiniLinks span{ opacity:.55; margin:0 8px; }

/* Accordion (mobile only) */
.fAcc{ display:none; margin-top:14px; }
.fAcc__item{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  overflow:hidden;
  margin-bottom:10px;
}
.fAcc__btn{
  width:100%;
  border:0;
  background:transparent;
  color:#fff;
  padding:12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:700;
  cursor:pointer;
}
.fAcc__chev{
  transition:transform .18s ease;
  opacity:.9
}
.fAcc__btn[aria-expanded="true"] .fAcc__chev{
  transform:rotate(180deg)
}
.fAcc__panel{ padding:2px 12px 12px; }
.fAcc__panel .fA{
  padding:8px 0;
  border-top:1px solid rgba(255,255,255,.08)
}
.fAcc__panel .fA:first-child{ border-top:0 }

/* Responsive: show accordion, hide desktop cols */
@media (max-width: 860px){
  .fTop{ grid-template-columns:1fr; gap:14px; }
  .fCols{ display:none; }
  .fAcc{ display:block; }
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(15,23,42,.78);
  color:#fff;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:9999;

  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease;
}
.back-to-top.show{
  opacity:1;
  pointer-events:auto;
}