/* =====================================================================
   Ismail Palace – Homepage (index.html only, loaded after style.css)
   Deep burgundy, warm gold and ivory; restrained, photography-led.
   ===================================================================== */

.page-home {
  --ivory: #FBF8F2;
  --cream: #F4ECDF;
  --burgundy-deep: #3E0B17;
  --gold-text: #7A5C1F;      /* gold that passes AA on ivory/white/cream */
  --gold-soft: #DCC285;      /* gold for dark backgrounds */
  --ink: #2B1D1A;
  --muted: #6B5A52;
  --hairline: rgba(138, 106, 40, 0.22);
  --hairline-solid: #EADFCB;  /* same tone, opaque (for grid gaps over photos) */
  --home-radius: 4px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Shared building blocks ---------- */
.page-home .home-section {
  padding: 96px 0;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.home-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.home-eyebrow-light {
  color: var(--gold-soft);
}

.home-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 18px;
  text-wrap: balance;
}

.home-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.home-section-head .home-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.home-section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.home-section-foot {
  margin-top: 44px;
  text-align: center;
}

.home-section-foot p {
  color: var(--muted);
  margin-bottom: 20px;
}

.home-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--home-radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.home-btn-gold:hover {
  background: #D6B862;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.home-btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.home-btn-outline {
  border-color: var(--maroon);
  color: var(--maroon);
}

.home-btn-outline:hover {
  background: var(--maroon);
  color: var(--white);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  color: var(--maroon);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: gap 0.25s ease, color 0.25s ease;
}

.home-link:hover {
  gap: 14px;
  color: var(--maroon-dark);
}

/* ---------- Header (homepage presentation) ---------- */
.page-home .header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(24, 6, 10, 0.55), rgba(24, 6, 10, 0));
}

.page-home .nav-cta {
  background: var(--gold);
  border-radius: var(--home-radius);
  padding: 11px 20px !important;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .nav-cta:hover {
  background: #D6B862;
  transform: none;
}

.page-home .header.scrolled .nav-cta {
  background: var(--maroon);
  color: var(--white) !important;
}

.page-home .header.scrolled .nav-cta:hover {
  background: var(--maroon-dark);
}

@media (max-width: 1200px) and (min-width: 769px) {
  .page-home .nav-menu { gap: 22px; }
}


/* ---------- Hero ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 0 110px;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.home-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24, 6, 10, 0.62) 0%, rgba(24, 6, 10, 0.5) 45%, rgba(24, 6, 10, 0.8) 100%);
}

.home-hero-content {
  max-width: 900px;
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.home-hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.home-hero h1 {
  margin: 22px auto 22px;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--white);
  text-wrap: balance;
}

.home-hero-lead {
  max-width: 640px;
  margin: 0 auto 38px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.home-scroll-cue {
  position: absolute;
  bottom: 84px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
}

.home-scroll-cue:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .home-scroll-cue .home-icon {
    animation: home-cue 2.4s ease-in-out infinite;
  }
  @keyframes home-cue {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(3px); }
  }
}

/* ---------- Quick venue facts ---------- */
.page-home .home-facts {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  padding: 0;
}

.home-facts-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  overflow: hidden;
  border-top: 2px solid var(--gold);
  border-radius: var(--home-radius);
  background: var(--hairline-solid);
  box-shadow: 0 18px 50px rgba(43, 29, 26, 0.12);
}

.home-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 14px 24px;
  background: var(--white);
  text-align: center;
}

.home-fact-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--maroon);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-fact-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.home-fact-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Introduction ---------- */
.home-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.home-intro-media {
  position: relative;
  isolation: isolate; /* keeps the offset frame above the section background */
  margin: 0;
}

.home-intro-media::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--home-radius);
  z-index: -1;
}

.home-intro-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--home-radius);
}

.home-intro-text p:not(.home-eyebrow) {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Event types ---------- */
.page-home .home-events {
  background: var(--ivory);
}

.home-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-event-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  border-radius: var(--home-radius);
  background: var(--burgundy-deep);
}

.home-event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.home-event-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 6, 10, 0) 38%, rgba(24, 6, 10, 0.88) 100%);
}

.home-event-card:hover img {
  transform: scale(1.04);
}

.home-event-card:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Body fills the card so the heading link can stretch over the whole card */
.home-event-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 24px;
  color: var(--white);
}

.home-event-body h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
}

.home-event-body p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

/* Whole card is clickable through the heading link (one tab stop per card) */
.home-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-card-link:focus-visible {
  outline: none;
}

/* ---------- Venue showcase ---------- */
.page-home .home-showcase {
  background: var(--burgundy-deep);
}

.home-showcase .home-title {
  color: var(--white);
}

.home-showcase .home-eyebrow {
  color: var(--gold-soft);
}

.home-showcase .home-section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.home-showcase-grid.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.home-showcase-grid .gallery-item {
  height: auto;
  border-radius: var(--home-radius);
}

.home-showcase-grid .home-showcase-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.home-showcase-grid .gallery-item::after {
  content: '';
  background: rgba(24, 6, 10, 0.25);
}

.home-showcase-grid .gallery-item:hover img {
  transform: scale(1.04);
}

/* ---------- Services ---------- */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--home-radius);
  background: var(--hairline);
}

.home-service {
  padding: 38px 32px;
  background: var(--white);
}

.home-service-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--maroon);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-service h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

.home-service p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Brand story + (de-emphasised) statistics ---------- */
.page-home .home-story {
  background: var(--cream);
}

.home-story-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 960px;
}

.home-story-mark {
  display: flex;
  justify-content: center;
}

.home-story-mark img {
  width: 168px;
  height: 168px;
  padding: 8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.home-story-text p:not(.home-eyebrow) {
  margin-bottom: 16px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-stats {
  margin-top: 64px;
  padding: 0;
  background: none;
}

.home-stats .counter-grid {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
}

.home-stats .counter-item h3 {
  margin-bottom: 4px;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--maroon);
}

.home-stats .counter-item .stat-text {
  font-size: 1.12rem;
}

.home-stats .counter-item p {
  font-size: 0.78rem;
  opacity: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 1;
}

/* ---------- Testimonials ---------- */
.page-home .home-testimonials {
  background: var(--ivory);
  text-align: center;
}

.page-home .home-testimonials .section-subtitle {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.page-home .home-testimonials .section-title,
.page-home .home-faq .section-title {
  font-weight: 500;
  color: var(--ink);
}

.page-home .section-title::after {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.home-quote-mark {
  display: block;
  height: 56px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 6rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.6;
}

.page-home .testimonial-slide {
  padding: 8px 24px 16px;
}

.page-home .testimonial-quote {
  max-width: 760px;
  margin: 0 auto 22px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .testimonial-quote::before {
  content: none;
}

.page-home .testimonial-author {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.page-home .testimonial-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(138, 106, 40, 0.35);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.page-home .testimonial-dot::after {
  content: '';
  position: absolute;
  inset: -10px;   /* larger touch target, same look */
}

.page-home .testimonial-dot.active {
  width: 26px;
  border-radius: 4px;
  background: var(--gold);
  transform: none;
}

/* ---------- FAQ ---------- */
.page-home .home-faq {
  background: var(--white);
}

.page-home .home-faq .section-subtitle {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.page-home .faq-container {
  max-width: 820px;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}

.page-home .faq-item {
  margin: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.page-home .faq-question {
  padding: 22px 4px;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  gap: 16px;
}

.page-home .faq-question:hover {
  color: var(--maroon);
}

.page-home .faq-question span {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-text);
}

.page-home .faq-answer {
  padding: 0 4px 22px;
}

html.js body.page-home .faq-answer {
  padding: 0 4px;
}

html.js body.page-home .faq-answer.active {
  padding: 0 4px 22px;
}

.page-home .faq-answer p {
  color: var(--muted);
}

/* ---------- Final booking call to action ---------- */
.page-home .home-final {
  padding: 96px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.14), transparent 60%), var(--burgundy-deep);
  text-align: center;
  color: var(--white);
}

.home-final-inner {
  max-width: 760px;
}

.home-final .home-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.home-final .home-title {
  color: var(--white);
}

.home-final-lead {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.home-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.home-final-call {
  margin-top: 26px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.home-final-call a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(220, 194, 133, 0.5);
}

.home-final-call a:hover {
  color: var(--white);
}

/* ---------- Footer (homepage) ---------- */
.page-home .footer {
  border-top: 1px solid var(--gold);
}

.page-home .footer .logo-emblem {
  width: 56px;
  height: 56px;
}

/* ---------- Urdu / RTL ---------- */
body.lang-ur .home-eyebrow,
body.lang-ur .home-hero-eyebrow,
body.lang-ur .home-btn,
body.lang-ur .home-link,
body.lang-ur.page-home .nav-cta,
body.lang-ur.page-home .testimonial-author,
body.lang-ur.page-home .home-testimonials .section-subtitle,
body.lang-ur.page-home .home-faq .section-subtitle,
body.lang-ur .home-stats .counter-item p {
  font-family: var(--font-urdu);
  letter-spacing: 0;
  text-transform: none;
}

body.lang-ur .home-eyebrow,
body.lang-ur .home-hero-eyebrow {
  font-size: 1rem;
}

body.lang-ur .home-btn {
  font-size: 1rem;
}

body.lang-ur .home-icon-arrow {
  transform: scaleX(-1);
}

body.lang-ur .home-intro-media::before {
  inset: 18px 18px -18px -18px;
}

body.lang-ur .home-hero h1 {
  line-height: 1.6;
}

/* Nastaliq needs taller lines than the Latin body copy */
body.lang-ur.page-home main p,
body.lang-ur.page-home .home-fact-text {
  line-height: 2.1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .home-facts-list { grid-template-columns: repeat(3, 1fr); }
  .home-intro-grid { gap: 56px; }
  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
  .home-showcase-grid.gallery-grid { grid-auto-rows: 180px; }
}

@media (max-width: 768px) {
  .page-home .home-section,
  .page-home .home-final { padding: 64px 0; }

  .home-section-head { margin-bottom: 32px; }
  .home-section-foot { margin-top: 32px; }

  .page-home .home-hero {
    min-height: 88vh;
    min-height: 88svh;
    padding: 110px 0 104px;
  }
  .home-hero-eyebrow { gap: 10px; font-size: 0.72rem; letter-spacing: 0.24em; }
  .home-hero-lead { margin-bottom: 30px; }
  .home-hero-actions { flex-direction: column; align-items: center; }
  .home-hero-actions .home-btn { width: 100%; max-width: 340px; }
  .home-scroll-cue { bottom: 58px; }

  .page-home .home-facts { margin-top: -44px; }
  .home-facts-list { grid-template-columns: repeat(2, 1fr); }
  .home-fact { padding: 20px 10px 18px; }
  .home-fact-icon { width: 26px; height: 26px; margin-bottom: 4px; }
  .home-fact-title { font-size: 0.92rem; }

  .home-intro-grid { grid-template-columns: 1fr; gap: 44px; }
  .home-intro-media { margin-inline-end: 14px; }
  .home-intro-media::before { inset: 12px -12px -12px 12px; }
  body.lang-ur .home-intro-media::before { inset: 12px 12px -12px -12px; }

  /* Phones: photo on top, full text below (no truncated overlays) */
  .home-events-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .home-event-card { aspect-ratio: auto; display: flex; flex-direction: column; }
  .home-event-card img { position: static; aspect-ratio: 4 / 3; height: auto; }
  .home-event-card::after { content: none; }
  .home-event-body { position: static; flex: 1; justify-content: flex-start; padding: 12px 12px 14px; }
  .home-event-body h3 { font-size: 1rem; margin-bottom: 4px; }
  .home-event-body p { font-size: 0.78rem; line-height: 1.5; }

  .home-showcase-grid.gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }

  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
  .home-service { padding: 24px 16px; }
  .home-service-icon { width: 28px; height: 28px; margin-bottom: 12px; }
  .home-service h3 { font-size: 1.02rem; }
  .home-service p { font-size: 0.84rem; line-height: 1.6; }

  .home-story-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .home-story-mark img { width: 120px; height: 120px; }
  .page-home .home-stats { margin-top: 44px; }
  .home-stats .counter-grid { padding-top: 28px; gap: 20px; }

  .home-final-actions { flex-direction: column; align-items: center; }
  .home-final-actions .home-btn { width: 100%; max-width: 340px; }
}

@media (max-width: 380px) {
  .home-btn { padding: 0 18px; letter-spacing: 0.05em; }
}

/* Narrow phones: keep the hero eyebrow on one line in BOTH the fallback and the
   web font (no reflow when Inter arrives); below 340px stack it deliberately. */
@media (max-width: 400px) {
  .home-hero-eyebrow { letter-spacing: 0.18em; }
}

@media (max-width: 340px) {
  .home-hero-eyebrow { flex-direction: column; gap: 4px; }
  .home-hero-eyebrow-dot { display: none; }
}
