﻿/* Infralight – refreshed styles */
:root{
  --bg:#0A0F1C; --bg-elev:#0F162D; --bg-elev-2:#10162F;
  --text:#F5F7FA; --muted:#8A93A6;
  --accent:#2B5AA7; --accent-2:#3F7DE0;
  --border:rgba(255,255,255,.08);
  --radius:10px; --radius-sm:6px;
  --shadow:0 10px 20px rgba(0,0,0,.35);
  --shadow-sm:0 4px 10px rgba(0,0,0,.25);
  --container:1200px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--text); background:var(--bg);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  line-height:1.6; overflow-x:hidden;
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none;transition:color .2s ease}
a:hover,a:focus{color:#fff}
p{margin:0 0 1rem}
.lead{font-size:clamp(1.05rem,1vw + .9rem,1.25rem);color:#E9EDF6}
.muted{color:var(--muted)} .tiny{font-size:.875rem}

.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:1rem}
.section{padding:clamp(2.5rem,4vw,5rem) 0}
.section.alt{background:var(--bg-elev-2)}

.cards{display:grid;gap:clamp(1rem,2.5vw,2rem);grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.card{
  background:var(--bg-elev); padding:clamp(1.25rem,2vw,1.75rem);
  border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:rgba(255,255,255,.16)}

.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:var(--accent);color:#fff;padding:.5rem .75rem;border-radius:8px;z-index:1000}

/* Header */
.site-header{
  position:sticky;top:0;z-index:100;
  background:linear-gradient(180deg, rgba(10,15,28,.95), rgba(10,15,28,.85));
  backdrop-filter:saturate(1.3) blur(6px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.8rem 0;gap:1rem}
.brand img {
  height: auto;
  width: auto;
  max-height: 90px; /* increase from 72px */
}


/* Nav */
.site-nav{display:flex;align-items:center;gap:1.25rem}
.site-nav a{color:var(--text);font-weight:600;letter-spacing:.2px;padding:.4rem .25rem;border-bottom:2px solid transparent}
.site-nav a:hover{border-bottom-color:var(--accent-2)}
.site-nav a.active{color:#fff;border-bottom-color:var(--accent)}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:transparent;border:0;padding:.5rem;cursor:pointer}
.nav-toggle-bar{width:26px;height:2px;background:var(--text);border-radius:2px}

/* Mobile menu */
@media (max-width: 900px){
  .nav-toggle{display:flex}
  .site-nav{
    position:fixed;right:0;top:64px;display:none;flex-direction:column;align-items:flex-start;
    min-width:min(85vw,360px);background:var(--bg);border:1px solid var(--border);border-right:0;border-top:0;
    padding:1rem;gap:.5rem;box-shadow:var(--shadow);max-height:calc(100vh - 64px);overflow:auto;z-index:9999
  }
  .site-nav.open{display:flex}
  .site-nav a{width:100%;padding:.5rem 0;border-bottom-color:transparent}
}

/* Hero */
.section.hero{
  padding:clamp(3rem,6vw,7rem) 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(63,125,224,.20), transparent 60%),
    radial-gradient(1000px 500px at 10% 10%, rgba(43,90,167,.18), transparent 60%),
    var(--bg);
}
.hero h1{font-size:clamp(1.8rem,2vw + 1.4rem,3rem);line-height:1.1;margin:0 0 1rem;color:#fff}
.hero .lead{margin-bottom:1.5rem}
.actions{display:flex;gap:.8rem;flex-wrap:wrap}

/* Grid utils */
.grid-2{display:grid;gap:clamp(1.25rem,3vw,3rem)}
@media (min-width: 900px){.grid-2{grid-template-columns:1.1fr .9fr;align-items:center}}

/* Buttons */
.btn{display:inline-block;font-weight:700;border-radius:999px;padding:.7rem 1.1rem;line-height:1;text-align:center;border:1px solid transparent}
.btn-primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff}
.btn-primary:hover{filter:brightness(1.06)}
.btn-ghost{color:var(--accent);border-color:var(--accent);background:transparent}
.btn-ghost:hover{background:rgba(43,90,167,.12)}

/* Forms */
.form{display:flex;flex-direction:column;gap:1rem}
.form-group{display:flex;flex-direction:column;gap:.4rem;text-align:left}
label{font-weight:600;color:#E9EDF6}
input,select,textarea{
  font:inherit;color:var(--text);background:#0D1326;border:1px solid #273047;border-radius:10px;
  padding:.7rem .85rem;transition:border-color .2s ease, box-shadow .2s ease
}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(43,90,167,.25)}
button[type=submit]{cursor:pointer}
.hp{display:none!important}
.status{font-size:.95rem}

/* Footer */
.site-footer{background:#0C1224;border-top:1px solid var(--border);padding:clamp(2rem,3vw,3rem) 0}
.site-footer img{height:auto;width:auto;max-height:64px}
.footer-grid{display:flex;flex-direction:column;gap:1.25rem}
@media (min-width: 760px){.footer-grid{flex-direction:row;align-items:center;justify-content:space-between}}
.social{display:flex;gap:.8rem}
.social img{width:28px;height:28px;filter:brightness(1);opacity:.9;transition:opacity .2s ease, transform .2s ease}
.social img:hover{opacity:1;transform:translateY(-1px)}

/* Case studies headings always white */
.case-studies h1,.case-studies h2,.case-studies h3{color:#fff}

/* Never stretch media */
img,svg{object-fit:contain}

/* Small screens */
@media (max-width: 380px){
  .site-nav { min-width: 92vw; }
  .cards{ grid-template-columns: 1fr; }
  .btn{ width:100% }
}


/* --- Infralight size & footer tweaks --- */

/* 1) Header brand logo: double from 72px → 144px */
.brand img{
  height:auto;
  width:auto;
  max-height:144px; /* was 72px */
}

/* 2) Footer left logo: double from 64px → 128px */
.site-footer img{
  height:auto;
  width:auto;
  max-height:128px; /* was 64px */
}

/* 3) Footer right icons: smaller, evenly spaced, never squashed */
.social{
  display:flex;
  align-items:center;
  gap:0.75rem;         /* space between icons */
  flex-wrap:wrap;      /* avoid squashing on narrow screens */
}
.social a{
  display:inline-flex; /* helps with vertical centering */
  align-items:center;
  justify-content:center;
}
.social img{
  width:22px;          /* reduced from 28px (or 24px) */
  height:22px;
  object-fit:contain;  /* never stretch */
}

/* Ensure footer grid keeps sides apart nicely */
.footer-grid{
  display:flex;
  flex-direction:column;
  gap:1.25rem;
}
@media (min-width:760px){
  .footer-grid{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }
}
