:root{
  /* Dark theme variables */
  --bg:#0b1220;        /* page background */
  --card:#0f1724;      /* panels/cards */
  --accent:#0b6b4f;    /* brand green accent kept */
  --muted:#9aa4b2;     /* muted text on dark bg */
  --text:#e6eef6;      /* primary text */
  --maxw:1100px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
html,body,#app{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:#111827;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
}
.site-header{
  background:linear-gradient(90deg, rgba(11,18,32,0.98), rgba(15,23,36,0.98));
  border-bottom:1px solid rgba(255,255,255,0.04);
  padding:14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:20;
}
.brand{display:flex;gap:12px;align-items:center;max-width:60%}
.logo{width:64px;height:64px;object-fit:contain;border-radius:8px;background:#fff;padding:6px}
.brand h1{
  margin:0;
  font-size:20px;
  font-weight:700;
  color:var(--text);
  letter-spacing:0.4px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  line-height:1;
}
.meta{font-size:12px;color:var(--muted)}
.main-nav{display:flex;gap:10px;flex-wrap:wrap}
.main-nav a{color:var(--muted);text-decoration:none;padding:8px 10px;border-radius:6px;font-size:14px}
.main-nav a:hover{background:#eef6f0;color:var(--accent)}

main{max-width:var(--maxw);margin:20px auto;padding:0 16px}

.panel{background:var(--card);padding:20px;border-radius:12px;margin-bottom:18px;box-shadow:0 4px 18px rgba(13,15,25,0.04)}
.panel.light{background:#ffffff}
.hero{display:flex;flex-wrap:wrap;gap:18px;align-items:center}
.hero-content{flex:1;min-width:260px}
.hero h2{margin:0 0 8px;font-size:22px}
.hero p{margin:0 0 14px;color:var(--muted)}
.cta{display:inline-block;background:var(--accent);color:#fff;padding:10px 16px;border-radius:8px;text-decoration:none}
.hero-media{flex:1;min-width:260px}
.explainer{width:100%;height:220px;border-radius:8px}

.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:12px}
.features article{background:#fbfdff;padding:10px;border-radius:8px;text-align:left}
.features img{width:100%;height:110px;object-fit:cover;border-radius:6px}
.features h4{margin:8px 0 4px}

.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:12px}
.team-grid img{width:100%;height:140px;object-fit:cover;border-radius:8px}

.form{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.form label{display:flex;flex-direction:column;font-size:14px;color:var(--muted)}
.form input,.form select,.form textarea{padding:10px;border:1px solid #e6e9ee;border-radius:8px;margin-top:6px;font-size:14px}
.form textarea{min-height:90px;resize:vertical}
.btn{background:var(--accent);color:#fff;padding:10px 14px;border:none;border-radius:8px;cursor:pointer}
.form-msg{color:var(--accent);margin-top:6px;font-size:14px}

.locations{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:12px}
.loc-card{padding:12px;border-radius:8px;background:#fbfdff}
.loc-card a{color:var(--accent);text-decoration:none;font-weight:600}

.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
.gallery img{width:100%;height:120px;object-fit:cover;border-radius:8px}

/* Visual states for image loading/fallback */
.img-loading{opacity:0.5;filter:blur(1px);transition:opacity .35s ease,filter .35s ease}
.img-loading:not(.img-fallback){background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));}
.img-fallback{object-fit:contain;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border:1px dashed rgba(255,255,255,0.03);padding:8px;height:auto}

/* ensure fallback logos scale nicely in small grid cells */
.gallery img.img-fallback{height:100px;display:block;padding:6px;background:#fff;border-radius:6px}

/* keep contrast for text on dark bg */
.contact{display:flex;flex-direction:column;gap:12px}
.socials{display:flex;flex-wrap:wrap;gap:8px}
.social{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;background:#fff;text-decoration:none;color:var(--muted);border:1px solid #eef2f7}
.social img{width:20px;height:20px;filter:none;border-radius:4px}

.site-footer{display:flex;justify-content:space-between;gap:10px;padding:14px 16px;background:#0f1724;color:#fff;border-top-left-radius:8px;border-top-right-radius:8px;margin:18px auto 30px;max-width:var(--maxw)}
@media (max-width:720px){
  .site-header{padding:10px}
  .hero{flex-direction:column}
  .explainer{height:180px}
  .site-footer{flex-direction:column;align-items:flex-start;gap:6px}
}