/* =========================
   Nova Catalyst Media — clean, light theme
   ========================= */

/* Theme */
:root{
  --bg:#f8fafc;
  --paper:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --brand:#6366f1;
  --border:rgba(15,23,42,.08);
  --ring:rgba(99,102,241,.35);
  --shadow:0 8px 22px rgba(16,24,40,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 360px at -10% -10%, rgba(99,102,241,.07), transparent 60%),
    radial-gradient(900px 360px at 110% -10%, rgba(34,197,94,.06), transparent 60%),
    var(--bg);
}

a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

h1,h2,h3,h4{margin:0 0 10px}
h1{font-size:46px;line-height:1.08;letter-spacing:-.01em}
h2{font-size:30px}
h3{font-size:22px}
h4{font-size:18px}
.lead{font-size:18px;color:#334155}
.small{font-size:14px}
.muted{color:#64748b}

.container{max-width:1140px;margin:0 auto;padding:0 20px}
.section{padding:48px 0}

/* ---------- Header / nav ---------- */
header{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
nav{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px; padding:14px 20px; max-width:1140px; margin:0 auto;
}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.logo{height:36px;width:auto;border-radius:8px}
nav strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55vw}
.nav-links{display:flex;align-items:center;gap:16px;white-space:nowrap}
.nav-links a{color:#475569;font-weight:600}
.nav-links a.active,.nav-links a:hover{color:var(--brand)}
@media (max-width:640px){
  nav{padding:10px 14px}
  .nav-links a{font-size:14px}
  nav strong{font-size:16px}
}

/* ---------- Card ---------- */
.card{
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

/* ---------- Hero ---------- */
.hero{
  padding:56px 0 28px;
  background:
    radial-gradient(900px 360px at 50% -20%, rgba(99,102,241,.09), transparent 70%),
    radial-gradient(900px 360px at 80% -20%, rgba(34,197,94,.08), transparent 70%),
    #fff;
  border-bottom:1px solid var(--border);
}
.hero-inner{
  display:grid;align-items:center;gap:28px;
  grid-template-columns:1.05fr .95fr;
}
.hero-text{padding-right:16px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}

/* single hero image (no overlay), responsive heights */
.hero-media img{
  width:100%;
  height:360px;                 /* desktop height */
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

/* Hero logos */
.logos{margin-top:22px;text-align:center}
.logo-row{
  list-style:none;margin:10px 0 0;padding:0;
  display:flex;gap:12px;flex-wrap:wrap;justify-content:center;
}
.logo-row li{
  padding:8px 12px;border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc;
  color:#334155;font-weight:600;font-size:12px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 18px;border-radius:12px;font-weight:700;border:1px solid transparent;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary{
  color:#fff;background:linear-gradient(135deg,#6366f1,#7c3aed);
  box-shadow:0 10px 22px rgba(99,102,241,.25);
}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(99,102,241,.35)}
.btn-ghost{color:#334155;background:#f1f5f9;border-color:#e2e8f0}
.btn-ghost:hover{background:#e2e8f0}

/* ---------- Features grid (2x2 on desktop, 1 col on mobile) ---------- */
.features-grid{
  display:grid;
  gap:18px;
  margin-top:16px;
  grid-template-columns:1fr;              /* phones: 1 column */
}
@media (min-width:900px){
  .features-grid{
    grid-template-columns:1fr 1fr;        /* desktop/tablet: 2 x 2 */
  }
}
.feature{display:flex;flex-direction:column}
.feature img{width:100%;height:200px;object-fit:cover}
.feature .content{padding:16px}

/* ---------- Why grid ---------- */
.why-grid{
  display:grid; gap:18px; margin-top:16px;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}
.why{padding:16px}

/* ---------- CTA ---------- */
.cta{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:22px 24px;border-radius:18px;border:1px solid var(--border);
  background:linear-gradient(135deg,rgba(99,102,241,.08),rgba(34,197,94,.08));
}

/* ---------- About / Contact helpers ---------- */
.page-title{margin:10px 0 18px}
.prose .card{padding:16px}
.form label{display:block;margin:0 0 8px;font-weight:600}
.form input,.form textarea{
  width:100%;padding:12px 14px;border-radius:12px;border:1px solid #e2e8f0;
  font:inherit;color:var(--text);background:#fff;
}
.form textarea{min-height:160px;resize:vertical}
.form button{margin-top:8px}
.form .hint{margin-top:8px;color:#64748b}

/* ---------- Responsive tweaks ---------- */
@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr}
  .hero-text{padding-right:0;order:1}
  .hero-media{order:2}
  .hero-media img{height:260px}   /* prevent overlap on phones */
  h1{font-size:34px}
}
@media (max-width:700px){
  .cta{flex-direction:column;align-items:flex-start}
}

/* Footer */
footer{border-top:1px solid var(--border);padding:24px 0;margin-top:40px}
footer .container{color:#64748b}

/* Focus */
a:focus,.btn:focus,input:focus,textarea:focus{
  outline:3px solid var(--ring);outline-offset:2px;border-radius:10px;
}

/* ---------- About Page Text Tweaks ---------- */
body.about-page .prose p,
body.about-page .prose .card p {
  font-size: 16px;
  line-height: 1.7;
}

body.about-page .prose .card ul li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr}
  .hero-text{padding-right:0;order:1}
  .hero-media{order:2}
  .hero-media img{height:260px}
  h1{font-size:34px}
}

/* Mobile nav adjustments */
@media (max-width:640px){
  nav{padding:10px 14px}
  .nav-links a{font-size:14px}
  nav strong{
    font-size:14px;       /* smaller brand text */
    max-width:45vw;       /* prevent overflow */
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}
