/* =====================================================================
   MODERN = Classic ka "gehra" roop
   Wahi DNA: haath se likhe notes, brush strokes, scribble, Manrope/Inter,
   Caveat/Kalam. Fark: hero gehre rang (ink) me, photo baayein, brush aur
   highlights party ke rang me, jagahon ki patti party ke rang me,
   andar ke pages ka header bhi gehra.
   ===================================================================== */

/* ---------- HERO: gehra, photo baayein ----------
   Rang: --hero-base (admin → Sites → Banner se, header me :root par set hota hai)
   Texture: body par tex-khadi / tex-paper / tex-dots / tex-jaali / tex-lines / tex-none */
.theme-modern .hero, .theme-modern .page-hero {
  background-color: var(--hero-base, color-mix(in oklab, var(--green) 34%, #0C1210)); color: #DCE3EC;
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(0,0,0,.32), transparent 60%);
}
.theme-modern .hero-grain { opacity: 1; mix-blend-mode: normal; background: none; }
.theme-modern .hero-grain::before, .theme-modern .hero-grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.theme-modern .hero-grain::before { background-image: var(--tex-bg, none); background-size: var(--tex-size, auto); -webkit-mask-image: var(--tex-mask, none); mask-image: var(--tex-mask, none); }
.theme-modern .hero-grain::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: var(--grain, .5); }
.tex-khadi { --tex-bg: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(0,0,0,.11) 0 1px, transparent 1px 5px); }
.tex-paper { --grain: .9; }
.tex-dots  { --tex-bg: radial-gradient(rgba(255,255,255,.11) 1.1px, transparent 1.7px); --tex-size: 10px 10px; --tex-mask: linear-gradient(115deg, transparent 30%, #000 85%); --grain: .35; }
.tex-jaali { --tex-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1'%3E%3Cpath d='M14 0L28 14L14 28L0 14Z'/%3E%3Ccircle cx='14' cy='14' r='2' fill='%23ffffff' fill-opacity='.06' stroke='none'/%3E%3C/svg%3E"); --tex-size: 28px 28px; --tex-mask: radial-gradient(90% 120% at 100% 50%, #000 20%, transparent 80%); --grain: .35; }
.tex-lines { --tex-bg: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 10px); --grain: .35; }
.tex-none  { --grain: 0; }
/* photo ke peeche garam roshni */
.theme-modern .hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 440px at 24% 58%, color-mix(in srgb, var(--saffron) 26%, transparent), transparent 70%); }
/* kone me haath se kheenchi lehardaar lines (admin se band ho sakti hain) */
.theme-modern .hero-bg::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M520 40c-90 10-160 60-190 140s-20 170-110 210S40 420 0 520'/%3E%3Cpath d='M520 90c-80 12-140 56-166 128s-26 160-108 196S70 446 30 520'/%3E%3Cpath d='M520 140c-70 14-120 52-142 116s-32 150-106 182S100 472 60 520'/%3E%3Cpath d='M520 190c-60 16-100 48-118 104s-38 140-104 168S130 498 90 520'/%3E%3Cpath d='M520 240c-50 18-80 44-94 92s-44 130-102 154'/%3E%3C/svg%3E") right -60px top -40px / 520px no-repeat; }
.no-curves .hero-bg::before { display: none; }
.theme-modern .hero-grid { grid-template-columns: .92fr 1.08fr; }
.theme-modern .hero-visual { order: -1; }
.theme-modern .hero-title { color: #fff; }
.theme-modern .hero-sub { color: #AEB9C7; }
.theme-modern .hero-sub strong { color: #fff; }
.theme-modern .hero-lead { color: #C9D3DF; }
.theme-modern .greet { color: color-mix(in srgb, var(--saffron) 70%, #fff); }
.theme-modern .scribble path { stroke: var(--saffron); }
.theme-modern .scribble path + path { stroke: color-mix(in srgb, var(--green) 70%, #fff); }
.theme-modern .hero .btn-outline { --fg: #fff; border-color: rgba(255,255,255,.35); }
.theme-modern .hero .btn-outline:hover { --bg: #fff; --fg: var(--ink); border-color: #fff; }
/* photo ke peeche ki brush patti Modern me nahi */
.theme-modern .hero .brush { display: none; }
/* photo: halke kaagaz ke card par (jaise chhapi hui photo), brush piche */
.theme-modern .portrait-stage::before { content: ""; position: absolute; inset: 6% -3% -2% -3%; background: #F4EEE1; border-radius: 28px; transform: rotate(-2deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.theme-modern .portrait-stage picture { position: relative; }
.theme-modern .portrait { filter: none; }
/* notes: card ke bahar safed, card ke andar gehri likhaawat */
.theme-modern .note .hand { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--saffron) 45%, transparent) 60%); }
.theme-modern .note-2 { right: auto; left: -14%; top: -5%; transform: rotate(-5deg); color: #fff; }
.theme-modern .note-2 .note-arrow path { stroke: #fff; }
.theme-modern .note-1 { left: 10%; bottom: 8%; transform: rotate(-4deg); color: var(--ink); }
.theme-modern .note-1 .note-arrow { display: none; }

/* ---------- jagahon ki patti: party ke rang me ---------- */
.theme-modern .marquee { background: var(--saffron); border-color: var(--saffron); }
.theme-modern .marquee span { color: #fff; }
.theme-modern .marquee i { color: rgba(255,255,255,.75); }

/* ---------- andar ke pages: gehra header ---------- */
.theme-modern .page-hero h1, .theme-modern .page-hero .display-xl { color: #fff; }
.theme-modern .page-hero .lead { color: #AEB9C7; }
.theme-modern .page-hero .crumbs ol { color: #8B98A9; }
.theme-modern .page-hero .crumbs a { color: #DCE3EC; }
.theme-modern .page-hero .eyebrow { color: color-mix(in srgb, var(--saffron) 70%, #fff); }
.theme-modern .page-hero-arc .arc-s { stroke: color-mix(in srgb, var(--saffron) 70%, transparent); }
.theme-modern .page-hero-arc .arc-g { stroke: color-mix(in srgb, var(--green) 55%, #fff); }

/* ---------- chhote badlav ---------- */
.theme-modern .eyebrow .dot { background: var(--saffron); box-shadow: 0 0 0 4px color-mix(in srgb, var(--saffron) 20%, transparent); }
.theme-modern .bento-card.b1 { background: color-mix(in srgb, var(--saffron) 12%, var(--ink)); }

@media (max-width: 900px) {
  .theme-modern .hero-grid { grid-template-columns: 1fr; }
  .theme-modern .note-2 { left: -2%; top: 0; }
  .theme-modern .note-1 { left: 10%; bottom: 8%; }
}
