/* Shared components used by the public site and the portal. */
@import url('/css/components.css');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: var(--text)/1.65 var(--font-sans); color: var(--c-text); background: var(--c-bg); }
h1, h2, h3 { font-family: var(--font-serif); color: var(--c-heading); font-weight: 500; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
/* Form controls take the page typeface (browsers otherwise use a system face), in every language. */
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s5); }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--white); padding: var(--s2) var(--s4); z-index: 100; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: var(--s2); padding: 14px 26px; border-radius: var(--r-pill); font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-primary { background: var(--c-action-bg); color: var(--c-action-ink); }
.btn-primary:hover { background: var(--c-action-bg-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-gold { background: var(--c-action-bg); color: var(--c-action-ink); }
.btn-gold:hover { background: var(--c-action-bg-hover); }
.btn-outline { border-color: var(--line-strong); color: var(--navy); background: var(--white); }
.btn-outline:hover { border-color: var(--c-secondary-line); }
.link { font-weight: 600; color: var(--c-link); display: inline-flex; gap: var(--s2); align-items: center; }

/* header: logo, the four menu groups (dropdowns on desktop, a drawer below
   960px; behaviour in /js/nav.js) and .nav-right (language switcher, sign in,
   consultation). Without JavaScript the group titles are plain links and the
   "Menu" link opens the drawer through :target. */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--white); }
.site-header.nav-open { z-index: 80; }
.site-header :focus-visible { outline-color: var(--gold); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: var(--s5); }
.logo { display: flex; align-items: center; gap: var(--s3); font-family: var(--font-serif); font-size: 20px; letter-spacing: .14em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav-menu { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.nav-toggle, .nav-drawer-head, .nav-backdrop { display: none; }
.nav-links { font-size: 15px; }
.nav-groups { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-group { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; border-radius: var(--r-pill); background: none; color: inherit; font: inherit; line-height: 1.2; white-space: nowrap; cursor: pointer; opacity: .92; transition: background .2s, opacity .2s; }
.nav-top:hover, .nav-top[aria-expanded="true"] { opacity: 1; background: rgba(255, 255, 255, .1); }
.nav-top.is-current { opacity: 1; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-caret { width: 11px; height: 11px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-top[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.site-header:not(.nav-ready) .nav-caret { display: none; }
.nav-panel { display: none; list-style: none; position: absolute; top: calc(100% + 12px); inset-inline-start: 0; z-index: 40; min-width: 310px; padding: 8px; background: var(--navy-deep); border: 1px solid rgba(201, 169, 110, .3); border-top: 2px solid var(--gold); border-radius: 4px 4px var(--r-sm) var(--r-sm); box-shadow: 0 28px 56px -24px rgba(0, 0, 0, .65); }
.nav-panel::before { content: ""; position: absolute; inset: -14px 0 auto; height: 12px; } /* hover bridge */
.nav-top[aria-expanded="true"] + .nav-panel { display: block; }
.nav-panel a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px; border-inline-start: 2px solid transparent; transition: background .2s, border-color .2s; }
.nav-panel a:hover, .nav-panel a:focus-visible { background: rgba(255, 255, 255, .06); border-inline-start-color: var(--gold); }
.nav-panel a[aria-current="page"] { border-inline-start-color: var(--gold); }
.nav-panel strong { color: var(--white); font-size: 15px; font-weight: 600; }
.nav-panel small { color: #A9BBD1; font-size: 13px; line-height: 1.4; }
.nav-soon { display: inline-block; align-self: flex-start; padding: 2px 9px; border: 1px solid rgba(201, 169, 110, .65); border-radius: var(--r-pill); color: #E9D7B0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: var(--s4); font-size: 15px; white-space: nowrap; }
.nav-right .btn { padding: 10px 20px; font-size: 15px; }
.lang { opacity: .8; }
html.nav-locked, html.nav-locked body { overflow: hidden; }
@media (min-width: 961px) and (max-width: 1199px) {
  .nav, .nav-menu { gap: var(--s4); }
  .nav-top { padding-inline: 9px; }
  .nav-right .btn { display: none; } /* the consultation button returns at 1200px and in the drawer */
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-pill); background: none; color: inherit; font: 600 15px/1 var(--font-sans); cursor: pointer; }
  .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-menu { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 2; width: min(420px, 100%); height: 100vh; height: 100dvh; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0 var(--s5) calc(var(--s6) + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--navy-deep); color: var(--white); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .7); transform: translateX(100%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s .32s; }
  [dir="rtl"] .nav-menu { transform: translateX(-100%); box-shadow: 24px 0 60px -30px rgba(0, 0, 0, .7); }
  .nav-menu.is-open, .nav-menu:target, [dir="rtl"] .nav-menu.is-open, [dir="rtl"] .nav-menu:target { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .7, .2, 1); }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(4, 12, 22, .62); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; flex: none; height: 76px; border-bottom: 1px solid rgba(201, 169, 110, .35); }
  .nav-drawer-title { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
  .nav-close { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: none; color: inherit; font: 400 26px/1 var(--font-sans); cursor: pointer; }
  .nav-groups { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-group { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav-top { display: flex; width: 100%; justify-content: space-between; padding: 18px 2px; border-radius: 0; font-family: var(--font-serif); font-size: 21px; text-align: start; }
  .nav-top:hover, .nav-top[aria-expanded="true"] { background: none; }
  .nav-top.is-current { box-shadow: none; color: #E9D7B0; }
  .nav-caret { width: 14px; height: 14px; }
  .nav-panel { position: static; min-width: 0; padding: 0 0 14px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .nav-panel::before { display: none; }
  .nav-menu:target .nav-panel { display: block; }
  .nav-panel a { padding: 10px 14px; }
  .nav-right { flex-direction: column; align-items: stretch; gap: var(--s4); margin-top: var(--s6); white-space: normal; }
  .nav-right > a:not(.btn) { padding: 4px 2px; font-weight: 600; }
  .nav-right .btn { justify-content: center; padding: 14px 20px; }
  .nav-right .lang-switch { align-self: flex-start; }
  .nav-right .lang-switch ul { position: static; margin-top: 8px; box-shadow: none; }
}

/* cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #AFC4DA; }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; margin-bottom: 22px; }

/* sections */
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin: 12px 0 14px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { cursor: pointer; font-family: var(--font-serif); font-size: 21px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-family: var(--font-sans); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--ink-2); }

/* footer */
/* Footer: brand, the four menu groups and Contact (same groups as the header). */
.site-footer { padding: 80px 0 50px; font-size: 15px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) 1.35fr; gap: 36px 28px; }
.site-footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: var(--s2); }
.site-footer li { overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--navy); }
.foot-soon { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border: 1px solid var(--gold); border-radius: var(--r-pill); color: #8A6D35; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.legal { border-top: 1px solid var(--line); margin-top: 56px; padding-top: var(--s5); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr) 1.3fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .lang { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--s4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-contact { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Public-site motion (driven by /js/motion.js; content is visible without it). */
[data-reveal] { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal-wait { opacity: 0; transform: translateY(28px); }
.kenburns { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) {
  .kenburns { animation: none !important; }
  .reveal-wait { opacity: 1; transform: none; }
  .bg-video { display: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Reviews: "What our clients say" — real, client-submitted, admin-approved
   reviews only (see /js/reviews.js). Never sample/placeholder content. */
.reviews-section { padding: 90px 0; background: var(--white); }
.reviews-wrap { text-align: center; }
.reviews-head { max-width: 720px; margin: 0 auto 44px; }
.reviews-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 10px; }
.reviews-summary { font-size: 15px; color: var(--ink-2); font-weight: 600; }

.review-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); text-align: left; }
.review-card-public { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: var(--s3); }
.review-stars { color: var(--gold); font-size: 17px; letter-spacing: 2px; }
.review-quote { font-family: var(--font-serif); font-size: 18px; line-height: 1.55; color: var(--navy); flex: 1; }
.review-meta { font-size: 14px; color: var(--ink-2); }
.review-name { font-weight: 700; color: var(--navy); }

.reviews-empty { max-width: 640px; margin: 0 auto; text-align: center; }
.reviews-commitments { list-style: none; display: grid; gap: var(--s3); margin: 0 0 var(--s6); text-align: left; max-width: 460px; margin-inline: auto; }
.reviews-commitments li { position: relative; padding-left: 28px; color: var(--ink-2); }
.reviews-commitments li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
.reviews-empty-actions { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }

/* Language switcher (markup written by scripts/build-i18n.mjs; /js/lang.js
   only remembers the choice). Native names, no flags. */
.lang-switch { position: relative; border: 0; padding: 0; }
.lang-switch summary { font: 600 14px/1 var(--font-sans); color: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-pill); }
.lang-switch summary::after, .lang-switch[open] summary::after { content: "▾"; color: inherit; font-size: 13px; opacity: .8; }
.lang-switch ul { list-style: none; position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 170px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 6px; z-index: 30; }
.lang-switch a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--navy); font-size: 15px; }
.lang-switch a:hover { background: var(--sky); }
.lang-switch a[aria-current="page"] { font-weight: 700; background: var(--sky); }
.lang-banner { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); background: var(--navy-deep); color: var(--white); border: 1px solid rgba(201, 169, 110, .6); border-radius: var(--r-pill); padding: 8px 8px 8px 18px; box-shadow: var(--shadow); font-size: 15px; }
.lang-banner a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lang-banner-close { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.lang-banner-close:hover { background: rgba(255, 255, 255, .1); }
.translated-note { width: 100%; font-size: 13px; color: var(--ink-2); }
.en-note { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .8; }
html[lang="bn"] { --font-sans: "Noto Sans Bengali", "Source Sans 3", system-ui, sans-serif; --font-serif: "Noto Serif Bengali", "Noto Sans Bengali", Georgia, serif; }
html[lang="bn"] .eyebrow, html[lang="bn"] .site-footer h4 { letter-spacing: .02em; }

@media (max-width: 960px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .review-grid { grid-template-columns: 1fr; }
  .reviews-section { padding: 64px 0; }
}
