/* =========================================================
   Swam Website (Mobile-first, Clean Premium)
   - Language toggle MM/EN
   - Mobile: short hero title + footer icons visible
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root{
  --c-primary:#1E40AF;
  --c-secondary:#60A5FA;

  /* Warm background (Shwe-note feel) */
  --c-bg:#FFF7ED;
  --c-surface:#FFFFFF;

  --c-text:#0F172A;
  --c-muted:#475569;

  --c-border:#E7D8C6;

  --r-card:16px;
  --r-input:12px;
  --r-pill:999px;

  --shadow-1: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-2: 0 10px 28px rgba(15,23,42,0.10);

  --s-1:8px;
  --s-2:16px;
  --s-3:24px;
  --s-4:32px;
  --s-5:48px;
  --s-6:64px;

  --max-w: 1120px;

  --fs-body:16px;
  --lh-en:1.55;
  --lh-mm:1.90;
}

/* ---------- Base Reset ---------- */
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: Inter, "Noto Sans Myanmar", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:var(--fs-body);
  line-height:var(--lh-en);
  color:var(--c-text);
  background:var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img{max-width:100%; height:auto; display:block;}
a{color:inherit; text-decoration:none;}
button, input, select, textarea{font:inherit;}
p{margin:0;}
ul{margin:0; padding:0; list-style:none;}
hr{border:none; border-top:1px solid var(--c-border); margin:var(--s-4) 0;}

/* ---------- Language System ---------- */
/* Default: if no data-lang, we treat as mm */
html[data-lang="mm"] .en{display:none !important;}
html[data-lang="en"] .mm{display:none !important;}

/* ---------- Mobile/Desktop switch helpers ---------- */
.only-mobile{display:block;}
.only-desktop{display:none;}
@media (min-width: 900px){
  .only-mobile{display:none;}
  .only-desktop{display:block;}
}

/* ---------- Utilities ---------- */
.container{
  width:100%;
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 var(--s-2);
}
.section{padding:var(--s-6) 0;}
.surface{background:var(--c-surface);}
.card{
  background:var(--c-surface);
  border:1px solid var(--c-border);
  border-radius:var(--r-card);
  box-shadow:var(--shadow-1);
}
.card-pad{padding:var(--s-3);}
.stack-16>*+*{margin-top:var(--s-2);}
.stack-24>*+*{margin-top:var(--s-3);}
.stack-32>*+*{margin-top:var(--s-4);}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}

/* ---------- Bilingual Blocks ---------- */
.bilingual{display:flex; flex-direction:column; gap:10px;}
.bilingual .en{line-height:var(--lh-en);}
.bilingual .mm{line-height:var(--lh-mm);}

/* ---------- Typography ---------- */
.h1{
  font-size:28px;
  font-weight:650;
  letter-spacing:-0.02em;
}
.mm.h1{font-size:26px;}

.lead{font-size:16px; color:var(--c-muted);}
.small{font-size:14px; color:var(--c-muted);}

/* Mobile hero title smaller (your request) */
.hero .only-mobile.h1{
  font-size:20px;
  font-weight:650;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid transparent;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}
.btn:focus{outline:3px solid rgba(96,165,250,0.35); outline-offset:2px;}
.btn:hover{transform:translateY(-1px);}

.btn-primary{
  background:var(--c-primary);
  color:#fff;
}
.btn-primary:hover{filter:brightness(0.98);}

.btn-secondary{
  background:rgba(255,255,255,0.65);
  border-color:var(--c-border);
  color:var(--c-text);
}
.btn-secondary:hover{background:#fff;}

.btn-full{width:100%;}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,247,237,0.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--c-border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand img{
  width:52px;   /* ✅ Mobile logo bigger */
  height:52px;
  border-radius:14px;
}

/* ✅ Desktop မှာတော့ မကြီးသွားအောင် fix */
@media (min-width: 900px){
  .brand img{
    width:44px;
    height:44px;
    border-radius:12px;
  }
}

.brand-name{display:none;} /* ✅ remove Swam text beside logo */

.nav-desktop{
  display:none;
  gap:18px;
  align-items:center;
}
.nav-desktop a{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:6px 10px;
  border-radius:12px;
  border:1px solid transparent;
  transition:background .16s ease, transform .16s ease;
}
.nav-desktop a:hover{background:rgba(255,255,255,0.55);}
.nav-desktop .nav-mm{font-size:12px; color:var(--c-muted); line-height:1.7;}
.nav-desktop a.active{
  background:rgba(255,255,255,0.75);
  border-color:var(--c-border);
}

/* Header actions (lang + hamburger) */
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Language toggle pill */
.lang-toggle{
  min-height:40px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--c-border);
  background:rgba(255,255,255,0.70);
  cursor:pointer;
  font-weight:600;
}

/* Hamburger */
.hamburger{
  min-height:48px;
  min-width:48px;
  border-radius:14px;
  border:1px solid var(--c-border);
  background:rgba(255,255,255,0.70);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.hamburger svg{width:22px;height:22px;}

/* ---------- Mobile Drawer ---------- */
.drawer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:60;
}
.drawer{
  position:fixed;
  top:0; right:0;
  height:100%;
  width:min(88vw, 360px);
  background:var(--c-surface);
  border-left:1px solid var(--c-border);
  transform:translateX(100%);
  transition:transform .22s ease;
  z-index:70;
  display:flex;
  flex-direction:column;
}
.drawer.open{transform:translateX(0);}
.drawer-backdrop.open{opacity:1; pointer-events:auto;}

.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--c-border);
}
.drawer-close{
  min-height:48px;
  min-width:48px;
  border-radius:14px;
  border:1px solid var(--c-border);
  background:#fff;
  cursor:pointer;
}
.drawer-nav{
  padding:12px 10px 110px;
  overflow:auto;
}
.drawer-nav a{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid transparent;
}
.drawer-nav a:hover{background:rgba(255,247,237,0.55);}
.drawer-nav .nav-mm{font-size:12px; color:var(--c-muted); line-height:1.7;}
.drawer-nav a.active{
  background:rgba(255,247,237,0.70);
  border-color:var(--c-border);
}

/* Drawer language toggle */
.drawer-lang-wrap{
  padding:12px 12px 0;
}
.drawer-lang-wrap .lang-toggle{
  width:100%;
  justify-content:center;
  min-height:48px;
}

/* ---------- Sticky CTA Bar ---------- */
.sticky-cta{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:80;
  background:rgba(255,247,237,0.95);
  border-top:1px solid var(--c-border);
  padding:10px 10px calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta-inner{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
  max-width:var(--max-w);
  margin:0 auto;
}
.sticky-cta .btn{
  min-height:48px;
  padding:0 12px;
  border-radius:14px;
}
.sticky-cta .btn svg{width:18px;height:18px;}
.has-sticky{padding-bottom:86px;}

/* ---------- Sections ---------- */
.hero{padding-top:var(--s-4);}
.hero-card{
  padding:var(--s-4);
  border-radius:var(--r-card);
  background:rgba(255,255,255,0.72);
  border:1px solid var(--c-border);
}

/* Badges */
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:var(--s-2);
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:var(--r-pill);
  border:1px solid var(--c-border);
  background:rgba(255,255,255,0.75);
  font-size:13px;
  color:var(--c-text);
}

/* Grid */
.grid{display:grid; gap:var(--s-2);}
.grid-2{grid-template-columns:1fr;}
.grid-3{grid-template-columns:1fr;}

/* Card link */
.card-link{
  display:block;
  padding:16px;
  border-radius:var(--r-card);
  border:1px solid var(--c-border);
  background:rgba(255,255,255,0.82);
  box-shadow:var(--shadow-1);
  transition:transform .16s ease;
}
.card-link:hover{transform:translateY(-2px);}
.card-link .title{font-weight:650;}
.card-link .meta{display:none;} /* ✅ hide netlify text line (your request) */

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--c-border);
  padding:var(--s-5) 0;
  background:rgba(255,247,237,0.92);
}

/* ✅ IMPORTANT: Make footer content visible above sticky bar on mobile */
.has-sticky .site-footer{
  padding-bottom: calc(var(--s-5) + 110px);
}

.footer-grid{
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* Desktop layout */
@media (min-width: 900px){
  .nav-desktop{display:flex;}
  .hamburger{display:none;}

  .grid-2{grid-template-columns:1fr 1fr;}
  .grid-3{grid-template-columns:1fr 1fr 1fr;}

  .section{padding:96px 0;}
  .hero-card{padding:48px;}

  .sticky-cta{display:none;}
  body.has-sticky{padding-bottom:0;}

  .footer-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:24px;
  }
}

/* Footer pieces */
.footer-title{font-weight:650; margin-bottom:10px;}
.footer-links a{
  display:block;
  padding:8px 0;
  color:var(--c-muted);
}
.footer-links a:hover{color:var(--c-text);}

.socials{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* ✅ better looking / bigger social buttons */
.socials a{
  min-height:56px;
  min-width:56px;
  border-radius:16px;
  border:1px solid var(--c-border);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.85);
  box-shadow:var(--shadow-1);
  transition:transform .16s ease, background .16s ease;
}
.socials a:hover{
  transform:translateY(-2px);
  background:#fff;
}
.socials svg{width:24px;height:24px; color:var(--c-primary);}

/* ---------- Reveal (optional) ---------- */
.reveal{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .28s ease, transform .28s ease;
}
.reveal.show{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none;}
}
