:root{
  /* ================= BRAND COLORS ================= */
  --brand-primary: #1E2A5A;   /* Asianloop Blue */
  --brand-secondary: #F2C94C; /* Asianloop Gold */
  --brand-soft: rgba(30,42,90,0.06); /* Soft blue hover */

  /* ================= NEUTRALS ================= */
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0f172a;            /* slate-900 */
  --muted: #475569;           /* slate-600 */
  --line: #e5e7eb;            /* gray-200 */

  /* ================= LINKS ================= */
  --link: var(--brand-primary);
  --link-hover: #16204a;

  /* ================= STATUS ================= */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;

  --radius: 14px;
}

/* ================= RESET ================= */

*{box-sizing:border-box}
html,body{margin:0;padding:0; overflow-x:hidden;}


body{
  font: 15px/1.65 system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:var(--bg);
}

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

.container{
  max-width:1320px;
  margin:0 auto;
  padding:0 16px;
}

/* ================= HEADER ================= */

header.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#ffffff;
  border-bottom:1px solid var(--line);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:0.3px;
  color:var(--brand-primary);
}
.brand img{
  height:55px;
  width:auto;
  display:block;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.nav-links a{
  padding:8px 12px;
  border-radius:10px;
  color:var(--muted);
}
.nav-links a:hover{
  background:var(--brand-soft);
  color:var(--brand-primary);
}

.nav-cta{
  display:flex;
  gap:10px;
}

/* ================= BUTTONS ================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  font-weight:600;
}
.btn:hover{
  background:#f8fafc;
}

.btn.primary{
  background:var(--brand-primary);
  border-color:var(--brand-primary);
  color:#ffffff;
}
.btn.primary:hover{
  background:#16204a;
}

.btn.secondary{
  background:var(--brand-secondary);
  border-color:var(--brand-secondary);
  color:var(--brand-primary);
}
.btn.secondary:hover{
  filter:brightness(0.95);
}

/* ================= HERO ================= */

.hero{
  padding:70px 0 40px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:24px;
  align-items:stretch;
}

.hero-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  overflow:hidden;
}

.hero-copy{
  padding:32px;
}

.kicker{
  color:var(--brand-primary);
  font-weight:700;
  font-size:12px;
  letter-spacing:0.6px;
  text-transform:uppercase;
}

.h1{
  font-size:40px;
  line-height:1.2;
  margin:12px 0;
  font-weight:800;
}

.lead{
  color:var(--muted);
  font-size:16px;
  margin-bottom:20px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hero-media{
  background-size:cover;
  background-position:center;
  min-height:280px;
}

/* ================= SECTIONS ================= */

.section{
  padding:50px 0;
}

.section h2{
  margin:0 0 12px;
  font-size:28px;
  font-weight:800;
  color:var(--brand-primary);
}

.section p{
  margin:0;
  color:var(--muted);
  max-width: none;
}

/* ================= GRID / CARDS ================= */

.grid{
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  border:1px solid var(--line);
  background:#ffffff;
  border-radius:var(--radius);
  padding:20px;
}

.card h3{
  margin:0 0 8px;
  font-size:18px;
  color:var(--brand-primary);
}

.card p{
  margin:0;
  color:var(--muted);
}

.card .btn{
  margin-top:14px;
}

/* ================= TAGS / BADGES ================= */

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  font-size:12px;
  font-weight:600;
  border-radius:999px;
  background:rgba(242,201,76,0.18);
  color:var(--brand-primary);
  border:1px solid rgba(242,201,76,0.5);
}

/* ================= FOOTER ================= */

footer.site-footer{
  border-top:1px solid var(--line);
  background:#f9fafb;
}

.footer-inner{
  padding:20px 0;
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
}

.small{
  font-size:12px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .h1{font-size:32px}
  .grid{grid-template-columns:1fr}
}

/* ===== HERO SLIDER ===== */
.hero-media{
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 280px;
  transition: background-image 0.6s ease-in-out; /* fallback */
  overflow: hidden;
}

/* Cross-fade layer */
.hero-media::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--hero-next);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-media.is-fading::before{
  opacity: 1;
}

.hero-overlay{
  position:absolute; inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:18px;
  gap:8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.0) 35%, rgba(255,255,255,0.92) 100%);
}

.hero-badge{
  display:inline-flex;
  align-self:flex-start;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:0.4px;
  color: var(--brand-primary);
  background: rgba(242,201,76,0.22);
  border: 1px solid rgba(242,201,76,0.55);
}

.hero-title{
  font-weight:900;
  font-size:18px;
  color: var(--brand-primary);
}

.hero-sub{
  font-size:13px;
  color: var(--muted);
  max-width: 90%;
}

@media (max-width: 900px){
  .hero-overlay{ padding:16px; }
  .hero-title{ font-size:16px; }
  .hero-sub{ font-size:13px; max-width: 100%; }
}


/* Image-based cards */
.image-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.image-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,.14);
}

/* Button overlay */
.image-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(30, 42, 90, 0.9); /* brand primary */
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  backdrop-filter: blur(4px);
}


/* Active nav link */
.nav-links a.active{
  background: var(--brand-soft);
  color: var(--brand-primary);
}

/* About page hero */
.page-hero{ padding: 60px 0 20px; }
.page-hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.page-title{
  margin: 10px 0 12px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--brand-primary);
}
.page-hero-media{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--card);
}
.page-hero-media img{ width:100%; height:100%; object-fit: cover; display:block; }

/* 2 column blocks */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}
.list{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.muted{ color: var(--muted); }

/* Section variations */
.section.alt{ background: #f8fafc; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.media-wide{
  margin-top: 18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--card);
}
.media-wide img{ width:100%; height: 340px; object-fit: cover; display:block; }
.media-wide .map-embed{
  width: 100%;
  height: 340px;   /* same as your placeholder image */
  border: 0;
  display: block;
}


/* CTA */
.section.cta{ padding: 40px 0 70px; }
.cta-box{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(242,201,76,0.18), rgba(30,42,90,0.05));
  border-radius: var(--radius);
  padding: 22px;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.cta-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px){
  .page-hero-grid{ grid-template-columns: 1fr; }
  .page-title{ font-size: 30px; }
  .two-col{ grid-template-columns: 1fr; }
  .cta-box{ flex-direction: column; align-items: flex-start; }
}

/* Credentials layout */
.cred-grid{
  grid-template-columns: repeat(3, 1fr);
}

.cred-card{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.cred-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cred-media{
  border:1px solid var(--line);
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
}

.cred-media img{
  width:100%;
  height: 260px;
  object-fit: cover;
  display:block;
}

@media (max-width: 900px){
  .cred-grid{ grid-template-columns: 1fr; }
  .cred-media img{ height: 240px; }
}

/* ===== Maintenance Image Slider (Services Page) ===== */
.maintenance-slider{
  position: relative;
  height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: background-image 0.6s ease-in-out;
}

/* Cross-fade layer */
.maintenance-slider::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--maint-next);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.maintenance-slider.is-fading::before{
  opacity: 1;
}


/* ===== Maintenance Slider Text Overlay ===== */
.maintenance-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  pointer-events:none;
}

.maintenance-text{
  margin:16px;
  padding:10px 14px;
  max-width: 80%;
  background: rgba(255,255,255,0.92);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  line-height: 1.35;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: opacity 500ms ease, transform 500ms ease;
}

/* fade animation */
.maintenance-text.is-fading{
  opacity: 0;
  transform: translateY(6px);
}

/* Keep partner document column contained */
.partners-doc{
  max-width: 520px;
  width: 100%;
  justify-self: stretch;
}


/* Partner document preview (always contained) */
.partners-doc .doc-img{
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;   /* landscape preview; change to 3/4 if portrait */
  object-fit: contain;   /* no cropping */
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;         /* makes it look like "paper" */
}

/* Align MoU with partner feature cards */
.partner-features{
  margin-top: 18px;
}

.partners-doc{
  align-self: flex-start; /* stop vertical centering illusion */
  margin-top: 18px;       /* match feature cards */
}


/* ===== We Serve: Logo Wall ===== */
.logo-group{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.logo-group-title{
  font-weight: 800;
  color: var(--brand-primary);
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.logo-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.logo-item{
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  height: 72px;                 /* unified tile height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  overflow: hidden;
}

.logo-item img{
  height: 34px;                 /* unified logo height */
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .86;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.logo-item:hover img{
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 1100px){
  .logo-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px){
  .logo-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-item{ height: 68px; }
  .logo-item img{ height: 32px; max-width: 120px; }
}


/* ===== MoU Logo Slider ===== */
.mou-logo-slider{
  position: relative;
  height: 220px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  overflow: hidden;
  transition: background-image 0.6s ease-in-out;
}

/* cross-fade layer */
.mou-logo-slider::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--mou-next);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 900ms ease;
}

.mou-logo-slider.is-fading::before{
  opacity: 1;
}

/* text overlay */
.mou-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  pointer-events:none;
}

.mou-text{
  margin:14px;
  padding:8px 12px;
  max-width: 85%;
  background: rgba(255,255,255,0.94);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: opacity 500ms ease, transform 500ms ease;
}

.mou-text.is-fading{
  opacity: 0;
  transform: translateY(6px);
}


/* ===== Mobile Nav (auto-built by JS) ===== */
.nav-toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:10px;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background: var(--brand-primary);
  border-radius:2px;
}

.nav-drawer, .nav-backdrop{ display:none; }

@media (max-width: 900px){
  .nav-toggle{ display:inline-flex; }

  .nav-drawer{
    display:block;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(0,0,0,0.12);
    padding: 18px;
    z-index: 2000;
    transition: right 280ms ease;
  }

  .nav-backdrop{
    display:block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
    z-index: 1500;
  }

  body.nav-open .nav-drawer{ right: 0; }
  body.nav-open .nav-backdrop{
    opacity: 1;
    pointer-events: auto;
  }

  /* Hide desktop inline menu on mobile */
  .site-header .nav-links,
  .site-header .nav-cta{
    display:none !important;
  }

  /* Drawer menu items */
  .nav-drawer .nav-links{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top: 10px;
  }

  .nav-drawer .nav-links a{
    padding: 10px 12px;
    border-radius: 12px;
    background:#fff;
    border:1px solid var(--line);
    color: var(--text);
  }

  .nav-drawer .nav-links a:hover{
    background: var(--brand-soft);
    border-color: rgba(30,42,90,0.15);
  }

  .nav-drawer .nav-cta{
    display:flex;
    justify-content: center;   /* center horizontally */
    margin-top: 18px;
  }

    .nav-drawer .nav-cta .btn{
    width: 100%;
    max-width: 220px;          /* same visual weight as menu pills */
    justify-content: center;
  }
}
