/* =========================================================
   CYMA Nepal — Shared design system
   Fast • Simple • Beautiful
   ========================================================= */

:root {
  --cream:       #fbf6ee;
  --cream-2:     #f6ecdd;
  --ink:         #211b15;
  --brown:       #3d2f22;
  --brown-2:     #5b4630;
  --muted:       #7a6a58;
  --muted-2:     #9c8c78;
  --gold:        #c99566;
  --gold-d:      #a9754a;
  --gold-soft:   #f0d9bd;
  --rose:        #e8b4a0;
  --white:       #fffdf9;
  --danger:      #c9605a;
  --success:     #6b9471;
  --line:        rgba(61,47,34,.10);
  --line-2:      rgba(61,47,34,.16);
  --shadow-sm:   0 4px 14px -6px rgba(80,60,40,.16);
  --shadow-md:   0 16px 40px -16px rgba(80,60,40,.26);
  --shadow-lg:   0 32px 64px -24px rgba(60,40,20,.35);
  --radius:      20px;
  --radius-sm:   12px;
  --radius-full: 999px;
  --ease:        cubic-bezier(.22,.61,.36,1);
  --max:         1120px;
  --nav-h:       72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--brown);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--brown);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brown-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold-d);
  color: #fff;
}
.btn-gold:hover { background: var(--gold); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--line-2);
  color: var(--brown);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold-d);
  color: var(--gold-d);
  background: rgba(201,149,102,.08);
}
.btn-lg { padding: 1rem 1.85rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,246,238,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease), background .25s;
}
.site-nav.scrolled {
  background: rgba(251,246,238,.96);
  box-shadow: 0 4px 20px -12px rgba(80,60,40,.18);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-nav.scrolled .nav-inner { padding: .65rem 1.25rem; }

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brown);
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brown);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
}
.brand em {
  font-style: normal;
  font-weight: 500;
  font-size: .78rem;
  color: var(--gold-d);
  background: rgba(201,149,102,.14);
  padding: .12rem .55rem;
  border-radius: var(--radius-full);
  margin-left: .15rem;
  letter-spacing: .03em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-weight: 500;
  color: var(--brown-2);
}
.nav-links a {
  font-size: .92rem;
  position: relative;
  padding: .25rem 0;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-d); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-d);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(201,149,102,.12);
  color: var(--brown);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all .3s var(--ease);
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33,27,21,.4);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 340px);
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 4.5rem 1.4rem 2rem;
  box-shadow: -16px 0 48px -16px rgba(60,40,20,.3);
  overflow-y: auto;
}
body.nav-open .nav-drawer { transform: translateX(0); }

.nav-drawer-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(61,47,34,.06);
  display: grid;
  place-items: center;
  color: var(--brown);
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
  margin: 1.5rem 0;
}
.nav-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-2);
  transition: background .2s, color .2s;
}
.nav-drawer-links a:hover {
  background: rgba(201,149,102,.12);
  color: var(--gold-d);
}
.nav-drawer-links a::after { content: '→'; opacity: .4; font-weight: 400; }
.nav-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin-bottom: .4rem; }
.site-footer a { color: var(--gold-d); font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.flash {
  max-width: var(--max);
  margin: 1rem auto;
  padding: .85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .95rem;
}
.flash-success { background: #e8f0e9; color: #2d5a33; }
.flash-error   { background: #f8e8e6; color: #8b3a35; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-actions .btn-outline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
