/* ============================================================
   KUNWAR MOHINDER SINGH SAHAR — TRUST WEBSITE
   Design System: H E R I T A G E  —  Deep Maroon · Cream · Gold

   A sophisticated literary palette drawn from:
   Silk & velvet        →  deep maroon   (#5a1a22)
   Antique leather      →  wine          (#7a232d)
   Aged parchment       →  warm cream    (#fbf6ed)
   Gilded edge          →  antique gold  (#b8872e)

   Premium, gallery-like — generous whitespace, subtle shadows,
   Playfair Display serif system honours an eminent literary figure.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Light / Content surfaces — warm cream & parchment */
  --ivory:          #fbf6ed;
  --cream-bg:       #f7efe0;
  --parchment:      #f3e6cf;
  --parchment-deep: #ead4ae;

  /* Dark / Drama surfaces — heritage maroons */
  --maroon:         #5a1a22;   /* deepest wine                  */
  --maroon-2:       #6e1f28;   /* slightly lifted               */
  --maroon-3:       #7a232d;   /* card surface on dark          */
  --maroon-4:       #8a2935;   /* warm depth for gradients      */

  /* Legacy aliases — many templates reference predawn tokens    */
  --predawn:        var(--maroon);
  --predawn-2:      var(--maroon-2);
  --predawn-3:      var(--maroon-3);

  /* Accents — antique gold sequence */
  --gold:           #b8872e;   /* primary antique gold          */
  --gold-lt:        #d4a54a;   /* brighter gold on dark bg      */
  --gold-pale:      #eac97f;   /* pale gold highlight           */
  --gold-soft:      #f1dcae;   /* ivory-gold wash               */

  /* Secondary accent — dusty rose retained for variety         */
  --rose:           #994048;   /* muted heritage rose           */
  --rose-lt:        #b75a63;   /* lighter rose on dark bg       */
  --rose-pale:      #e7c6c5;   /* very pale rose                */

  /* Gradients */
  --grad-heritage:  linear-gradient(135deg, #4a1419 0%, #5a1a22 40%, #7a232d 80%, #b8872e 100%);
  --grad-maroon:    linear-gradient(to bottom, #4a1419, #5a1a22 55%, #6e1f28 100%);
  --grad-gold:      linear-gradient(90deg, transparent, var(--gold), transparent);
  --grad-gold-rich: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-lt) 50%, var(--gold) 70%, transparent);
  --grad-rose:      linear-gradient(90deg, transparent, var(--rose), transparent);
  --grad-dawn:      var(--grad-heritage);   /* legacy alias      */
  --grad-sunrise:   var(--grad-heritage);   /* legacy alias      */

  /* Text — light backgrounds */
  --ink:            #2a1411;   /* deep warm near-black          */
  --ink-2:          #5a2a20;   /* warm dark brown               */
  --ink-3:          #8b5f48;   /* warm muted tan                */

  /* Text — dark backgrounds */
  --cream:          #faefd9;   /* warm cream                    */
  --cream-2:        #e6c98b;   /* secondary on dark             */
  --cream-3:        #a68452;   /* muted on dark                 */

  /* Borders */
  --border-light:   rgba(184, 135, 46, 0.22);
  --border-gold:    rgba(184, 135, 46, 0.45);
  --border-subtle:  rgba(90, 26, 34, 0.10);
  --border-dark:    rgba(234, 201, 127, 0.22);

  /* Shadows — subtle, gallery-premium */
  --shadow-xs:      0 1px 2px rgba(42, 20, 17, 0.04);
  --shadow-sm:      0 4px 14px rgba(42, 20, 17, 0.07);
  --shadow-md:      0 12px 36px rgba(42, 20, 17, 0.10);
  --shadow-lg:      0 24px 64px rgba(42, 20, 17, 0.14);
  --shadow-gold:    0 12px 32px rgba(184, 135, 46, 0.18);

  /* Typography — Playfair Display led serif system */
  --font-display:   'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif:     'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:      'Libre Baskerville', 'Playfair Display', Georgia, serif;
  --font-urdu:      'Noto Nastaliq Urdu', serif;

  /* Layout — generous whitespace */
  --max-width:      1280px;
  --gap:            120px;
  --gap-sm:         72px;

  /* Motion */
  --ease:           0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:      0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fine parchment grain */
body::before {
  content: '';
  position: fixed; 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.55;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500; line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--ink-2); font-size: 1rem; line-height: 1.9; }

/* Urdu typography */
.urdu {
  font-family: var(--font-urdu); direction: rtl;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 2.4; color: var(--ink);
}
.urdu-sm {
  font-family: var(--font-urdu); direction: rtl;
  font-size: 1.2rem; line-height: 2.1; color: var(--ink);
}

/* Labels — small-caps tracking */
.label {
  font-size: 0.68rem; letter-spacing: 0.28em;
  text-transform: uppercase; font-family: var(--font-body);
  color: var(--gold);
  font-weight: 700;
}
.label-rose { color: var(--rose); }

/* Dividers */
.divider        { width: 60px; height: 1px; background: var(--gold); margin: 1.5rem 0; }
.divider-center { margin: 1.5rem auto; }
.divider-rose   { background: var(--rose); }
.divider-full   { width: 100%; height: 1px; background: var(--grad-gold); margin: 0; }

/* Ornament divider — subtle gilded separator */
.divider-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 1.6rem auto; max-width: 240px;
}
.divider-ornament::before,
.divider-ornament::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider-ornament::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.divider-ornament span {
  color: var(--gold); font-size: 0.8rem; letter-spacing: 0.3em;
}

/* ─── Dark section base ──────────────────────────────────────── */
.dark {
  background: var(--maroon);
  position: relative;
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--cream); }
.dark p         { color: var(--cream-2); }
.dark .urdu     { color: var(--cream); }
.dark .urdu-sm  { color: var(--cream); }
.dark .label    { color: var(--gold-lt); }
.dark .divider  { background: var(--gold-lt); }
.dark .section-heading p { color: var(--cream-2); }

/* ─── Layout ─────────────────────────────────────────────────── */
.container    { max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 2.5rem; }
.container-xs { max-width: 640px; margin: 0 auto; padding: 0 2.5rem; }

section { padding: var(--gap) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.15rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--ease), border var(--ease), box-shadow var(--ease), padding var(--ease);
}
.nav-inner {
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
}

/* On dark hero — transparent with light text */
.nav-on-dark .nav-logo        { color: var(--cream); }
.nav-on-dark .nav-logo em     { color: var(--gold-lt); font-style: normal; }
.nav-on-dark .nav-logo-primary { color: var(--cream); }
.nav-on-dark .nav-logo-sub    { color: var(--gold-lt); }
.nav-on-dark .nav-links a     { color: rgba(250, 239, 217, 0.75); }
.nav-on-dark .nav-links a:hover,
.nav-on-dark .nav-links a.active { color: var(--gold-lt); }
.nav-on-dark .nav-toggle span { background: var(--cream); }

/* Scrolled — warm ivory background */
.nav.scrolled {
  background: rgba(251, 246, 237, 0.97);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 2.5rem;
}
.nav.scrolled .nav-logo         { color: var(--maroon); }
.nav.scrolled .nav-logo em      { color: var(--gold); font-style: normal; }
.nav.scrolled .nav-logo-primary { color: var(--maroon); }
.nav.scrolled .nav-logo-sub     { color: var(--gold); }
.nav.scrolled .nav-links a      { color: var(--ink-2); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--gold); }
.nav.scrolled .nav-toggle span  { background: var(--ink); }

.nav-logo {
  font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: 0.03em; color: var(--ink);
  display: inline-flex; flex-direction: column; line-height: 1.15;
}
.nav-logo em { color: var(--gold); font-style: normal; }
.nav-logo-primary {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; letter-spacing: 0.04em; color: var(--maroon);
}
.nav-logo-sub {
  font-family: var(--font-body); font-style: italic;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-top: 2px;
}

/* Image logo — swaps based on nav background */
.nav-logo-img { display: inline-flex; align-items: center; line-height: 0; }
.nav-logo-image { height: 54px; width: auto; display: block; transition: opacity var(--ease); }
.nav-logo-image-light { display: none; }
.nav-logo-image-dark  { display: block; filter: brightness(0) invert(1); opacity: 0.95; }
.nav.scrolled .nav-logo-image-dark  { display: none; }
.nav.scrolled .nav-logo-image-light { display: block; }
@media (max-width: 720px) {
  .nav-logo-image { height: 40px; }
}

/* Footer logo — always on dark maroon footer */
.footer-logo { display: inline-flex; line-height: 0; margin-bottom: 0.6rem; }
.footer-logo img { height: 72px; width: auto; display: block; opacity: 0.95; }

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
  transition: color var(--ease); font-family: var(--font-body);
  padding: 0.4rem 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* ─── Dropdown Nav ───────────────────────────────────────────── */
.nav-links li { position: relative; list-style: none; }
.nav-links > li > a { white-space: nowrap; }

/* Caret indicator for items with dropdowns */
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  opacity: 0.55;
  vertical-align: middle;
  transition: transform var(--ease);
}
.has-dropdown:hover > a::after { transform: rotate(225deg) translateY(-2px); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(251, 246, 237, 0.98);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  margin-top: 14px;              /* visual gap below parent */
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(18px);
  list-style: none;
  z-index: 200;
  border-radius: 2px;
}
/* Invisible bridge so the gap between parent link and menu doesn't break hover */
.dropdown::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0; right: 0;
  height: 18px;
  pointer-events: auto;          /* remains hit-testable even when parent dropdown is pointer-events:none */
}
/* Extend the hover zone of parent items so hover survives the gap */
.nav-links .has-dropdown { padding-bottom: 6px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-transform: none;            /* Sentence case items */
  color: var(--ink-2) !important;
  transition: color var(--ease), background var(--ease), padding var(--ease);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
}
.dropdown li a:hover,
.dropdown li a.active {
  color: var(--maroon) !important;
  background: rgba(184, 135, 46, 0.10);
  padding-left: 1.8rem;
}
.dropdown li + li { border-top: 1px solid var(--border-subtle); }

/* Dropdown in dark-hero nav */
.nav-on-dark .dropdown {
  background: rgba(90, 26, 34, 0.97);
  border-color: rgba(212, 165, 74, 0.28);
  border-top-color: var(--gold-lt);
}
.nav-on-dark .dropdown li a { color: var(--cream-2) !important; }
.nav-on-dark .dropdown li a:hover,
.nav-on-dark .dropdown li a.active {
  color: var(--gold-lt) !important;
  background: rgba(212, 165, 74, 0.10);
}
.nav-on-dark .dropdown li + li { border-top-color: rgba(212, 165, 74, 0.14); }

/* Mobile — sub-items shown below parent */
.nav-mobile .dropdown-mobile { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.nav-mobile .dropdown-mobile a { font-size: 1.1rem; color: var(--cream-3); }
.nav-mobile .dropdown-mobile a:hover { color: var(--gold-lt); }
.nav-mobile-parent { font-family: var(--font-display); font-size: 1.8rem; color: var(--cream-2); }

/* Sub-page breadcrumb */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--gold-lt); text-decoration: none; }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb .sep { opacity: 0.4; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--ink); transition: var(--ease);
}

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed; inset: 0;
  background: var(--maroon); z-index: 99;
  flex-direction: column; align-items: stretch; justify-content: flex-start;
  padding: 5rem 0 2rem;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile-list {
  list-style: none; margin: 0 auto; padding: 0;
  width: 100%; max-width: 520px;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.nav-mobile-list > li {
  padding: 0 2rem; text-align: center;
  border-bottom: 1px solid rgba(212, 165, 74, 0.12);
}
.nav-mobile-list > li:last-child { border-bottom: none; }
.nav-mobile-list > li > a {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--cream); transition: color var(--ease);
  display: block; padding: 1rem 0;
}
.nav-mobile-list > li > a:hover { color: var(--gold-lt); }
.nav-mobile-sub {
  list-style: none; margin: 0 0 1rem; padding: 0 0 0.4rem;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.nav-mobile-sub a {
  font-family: var(--font-display); font-size: 0.98rem;
  color: var(--cream-2); display: block; padding: 0.45rem 0;
  transition: color var(--ease);
}
.nav-mobile-sub a:hover { color: var(--gold-lt); }
.nav-mobile a {
  font-family: var(--font-display);
  color: var(--cream-2); transition: color var(--ease);
}
.nav-mobile a:hover { color: var(--gold-lt); }
.nav-mobile-close,
.nav-close {
  position: fixed; top: 1.5rem; right: 2rem; z-index: 2;
  background: none; border: none; color: var(--cream-2);
  font-size: 2rem; cursor: pointer;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.85rem 2.2rem;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 700;
  cursor: pointer; transition: all var(--ease);
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  border-radius: 1px;
}
.btn:hover {
  background: var(--gold); color: var(--ivory);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--maroon); color: var(--cream);
  border-color: var(--maroon);
}
.btn-primary:hover {
  background: var(--maroon-2); color: var(--gold-pale);
  box-shadow: var(--shadow-md);
  border-color: var(--maroon-2);
}

.btn-gold {
  background: var(--gold); color: var(--ivory);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); box-shadow: var(--shadow-gold); }

.btn-rose {
  border-color: var(--rose); color: var(--rose);
}
.btn-rose:hover { background: var(--rose); color: var(--ivory); }

.btn-ghost {
  border-color: var(--border-subtle); color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

/* Buttons on dark */
.dark .btn       { border-color: var(--gold-lt); color: var(--gold-lt); }
.dark .btn:hover { background: var(--gold-lt); color: var(--maroon); box-shadow: var(--shadow-gold); }
.dark .btn-ghost { border-color: rgba(250, 239, 217, 0.22); color: var(--cream-2); }
.dark .btn-ghost:hover { border-color: var(--gold-lt); color: var(--gold-lt); background: transparent; }

/* ─── Section Headings ───────────────────────────────────────── */
.section-heading { text-align: center; margin-bottom: 4.5rem; }
.section-heading h2 { margin-bottom: 1rem; }
.section-heading p  { max-width: 580px; margin: 0 auto; }

/* ─── Cards — gallery-premium ────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
  transition: border var(--ease), transform var(--ease), box-shadow var(--ease);
  position: relative;
  border-radius: 2px;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--ease);
}
.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }

.dark .card {
  background: var(--maroon-2);
  border-color: var(--border-dark);
  box-shadow: none;
}
.dark .card:hover { background: var(--maroon-3); box-shadow: var(--shadow-lg); }
.dark .card h3, .dark .card h4 { color: var(--cream); }
.dark .card p { color: var(--cream-2); }

/* ─── Sher Card ───────────────────────────────────────────────── */
.sher-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
  position: relative;
  border-radius: 2px;
}
.sher-card:hover {
  border-color: var(--border-gold);
  border-left-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.sher-urdu { margin-bottom: 1.2rem; }
.sher-translation {
  font-style: italic; color: var(--ink-2); font-size: 0.95rem;
  border-left: 2px solid var(--parchment-deep);
  padding-left: 1rem; margin-bottom: 1.2rem; line-height: 1.8;
  font-family: var(--font-display);
}
.sher-meta { display: flex; align-items: center; justify-content: space-between; }
.sher-share {
  background: none; border: 1px solid var(--border-subtle);
  color: var(--ink-3); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.4rem 0.95rem; cursor: pointer;
  transition: all var(--ease); font-family: var(--font-body);
}
.sher-share:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Page Header ─────────────────────────────────────────────── */
.page-header {
  padding: 180px 0 100px; text-align: center;
  position: relative; overflow: hidden;
  background: var(--maroon);
}
/* Heritage gradient overlay */
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(184, 135, 46, 0.22) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(153, 64, 72, 0.18) 0%, transparent 55%);
}
/* Gold accent line at bottom */
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--grad-gold-rich);
}
.page-header h1 { color: var(--cream); position: relative; }
.page-header p  { color: var(--cream-2); max-width: 620px; margin: 1.2rem auto 0; position: relative; }
.page-header .label { position: relative; color: var(--gold-lt); }

/* ─── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border-light);
  margin-bottom: 3rem;
}
.tab-btn {
  padding: 0.95rem 2rem; font-size: 0.76rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-family: var(--font-body);
  background: none; border: none; cursor: pointer;
  color: var(--ink-3); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--ease);
}
.tab-btn:hover { color: var(--gold); }
.tab-btn.active {
  color: var(--maroon); border-bottom-color: var(--gold);
  font-weight: 700;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.4s ease; }

/* ─── Fade-in / Animations ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--maroon);
  padding: 5.5rem 0 2.5rem;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--grad-gold-rich);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3.5rem;
}
.footer-brand .nav-logo    { color: var(--cream); font-size: 1.25rem; }
.footer-brand .nav-logo em { color: var(--gold-lt); }
.footer-brand p { color: var(--cream-2); font-size: 0.92rem; line-height: 1.8; margin-top: 1rem; }
.footer-col h4 {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 1.3rem;
  font-family: var(--font-body); font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a  { color: var(--cream-2); font-size: 0.92rem; transition: color var(--ease); font-family: var(--font-display); }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(212, 165, 74, 0.18);
  padding-top: 1.8rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--cream-3);
}
.footer-tagline { font-family: var(--font-urdu); color: var(--gold-lt); font-size: 1.05rem; }

/* ─── Timeline ───────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--border-gold);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; padding-left: 1rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.7rem; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year { color: var(--gold); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.35rem; font-weight: 700; }
.dark .timeline::before { background: rgba(212, 165, 74, 0.3); }
.dark .timeline-item::before { border-color: var(--maroon); background: var(--gold-lt); box-shadow: 0 0 0 2px var(--gold-lt); }

/* ─── Audio player ───────────────────────────────────────────── */
.audio-player { background: #fff; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); border-radius: 2px; }
.audio-track {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle); cursor: pointer; transition: background var(--ease);
}
.audio-track:last-child { border-bottom: none; }
.audio-track:hover { background: var(--parchment); }
.audio-track.playing { background: var(--cream-bg); }
.audio-num  { font-size: 0.85rem; color: var(--ink-3); width: 1.5rem; text-align: center; }
.audio-track.playing .audio-num::before { content: '▶'; color: var(--gold); }
.audio-info { flex: 1; }
.audio-title { font-size: 1rem; color: var(--ink); margin-bottom: 0.2rem; font-family: var(--font-display); font-weight: 500; }
.audio-sub   { font-size: 0.82rem; color: var(--ink-3); }
.audio-dur   { font-size: 0.82rem; color: var(--ink-3); font-family: monospace; }

/* ─── Gallery ────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.gallery-item.portrait { aspect-ratio: 3/4; }
.gallery-item {
  aspect-ratio: 1; background: var(--parchment);
  border: 1px solid var(--border-subtle); overflow: hidden;
  cursor: pointer; position: relative;
  transition: box-shadow var(--ease), transform var(--ease);
  border-radius: 2px;
}
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gallery-item img   { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease-slow); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 0.85rem; text-align: center; padding: 1rem;
  font-family: var(--font-display); font-style: italic;
}
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42, 20, 17, 0.92), transparent 55%);
  display: flex; align-items: flex-end; padding: 1.2rem;
  opacity: 0; transition: opacity var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { font-size: 0.85rem; color: var(--cream); line-height: 1.5; font-family: var(--font-display); }

/* ─── Video embed ────────────────────────────────────────────── */
.video-wrap {
  width: 100%; aspect-ratio: 16/9;
  background: var(--maroon-2); border: 1px solid var(--border-subtle);
  overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
  border-radius: 2px;
}
.video-wrap iframe { width: 100%; height: 100%; border: none; }
.video-thumb {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-direction: column; gap: 1rem;
}
.video-play-btn {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--ivory); transition: all var(--ease);
  box-shadow: var(--shadow-gold);
}
.video-thumb:hover .video-play-btn { transform: scale(1.1); background: var(--gold-lt); }

/* ─── Form ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem;
  font-family: var(--font-body); font-weight: 700;
}
.dark .form-group label { color: var(--gold-lt); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: #fff; border: 1px solid var(--border-subtle);
  padding: 0.95rem 1.2rem; color: var(--ink);
  font-family: var(--font-display); font-size: 1rem;
  outline: none; transition: border var(--ease), box-shadow var(--ease); appearance: none;
  border-radius: 2px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 135, 46, 0.12);
}
.form-group textarea { height: 150px; resize: vertical; }

/* Select — sentence-case dropdown options */
.form-group select {
  text-transform: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8872e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 2.6rem;
}
.form-group select option {
  text-transform: none;
  font-family: var(--font-display);
  color: var(--ink);
  padding: 0.5rem;
}

/* ─── Modal ───────────────────────────────────────────────────── */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(42, 20, 17, 0.88); z-index: 200;
  align-items: center; justify-content: center; padding: 2rem;
  backdrop-filter: blur(10px);
}
.modal.open { display: flex; }
.modal-box {
  background: var(--ivory); border: 1px solid var(--border-light);
  max-width: 680px; width: 100%; padding: 3rem;
  position: relative; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border-radius: 2px;
}
.modal-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; color: var(--ink-3);
  font-size: 1.5rem; cursor: pointer; transition: color var(--ease);
}
.modal-close:hover { color: var(--gold); }

/* ─── Carousel dots ──────────────────────────────────────────── */
.dot-nav { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2rem; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cream-3); cursor: pointer;
  transition: background var(--ease), transform var(--ease); border: none;
  padding: 0;
}
.dark .dot  { background: var(--cream-3); }
.dot.active { background: var(--gold-lt); transform: scale(1.25); }

/* ─── Testimonial slider ─────────────────────────────────────── */
.testimonial-slider { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-slide  { display: none; }
.testimonial-slide.active { display: block; animation: fadeUp 0.5s ease; }
.testimonial-slide blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.3rem; color: var(--ink); line-height: 1.9; margin-bottom: 1.5rem;
  font-weight: 400;
}
.testimonial-slide cite {
  font-style: normal; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  font-weight: 700;
}

/* ─── Press logos ────────────────────────────────────────────── */
.press-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.press-item {
  background: #fff; border: 1px solid var(--border-subtle);
  padding: 1.5rem; display: flex; align-items: center; justify-content: center;
  min-height: 80px; text-align: center; color: var(--ink-3); font-size: 0.92rem;
  transition: border var(--ease), box-shadow var(--ease);
  font-family: var(--font-display);
  border-radius: 2px;
}
.press-item:hover { border-color: var(--border-gold); box-shadow: var(--shadow-sm); }

/* ─── Sher carousel ──────────────────────────────────────────── */
.sher-slide       { display: none; text-align: center; max-width: 720px; margin: 0 auto; }
.sher-slide.active { display: block; animation: fadeUp 0.6s ease; }

/* ─── AI Ghazal experience ───────────────────────────────────── */
.ghazal-experience {
  background: var(--maroon-2); padding: 4rem;
  text-align: center; position: relative; overflow: hidden;
  border-radius: 2px;
}
.ghazal-experience::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(184, 135, 46, 0.12) 0%, transparent 65%);
}
.ghazal-play {
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid var(--gold-lt); background: transparent;
  color: var(--gold-lt); font-size: 1.8rem; cursor: pointer;
  margin: 2rem auto;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease); position: relative;
}
.ghazal-play:hover { background: rgba(212, 165, 74, 0.14); transform: scale(1.08); box-shadow: var(--shadow-gold); }

/* ─── Filter bar — used on gallery & selected shers ───────── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center; align-items: center;
  padding-bottom: 0.5rem;
}
.filter-btn {
  padding: 0.55rem 1.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--ease);
  border-radius: 1px;
}
.filter-btn:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}
.filter-btn.active {
  color: var(--ivory);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

/* ─── Ornamental frame — used around featured content ─────── */
.ornament-frame {
  border: 1px solid var(--border-gold);
  padding: 3rem 2.5rem;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.ornament-frame::before,
.ornament-frame::after {
  content: ''; position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold);
}
.ornament-frame::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.ornament-frame::after  { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.dark .ornament-frame   { background: var(--maroon-2); border-color: var(--border-dark); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .press-grid    { grid-template-columns: repeat(2, 1fr); }
  .nav-links     { gap: 1.2rem; }
}
@media (max-width: 768px) {
  :root { --gap: 72px; --gap-sm: 48px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .tabs { overflow-x: auto; }
  .tab-btn { white-space: nowrap; }
  .card    { padding: 1.8rem; }
  .page-header { padding: 140px 0 72px; }
  .ghazal-experience { padding: 2.5rem 1.5rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid   { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
}
