/* Hamro Sano Sansar — preview foundation. Does not style the current homepage. */

:root {
  --navy-950: #07111f;
  --navy-900: #0c1a33;
  --navy-800: #16315c;
  --navy-700: #1d3d6e;
  --ink: #1a140f;
  --muted: #4e463d;
  --cream: #fbf6ef;
  --cream-2: #f3ebe0;
  --paper: #fffdfb;
  --crimson: #9f1d2a;
  --crimson-deep: #7d1622;
  --gold: #c6a15b;
  --gold-text: #f3ddb0;
  --line: rgba(12, 26, 51, 0.12);
  --line-strong: rgba(12, 26, 51, 0.2);
  --shadow: 0 22px 50px rgba(7, 17, 31, 0.12);
  --shadow-soft: 0 10px 30px rgba(7, 17, 31, 0.08);
  --radius: 28px;
  --header: 4.75rem;
  --gutter: clamp(1.125rem, 4.8vw, 1.5rem);
  --font: "Poppins", "Noto Sans Devanagari", sans-serif;
  --devanagari: "Noto Sans Devanagari", "Poppins", sans-serif;
  --max: 1440px;
  --focus: #9f1d2a;
  --focus-on-dark: #f3ddb0;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
  background-color: #07111f;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  /* Permanent iOS overscroll/root canvas — cream sections own their own backgrounds */
  background-color: #07111f;
  background: #07111f;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, summary { font: inherit; }
p, h1, h2, h3 { text-wrap: pretty; }

h1, h2, h3 {
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.nav-panel :focus-visible,
.cta :focus-visible,
.intro :focus-visible,
.footer :focus-visible {
  outline-color: var(--focus-on-dark);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.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;
}

.wrap {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { width: min(820px, 100%); }

.kicker {
  margin: 0 0 0.85rem;
  color: var(--crimson);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.on-dark .kicker { color: var(--gold-text); }

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.on-dark .lede { color: rgba(251, 246, 239, 0.86); }

.section { padding: 4.25rem 0; }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 0.9rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-top);
  min-height: calc(var(--header) + var(--safe-top));
  display: flex;
  align-items: center;
  background: #07111f;
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-bar {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
  color: var(--navy-900);
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(7, 17, 31, 0.16);
}
.brand-name {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-nav { display: none; }
.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover { background: rgba(159, 29, 42, 0.08); color: var(--crimson); }

.nav-details { position: relative; }
.nav-details summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.nav-details summary::-webkit-details-marker { display: none; }
.nav-burger,
.nav-burger::before,
.nav-burger::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
}
.nav-burger::before,
.nav-burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger::before { top: -5px; }
.nav-burger::after { top: 5px; }
.nav-details[open] .nav-burger { background: transparent; }
.nav-details[open] .nav-burger::before { top: 0; transform: rotate(45deg); }
.nav-details[open] .nav-burger::after { top: 0; transform: rotate(-45deg); }

.nav-panel {
  display: none;
}
.nav-details[open] .nav-panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 35;
  top: calc(var(--header) + var(--safe-top));
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem var(--gutter) calc(2rem + var(--safe-bottom));
  background:
    radial-gradient(circle at 90% 0%, rgba(198, 161, 91, 0.18), transparent 28%),
    var(--navy-900);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.4rem 0.2rem;
  border-bottom: 1px solid rgba(243, 221, 176, 0.16);
  color: var(--cream);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav-panel a:hover { color: var(--gold-text); }

body.nav-open { overflow: hidden; }

.store-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 58px;
  min-width: 210px;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(180deg, #17325d, #0c1a33);
  border: 1px solid rgba(243, 221, 176, 0.28);
  box-shadow: 0 12px 28px rgba(7, 17, 31, 0.18);
}
.store svg { width: 22px; height: 22px; flex: 0 0 auto; }
.store small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.78;
}
.store strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.store:hover { background: linear-gradient(180deg, #1d3d6e, #12284a); }

.footer {
  background: var(--navy-950);
  color: rgba(251, 246, 239, 0.82);
  padding: 4rem 0 calc(1.5rem + var(--safe-bottom));
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.footer h2 {
  margin-bottom: 0.9rem;
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(251, 246, 239, 0.82);
  text-decoration: none;
}
.footer a:hover { color: var(--gold-text); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-brand p { max-width: 28rem; }
.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 0.9rem;
}
.footer-end {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 221, 176, 0.16);
  color: rgba(251, 246, 239, 0.62);
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .store-row { width: 100%; }
  .store {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
  .nav-details summary {
    min-width: 44px;
    min-height: 44px;
  }
  .footer { padding-top: 3rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer a {
    word-break: break-word;
    overflow-wrap: anywhere;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .brand-name {
    font-size: 0.92rem;
    max-width: min(11.5rem, 46vw);
  }
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
  .section { padding: 5.5rem 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-end { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  :root { --gutter: 3rem; }
  .section { padding: 6.5rem 0; }
  .desktop-nav { display: block; }
  .nav-links { display: flex; gap: 0; }
  .nav-links a { padding-inline: 0.42rem; font-size: 0.86rem; }
  .nav-details { display: none; }
  .brand { flex-shrink: 0; }
  .brand-name { overflow: visible; text-overflow: clip; font-size: 0.95rem; max-width: none; }
}

@media (min-width: 1280px) {
  .nav-links a { padding-inline: 0.7rem; font-size: 0.92rem; }
  .brand-name { font-size: 1.05rem; }
}

@media (min-width: 1440px) {
  :root { --gutter: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
