@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Inter:wght@400;500&display=swap');

:root {
  --bg:#0b1020;
  --bg-alt:#0f172a;
  --text:#e6f6ff;
  --muted:#9cc7d6;
  --accent:#14b8a6;
  --accent-2:#22d3ee;
  --border:#1f2a44;
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;line-height:1.6}
img{max-width:100%;display:block}
a{color:var(--accent)}
a:hover{opacity:.9}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.container-fluid{max-width:1200px;margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:10px;top:10px;background:var(--accent);color:#001;z-index:1000;padding:8px 12px;border-radius:8px}

/* === Big logo, links hard-right, sticky + blur preserved === */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11,16,32,.75);   /* translucent so content blurs under */
  backdrop-filter: blur(8px);        /* keep the blur */
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;    /* left ul + right ul at edges */
  height: 160px;                      /* slim bar */
  padding: 0 16px;
  overflow: visible;                 /* let big logo overhang */
}

/* both ULs: horizontal, no bullets */
.site-nav > ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* left UL: reserve space for the large logo but don't push center */
.site-nav > ul:first-of-type{
  padding-left: 260px;               /* space for the logo; tweak 240–300 */
  flex: 0 0 auto;                    /* don’t expand toward center */
}

/* right UL: stay hard-right */
.site-nav > ul:last-of-type{
  margin-left: auto;                 /* push to the right edge */
}

/* big logo, won’t stretch the bar */
.site-nav .logo{
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 360px;                     /* try 140–160px */
  width: auto;
  display: block;
  margin: 0;
}

/* keep your link styling */
.site-nav a{ text-decoration: none; border-radius: 10px; }

/* responsive */
@media (max-width: 820px){
  .site-nav{ height: 64px; }
  .site-nav > ul:first-of-type{ padding-left: 160px; }
  .site-nav .logo{ height: 96px; }
}


/* Hero */
.hero{padding:46px 0 18px;border-bottom:1px solid var(--border)}
.hero h1{font-family:'Montserrat',sans-serif;font-size:clamp(28px,3.6vw,44px);margin:0 0 6px;color:var(--text)}
.tagline{color:var(--accent-2);font-weight:600;margin:0 0 10px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}


/* Sections */
.feature{padding:26px 0;border-bottom:1px solid var(--border)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width: 900px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 600px){.cards{grid-template-columns:1fr}}
.card{background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}
.card .price{color:var(--accent);font-weight:700}

/* Lists */
.checked{list-style:none;padding-left:0}
.checked li{position:relative;padding-left:26px;margin:6px 0}
.checked li::before{content:"✓";position:absolute;left:0;color:var(--accent);font-weight:700}

/* Subscribe */
.subscribe{background:linear-gradient(180deg, rgba(20,184,166,.15), rgba(34,211,238,.08) 40%, transparent);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:26px 0}
.grid{display:flex;gap:10px;flex-wrap:wrap}
.grid input{flex:1 1 220px;min-width:220px}
input, textarea{width:100%;background:#0c1424;color:var(--text);border:1px solid var(--border);border-radius:10px;padding:10px}
input:focus, textarea:focus{outline:2px solid var(--accent)}
.success{color:var(--accent)}

/* Buttons */
.btn{display:inline-block;padding:12px 16px;border-radius:12px;text-decoration:none;cursor:pointer}
.btn-accent{background:var(--accent);color:#021a1a;font-weight:700;box-shadow:var(--shadow);border:0}
.btn-ghost{border:1px solid var(--border);color:var(--text);background:transparent}

/* Footer */
.site-footer{padding:28px 0}
.site-footer .muted{color:var(--muted)}
.copyright{color:var(--muted);margin-top:10px}

/* Dark mode toggles */
body.dark-mode{background:#0a0f1e}
nav.dark-mode{background:#0a0f1e}
footer.dark-mode{background:#0a0f1e}
button.dark-mode{background:#0b1424;color:#fff}

/*.hero-sub {
  max-width: 62ch;
  margin: 12px auto 20px;
  color: var(--muted);
  font-size: 1.05em;
  text-align: center;
}*/
/* --- Certification Badge Cards (uniform size, responsive) --- */
.cert-badges{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:16px;
  margin-top:16px;
}

.badge-card{
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:12px;
  width:140px;                 /* fixed card width */
  padding:12px;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
  transition:transform .2s ease, box-shadow .2s ease;
  display:flex;                /* stack image over label */
  flex-direction:column;
  align-items:center;
}

.badge-card:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 12px rgba(0,0,0,.22);
}

/* Same visual size for every badge: the frame is the boss */
.badge-card .imgwrap{
  width:100px;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 0 8px 0;
}

/* Image fits inside the frame (no fixed height here) */
.badge-card .imgwrap img{
  max-width:90%;
  max-height:90%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  transform-origin:center;
}

/* Optional: nudge individual badges that still look smaller */
.badge-card .imgwrap img[src*="pentest"]{ transform: scale(1.30); }
.badge-card .imgwrap img[src*="cysa"]{    transform: scale(1.30); }

.badge-card p{
  margin:0;
  font-size:.9em;
  font-weight:600;
  color:var(--text);
}

/* Responsive */
@media (max-width: 820px){
  .badge-card{ width:120px; }
  .badge-card .imgwrap{ width:88px; height:88px; }
}
@media (max-width: 480px){
  .badge-card{ width:110px; }
  .badge-card .imgwrap{ width:80px; height:80px; }
}
.anniversary {
  color: var(--accent-2);
  font-weight: 600;
  margin: 4px 0 12px;
  font-size: 1.1em;
}
/* Security section layout */
.security-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;   /* text a bit wider */
  gap:24px;
  align-items:center;
}

.security-copy h2{ margin-top:0; }
.security-copy p{ margin:0 0 10px; }

/* Image card */
.security-figure{
  margin:0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;               /* clip rounded corners */
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}

.security-illustration{
  display:block;
  width:100%;
  height:auto;
  object-fit: cover;              /* fills the card cleanly */
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px){
  .security-grid{
    grid-template-columns: 1fr;
  }
  .security-figure{
    order: 2;                     /* image below text on mobile */
  }
}
/* Services layout refresh */
.service-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 900px){ .service-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .service-grid{ grid-template-columns: 1fr; } }

.service-card{
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  border-color: rgba(34,211,238,.25); /* accent-2 glow */
}

.service-icon{
  width:42px; height:42px;
  border-radius:10px;
  background: rgba(34,211,238,.08);
  color: var(--accent-2);
  display:grid; place-items:center;
  margin-bottom:10px;
}

.service-card h3{ margin:8px 0 6px; font-family:'Montserrat',sans-serif; }
.service-card .muted{ color:var(--muted); }

.service-bullets{
  list-style:none; padding:0; margin:10px 0 12px;
}
.service-bullets li{
  position:relative; padding-left:22px; margin:6px 0;
}
.service-bullets li::before{
  content:"✓"; position:absolute; left:0; top:0; color:var(--accent);
  font-weight:700;
}

.service-footer{
  margin-top:auto;               /* push footer to bottom for equal height */
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}
.price{
  color:var(--accent);
  font-weight:700;
}

/* tiny note under grid */
.service-note{ margin-top:10px; }

/* Trust strip (service area • payments • socials) */
.trust-strip{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(34,211,238,.06), rgba(20,184,166,.05) 40%, transparent);
  padding:16px 0;
  margin-top:18px;
}
.trust-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  align-items:center;
}
.trust-item{ display:flex; flex-direction:column; gap:6px; }
.trust-title{ margin:0; font-size:1rem; font-weight:700; font-family:'Montserrat',sans-serif; }

/* Payments */
.payments{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.pay-chip{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 10px; border:1px solid var(--border); border-radius:10px;
  background:var(--bg-alt); color:var(--text);
}

/* Socials */
.socials{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.social{
  display:inline-flex; gap:6px; align-items:center;
  padding:8px 10px; border:1px solid var(--border); border-radius:10px;
  color:var(--text); text-decoration:none; background:var(--bg-alt);
}
.social:hover{ background:rgba(34,211,238,.08); border-color:rgba(34,211,238,.25); }

/* Responsive */
@media (max-width: 900px){
  .trust-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .trust-grid{ grid-template-columns: 1fr; }
  .trust-item{ text-align:center; }
  .socials, .payments{ justify-content:center; }
}

/* Windows 10 EOL Alert */
.security-alert {
  border: 1px solid var(--accent-2);
  background: rgba(20,184,166, 0.1);
  padding: 16px;
  border-radius: var(--radius);
  margin: 24px 0;
}
.security-alert h3 {
  margin-top: 0;
  font-size: 1.25em;
  color: var(--accent-2);
}
.security-alert p {
  margin: 6px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.blog-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,.22);
}

.blog-card h3 {
  margin-top: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
}

.blog-card a {
  text-decoration: none;
  color: var(--accent);
}

/* ============ MOBILE POLISH (consolidated) ============ */

/* Tighter mobile header */
@media (max-width: 820px){
  .site-nav{ height:72px; padding:0 12px; position:sticky; top:0; }
  .site-nav .logo{ height:80px; left:12px; }
}
@media (max-width: 480px){
  .site-nav{ height:64px; }
  .site-nav .logo{ height:68px; }
}

/* Ensure nav-left aligns logo + (optional) brand text nicely */
.nav-left{ display:flex; align-items:center; gap:10px; }

/* Mobile menu toggle button */
.nav-toggle{display:none;background:transparent;border:0;width:44px;height:44px;position:relative}
.nav-toggle span{display:block;height:2px;background:var(--text);margin:7px 0;border-radius:2px}

/* Nav links baseline (desktop) */
.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile menu hidden by default; anchored to the nav bar */
@media (max-width: 820px){
  .nav-toggle{display:block; z-index:1001;}

  .nav-links{
    position:absolute;
    top:72px;                 /* sits just under the mobile nav */
    right:12px;
    display:none;             /* closed state */
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    background:var(--bg-alt);
    border:1px solid var(--border);
    padding:12px;
    border-radius:12px;
    box-shadow:var(--shadow);
    z-index:1000;
  }
  .nav-links.open{ display:flex; }
}

/* Comfortable tap targets */
a.btn, button, .nav-links a{ min-height:44px; line-height:44px; }

/* Prevent iOS text auto-zoom */
html{ -webkit-text-size-adjust:100%; }

/* ====== Service / Blog grids stay responsive ====== */
.service-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,.22);
}
.blog-card h3 { margin-top: 0; font-size: 1.1rem; }
.blog-card .btn { margin-top: 0.5rem; }

/* Trust strip grid */
.trust-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 900px){
  .trust-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .trust-grid{ grid-template-columns: 1fr; }
  .payments .pay-chip, .socials .social{ display:inline-flex; margin-right:10px; }
}

/* General small-screen typography */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .hero p { font-size: 0.95rem; }
  .service-card ul { padding-left: 1rem; }
}
/* ===== Mobile polish (overrides) ===== */

/* Shorter sticky bar + smaller logo */
@media (max-width: 820px){
  .site-nav{ height:64px; padding:0 12px; }
  .site-nav .logo{ height:68px; left:12px; }
}

/* Full-width mobile menu panel (fixed, below the bar) */
@media (max-width: 820px){
  .nav-links{
    position: fixed;
    inset: 64px 0 0 0;              /* fills the viewport below the nav */
    display: none;                   /* closed by default; JS adds .open */
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(11,16,32,.98);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
  }
  .nav-links.open{ display: flex; }

  /* Make items easy to tap */
  .nav-links a,
  .nav-links .btn,
  .nav-links button{
    width: 100%;
    text-align: left;
    min-height: 48px;
    line-height: 48px;
    border-radius: 12px;
  }
}

/* Ensure content isn’t tucked under the sticky bar on tiny screens */
@media (max-width: 820px){
  .hero{ padding-top: 10px; }
}

/* Friendlier small-screen type */
@media (max-width: 480px){
  .hero h1{ font-size: clamp(24px, 7vw, 34px); }
  .tagline, .anniversary{ font-size: 0.95rem; }
}

/* CTA buttons wrap nicely on phones */
.hero-cta{
  display:flex; flex-wrap:wrap; gap:12px;
}
.hero-cta .btn{ flex:1 1 180px; }

/* Badge cards: a hair smaller on phones for nicer fit */
@media (max-width: 480px){
  .badge-card{ width: 120px; }
  .badge-card .imgwrap{ width: 88px; height: 88px; }
}

/* iOS safe-area padding for notches */
.site-nav{
  padding-left: calc(12px + env(safe-area-inset-left));
  padding-right: calc(12px + env(safe-area-inset-right));
}
body.menu-open { overflow: hidden; }

/* === Mobile menu: full-width overlay panel + backdrop (final override) === */
@media (max-width: 820px){
  .site-nav{ height:64px; padding:0 12px; }
  .site-nav .logo{ height:68px; left:12px; }
  .hero{ padding-top: 10px; }

  /* panel */
  .site-nav .nav-links{
    position: fixed !important;
    inset: 64px 0 0 0 !important;      /* fill the screen under the bar */
    display: none !important;          /* closed by default */
    flex-direction: column !important;
    gap: 16px !important;
    padding: 20px !important;
    background: rgba(11,16,32,.98) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999 !important;
  }
  .site-nav .nav-links.open{ display: flex !important; }

  /* comfy tap targets */
  .site-nav .nav-links a,
  .site-nav .nav-links .btn,
  .site-nav .nav-links button{
    width: 100%;
    text-align: left;
    min-height: 48px;
    line-height: 48px;
    border-radius: 12px;
  }

  /* prevent page from scrolling when menu is open */
  body.menu-open{ overflow: hidden; }
}

/* dim background when menu is open */
.nav-backdrop{
  position: fixed;
  inset: 64px 0 0 0;                   /* below the sticky bar */
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9998;
  display: none;
}
.nav-backdrop.show{ display:block; }
