/* PPCPartner v1 - Base Styles (Palette: #1F3A5F) */

:root{
  /* Brand */
  --primary: #1F3A5F;   /* Primary brand */
  --primary2: #3A6EA5;  /* Secondary (CTA/gradient) */
  --primary3: #6FA8DC;  /* Soft accent (hover/glow) */

  /* Backgrounds */
  --bg: #0E1B2E;        /* Main background */
  --surface: #16263F;   /* Solid surface/card option */

  /* Text */
  --text: #E6ECF2;      /* Primary text */
  --muted: #A9B7C6;     /* Muted text */

  /* UI */
  --line: rgba(255,255,255,.12);
  --ok: #22C55E;

  --radius: 16px;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Premium deep background with subtle brand glow */
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(58,110,165,.22), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, rgba(111,168,220,.14), transparent 55%),
    radial-gradient(900px 600px at 70% 90%, rgba(34,197,94,.08), transparent 55%),
    var(--bg);

  color: var(--text);
  line-height: 1.55;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* NAV */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(14,27,46,.70);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.2px;
}
.logo{
  height: 44px;   /* primary size */
  width: auto;
  display: block;
}
.brand-badge{
  width:36px; height:36px; border-radius:10px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 20px rgba(58,110,165,.25);
}
.nav-links{display:flex; gap:18px; align-items:center}
.nav-links a{color:var(--muted); font-weight:600}
.nav-links a:hover{color:var(--text)}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px;
  border-radius: 12px;
  font-weight:800;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover{transform: translateY(-1px)}
.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #071425;
  box-shadow: 0 12px 26px rgba(58,110,165,.22);
}
.btn-primary:hover{
  box-shadow: 0 16px 34px rgba(111,168,220,.22);
}
.btn-ghost{
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.btn-ghost:hover{
  border-color: rgba(111,168,220,.35);
  background: rgba(255,255,255,.04);
}

/* Badge */
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background: rgba(58,110,165,.14);
  border:1px solid rgba(58,110,165,.30);
  color: var(--text);
  font-weight:800;
  font-size: 13px;
}

/* HERO */
.hero{padding:56px 0 24px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:28px;
  align-items:stretch;
}
.hero h1{
  margin:14px 0 12px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.8px;
}
.lead{color:var(--muted); font-size: 18px; max-width: 58ch}
.hero-actions{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}

/* KPIs */
.kpis{display:flex; gap:12px; flex-wrap:wrap; margin-top:22px}
.kpi{
  padding:10px 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  color: var(--muted);
  font-weight:800;
  font-size: 13px;
}
.kpi strong{color:var(--text)}

/* Cards */
.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Hero visual */
.hero-visual{
  position:relative;
  overflow:hidden;
  min-height: 340px;
}
.hero-visual::before{
  content:"";
  position:absolute; inset:-40px;
  background:
    radial-gradient(420px 280px at 30% 35%, rgba(58,110,165,.42), transparent 60%),
    radial-gradient(380px 260px at 80% 20%, rgba(111,168,220,.28), transparent 55%),
    radial-gradient(360px 240px at 70% 85%, rgba(34,197,94,.18), transparent 58%);
  filter: blur(6px);
}
.hero-visual img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  opacity:.33;
  mix-blend-mode: screen;
}
.hero-visual .overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(14,27,46,.0), rgba(14,27,46,.70));
}
.hero-visual .box{
  position:absolute; left:18px; right:18px; bottom:18px;
  padding:16px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(14,27,46,.58);
  backdrop-filter: blur(10px);
}
.hero-visual .box-title{font-weight:900}
.hero-visual .box-sub{color:var(--muted); font-weight:750; margin-top:6px}

/* SECTIONS */
.section{padding:46px 0}
.section h2{
  margin:0 0 10px;
  font-size: 28px;
  letter-spacing: -0.3px;
}
.section .sub{margin:0; color:var(--muted); max-width:72ch}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:18px;
}
.feature{
  padding:18px;
}
.feature .title{font-weight:900; margin:10px 0 8px}
.feature p{margin:0; color:var(--muted)}
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius: 12px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  font-weight:900;
}

/* Services split */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:18px;
}
.service{
  padding:18px;
}
.service h3{margin:10px 0 6px}
.service p{margin:0; color:var(--muted)}
.service ul{margin:12px 0 0; padding-left:18px; color:var(--muted)}
.service li{margin:6px 0}
.service .cta{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap}

/* CTA band */
.cta-band{
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-color: rgba(111,168,220,.18);
}
.cta-band .left{max-width:70ch}
.cta-band h3{margin:0 0 6px}
.cta-band p{margin:0; color:var(--muted)}

/* Footer */
.footer{
  padding:30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}
.footer a{color: var(--muted)}
.footer a:hover{color: var(--text)}
.small{font-size: 13px}

/* Responsive */
@media (max-width: 900px){

  /* Existing responsive rules (keep yours) */
  .hero-grid{grid-template-columns: 1fr;}
  .hero h1{font-size: 38px}
  .grid-3{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  .cta-band{flex-direction: column; align-items: flex-start}

  /* ✅ MOBILE NAV FIX (THIS IS THE IMPORTANT PART) */
  .nav-inner{
    height: auto;              /* remove fixed height */
    padding: 12px 0;           /* give breathing space */
    flex-wrap: wrap;           /* allow 2 lines */
    gap: 10px;
  }
 /* your other mobile styles... */

  .nav-links a[href="/blog/"]{ display:none; }
}
  .brand{
    width: 100%;               /* logo gets full line */
  }

  .logo{
    height: 44px;              /* good mobile size */
    width: auto;
  }

  .nav-links{
    width: 100%;               /* links go to next line */
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;           /* allow wrapping if needed */
  }

  .nav-links a{
    font-size: 14px;           /* fit better */
  }

  .btn{
    padding: 10px 12px;        /* smaller button on mobile */
    border-radius: 10px;
  }
}
