:root{
  /* Color theme */
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --accent:#1d4ed8;         /* blue */
  --accent-2:#0ea5a4;       /* teal */
  --accent-soft:rgba(29,78,216,.08);
  --radius:16px;
  --shadow:0 10px 30px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1400px;margin:0 auto;padding:26px 18px}
.section{padding:48px 0}
.section h1,.section h2{margin:0 0 14px;line-height:1.25}
.section p.lead{color:var(--muted);max-width:1400px}

/* Header/Nav */
.site-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}
.brand{font-weight:800;letter-spacing:.08em}
.links{display:flex;gap:8px;flex-wrap:wrap}
.links a{padding:8px 10px;border-radius:10px;font-size:.95rem}
.links a:hover{background:#f0f0f0}
.links a.active{background:#111;color:#fff}

/* Hero */
.hero{background:#fff;border-bottom:1px solid var(--border)}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:center}
@media(max-width:1400px){.hero-grid{grid-template-columns:1fr}}
.hero h1{font-size:2.6rem;line-height:1.15}
.hero .subtitle{font-size:1.15rem;color:var(--muted)}
.hero-card{background:var(--card);border:1px solid var(--border);padding:16px;border-radius:var(--radius);box-shadow:0 8px 24px rgba(0,0,0,.04)}

/* Cards/Grids */
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:1400px){.grid-2,.grid-3{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:0 6px 18px rgba(0,0,0,.04)}

/* Gallery + filters */
.gallery-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.gallery-filters button{padding:6px 10px;border:1px solid #ddd;background:#fff;border-radius:999px;cursor:pointer;font-size:.95rem}
.gallery-filters button.active{border-color:#111;background:#111;color:#fff}

.project-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.project-gallery figure{margin:0}
.project-gallery img{width:100%;height:auto;cursor:zoom-in;border-radius:10px;background:#eee}
.project-gallery figcaption{font-size:.9rem;color:var(--muted);margin-top:6px}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;justify-content:center;align-items:center;z-index:9999;padding:24px}
.lightbox.open{display:flex}
.lightbox img{max-width:92vw;max-height:86vh;border-radius:12px}
.lb-close,.lb-prev,.lb-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.12);color:#fff;border:0;width:44px;height:44px;border-radius:999px;cursor:pointer;font-size:20px;display:grid;place-items:center}
.lb-prev{left:18px}.lb-next{right:18px}.lb-close{top:20px;right:20px;transform:none;font-size:22px}

/* Insights */
.insights-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px}
.insight-card h3{margin:0 0 6px;font-size:1.25rem}
.meta{font-size:.9rem;color:var(--muted);margin-bottom:8px}

/* Form */
form{display:grid;gap:10px}
input,textarea,select{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #ddd;font:inherit;background:#fff}
textarea{min-height:120px;resize:vertical}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:999px;border:1px solid transparent;background:var(--accent);color:#fff;font-weight:600;cursor:pointer;transition:.2s ease;box-shadow:0 6px 16px rgba(29,78,216,.25)}
.btn:hover{opacity:.92}

footer{padding:30px 0;color:var(--muted);font-size:.95rem;text-align:center}
.page-hero-img{border-radius:16px;border:1px solid var(--border);overflow:hidden}

.insight-full{display:none;margin-top:8px}
.insight-full.open{display:block}
.insight-actions{margin-top:8px}
.insight-actions button{background:#fff;border:1px solid #111;color:#111;padding:6px 10px;border-radius:10px;cursor:pointer;font-weight:600}
.insight-actions button:hover{background:#111;color:#fff}


/* --- INSIGHTS: 3 articles per row on desktop --- */
.insights-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 1000px){
  .insights-grid{grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 640px){
  .insights-grid{grid-template-columns: 1fr;}
}

/* Opportunities CTA alignment */
.cta-right{margin-top:18px;padding-left:60px;border-left:3px solid #e5e7eb;}

/* Contact form */
.contact-form{
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  max-width: 560px;
}
.contact-form .form-row{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom: 12px;
}
.contact-form label{
  font-weight:600;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea{
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:8px;
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#111827;
  box-shadow:0 0 0 2px rgba(17,24,39,0.08);
}
.contact-form .form-note{
  margin-top:8px;
  font-size:0.85rem;
  color:#6b7280;
}

/* Site footer */
.site-footer{border-top:3px solid transparent;border-image:linear-gradient(90deg,var(--accent),var(--accent-2)) 1;
  margin-top: 48px;
  padding: 10px 0;
  background: #0b0b0b;
  color: #e5e7eb;
}
.site-footer .footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}
.site-footer .footer-logo{
  font-weight:800;
  letter-spacing:0.06em;
}
.site-footer .footer-tag{
  font-size:0.9rem;
  color:#9ca3af;
  margin-top:4px;
}
.site-footer .footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.site-footer .footer-links a{
  color:#e5e7eb;
  font-size:0.95rem;
  text-decoration:none;
  opacity:0.9;
}
.site-footer .footer-links a:hover{
  opacity:1;
  text-decoration:underline;
}
.site-footer .footer-contact{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:0.95rem;
}
.site-footer .footer-contact a{
  color:#e5e7eb;
  text-decoration:none;
}
.site-footer .footer-contact a:hover{
  text-decoration:underline;
}

.contact-flex{
  display:flex;
  gap:40px;
  align-items:flex-start;
}
.contact-left{
  flex:1;
}
.contact-right{
  flex:1;
  max-width:480px;
}
@media (max-width:900px){
  .contact-flex{flex-direction:column;}
}

/* Global section spacing / vertical rhythm */
.section p{margin:0 0 12px;line-height:1.65}
.section ul{margin:10px 0 16px 18px;padding:0}
.section li{margin-bottom:6px}
.section h3{margin:24px 0 10px;font-size:1.1rem;letter-spacing:0.02em}

/* Opportunities two-column layout */
.opps-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:32px;
  align-items:start;
  margin-top:6px;
}
.opps-side{
  background: var(--card);
  border:1px solid #eee;
  border-radius:14px;
  padding:18px 18px 6px;
}
.opps-cta{
  margin-top:14px;
  padding:12px 14px;
  background:#f3f4f6;
  border-radius:10px;
  font-weight:600;
}
@media (max-width:900px){
  .opps-grid{grid-template-columns:1fr}
}

/* Navigation accent */
.nav a.active, .nav a[aria-current="page"]{
  background:var(--accent);
  color:#fff !important;
  box-shadow:0 6px 16px rgba(29,78,216,.25);
}
.nav a{
  border-radius:999px;
}

/* Headings accent */
.section h2{
  position:relative;
  padding-bottom:8px;
}
.section h2::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:56px; height:3px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  border-radius:3px;
}

/* Card color and hover */
.card{
  border:1px solid rgba(15,23,42,.06);
  background:var(--card);
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:rgba(29,78,216,.25);
}

.lead{
  color:var(--muted);
}

/* Mobile header fixes */
@media (max-width: 480px){
  .logo, .site-logo, header .logo{
    font-size: 20px !important;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .nav{
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav a{
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}


/* Footer compact overrides (force) */
.site-footer{padding:6px 0 !important;}
.site-footer .footer-inner{gap:6px !important;}
.site-footer .footer-links{gap:8px !important;}
.site-footer .footer-links a{font-size:0.88rem !important; line-height:1.2 !important;}
.site-footer .footer-tag{margin-top:0 !important; font-size:0.82rem !important; line-height:1.2 !important;}
.site-footer .footer-contact{gap:2px !important; font-size:0.88rem !important; line-height:1.2 !important;}
