/* ============================================
   LenaDena.in — Common Stylesheet
   Premium Indian khata book aesthetic
   ============================================ */

:root {
  --bg: #FAF7F0;
  --bg-cream: #F5EFE0;
  --bg-paper: #FBF6E9;
  --surface: #FFFFFF;
  --ink: #0D1B2A;
  --ink-soft: #4A5568;
  --ink-fade: #8B95A3;
  --line: #E8E0CC;
  --line-strong: #D4C9A8;
  --brand: #0D1B2A;
  --brand-deep: #1A3352;
  --brand-accent: #F4C430;
  --brand-accent-deep: #D4A017;
  --brand-light: #FFF8DC;
  --credit: #C0392B;
  --credit-bg: #FBE9E7;
  --payment: #1B7943;
  --payment-bg: #DCEFE3;
  --amber: #D97706;
  --amber-bg: #FEF3C7;
  --blue: #1E40AF;
  --blue-bg: #DBEAFE;
  --shadow-sm: 0 1px 3px rgba(13,27,42,0.08);
  --shadow-md: 0 4px 16px rgba(13,27,42,0.10);
  --shadow-lg: 0 12px 32px rgba(13,27,42,0.16);
  --shadow-xl: 0 24px 64px rgba(13,27,42,0.20);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --max-width: 1200px;
  --container-pad: clamp(20px, 5vw, 60px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.serif { font-family: 'Fraunces', 'Playfair Display', Georgia, serif; }
.display { font-family: 'Fraunces', serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.handwritten { font-family: 'Kalam', 'Caveat', cursive; }
.mono { font-family: 'JetBrains Mono', monospace; }

h1.display { font-size: clamp(36px, 6vw, 64px); }
h2.display { font-size: clamp(28px, 4.5vw, 48px); }
h3.display { font-size: clamp(22px, 3vw, 32px); }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-accent-deep);
  display: inline-block;
}
.eyebrow.dark { color: var(--brand); }

/* ============================================
   LOGO
   ============================================ */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  position: relative;
  box-shadow: 0 2px 8px rgba(13,27,42,0.2);
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: var(--brand-accent);
  border-radius: 50%;
}
.brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand-text .lena { color: var(--credit); }
.brand-text .dena { color: var(--payment); }
.brand-text .dot { color: var(--brand-accent); }
.brand-text .in {
  color: var(--ink-fade);
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7em;
  letter-spacing: -0.01em;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--container-pad);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  background: var(--brand);
  color: var(--brand-accent);
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 16px; }
  .nav-cta { display: none; }
}

/* ============================================
   CONTAINERS & SECTIONS
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section {
  padding: clamp(60px, 10vh, 120px) var(--container-pad);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-accent);
  box-shadow: 0 4px 14px rgba(13,27,42,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,27,42,0.35); }
.btn-accent {
  background: var(--brand-accent);
  color: var(--brand);
  box-shadow: 0 4px 14px rgba(244,196,48,0.4);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(244,196,48,0.55); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,0.85);
  padding: 60px var(--container-pad) 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text .in { color: rgba(255,255,255,0.5); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  color: var(--brand-accent);
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--brand-accent); }

.footer-ventures-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-venture {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-venture:hover { color: var(--brand-accent); }
.footer-venture .ico {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-bottom strong { color: var(--brand-accent); font-weight: 600; }
.footer-bottom .made {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-credits {
  background: rgba(0,0,0,0.2);
  margin: 30px calc(-1 * var(--container-pad)) -24px;
  padding: 18px var(--container-pad);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.footer-credits a { color: var(--brand-accent); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ============================================
   PAPER TEXTURE BG
   ============================================ */
.paper-bg {
  background-color: var(--bg-paper);
  background-image:
    radial-gradient(at 20% 30%, rgba(244,196,48,0.06) 0, transparent 50%),
    radial-gradient(at 80% 70%, rgba(13,27,42,0.04) 0, transparent 50%);
  position: relative;
}
.paper-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.45 0 0 0 0 0.2 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.paper-bg > * { position: relative; z-index: 1; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-in { animation: fadeIn 0.6s ease forwards; }

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; }
