/* SPAIS Website — Bright + Professional (drop-in)
   Works with your existing HTML classes.
*/

:root{
  --accent:#CE3B30;
  --accent-2:#2563eb;
  --ink:#0f172a;
  --muted:#475569;
  --muted-2:#64748b;
  --bg:#ffffff;
  --surface:#f8fafc;
  --surface-2:#f1f5f9;
  --line:#e2e8f0;
  --shadow:0 12px 30px rgba(2, 6, 23, .10);
  --shadow-soft:0 6px 18px rgba(2, 6, 23, .08);
  --radius:16px;
  --radius-sm:12px;
  --max:1100px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(60% 60% at 18% 0%, rgba(37,99,235,.05) 0%, rgba(37,99,235,0) 60%),
    radial-gradient(55% 55% at 90% 10%, rgba(206,59,48,.05) 0%, rgba(206,59,48,0) 58%),
    linear-gradient(180deg, #f3f4f6 0%, #ffffff 55%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.5;
}

a{color:inherit;}
a:hover{color:var(--accent);}
img{max-width:100%; display:block;}

.container{
  width:min(100%, calc(var(--max) + 48px));
  margin:0 auto;
  padding:0 24px;
}

/* Nav */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.80);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;}
.wordmark{
  height:44px;
  width:auto;
}
.navlinks{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.navlinks a{
  text-decoration:none;
  font-weight:600;
  color:var(--muted);
  padding:10px 10px;
  border-radius:10px;
}
.navlinks a:hover{
  background:rgba(37,99,235,.08);
  color:var(--ink);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--ink);
  text-decoration:none;
  font-weight:700;
  box-shadow:0 1px 0 rgba(2, 6, 23, .04);
}
.btn:hover{
  border-color:rgba(37,99,235,.30);
  box-shadow:var(--shadow-soft);
}
.btn.primary{
  background:linear-gradient(135deg, var(--accent) 0%, #e23f34 40%, #f04b3f 100%);
  color:#fff;
  border-color:rgba(206,59,48,.35);
  box-shadow:0 10px 24px rgba(206,59,48,.25);
}
.btn.primary:hover{
  filter:brightness(1.02);
  box-shadow:0 14px 30px rgba(206,59,48,.28);
}

/* Hero */
.hero{
  padding:54px 0 20px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  color:var(--muted);
  margin-bottom:10px;
}
.kicker .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 6px rgba(206,59,48,.12);
}
h1{
  font-size:clamp(2.0rem, 2.8vw, 3.0rem);
  letter-spacing:-.02em;
  margin:0 0 10px;
  line-height:1.08;
}
.sub{
  margin:0 0 18px;
  color:var(--muted);
  font-size:1.06rem;
}
.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:8px;
}

/* Cards / Tiles */
.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
}
.tile{
  padding:18px;
}
.tile h3{
  margin:0 0 6px;
  font-size:1.05rem;
}
.tile p{
  margin:0;
  color:var(--muted);
}

/* Brand tile (right hero card) */
.brandtile{
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
  background:
    radial-gradient(100% 90% at 0% 0%, rgba(37,99,235,.10) 0%, rgba(37,99,235,0) 55%),
    radial-gradient(90% 80% at 100% 30%, rgba(206,59,48,.12) 0%, rgba(206,59,48,0) 55%),
    rgba(255,255,255,.94);
}
.brandtile__logo{
  width:min(100%, 420px);
  height:auto;
  margin:0 auto;
  border-radius:12px;
}

.badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.06);
  text-decoration:none;
  font-weight:800;
  color:var(--ink);
}
.badge:hover{
  background:rgba(37,99,235,.08);
  border-color:rgba(37,99,235,.20);
}

/* Sections */
.section{
  padding:46px 0;
}
.section h2{
  font-size:1.65rem;
  margin:0 0 10px;
  letter-spacing:-.01em;
}
.section p{
  color:var(--muted);
  margin:0 0 18px;
}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

/* FAQ details */
details{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(248,250,252,.75);
}
details + details{margin-top:10px;}
summary{
  cursor:pointer;
  font-weight:800;
  color:var(--ink);
}
details p{
  margin:10px 0 0;
  color:var(--muted);
}

/* Form card */
.card.form{
  overflow:hidden;
  padding:0;
}
.small{
  font-size:.92rem;
  color:var(--muted-2);
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.75);
  padding:22px 0;
}
.footer-grid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer a{
  text-decoration:none;
  font-weight:700;
  color:var(--muted);
}
.footer a:hover{color:var(--accent);}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr;}
  .wordmark{height:40px;}
  .grid3{grid-template-columns:1fr;}
  .navlinks a{padding:8px 10px;}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
}
