/* ==========================================================================
   Akbari Fort & Museum — Rajasthani Classical Theme
   Minimal royal: ivory, maroon, gold
   ========================================================================== */

:root {
  --ink: #2a2118;
  --ink-soft: #4d4234;
  --maroon: #8a1f2d;
  --maroon-deep: #5c111c;
  --maroon-dark: #470d16;
  --gold: #b08d2f;
  --gold-soft: #d8b45a;
  --gold-pale: #e8d9ae;
  --cream: #faf5ea;
  --sand: #efe5cf;
  --ivory: #fffdf7;

  --font-display: "Cinzel", serif;
  --font-head: "Cormorant Garamond", serif;
  --font-body: "Jost", sans-serif;

  --shadow-soft: 0 18px 50px rgba(60, 30, 10, 0.10);
  --shadow-card: 0 10px 34px rgba(60, 30, 10, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23b08d2f' stroke-opacity='0.11'%3E%3Cpath d='M42 6v72M6 42h72'/%3E%3Ccircle cx='42' cy='42' r='22'/%3E%3Cpath d='M20 20l44 44M64 20L20 64'/%3E%3Ccircle cx='42' cy='42' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --arch-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='18' viewBox='0 0 44 18'%3E%3Cpath d='M4 18V10a7 7 0 0 1 14 0 7 7 0 0 1 14 0 7 7 0 0 1 14 0v8' fill='none' stroke='%23b08d2f' stroke-width='1.5'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--gold); color: var(--ivory); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--maroon); border-radius: 8px; }

/* ---------- Utility ---------- */
.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }

.section-head.center { text-align: center; max-width: 720px; margin: 0 auto clamp(46px, 6vw, 72px); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0.55em 0 0.7em;
}

.section-title.light { color: var(--ivory); }

.title-ornament {
  width: 168px; height: 12px;
  margin: 0.2em 0 1.1em;
  background-image: var(--arch-strip);
  background-repeat: repeat-x;
  background-size: 44px 12px;
  opacity: 0.9;
}
.section-head.center .title-ornament { margin-inline: auto; }
.title-ornament.light { filter: brightness(0) invert(1); opacity: 0.75; }

.section-lead {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-style: italic;
  color: var(--ink-soft);
}

/* ==========================================================================
   Royal top strip + Preloader
   ========================================================================== */
.royal-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 5px;
  background:
    linear-gradient(90deg, var(--maroon) 0 25%, var(--gold) 25% 50%, var(--maroon) 50% 75%, var(--gold) 75% 100%);
  background-size: 24px 5px;
}

#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--maroon-deep);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.pre-inner { text-align: center; }
.pre-mandala { animation: spin 4.5s linear infinite; margin-inline: auto; }
.pre-text {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  color: var(--gold-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-top: 20px;
}
.pre-bar {
  width: 150px; height: 2px; margin: 16px auto 0;
  background: rgba(216, 180, 90, 0.22); overflow: hidden;
}
.pre-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--gold-soft);
  animation: prebar 1.3s var(--ease) infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes prebar { 0% { transform: translateX(-110%); } 100% { transform: translateX(380%); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 5px; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 253, 247, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(176, 141, 47, 0.25), 0 12px 30px rgba(60, 30, 10, 0.06);
}
.site-header.scrolled .nav-wrap { padding-block: 12px; }

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 20px;
  transition: padding 0.4s var(--ease);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); }
.site-header.scrolled .brand { color: var(--ink); }
.brand-fort { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}
.brand-text small {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  margin-top: 2px;
}
.site-header.scrolled .brand-text small { color: var(--gold); }

.site-nav ul { display: flex; gap: clamp(18px, 2.6vw, 34px); }
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 253, 247, 0.85);
  padding: 8px 2px;
  position: relative;
  transition: color 0.3s;
}
.site-header.scrolled .site-nav a { color: var(--ink-soft); }
.site-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-soft); }
.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a.active { color: var(--gold); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 8px; z-index: 55;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--ivory);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: var(--ivory);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 30%;
  transform: scale(1.08);
  animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1.08); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(71, 13, 22, 0.15) 0%, rgba(47, 9, 16, 0.55) 55%, rgba(28, 5, 9, 0.82) 100%);
}

.hero-content { padding-top: 90px; max-width: 820px; }
.hero-eyebrow {
  color: var(--gold-soft);
  font-size: 0.72rem;
  display: inline-block;
  padding-bottom: 14px;
  position: relative;
}
.hero-eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 60px; height: 1px; background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  margin: 22px 0 18px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
.hero-ornament {
  width: 190px; height: 12px;
  background-image: var(--arch-strip);
  background-repeat: repeat-x;
  background-size: 44px 12px;
  opacity: 0.85;
  margin-bottom: 22px;
}
.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  max-width: 620px;
  color: rgba(255, 253, 247, 0.9);
  font-style: italic;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px 34px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--maroon-dark);
  border-color: var(--gold-soft);
  box-shadow: 0 12px 30px rgba(216, 180, 90, 0.25);
}
.btn-gold:hover { box-shadow: 0 18px 40px rgba(216, 180, 90, 0.4); }
.btn-ghost {
  color: var(--ivory);
  border-color: rgba(216, 180, 90, 0.7);
}
.btn-ghost:hover { background: rgba(216, 180, 90, 0.12); }

.hero-footer {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: min(1180px, 92%);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-cue span {
  font-family: var(--font-display);
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255, 253, 247, 0.75);
}
.cue-line {
  width: 1px; height: 46px; background: rgba(216, 180, 90, 0.6);
  position: relative; overflow: hidden;
}
.cue-line::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%; background: var(--gold-soft);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { top: -50%; } 100% { top: 120%; } }
.hero-coord {
  font-family: var(--font-display);
  font-size: 0.66rem; letter-spacing: 0.24em;
  color: rgba(255, 253, 247, 0.6);
}

/* ==========================================================================
   Overview
   ========================================================================== */
.overview { background: var(--cream); }
.grid-overview {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 96px);
}

.arch-frame {
  position: relative;
  overflow: hidden;
  border-radius: 50% 50% 6px 6px / 22% 22% 6px 6px;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-soft);
}
.arch-frame img {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1.2s var(--ease);
}
.arch-frame:hover img { transform: scale(1.05); }
.overview-media { position: relative; }
.media-badge {
  position: absolute; right: -18px; bottom: 26px;
  background: var(--maroon);
  color: var(--ivory);
  padding: 18px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  z-index: 2;
}
.media-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 600;
  color: var(--gold-soft);
  line-height: 1.1;
}
.media-badge span {
  display: block; margin-top: 4px;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 253, 247, 0.85);
}

.overview-copy p { margin-bottom: 18px; }
.overview-copy .section-title { margin-top: 0.4em; }

.stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 54px);
  margin-top: 36px; padding-top: 30px;
  border-top: 1px solid rgba(176, 141, 47, 0.4);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--maroon);
  line-height: 1;
}
.stat-label {
  display: block; margin-top: 8px;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.purpose-card {
  background: var(--ivory);
  border: 1px solid rgba(176, 141, 47, 0.35);
  padding: 40px 34px;
  text-align: center;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.purpose-card::before {
  content: ""; position: absolute; top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid rgba(176, 141, 47, 0.22);
  pointer-events: none;
}
.purpose-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}
.purpose-icon {
  width: 76px; height: 76px; margin: 0 auto 22px;
  display: grid; place-items: center;
  color: var(--gold);
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
}
.purpose-icon svg { width: 40px; height: 40px; }
.purpose-card h3 {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.purpose-card p { font-size: 0.98rem; }

/* ==========================================================================
   History
   ========================================================================== */
.history {
  background:
    linear-gradient(160deg, rgba(71, 13, 22, 0.96), rgba(47, 9, 16, 0.98)),
    var(--maroon-deep);
  color: rgba(255, 253, 247, 0.85);
}
.jaali-bg {
  position: absolute; inset: 0;
  background-image: var(--jaali);
  opacity: 0.5;
  pointer-events: none;
}
.history .section-lead { color: rgba(255, 253, 247, 0.72); }

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: clamp(30px, 6vw, 70px);
}
.timeline::before {
  content: ""; position: absolute;
  left: clamp(6px, 1.4vw, 10px);
  top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
}

.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute; left: 0; top: 6px;
  width: 22px; height: 22px;
  transform: translateX(calc(-1 * (clamp(30px, 6vw, 70px) - 11px)));
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--maroon-deep);
}
.tl-dot span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-soft);
  transition: transform 0.4s var(--ease);
}
.tl-item:hover .tl-dot span { transform: scale(1.4); }

.tl-card {
  border-left: 1px solid rgba(216, 180, 90, 0.25);
  padding: 2px 0 2px clamp(20px, 3vw, 34px);
}
.tl-year {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.tl-card h3 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 8px;
}
.tl-card p:last-child { font-size: 1.02rem; color: rgba(255, 253, 247, 0.78); }

/* ==========================================================================
   Museum
   ========================================================================== */
.museum { background: var(--cream); }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.collection-card {
  position: relative;
  background: var(--ivory);
  border: 1px solid rgba(176, 141, 47, 0.35);
  padding: 38px 30px 34px 56px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.collection-card:hover {
  transform: translateY(-6px);
  border-color: var(--maroon);
  box-shadow: var(--shadow-card);
}
.cc-index {
  position: absolute; left: 14px; top: 18px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--gold-pale);
  line-height: 1;
  transition: color 0.4s;
}
.collection-card:hover .cc-index { color: var(--gold); }
.collection-card h3 {
  font-family: var(--font-head);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.collection-card p { font-size: 0.97rem; }

.museum-quote {
  max-width: 820px; margin: clamp(50px, 7vw, 84px) auto 0;
  text-align: center;
  padding: 40px clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(176, 141, 47, 0.5);
  border-bottom: 1px solid rgba(176, 141, 47, 0.5);
}
.museum-quote p {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
}
.museum-quote footer {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.curators { max-width: 820px; margin: 60px auto 0; text-align: center; }
.curators-label {
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.curator-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  text-align: left;
}
.curator-list li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px dashed rgba(176, 141, 47, 0.4);
}
.curator-list li::before {
  content: "";
  position: absolute; left: 0; top: 22px;
  width: 10px; height: 10px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.curator-list strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--ink);
  line-height: 1.3;
}
.curator-list li span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==========================================================================
   Galleries
   ========================================================================== */
.galleries {
  background:
    linear-gradient(160deg, rgba(71, 13, 22, 0.97), rgba(38, 8, 13, 0.99)),
    var(--maroon-deep);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 26px;
}
.g-item { position: relative; overflow: hidden; cursor: pointer; }
.g-item img { transition: transform 1.1s var(--ease); }
.g-item:hover img { transform: scale(1.06); }

.g-main { grid-row: span 2; }
.g-main img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

.g-arch { display: block; }
.g-arch .arch-frame { border-radius: 50% 50% 6px 6px / 20% 20% 6px 6px; }
.g-arch .arch-frame img { aspect-ratio: 4 / 4.6; object-fit: cover; }

.g-stamp { background: var(--sand); display: grid; place-items: center; padding: 18px; }
.g-stamp img { max-height: 240px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25)); }

.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 46px 22px 18px;
  background: linear-gradient(transparent, rgba(28, 5, 9, 0.86));
  color: var(--ivory);
}
.g-item .g-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.g-item .g-name { display: block; font-family: var(--font-head); font-size: 1.25rem; }

.gallery-note {
  margin-top: 40px;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 253, 247, 0.82);
}
.gallery-note strong { color: var(--ivory); font-weight: 600; }
.gallery-note em { color: var(--gold-soft); }

/* ==========================================================================
   Visit
   ========================================================================== */
.visit { background: var(--cream); }
.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.visit-card {
  text-align: center;
  background: var(--ivory);
  border: 1px solid rgba(176, 141, 47, 0.35);
  padding: 38px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.visit-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-card); }
.vc-icon {
  display: inline-grid; place-items: center;
  width: 68px; height: 68px;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 20px;
}
.vc-icon svg { width: 34px; height: 34px; }
.visit-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.visit-card p { font-size: 0.96rem; }

.visit-cta {
  margin-top: 64px;
  text-align: center;
  padding: 46px 30px;
  background:
    var(--jaali),
    linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--ivory);
}
.visit-cta p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 26px;
}

/* ---- Visit extras: Google Business + map ---- */
.visit-extra {
  margin-top: 40px;
}
.gb-card {
  text-align: center;
  padding: clamp(44px, 6vw, 60px) clamp(20px, 4vw, 40px);
  background:
    var(--jaali),
    linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--gold);
}
.gb-badge {
  display: inline-block;
  width: 62px; height: 62px;
  line-height: 58px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--maroon);
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 700;
  border: 2px solid var(--gold-soft);
  margin-bottom: 18px;
  text-align: center;
}
.gb-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  color: var(--ivory);
  margin-bottom: 8px;
  line-height: 1.25;
}
.gb-intro {
  font-size: 1rem;
  color: rgba(255, 253, 247, 0.85);
  max-width: 52ch;
  margin: 0 auto;
}
.gb-link {
  display: inline-block;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin: 16px auto 4px;
  border-bottom: 1px dashed rgba(216, 180, 90, 0.6);
  padding-bottom: 4px;
  transition: color 0.3s;
}
.gb-link:hover { color: var(--ivory); }
.gb-link svg { vertical-align: -2px; margin-right: 6px; }
.gb-managed {
  margin: 12px 0 22px;
  color: rgba(255, 253, 247, 0.85);
}
.gb-managed a { color: var(--gold-soft); }
.gb-card .gb-btn {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
  padding: 15px 20px;
  max-width: 100%;
}
.gb-email {
  margin-top: 20px;
  font-size: 0.95rem;
  color: rgba(255, 253, 247, 0.85);
}
.gb-email a { color: var(--gold-soft); font-weight: 500; }
.gb-email .email-js a { color: var(--gold-soft); }

.map-wrap {
  margin-top: 26px;
  position: relative;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--sand);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: saturate(0.85) sepia(0.12) contrast(0.98);
}
.map-open {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 253, 247, 0.95);
  color: var(--maroon);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.map-open:hover { transform: translateY(-2px); background: var(--ivory); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--maroon-dark);
  color: rgba(255, 253, 247, 0.75);
  padding: 56px 0 46px;
}
.footer-ornament {
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--maroon) 0 25%, var(--gold) 25% 50%, var(--maroon) 50% 75%, var(--gold) 75% 100%);
  background-size: 24px 6px;
}
.footer-inner { text-align: center; }
.brand-footer { color: var(--ivory); justify-content: center; margin-bottom: 26px; }
.brand-footer .brand-text small { color: var(--gold-soft); }
.footer-nav ul {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 32px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 253, 247, 0.7);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold-soft); }
.footer-note {
  margin-top: 30px;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--gold-pale);
  letter-spacing: 0.06em;
}
.footer-credit {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 253, 247, 0.45);
  max-width: 640px;
  margin-inline: auto;
}
.footer-copy {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--maroon);
  color: var(--ivory);
  border: 1px solid var(--gold);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.4s, transform 0.4s var(--ease), visibility 0.4s, background 0.3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--maroon-deep); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 5, 8, 0.94);
  display: grid; place-items: center;
  padding: 30px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-close {
  position: absolute; top: 22px; right: 30px;
  font-size: 2.4rem; line-height: 1;
  background: none; border: 0; color: var(--gold-soft);
  cursor: pointer;
}
.lb-body { max-width: 1000px; text-align: center; }
.lb-body img {
  max-width: 100%; max-height: 78vh;
  margin-inline: auto;
  border: 1px solid rgba(216, 180, 90, 0.5);
}
.lb-body figcaption {
  margin-top: 16px;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ivory);
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .grid-overview { grid-template-columns: 1fr; }
  .overview-media { max-width: 460px; margin-inline: auto; }
  .purpose-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-main img { aspect-ratio: 16 / 11; }
  .map-wrap iframe { height: 320px; }
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 78vw);
    background: linear-gradient(160deg, var(--maroon), var(--maroon-dark));
    padding: 110px 40px 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0.5s;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  }
  .site-nav.open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 22px; }
  .site-nav a, .site-header.scrolled .site-nav a { color: rgba(255, 253, 247, 0.9); }
  .site-nav a:hover, .site-nav a.active { color: var(--gold-soft); }
  .nav-toggle { display: flex; }

  .hero-footer { position: absolute; }
  .hero-coord { display: none; }
  .media-badge { right: 10px; }
}

@media (max-width: 600px) {
  .collection-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .stats { gap: 26px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .curator-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}
