/* ===========================
   SAROMIO FOUNDATION - Modern Theme
   Accent: Orange (Hierarchy in organogram)
   =========================== */

:root{
  --bg:#0b0f14;
  --card:#111827;
  --card2:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --stroke:rgba(255,255,255,.10);

  --accent:#f97316;          /* orange */
  --accent2:#fb923c;         /* lighter orange */
  --white:#ffffff;

  --radius:18px;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --shadow2: 0 10px 26px rgba(0,0,0,.28);
}

*{box-sizing:border-box}
html,body{margin:0; padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
 background:
radial-gradient(circle at 15% 10%, rgba(255,140,0,.25), transparent 45%),
radial-gradient(circle at 85% 20%, rgba(255,140,0,.15), transparent 40%),

linear-gradient(
180deg,
#05070b,
#0b0f14,
#10141b,
#1f1206
);
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{
  width:min(1120px, 92%);
  margin:0 auto;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,.20);
}
.btn:hover{transform: translateY(-1px); border-color: rgba(249,115,22,.45)}
.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: rgba(255,255,255,.08);
  color:#0b0f14;
}
.btn-primary:hover{filter:brightness(1.02)}
.btn-ghost{
  background:transparent;
  border-color: rgba(255,255,255,.16);
}

.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-weight:700;
  color: var(--muted);
}

.section{
  padding:70px 0;
}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px;
}
.section-title h2{
  margin:0;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  letter-spacing:-.02em;
}
.section-title p{
  margin:0;
  max-width: 520px;
  color:var(--muted);
  line-height:1.6;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.card-pad{padding:18px}
.card h3{margin:0 0 10px 0}
.card p{margin:0; color:var(--muted); line-height:1.65}

.grid{
  display:grid;
  gap:18px;
}
.grid-3{grid-template-columns: repeat(3, minmax(0,1fr))}
.grid-2{grid-template-columns: repeat(2, minmax(0,1fr))}
@media (max-width: 900px){
  .grid-3,.grid-2{grid-template-columns:1fr}
}

/* ===========================
   Header / Nav
   =========================== */
.header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,14,20,.68);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{
   width:150px;      /* increased size */
  height:100px;
  border-radius:14px;

  background:#ffffff;
  padding:8px;

  box-shadow:0 6px 16px rgba(0,0,0,.25);
}
.brand .name{
  display:flex; flex-direction:column; line-height:1.1;
}
.brand .name strong{font-size: 14px; letter-spacing:.04em}
.brand .name span{font-size:12px; color:var(--muted)}

.navlinks{
  display:flex;
  gap:10px;
  align-items:center;
}
.navlinks a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
  font-weight:700;
}
.navlinks a:hover{color:var(--text); border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04)}
.navlinks a.active{
  color: var(--text);
  border-color: rgba(249,115,22,.35);
  background: rgba(249,115,22,.10);
}

.mobile-toggle{
  display:none;
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  cursor:pointer;
}
.mobile-menu{
  display:none;
  padding: 0 0 14px 0;
}
.mobile-menu a{
  display:block;
  padding:12px 12px;
  border-radius:12px;
  color:var(--muted);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  margin-top:10px;
  font-weight:800;
}
@media (max-width: 860px){
  .navlinks{display:none}
  .mobile-toggle{display:inline-flex; align-items:center; justify-content:center}
  .mobile-menu.show{display:block}
}

/* ===========================
   Hero
   =========================== */
.hero{
  padding: 48px 0 28px 0;
}
.hero-wrap{
  position:relative;
  border-radius: 28px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(700px 500px at 12% 10%, rgba(249,115,22,.25), transparent 55%),
    radial-gradient(700px 500px at 88% 15%, rgba(56,189,248,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  overflow:hidden;
  box-shadow: var(--shadow);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
}

.hero-left{
  padding: 28px 26px;
}
.hero-left h1{
  margin:14px 0 10px 0;
  font-size: clamp(1.75rem, 4.5vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-left .accent{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-left .lead{
  margin: 12px 0 18px 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 58ch;
}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap}

.hero-right{
  padding: 14px;
  border-left:1px solid rgba(255,255,255,.10);
}
@media (max-width: 980px){
  .hero-right{border-left:none; border-top:1px solid rgba(255,255,255,.10)}
}

.photo-stack{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.photo{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:#0b1220;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  position:relative;
}
.photo img{width:100%; height:160px; object-fit:cover}
.photo .tag{
  position:absolute;
  left:10px; top:10px;
  font-weight:800;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(10,14,20,.7);
  border: 1px solid rgba(255,255,255,.12);
}

.mini{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}
.mini .stat{
  flex: 1 1 170px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.mini .stat strong{display:block; font-size:14px}
.mini .stat span{display:block; color:var(--muted); margin-top:4px; line-height:1.4}

/* ===========================
   News cards
   =========================== */
.news-card .thumb{
  height:180px;
  background:#0b1220;
  position:relative;
}
.news-card .thumb img{width:100%; height:100%; object-fit:cover}
.news-card h4{margin:0 0 8px 0}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius: 999px;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.35);
  color: #ffd7b8;
  font-weight: 800;
  font-size:12px;
}

/* ===========================
   Gallery
   =========================== */
.gallery-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 980px){ .gallery-grid{grid-template-columns: repeat(2, minmax(0,1fr));} }
@media (max-width: 520px){ .gallery-grid{grid-template-columns: 1fr;} }

.g-item{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:#0b1220;
  position:relative;
  cursor:pointer;
}
.g-item img{width:100%; height:220px; object-fit:cover; transition:.25s ease}
.g-item:hover img{transform: scale(1.03)}
.g-item .cap{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:10px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  color:#fff;
  font-weight:800;
  font-size:13px;
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.78);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 80;
  padding: 18px;
}
.lightbox.show{display:flex}
.lightbox .frame{
  width:min(980px, 96%);
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:#0b1220;
  box-shadow: var(--shadow);
}
.lightbox img{width:100%; height:auto}
.lightbox .bar{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 12px;
  border-top:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.lightbox .bar span{color:var(--muted); font-weight:700}
.lightbox .bar button{
  border:none; background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}

/* ===========================
   Forms
   =========================== */
.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.field label{font-weight:800; font-size:13px; color:#d1d5db}
.field input, .field textarea{
  padding:12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  color: var(--text);
  outline:none;
}
.field input:focus, .field textarea:focus{
  border-color: rgba(249,115,22,.45);
}
.field textarea{min-height:120px; resize:vertical}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width: 900px){ .form-row{grid-template-columns:1fr} }
.form-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}

/* ===========================
   Footer
   =========================== */
.footer{
  padding: 30px 0;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
}
.footer .foot{
  display:flex;
  gap:18px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer small{color:var(--muted)}

/* ===========================
   ORGANOGRAM (Orange hierarchy)
   =========================== */
.org-wrap{
  padding: 18px;
}
.org{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}

.org-level{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  width:100%;
}

.org-box{
  min-width: 220px;
  max-width: 320px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 2px solid rgba(249,115,22,.70); /* ORANGE */
  box-shadow: 0 12px 24px rgba(0,0,0,.26);
  text-align:center;
  position:relative;
}
.org-box strong{
  display:block;
  font-size: 14px;
  letter-spacing:.02em;
}
.org-box span{
  display:block;
  margin-top:6px;
  color: var(--muted);
  font-size: 13px;
  line-height:1.45;
}

.org-line{
  width: 2px;
  height: 18px;
  background: rgba(249,115,22,.85); /* ORANGE */
}

.org-connector{
  width: min(880px, 92%);
  height: 2px;
  background: rgba(249,115,22,.75); /* ORANGE */
  position:relative;
}
.org-connector:before,
.org-connector:after{
  content:"";
  position:absolute;
  top: -4px;
  width: 10px; height:10px;
  border-radius:999px;
  background: rgba(249,115,22,.95);
}
.org-connector:before{left: 0}
.org-connector:after{right: 0}

/* small helper */
.note{
  color: var(--muted);
  line-height:1.6;
}

/* Map embed */
.map-embed{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.map-embed iframe{
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

@media (max-width: 700px){
  .map-embed iframe{ height: 320px; }
}