﻿/* ==========================================================================
   Noakhali Tech — layout.css
   Site chrome: top bar, header, search, navigation, mega menu, mobile drawer,
   bottom navigation, guarantee strip, footer and inner-page hero.
   ========================================================================== */

/* ---------- Top bar ----------------------------------------------------- */
.topbar { background: var(--navy); color: #B8C7DB; font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__list { display: flex; align-items: center; gap: 22px; }
.topbar__list li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__list i { color: var(--accent); font-size: 12px; }
.topbar__list a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar__list a:hover { color: #fff; }
.topbar__list--right li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Header ------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--surface); box-shadow: 0 1px 0 var(--border); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(10, 27, 51, .25); }
.header-main { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.header-main__menu { display: none; }
.logo { flex: none; }
.logo img { width: auto; height: 50px; }

/* Search */
.search { flex: 1; display: flex; align-items: center; max-width: 700px; height: 50px; margin-inline: auto; background: var(--surface-muted); border: 1.5px solid var(--border); border-radius: 12px; transition: border-color .2s, box-shadow .2s, background .2s; }
.search:focus-within { background: var(--surface); border-color: var(--primary); box-shadow: var(--ring); }
.search__cat { position: relative; height: 100%; flex: none; border-right: 1px solid var(--border); }
.search__cat select { height: 100%; padding: 0 30px 0 16px; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235E6E84' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.search__cat select:focus { outline: none; }
.search__input { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; background: transparent; font-size: var(--fs-sm); }
.search__input:focus { outline: none; }
.search__input::placeholder { color: var(--subtle); }
.search__btn { display: inline-flex; align-items: center; gap: 8px; height: calc(100% - 8px); margin-right: 4px; padding: 0 20px; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 700; font-size: var(--fs-sm); transition: background .2s; }
.search__btn:hover { background: var(--primary-600); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.header-action { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; transition: background .2s; }
.header-action:hover { background: var(--surface-muted); }
.header-action__icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-muted); color: var(--navy); font-size: 1.05rem; transition: background .2s, color .2s; }
.header-action:hover .header-action__icon { background: var(--primary-50); color: var(--primary); }
.header-action__text { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.25; white-space: nowrap; }
.header-action__text small { font-size: 11px; font-weight: 500; color: var(--muted); }
.header-action--cart .header-action__icon { background: var(--primary); color: #fff; }
.header-action--cart:hover .header-action__icon { background: var(--primary-600); color: #fff; }
.hcount { position: absolute; top: -4px; right: -6px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 700; border: 2px solid var(--surface); }
.hcount--accent { background: var(--accent); }
.hcount.is-bump { animation: bump .4s var(--ease); }

/* ---------- Main navigation -------------------------------------------- */
.header-nav { border-top: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 13px 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2.5px; border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__item:hover > .nav__link, .nav__item.is-active > .nav__link { color: var(--primary); }
.nav__item:hover > .nav__link::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__caret { font-size: 9px; opacity: .6; transition: transform .25s; }
.nav__item:hover .nav__caret { transform: rotate(180deg); }
.nav__item--hot > .nav__link { color: var(--accent-600); }
.nav__item--hot > .nav__link i { color: var(--accent); }
.nav__item--hot > .nav__link::after { background: var(--accent); }

.dropdown, .mega { position: absolute; top: 100%; z-index: 50; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav__item:hover > .dropdown, .nav__item:hover > .mega, .nav__item:focus-within > .dropdown, .nav__item:focus-within > .mega { visibility: visible; opacity: 1; transform: none; }
.dropdown { left: 0; min-width: 230px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.dropdown a { display: block; padding: 9px 12px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); border-radius: 8px; transition: background .2s, color .2s, padding .2s; }
.dropdown a:hover { background: var(--primary-50); color: var(--primary); padding-left: 16px; }
.nav__item:nth-last-child(-n+4) > .dropdown { left: auto; right: 0; }

.has-mega { position: static; }
.nav { position: relative; }
.mega { left: 0; right: 0; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.35fr; gap: 28px; }
.mega__title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.mega__col a { display: block; padding: 6px 0; font-size: var(--fs-sm); color: var(--text-2); transition: color .2s, transform .2s; }
.mega__col a:hover { color: var(--primary); transform: translateX(4px); }
.mega__promo { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--primary-50); overflow: hidden; }
.mega__promo strong { font-size: 1.05rem; color: var(--navy); line-height: 1.3; }
.mega__promo > span:not(.badge):not(.link-arrow) { font-size: 13px; color: var(--muted); }
.mega__promo img { width: 72%; margin: 4px 0 4px auto; transition: transform .4s var(--ease); }
.mega__promo:hover img { transform: translateX(-6px) scale(1.04); }

/* ---------- Mobile drawer ---------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 27, 51, .5); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); display: flex; flex-direction: column; background: var(--surface); transform: translateX(-100%); transition: transform .35s var(--ease); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--border); }
.drawer__head img { height: 42px; width: auto; }
.drawer__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; }
.drawer__quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--surface-muted); border-radius: var(--radius); }
.drawer__quick i { color: var(--primary); font-size: 1.1rem; }
.drawer__nav { padding: 0 8px; flex: 1; }
.drawer__nav > ul > li > a, .drawer-acc__head { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 12px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); }
.drawer__nav li.is-active > a, .drawer__nav li.is-active > .drawer-acc__head > a { color: var(--primary); }
.drawer-acc__head a { flex: 1; align-self: stretch; display: flex; align-items: center; }
.drawer-acc__head button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--surface-muted); font-size: 12px; transition: transform .3s var(--ease), background .2s; }
.drawer-acc.is-open > .drawer-acc__head button { transform: rotate(45deg); background: var(--primary); color: #fff; }
.drawer-acc__body { display: none; padding: 6px 0 10px 12px; border-bottom: 1px solid var(--border); }
.drawer-acc.is-open > .drawer-acc__body { display: block; }
.drawer-acc__body a { display: block; padding: 9px 12px; font-size: var(--fs-sm); color: var(--muted); }
.drawer__contact { display: flex; flex-direction: column; gap: 4px; margin: 16px; padding: 14px; background: var(--navy); border-radius: var(--radius); }
.drawer__contact a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: var(--fs-sm); color: #D6E2F2; }
.drawer__contact i { width: 18px; color: var(--accent); }
body.is-locked { overflow: hidden; }

/* ---------- Mobile bottom nav & floating buttons ----------------------- */
.bottom-nav { display: none; }
.float-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1FAF55; color: #fff; font-size: 1.7rem; box-shadow: 0 12px 28px -8px rgba(31, 175, 85, .6); transition: transform .25s var(--ease); }
.float-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FAF55; animation: pulse 2.4s infinite; }
.float-whatsapp:hover { transform: scale(1.07); }
.back-to-top { position: fixed; right: 30px; bottom: 90px; z-index: 150; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--navy); border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Guarantee strip -------------------------------------------- */
.feature-strip { background: var(--bg); border-top: 1px solid var(--border); }
.feature-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-strip__item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.feature-strip__item + .feature-strip__item { border-left: 1px solid var(--border); }
.feature-strip__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--surface); color: var(--primary); font-size: 1.2rem; box-shadow: var(--shadow-xs); }
.feature-strip__item strong { display: block; font-size: var(--fs-sm); color: var(--navy); }
.feature-strip__item span { font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ------------------------------------------------------ */
.footer { background: var(--navy); color: #A9B9CF; font-size: var(--fs-sm); }
.footer__newsletter { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__newsletter h3 { color: #fff; font-size: 1.35rem; }
.footer__newsletter p { margin-top: 4px; }
.newsletter-form { display: flex; gap: 8px; width: min(460px, 100%); padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.newsletter-form input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: transparent; color: #fff; }
.newsletter-form input::placeholder { color: #7F93AE; }
.newsletter-form input:focus { outline: none; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding: 56px 0 44px; }
.footer__brand img { height: 56px; width: auto; }
.footer__tagline { margin-top: 18px; font-size: 1.05rem; font-weight: 700; color: #fff; }
.footer__pillars { margin-top: 4px; color: var(--accent); font-weight: 600; font-size: 13px; }
.footer__contact { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.footer__contact li { display: flex; gap: 12px; line-height: 1.55; }
.footer__contact i { width: 16px; margin-top: 4px; color: #7DB8F2; flex: none; }
.footer__contact a:hover { color: #fff; }
.footer__title { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer__links li + li { margin-top: 11px; }
.footer__links a { transition: color .2s, padding .2s; }
.footer__links a:hover { color: #fff; padding-left: 4px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.footer__pay { display: flex; flex-wrap: wrap; gap: 6px; }
.footer__pay span { padding: 4px 10px; font-size: 11px; font-weight: 700; color: #D6E2F2; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #D6E2F2; transition: background .2s, color .2s, transform .2s; }
.footer__social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ---------- Inner page hero -------------------------------------------- */
.page-hero { position: relative; padding: 36px 0 40px; background: var(--bg); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(11, 92, 173, .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); pointer-events: none; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__title { font-size: var(--fs-2xl); font-weight: 800; margin-top: 14px; }
.page-hero__desc { margin-top: 10px; max-width: 720px; color: var(--muted); }
.page-hero--dark { background: var(--navy); border: 0; color: #C9D6E8; padding: 56px 0 64px; }
.page-hero--dark::after { background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); }
.page-hero--dark .page-hero__title { color: #fff; font-size: var(--fs-3xl); }
.page-hero--dark .page-hero__desc { color: #A9B9CF; font-size: var(--fs-md); }
.page-hero--dark .breadcrumb, .page-hero--dark .breadcrumb [aria-current] { color: #A9B9CF; }
.page-hero--dark .breadcrumb [aria-current] { color: #fff; }

@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes bump { 50% { transform: scale(1.35); } }

/* Scrolling notice after the home hero (Design > Noakhali Theme > Header & Menu) */
.nt-ticker { display: flex; align-items: stretch; margin: 56px 0 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(10, 27, 51, .06); }
.nt-ticker__icon { display: grid; place-items: center; flex: none; width: 48px; background: var(--accent); color: #fff; font-size: 16px; }
.nt-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; }
.nt-ticker__track { display: flex; width: max-content; animation: nt-ticker 80s linear infinite; }
.nt-ticker:hover .nt-ticker__track { animation-play-state: paused; }
.nt-ticker__item { flex: none; padding: 12px 64px 12px 18px; font-family: 'Noto Sans Bengali', 'Hind Siliguri', var(--font); font-size: 16px; font-weight: 500; line-height: 1.5; white-space: nowrap; color: var(--text); }
@keyframes nt-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .nt-ticker__track { width: auto; animation: none; }
  .nt-ticker__item { white-space: normal; padding: 12px 16px; }
  .nt-ticker__item[aria-hidden] { display: none; }
}
.nt-ticker-wrap + .container .brand-strip { margin-top: 28px; }
@media (max-width: 1024px) { .nt-ticker { margin-top: 40px; } }

/* ---------- Facebook / YouTube follow buttons (topbar, footer, contact) ---------- */
.soc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; color: #fff !important; border-radius: 999px; line-height: 1; white-space: nowrap; transition: filter .2s, transform .2s; }
.soc-btn:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.soc-btn i { color: #fff !important; font-size: 1em; }
.soc-btn--fb { background: #1877F2; }
.soc-btn--yt { background: #FF0000; }
.topbar__follow { gap: 8px !important; }
.topbar__follow .soc-btn { padding: 6px 12px; font-size: 12px; }
.footer__follow { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.soc-btn--lg { padding: 11px 18px; font-size: 14px; }
.soc-btn--xl { padding: 16px 26px; font-size: 16px; }
.footer__social a.soc-facebook { background: #1877F2; color: #fff; }
.footer__social a.soc-youtube { background: #FF0000; color: #fff; }
@media (max-width: 560px) {
  .topbar__follow .soc-btn { width: 28px; height: 28px; padding: 0; }
}

/* ---------- 3rd menu level: flyout (desktop) / nested accordion (drawer) ---------- */
.dropdown .has-flyout { position: relative; }
.dropdown .has-flyout > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dropdown .has-flyout > a .fa-chevron-right { font-size: 10px; color: var(--muted); }
.flyout { position: absolute; top: -9px; left: 100%; min-width: 210px; padding: 8px; margin-left: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); visibility: hidden; opacity: 0; transform: translateX(6px); transition: opacity .18s, transform .2s var(--ease), visibility .18s; }
.flyout::before { content: ''; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
.has-flyout:hover > .flyout, .has-flyout:focus-within > .flyout { visibility: visible; opacity: 1; transform: none; }
.has-flyout:hover > a { background: var(--primary-50); color: var(--primary); }
.nav__item:nth-last-child(-n+4) .flyout { left: auto; right: 100%; margin: 0 6px 0 0; transform: translateX(-6px); }
.nav__item:nth-last-child(-n+4) .flyout::before { left: auto; right: -10px; }
.drawer-acc--sub > .drawer-acc__head { min-height: 42px; padding: 0; font-weight: 500; font-size: var(--fs-sm); color: var(--text-2); border-bottom: 0; }
.drawer-acc--sub > .drawer-acc__head button { width: 28px; height: 28px; }
.drawer-acc--sub > .drawer-acc__body { padding: 0 0 6px 14px; border-bottom: 0; }
.drawer-acc--sub > .drawer-acc__head a { padding-left: 12px; }
