/* =========================================================
   Projonmo Hostel & Mongoldip — modern theme
   ========================================================= */
:root {
  --brand: #1e6b45;          /* army green (from AWT logo) */
  --brand-dark: #134a2f;
  --brand-light: #e8f3ec;
  --accent: #b3261e;         /* maroon red (from AWT logo) */
  --accent-light: #fdecea;
  --ink: #1c2430;
  --muted: #5b6676;
  --line: #e6e9ee;
  --surface: #ffffff;
  --surface-alt: #f5f7f9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow: 0 10px 30px rgba(16, 24, 40, .10);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hind Siliguri', 'SolaimanLipi', 'Kalpurush', system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand); transition: color .2s; }
a:hover { color: var(--brand-dark); text-decoration: none; }
img { max-width: 100%; }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 14px; border-radius: 999px;
  margin-bottom: 12px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2, .block-title {
  font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3; margin-bottom: 8px;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Navbar ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s;
}
.site-nav.scrolled {
  /* AWT logo: maroon (top band) → green (bottom band), sky-blue accent line */
  background: linear-gradient(90deg, rgba(142, 27, 32, .95) 0%, rgba(110, 30, 34, .95) 30%, rgba(30, 107, 69, .95) 100%);
  border-bottom: 3px solid #7fb6e6;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  padding: 8px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.site-nav .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; }
.site-nav .brand img { width: 44px; height: 40px; object-fit: contain; }
.site-nav .nav-link {
  color: rgba(255,255,255,.88) !important; font-weight: 500;
  padding: 8px 16px !important; border-radius: 999px;
  transition: background .2s, color .2s;
}
.site-nav .nav-link:hover, .site-nav .nav-item.active .nav-link {
  color: #fff !important; background: rgba(255,255,255,.16);
}
.site-nav .navbar-toggler { border: 0; }
.site-nav .navbar-toggler:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
@media (max-width: 991.98px) {
  .site-nav { background: linear-gradient(90deg, #8e1b20 0%, #6e1e22 30%, #1e6b45 100%); border-bottom: 3px solid #7fb6e6; padding: 8px 0; }
  .site-nav .navbar-collapse { padding: 10px 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 92vh; min-height: 520px; color: #fff; overflow: hidden; }
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 100%; }
.hero .carousel-item img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform 7s linear;
}
.hero .carousel-item.active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.75) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 80px 20px 110px; pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px; border-radius: 999px; font-size: .95rem; margin-bottom: 18px;
}
.hero h1 {
  font-weight: 700; font-size: clamp(1.35rem, 4vw, 3rem); line-height: 1.35;
  max-width: 980px; margin: 0 auto 10px; text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.hero h1 span { color: #a8f0c6; }
.hero .hero-sub { font-size: clamp(1rem, 2vw, 1.35rem); opacity: .95; margin-bottom: 30px; }
/* indicators sit above the stats card that overlaps the hero bottom */
.hero .carousel-indicators { z-index: 3; margin-bottom: 84px; }
.hero .carousel-indicators li {
  width: 10px; height: 10px; border-radius: 50%; border: 0; margin: 0 5px;
  background: rgba(255,255,255,.5); transition: width .3s var(--ease), background .3s;
}
.hero .carousel-indicators li.active { width: 30px; border-radius: 6px; background: #fff; }
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 3; width: 8%; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background-color: rgba(255,255,255,.15); background-size: 40%;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s;
}
.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon { background-color: rgba(255,255,255,.3); }
.scroll-cue {
  position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px;
}
.scroll-cue::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 26px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn-pill:hover { transform: translateY(-2px); text-decoration: none; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(30,107,69,.35); }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--brand-dark); }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Stats strip ---------- */
.stats { position: relative; z-index: 5; margin-top: -60px; }
.stats-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 1.7rem; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stat .lbl { color: var(--muted); font-size: .95rem; }
@media (max-width: 767.98px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Feature lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
/* two columns only when there is real width for long Bangla lines */
.check-list.two-col { grid-template-columns: 1fr; }
@media (min-width: 768px) and (max-width: 991.98px), (min-width: 1200px) {
  .check-list.two-col { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
}
.check-list li { position: relative; padding-left: 36px; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e6b45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.check-list.cross li::before {
  background: var(--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3261e' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list.dot li::before {
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5' fill='%231e6b45'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Media frame ---------- */
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame .tag {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,255,255,.92); color: var(--ink); font-weight: 600;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
@media (min-width: 992px) { .sticky-media { position: sticky; top: 100px; } }
.media-frame.tall { aspect-ratio: 3 / 4; max-height: calc(100vh - 140px); }
@media (max-width: 991.98px) {
  .media-frame.tall { aspect-ratio: 4 / 3; max-height: 420px; }
}

/* ---------- Info cards ---------- */
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.icon-badge {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand);
}
.icon-badge.red { background: var(--accent-light); color: var(--accent); }
.icon-badge svg { width: 22px; height: 22px; }

/* photo that stretches to the height of the text beside it */
.media-frame.media-fill { height: 100%; }
.media-frame.media-fill img { object-position: center 30%; }
/* On desktop the photo is pinned to the column, so its height is exactly
   the height of the text column beside it (no taller, no shorter). */
@media (min-width: 992px) {
  .media-col { position: relative; }
  .media-col > .reveal { position: absolute; top: 0; bottom: 0; left: 15px; right: 15px; height: auto !important; }
}
@media (max-width: 991.98px) { .media-frame.media-fill { height: 380px; } }

.info-row { margin-top: 48px; }
@media (max-width: 991.98px) { .info-row { margin-top: 8px; } }

.price-row { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.price-row b { white-space: nowrap; }
.price-row:last-of-type { border-bottom: 0; }
.price-row b { color: var(--brand); font-size: 1.15rem; }

/* ---------- Service cards ---------- */
.service-card {
  position: relative; background: var(--surface); border-radius: var(--radius);
  padding: 34px 28px 28px; height: 100%; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), #3fae75);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon-badge { width: 58px; height: 58px; border-radius: 16px; margin-bottom: 18px; }
.service-card .icon-badge svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted); flex: 1; margin-bottom: 22px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 767.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  cursor: zoom-in; box-shadow: var(--shadow-sm); display: block;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72));
  transition: opacity .3s;
}
.g-item span {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  color: #fff; font-weight: 600; font-size: 1.05rem;
  transform: translateY(4px); transition: transform .3s var(--ease);
}
.g-item:hover img { transform: scale(1.1); }
.g-item:hover span { transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; flex-direction: column;
  background: rgba(10, 14, 20, .9); padding: 24px;
}
.lightbox.open { display: flex; animation: fade .25s ease; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox p { color: #fff; margin-top: 14px; font-size: 1.1rem; }
.lightbox button {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Committee ---------- */
.member {
  background: var(--surface); border-radius: var(--radius); padding: 26px 20px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member img {
  width: 140px; height: 160px; object-fit: cover; object-position: top;
  border-radius: 14px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.member .role { font-weight: 700; font-size: 1.05rem; }
.member .org { color: var(--muted); font-size: .9rem; }
.member.lead { border-top: 4px solid var(--brand); }

/* ---------- Footer ---------- */
.site-footer {
  /* AWT logo colours: green body, maroon top band and copyright strip */
  background: linear-gradient(135deg, #1e6b45 0%, #17573a 60%, #124530 100%);
  border-top: 5px solid #8e1b20;
  box-shadow: inset 0 3px 0 #7fb6e6;
  color: rgba(255,255,255,.82); padding: 70px 0 0;
}
.site-footer h4 { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; }
.site-footer .logo { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-line svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: #a9d2f5; }
.footer-bottom {
  margin-top: 50px; padding: 16px 0;
  text-align: center; font-size: .9rem; color: #fff;
  background: linear-gradient(90deg, #8e1b20, #6e1e22);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1020;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 767.98px) {
  .section { padding: 60px 0; }
  .hero { height: 82vh; min-height: 520px; }
  .hero-content { padding: 70px 16px 100px; }
  .hero-badge { font-size: .85rem; padding: 5px 12px; margin-bottom: 12px; }
  .hero .hero-sub { margin-bottom: 20px; }
  .hero .carousel-indicators { margin-bottom: 76px; }
  .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
  .btn-pill { padding: 10px 20px; font-size: .95rem; }
  .stats { margin-top: -50px; }
  .stat { padding: 18px 12px; }
  .stat .num { font-size: 1.35rem; }
  .info-card, .service-card { padding: 22px 18px; }
}
