/* =========================
   Gamavis style.css (UPDATED - COPY & REPLACE)
   - Responsive container system (wide screens fixed)
   - Fixed header (sticky on scroll) + body offset
   - Mobile header layout + Menu always visible
   - Drawer styles
   - Existing UI components preserved
   - ✅ Logo sizing fixed (all devices)
========================= */

:root{
  --brand:#4872b8;
  --brand-2:#335a9e;
  --ink:#0b1220;
  --muted:#5b677a;
  --line:rgba(15, 23, 42, .10);
  --shadow:0 12px 40px rgba(2, 6, 23, .10);
  --shadow2:0 10px 30px rgba(2, 6, 23, .16);
  --radius:18px;
  --radius2:26px;

  /* GLOBAL LAYOUT TOKENS */
  --container-max: 1320px;
  --container-pad: clamp(16px, 2.2vw, 34px);
  --section-pad: clamp(44px, 5vw, 74px);

  /* Backward compatibility */
  --max:1180px;

  /* Header height is set by JS (fallback here) */
  --header-h: 88px;
}

@media (min-width: 1600px){
  :root{
    --container-max: 1640px;
    --container-pad: 36px;
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{width:100%; max-width:100%; overflow-x:hidden}

body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--ink);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(72,114,184,.20), transparent 60%),
    radial-gradient(700px 450px at 90% 20%, rgba(51,90,158,.14), transparent 55%),
    linear-gradient(180deg, #f6f8ff 0%, #ffffff 42%, #f7f9ff 100%);
  /* ✅ offset for fixed header */
  padding-top: var(--header-h);
}

a{color:inherit; text-decoration:none}

/* IMPORTANT:
   Keep responsive images, but logo is overridden below via .brandLogo rules */
img{max-width:100%; height:auto; display:block}

/* =========================
   CONTAINER SYSTEM
========================= */
.container{
  width: min(var(--container-max), calc(100% - (var(--container-pad) * 2)));
  margin:0 auto;
}

.container-fluid{
  width:100%;
  margin:0 auto;
  padding-inline: var(--container-pad);
}

/* Sections */
.section{padding: var(--section-pad) 0}
.section-sm{padding: clamp(34px, 4.2vw, 52px) 0}

.grid{display:grid; gap:18px}
.center{text-align:center}
.muted{color:var(--muted)}
.hr{height:1px; background:rgba(15,23,42,.08); margin:14px 0}
.mt-10{margin-top:10px}
.mt-14{margin-top:14px}
.mt-18{margin-top:18px}
.mt-24{margin-top:24px}

/* =========================
   TYPOGRAPHY / UI
========================= */
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:7px 12px; border:1px solid var(--line);
  background:rgba(255,255,255,.70);
  border-radius:999px; font-size:13px; color:var(--muted);
  box-shadow:0 10px 22px rgba(2, 6, 23, .04);
}
.dot{
  width:10px; height:10px; border-radius:999px; background:var(--brand);
  box-shadow:0 0 0 6px rgba(72,114,184,.15);
}
.h1{
  font-size:clamp(30px, 4vw, 52px);
  line-height:1.05; margin:14px 0 14px; letter-spacing:-.02em;
}
.h2{
  font-size:clamp(22px, 2.6vw, 34px);
  line-height:1.12; margin:0 0 10px; letter-spacing:-.01em;
}
.p{
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
  margin:0;
}
.p-lg{font-size:17px}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:1px solid var(--line);
  padding:12px 16px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition:.2s ease;
  user-select:none;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color:#fff;
  border-color:rgba(72,114,184,.35);
  box-shadow:0 14px 28px rgba(72,114,184,.18);
}
.btn-primary:hover{transform:translateY(-1px); box-shadow:0 16px 34px rgba(72,114,184,.22)}
.btn-ghost{
  background:rgba(255,255,255,.70);
  color:var(--ink);
}
.btn-ghost:hover{transform:translateY(-1px); box-shadow:0 10px 22px rgba(2, 6, 23, .08)}
.btn-small{padding:10px 12px; border-radius:10px; font-size:14px}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background:rgba(72,114,184,.08); color:var(--brand-2);
  border:1px solid rgba(72,114,184,.14);
  font-weight:600; font-size:13px;
}

/* =========================
   HEADER (FIXED ON SCROLL)
========================= */
.header{
  position: fixed;
  top:0; left:0; right:0;
  width:100%;
  z-index:9999;
  backdrop-filter: blur(14px);
  background:rgba(246,248,255,.72);
  border-bottom:1px solid rgba(15,23,42,.08);
}

.topbar{
  font-size:13px; color:var(--muted);
  padding:10px 0;
  border-bottom:1px solid rgba(15,23,42,.06);
}
.topbar a{color:var(--brand-2); font-weight:600}

.topbarRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
@media (max-width: 560px){
  .topbarRow{flex-direction:column; align-items:flex-start; gap:6px;}
  .topbar{padding:8px 0;}
}

/* =========================
   NAV LAYOUT (FIXED + LOGO CONTROL)
   ✅ This is the main fix
========================= */

/* Always 3 columns: brand | links | ctas */
.nav{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:16px;
  padding:12px 0;
}

/* Brand container must not stretch */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  max-width: 520px;
}

/* ✅ Hard control logo size */
.brandLogo{
  height: 64px;          /* desktop height */
  width: auto;
  max-width: 360px;
  max-height: 64px;
  object-fit: contain;
  display:block;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
}

/* If you still use logoMark anywhere */
.logoMark{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(135deg, var(--brand) 0%, #7aa0e6 100%);
  box-shadow:0 10px 18px rgba(72,114,184,.18);
  position:relative; overflow:hidden;
  flex:0 0 auto;
}
.logoMark:after{
  content:"";
  position:absolute; inset:-40%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.8), transparent 55%);
  transform:rotate(20deg);
}

.brandText{
  display:inline-block;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.brandAccent{color:var(--brand-2);}

.navlinks{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  white-space:nowrap;
}
.navlinks a{
  font-size:14px; color:rgba(11,18,32,.78);
  font-weight:600; padding:8px 10px; border-radius:10px;
  transition:.2s ease;
}
.navlinks a:hover{background:rgba(72,114,184,.08); color:var(--brand-2)}

.navcta{
  display:flex; align-items:center; justify-content:flex-end;
  gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
}

/* Menu hidden on desktop */
.menuBtn{display:none}

/* =========================
   DRAWER (MOBILE MENU)
========================= */
.drawer{
  position:fixed; inset:0;
  background:rgba(11,18,32,.55);
  display:none; z-index:10000;
}
.drawer.open{display:block}
.drawerPanel{
  position:absolute; right:0; top:0; bottom:0;
  width:min(380px, 92vw);
  background:rgba(246,248,255,.96);
  backdrop-filter: blur(12px);
  border-left:1px solid rgba(15,23,42,.10);
  box-shadow:-10px 0 30px rgba(2,6,23,.18);
  padding:16px;
  display:flex; flex-direction:column; gap:10px;
}
.drawerTop{display:flex; justify-content:space-between; align-items:center}
.drawerLinks a{
  display:block; padding:12px 12px; border-radius:14px;
  font-weight:800; color:rgba(11,18,32,.78);
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.72);
  margin-top:10px;
}
.drawerLinks a:hover{
  border-color:rgba(72,114,184,.22);
  background:rgba(72,114,184,.08);
  color:var(--brand-2);
}

/* =========================
   HERO
========================= */
.hero{padding: clamp(38px, 4.2vw, 56px) 0 28px}
.heroWrap{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:22px; align-items:stretch;
}
.heroCard{
  background:linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 100%);
  border:1px solid rgba(15,23,42,.10);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:26px;
  position:relative; overflow:hidden;
}
.heroCard:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 450px at 20% 0%, rgba(72,114,184,.16), transparent 55%),
    radial-gradient(700px 380px at 100% 10%, rgba(51,90,158,.12), transparent 55%);
  pointer-events:none;
}
.heroLeft{position:relative; z-index:1}
.heroActions{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.heroBullets{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px; margin-top:18px;
}
.bullet{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px 12px;
  background:rgba(255,255,255,.70);
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
}
.bulletIcon{
  width:28px; height:28px; border-radius:10px;
  background:rgba(72,114,184,.12);
  border:1px solid rgba(72,114,184,.18);
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto;
  color:var(--brand-2);
  font-weight:800;
}
.bullet small{display:block; color:var(--muted); line-height:1.45; margin-top:3px}

.heroRight{
  background:linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.68) 100%);
  border:1px solid rgba(15,23,42,.10);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:22px;
  position:relative; overflow:hidden;
}
.formTitle{font-weight:800; margin:0 0 6px; font-size:18px; letter-spacing:-.01em}
.formHint{margin:0 0 16px; color:var(--muted); font-size:13px; line-height:1.5}
.form{display:grid; gap:10px}
.field{display:grid; gap:6px}
.label{font-size:12px; font-weight:700; color:rgba(11,18,32,.72)}
.input, .select, .textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.80);
  outline:none; transition:.2s ease; font-size:14px;
}
.textarea{min-height:92px; resize:vertical}
.input:focus, .select:focus, .textarea:focus{
  border-color:rgba(72,114,184,.45);
  box-shadow:0 0 0 5px rgba(72,114,184,.12);
  background:#fff;
}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.formFooter{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:4px; flex-wrap:wrap;
}
.note{font-size:12px; color:var(--muted); line-height:1.45}
.alert{
  display:none; margin-top:10px;
  padding:12px 12px; border-radius:14px;
  font-weight:800; font-size:13px;
}
.alert.success{
  background:rgba(34,197,94,.10);
  border:1px solid rgba(34,197,94,.22);
  color:#14532d;
}
.alert.error{
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.22);
  color:#7f1d1d;
}

/* =========================
   CONTENT BLOCKS
========================= */
.card{
  background:rgba(255,255,255,.80);
  border:1px solid rgba(15,23,42,.10);
  border-radius:var(--radius);
  box-shadow:0 12px 34px rgba(2, 6, 23, .06);
  padding:18px;
}
.cardTitle{font-weight:800; margin:0 0 6px; font-size:16px; letter-spacing:-.01em}
.cardText{margin:0; color:var(--muted); font-size:14px; line-height:1.65}
.iconBox{
  width:44px; height:44px;
  border-radius:16px;
  background:rgba(72,114,184,.10);
  border:1px solid rgba(72,114,184,.18);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:10px;
  color:var(--brand-2);
  font-weight:900;
}

.servicesGrid{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin-top:18px}
.split{display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:stretch}

/* =========================
   FOOTER
========================= */
.footer{
  padding:44px 0;
  border-top:1px solid rgba(15,23,42,.08);
  background:rgba(246,248,255,.68);
}
.footerGrid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap:16px;
}
.fTitle{font-weight:900; margin:0 0 10px}
.fLink{display:block; padding:6px 0; color:rgba(11,18,32,.72); font-weight:700; font-size:13px}
.fLink:hover{color:var(--brand-2)}
.copyright{
  margin-top:22px; padding-top:16px;
  border-top:1px solid rgba(15,23,42,.08);
  color:var(--muted); font-size:13px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}

/* =========================
   BLOG / CASE COMPONENTS
========================= */
.pillRow{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 12px; border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.75);
  font-size:13px; font-weight:800; color:rgba(11,18,32,.78);
}
.pill:hover{border-color:rgba(72,114,184,.24); background:rgba(72,114,184,.08); color:var(--brand-2)}
.postGrid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px}
.postCard{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.82);
  box-shadow:0 12px 30px rgba(2, 6, 23, .06);
  transition:.2s ease;
}
.postCard:hover{transform:translateY(-2px); box-shadow:0 18px 36px rgba(2,6,23,.10)}
.postThumb{
  height:170px;
  background:linear-gradient(135deg, rgba(72,114,184,.22), rgba(51,90,158,.10));
  border-bottom:1px solid rgba(15,23,42,.08);
  position:relative;
}
.postThumb img{width:100%; height:100%; object-fit:cover}
.postBody{padding:16px}
.metaRow{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:12px; font-weight:800}
.postTitle{margin:10px 0 8px; font-weight:900; letter-spacing:-.01em}
.postExcerpt{margin:0; color:var(--muted); font-size:14px; line-height:1.65}

/* ARTICLE WRAP */
.articleWrap{
  width: min(980px, 100%);
  margin: 0 auto;
}
.articleHead{
  padding:22px;
  border-radius:var(--radius2);
  background:rgba(255,255,255,.84);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 12px 36px rgba(2,6,23,.06);
}
.articleCover{
  margin-top:14px;
  border-radius:var(--radius2);
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.82);
}
.articleCover img{width:100%; height:320px; object-fit:cover}
.articleContent{
  margin-top:14px;
  padding:22px;
  border-radius:var(--radius2);
  background:rgba(255,255,255,.84);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 12px 36px rgba(2,6,23,.06);
}
.articleContent h2{margin:22px 0 10px; font-size:20px; letter-spacing:-.01em}
.articleContent ul{margin:10px 0 10px 18px; color:var(--muted); line-height:1.8}
.articleContent p{color:var(--muted); line-height:1.85; font-size:15px}
.quoteBox{
  margin:18px 0;
  padding:16px 16px;
  border-radius:18px;
  border:1px solid rgba(72,114,184,.18);
  background:rgba(72,114,184,.08);
  color:rgba(11,18,32,.78);
  font-weight:800;
}

/* =========================
   RESPONSIVE (MOBILE NAV FIX)
========================= */
@media (max-width: 980px){
  .nav{
    grid-template-columns: auto auto; /* brand | ctas (links hidden) */
    gap:12px;
  }
  .navlinks{display:none}
  .menuBtn{display:inline-flex !important; align-items:center; gap:6px}

  /* ✅ logo scale down */
  .brandLogo{
    height: 44px;
    max-height: 44px;
    max-width: 240px;
  }

  .heroWrap{grid-template-columns:1fr}
  .servicesGrid{grid-template-columns:1fr 1fr}
  .split{grid-template-columns:1fr}
  .footerGrid{grid-template-columns:1fr 1fr}

  .navcta{gap:8px}
  .logoMark{width:30px; height:30px; border-radius:10px}
  .btn-small{padding:10px 10px; font-size:13px}

  .navQuote{display:none}
}

@media (max-width: 560px){
  .brandLogo{
    height: 36px;
    max-height: 36px;
    max-width: 200px;
  }

  .row2{grid-template-columns:1fr}
  .heroBullets{grid-template-columns:1fr}
  .servicesGrid{grid-template-columns:1fr}
  .footerGrid{grid-template-columns:1fr}
  .articleCover img{height:220px}
}

@media (max-width: 420px){
  .menuText{display:none}
}

/* ================================
   Topbar: Mobile Optimization (show only call icon/number)
================================ */
.desktopOnly { display: inline-flex; }
.mobileCall { display: none; }

@media (max-width: 768px){
  .desktopOnly{ display: none !important; }
  .topbarRow{ justify-content: center; }
  .mobileCall{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    color: var(--brand-2);
    font-size: 14px;
    text-decoration: none;
  }
  .mobileCall span{ font-weight: 900; }
}
.checklist{margin-top:14px;border-radius:24px;border:1px solid rgba(15,23,42,.10);background:rgba(255,255,255,.90);padding:14px}
 .checkRow{display:flex;gap:10px;align-items:flex-start;margin:10px 0}
.checkIcon{width:28px;height:28px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(72,114,184,.14);color:var(--brand-2);font-weight:1100;flex:0 0 auto}

/* Social Media Icons Styling */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease, fill 0.2s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    /* This makes the icon gray by default */
    fill: #888; 
    /* OR: use var(--text-muted) if you have that variable */
    transition: fill 0.2s ease;
}

/* Hover Effect: Changes color to your Brand Color */
.social-link:hover {
    transform: translateY(-3px);
}

.social-link:hover svg {
    /* Uses your brand color variable */
    fill: var(--brand-2); 
}

/* Address Block Styling */
.address-block {
    opacity: 0.8; 
    color: inherit; /* Inherits text color from parent */
}
/* Mobile Sticky Bottom Bar */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 9999;
    justify-content: space-around;
    gap: 10px;
}
.mobile-sticky-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}
.btn-call { background: #eeffee; color: #008000; border: 1px solid #008000; }
.btn-whatsapp { background: #25D366; color: white; }

@media (max-width: 768px) {
    .mobile-sticky-cta { display: flex; }
    /* Add padding to body so content isn't hidden behind the bar */
    body { padding-bottom: 60px; }
}
