/* ==========================================================================
   GUJRAT RISHTA — Design System (v2)
   A warm, ceremonial matrimonial identity for Gujrat, Punjab.
   Palette drawn from the brand emblem: deep shisha-red, warm gold, ivory.
   Display: Fraunces (ceremonial serif) · Body: Plus Jakarta Sans
   Signature: a jaali (lattice) hero in deep maroon with gilded detail.
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --maroon-950: #1F060B;
  --maroon-900: #380A12;
  --maroon-800: #520D19;
  --maroon-700: #6E1020;
  --maroon-600: #8A1425;
  --maroon-500: #A81E2E;

  --gold-800: #6E4C0F;
  /* gold-700 is the small-text gold. Kept dark enough to clear WCAG AA (5.5:1)
     even on the --sand ground, which is the darkest light surface it sits on. */
  --gold-700: #7A5610;
  --gold-600: #A97A1E;
  --gold-500: #C0902A;
  --gold-400: #D7AC48;
  --gold-300: #E6C674;
  --gold-200: #F0DCA6;
  --gold-100: #F8ECCF;

  --emerald-700: #1F5C46;
  --emerald-600: #2A7659;
  --emerald-50: #E9F3EE;

  /* ---- Neutrals / grounds ---- */
  --ivory: #FFFDF9;
  --cream: #FBF4EA;
  --sand: #F4E9D8;
  --blush-50: #FBF4EA;   /* legacy alias kept so any stray refs still resolve */
  --blush-25: #FEFAF4;

  --ink: #2C1216;
  --ink-soft: #6A4A4C;
  --ink-faint: #9C8082;
  --line: #EAD9C4;
  --line-soft: #F1E6D5;

  /* ---- Type ---- */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Spacing scale ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ---- Shape / shadow ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 3px rgba(56, 10, 18, 0.06);
  --shadow-sm: 0 4px 16px rgba(56, 10, 18, 0.08);
  --shadow-md: 0 14px 40px rgba(56, 10, 18, 0.12);
  --shadow-lg: 0 28px 60px rgba(56, 10, 18, 0.18);
  --shadow-gold: 0 10px 30px rgba(160, 120, 30, 0.28);

  --container-w: 1180px;
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--maroon-900);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 640px) { .container { padding: 0 var(--space-5); } }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--maroon-800); color: var(--ivory); padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 3px; }

/* ---------------------------------------------------------------------- */
/* Signature motif — interlocking rings + jaali lattice                    */
/* ---------------------------------------------------------------------- */
.ring-divider {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-4); margin: var(--space-7) 0;
  color: var(--gold-500);
}
.ring-divider::before, .ring-divider::after {
  content: ""; height: 1px; flex: 1; max-width: 180px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}
.ring-divider::after { background: linear-gradient(90deg, var(--gold-400), transparent); }
.ring-divider svg { width: 30px; height: 22px; flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 244, 234, 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) 0;
  gap: var(--space-5);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand-text { font-family: var(--font-display); line-height: 1; }
.brand-text .brand-name {
  display: block; font-size: 1.32rem; font-weight: 600; color: var(--maroon-800);
  letter-spacing: 0.01em;
}
.brand-text .brand-tag {
  display: block; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-700); font-family: var(--font-body); font-weight: 700; margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.main-nav ul { display: flex; gap: var(--space-2); align-items: center; }
.main-nav a:not(.btn) {
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  padding: 10px 14px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color 0.16s ease, background 0.16s ease;
}
.main-nav a:not(.btn):hover { color: var(--maroon-700); background: rgba(192, 144, 42, 0.12); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; width: 44px; height: 44px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--maroon-800); border-radius: 2px; margin: 5px auto; transition: 0.25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 84vw); height: 100dvh;
    background: var(--ivory); flex-direction: column; align-items: flex-start;
    padding: calc(var(--space-8) + 40px) var(--space-6) var(--space-6); transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: var(--shadow-lg); gap: var(--space-4); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .main-nav a:not(.btn) { display: block; padding: 14px 16px; font-size: 1.05rem; }
  .main-nav .btn { width: 100%; text-align: center; margin-top: var(--space-4); }
  .menu-toggle { display: block; position: relative; z-index: 110; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: rgba(31, 6, 11, 0.5); z-index: 90; backdrop-filter: blur(2px); }
  .nav-scrim.is-open { display: block; }
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.98rem; padding: 15px 30px; letter-spacing: 0.005em;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  min-height: 46px;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--maroon-950);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(160, 120, 30, 0.38); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary {
  background: transparent; border-color: var(--maroon-700); color: var(--maroon-700);
}
.btn--secondary:hover { background: var(--maroon-800); border-color: var(--maroon-800); color: var(--ivory); }
.btn--on-dark { background: rgba(255,255,255,0.08); border-color: rgba(230, 198, 116, 0.5); color: var(--gold-200); }
.btn--on-dark:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--maroon-950); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; min-height: 38px; }

/* ---------------------------------------------------------------------- */
/* Breadcrumb                                                              */
/* ---------------------------------------------------------------------- */
.breadcrumb { padding: var(--space-5) 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.82rem; color: var(--ink-faint); align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--gold-500); }
.breadcrumb a { color: var(--maroon-700); font-weight: 600; display: inline-block; padding: 12px 2px; }
.breadcrumb a:hover { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb li[aria-current] { color: var(--ink-soft); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero { position: relative; padding: var(--space-8) 0 var(--space-7); overflow: hidden; }
/* Default targets a LIGHT ground -- the common case, and the safe fallback for
   any section that uses .hero-eyebrow without a hero variant class (e.g. 404).
   The dark homepage hero overrides this below. */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--maroon-700); background: rgba(192, 144, 42, 0.14); padding: 8px 18px;
  border: 1px solid rgba(192, 144, 42, 0.28);
  border-radius: var(--radius-pill); margin-bottom: var(--space-5);
}
.hero h1 { max-width: 20ch; margin-bottom: var(--space-4); }
.hero .lede { font-size: 1.16rem; max-width: 54ch; margin-bottom: var(--space-6); line-height: 1.6; }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-7); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-7); }
.hero-facts span { display: flex; flex-direction: column; font-size: 0.86rem; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; margin-bottom: 4px; }

/* Interior page hero (clan pages, static pages) — warm ivory band */
.hero--page {
  padding: var(--space-7) 0 var(--space-6);
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(215, 172, 72, 0.18), transparent 55%),
    linear-gradient(180deg, var(--sand), var(--cream));
  border-bottom: 1px solid var(--line-soft);
}
.hero--page h1 { color: var(--maroon-900); }
.hero--page .lede { color: var(--ink-soft); }
.hero--page .hero-facts strong { color: var(--maroon-800); }
.hero--page .hero-facts span { color: var(--ink-soft); }

/* Homepage hero — the signature: deep maroon jaali ground */
.hero--home {
  padding: var(--space-9) 0 var(--space-8);
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(138, 20, 37, 0.55), transparent 60%),
    radial-gradient(70% 90% at 10% 100%, rgba(110, 76, 15, 0.35), transparent 55%),
    linear-gradient(155deg, var(--maroon-900), var(--maroon-950));
  color: var(--cream);
}
.hero--home::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23D7AC48' stroke-width='1' opacity='0.14'%3E%3Cpath d='M36 0 L72 36 L36 72 L0 36 Z'/%3E%3Cpath d='M36 14 L58 36 L36 58 L14 36 Z'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(160deg, rgba(0,0,0,0.9), transparent 75%);
  mask-image: linear-gradient(160deg, rgba(0,0,0,0.9), transparent 75%);
}
.hero--home::after {
  content: ""; position: absolute; top: -10%; right: -6%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(215,172,72,0.22), transparent 65%);
  pointer-events: none;
}
.hero--home .container { position: relative; z-index: 1; }
.hero--home .hero-eyebrow {
  color: var(--gold-200); background: rgba(215, 172, 72, 0.14);
  border-color: rgba(215, 172, 72, 0.3);
}
.hero--home h1 { max-width: 17ch; font-size: clamp(2.5rem, 5.6vw, 4.1rem); color: var(--ivory); }
.hero--home h1 em { font-style: italic; color: var(--gold-300); }
.hero--home .lede { color: rgba(251, 244, 234, 0.86); }
.hero--home .hero-facts { padding-top: var(--space-6); border-top: 1px solid rgba(215, 172, 72, 0.22); }
.hero--home .hero-facts strong { color: var(--gold-300); }
.hero--home .hero-facts span { color: rgba(251, 244, 234, 0.72); }

/* ---------------------------------------------------------------------- */
/* Sections                                                                */
/* ---------------------------------------------------------------------- */
.section { padding: var(--space-8) 0; }
.section--tight { padding: var(--space-6) 0; }
.section--tint { background: linear-gradient(180deg, var(--sand), var(--cream)); }
.section--dark {
  background:
    radial-gradient(80% 120% at 90% 0%, rgba(138, 20, 37, 0.5), transparent 60%),
    linear-gradient(160deg, var(--maroon-900), var(--maroon-950));
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23D7AC48' stroke-width='1' opacity='0.1'%3E%3Cpath d='M36 0 L72 36 L36 72 L0 36 Z'/%3E%3Cpath d='M36 14 L58 36 L36 58 L14 36 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 90% 0%, rgba(0,0,0,0.8), transparent 70%);
  mask-image: radial-gradient(circle at 90% 0%, rgba(0,0,0,0.8), transparent 70%);
}
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark p { color: rgba(251, 244, 234, 0.8); }
.section-head { max-width: 62ch; margin-bottom: var(--space-7); }
.section-head.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: var(--space-3); display: inline-flex; align-items: center; gap: 8px;
}
.section-head .eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold-500); display: inline-block; }
.section-head--center .eyebrow { justify-content: center; }
.section--dark .section-head .eyebrow { color: var(--gold-300); }
.section--dark .section-head .eyebrow::before { background: var(--gold-400); }
.section-head p { margin-top: var(--space-3); font-size: 1.06rem; }

/* ---------------------------------------------------------------------- */
/* Value props / feature grid                                             */
/* ---------------------------------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.value-item {
  padding: var(--space-6);
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.value-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.value-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
  color: var(--maroon-900);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}
.value-icon svg { width: 26px; height: 26px; }
.value-item h3 { font-size: 1.14rem; margin-bottom: var(--space-2); color: var(--maroon-900); }
.value-item p { font-size: 0.95rem; }

.section--dark .value-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(215, 172, 72, 0.18);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.section--dark .value-item:hover { background: rgba(255,255,255,0.07); }
.section--dark .value-item h3 { color: var(--gold-200); }
.section--dark .value-item p { color: rgba(251, 244, 234, 0.74); }
.section--dark .value-icon { background: rgba(215, 172, 72, 0.16); color: var(--gold-300); }

/* ---------------------------------------------------------------------- */
/* Cards (community / clan tiles)                                         */
/* ---------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-5); }
.clan-card {
  position: relative;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5) var(--space-5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.clan-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.clan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.clan-card:hover::before { transform: scaleX(1); }
.clan-card h3 { font-size: 1.12rem; margin-bottom: var(--space-2); color: var(--maroon-900); }
.clan-card p { font-size: 0.9rem; margin-bottom: var(--space-4); line-height: 1.55; }
.clan-card .card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.clan-card .card-links a {
  font-size: 0.82rem; font-weight: 600; color: var(--maroon-700);
  background: var(--cream); padding: 11px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  min-height: 44px; display: inline-flex; align-items: center;
}
.clan-card .card-links a:hover { background: var(--maroon-800); border-color: var(--maroon-800); color: var(--gold-200); }

.category-block { margin-bottom: var(--space-8); scroll-margin-top: 90px; }
.category-block > h2 { margin-bottom: var(--space-2); }
.category-block > .cat-desc { max-width: 68ch; margin-bottom: var(--space-5); }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list a {
  font-size: 0.85rem; font-weight: 600; color: var(--maroon-800);
  background: var(--ivory); border: 1px solid var(--line);
  padding: 11px 18px; border-radius: var(--radius-pill);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  min-height: 44px; display: inline-flex; align-items: center;
}
.chip-list a:hover { background: var(--gold-100); border-color: var(--gold-400); transform: translateY(-1px); }

/* ---------------------------------------------------------------------- */
/* FAQ                                                                     */
/* ---------------------------------------------------------------------- */
.faq-list { max-width: 78ch; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  margin-bottom: var(--space-3); background: var(--ivory); overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item.is-open { border-color: var(--gold-300); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-5); font-family: var(--font-display); font-size: 1.1rem;
  color: var(--maroon-900); font-weight: 500;
}
.faq-q .plus { flex-shrink: 0; width: 26px; height: 26px; position: relative; border-radius: 50%; background: var(--gold-100); transition: background 0.2s ease; }
.faq-item.is-open .faq-q .plus { background: var(--gold-300); }
.faq-q .plus::before, .faq-q .plus::after { content:""; position:absolute; background: var(--gold-700); top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 2px; }
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 12px; transition: transform 0.22s ease; }
.faq-item.is-open .faq-q .plus::after { transform: translate(-50%,-50%) rotate(90deg) scale(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-item.is-open .faq-a { max-height: 420px; }
.faq-a p { padding: 0 var(--space-5) var(--space-5); font-size: 0.98rem; line-height: 1.6; }

/* ---------------------------------------------------------------------- */
/* CTA banner                                                              */
/* ---------------------------------------------------------------------- */
.cta-banner {
  background:
    radial-gradient(80% 140% at 88% 0%, rgba(215, 172, 72, 0.28), transparent 60%),
    linear-gradient(140deg, var(--maroon-800), var(--maroon-950));
  border-radius: var(--radius-lg); padding: var(--space-9) var(--space-7);
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23D7AC48' stroke-width='1' opacity='0.12'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px; pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--ivory); max-width: 26ch; margin: 0 auto var(--space-3); }
.cta-banner p { color: rgba(251,244,234,0.86); max-width: 52ch; margin: 0 auto var(--space-6); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { background: linear-gradient(180deg, var(--maroon-950), #160408); color: rgba(251,244,234,0.72); padding: var(--space-8) 0 var(--space-6); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid rgba(215, 172, 72, 0.14); }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); } }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: var(--space-4); }
.footer-brand img { height: 44px; width: auto; }
.footer-brand .brand-name { color: var(--ivory); font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; }
.footer-tagline { font-size: 0.9rem; max-width: 34ch; line-height: 1.6; color: rgba(251,244,234,0.64); }
.footer-col h4 { color: var(--gold-300); font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-3); font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 0; }
.footer-col a { font-size: 0.93rem; display: inline-block; padding: 11px 0; color: rgba(251,244,234,0.72); transition: color 0.16s ease; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { padding-top: var(--space-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: 0.82rem; color: rgba(251,244,234,0.5); }
.footer-bottom a { color: rgba(251,244,234,0.6); }
.footer-bottom a:hover { color: var(--gold-300); }
.footer-legal { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer-legal a { display: inline-block; padding: 12px 4px; }

/* ---------------------------------------------------------------------- */
/* Quick-find (community picker)                                          */
/* ---------------------------------------------------------------------- */
.quick-find { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.quick-find::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--maroon-600));
}
.quick-find-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.quick-find select {
  flex: 1; min-width: 200px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--cream); font-size: 0.95rem; color: var(--ink);
  cursor: pointer; transition: border-color 0.16s ease;
}
.quick-find select:focus { border-color: var(--gold-500); outline: none; }
.quick-find label { font-size: 0.88rem; font-weight: 700; color: var(--maroon-800); display: block; margin-bottom: 10px; }

/* ---------------------------------------------------------------------- */
/* Misc utility                                                            */
/* ---------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700;
  color: var(--emerald-700); background: var(--emerald-50); padding: 6px 14px; border-radius: var(--radius-pill);
}
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; gap: var(--space-6); } }
.stat-strip { display: flex; flex-wrap: wrap; gap: var(--space-8); padding: var(--space-6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--space-7) 0; }
.stat-strip .stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--maroon-800); line-height: 1; margin-bottom: 6px; }
.stat-strip .stat span { font-size: 0.86rem; color: var(--ink-soft); }

/* Sitemap directory rows */
.sitemap-list { display: flex; flex-direction: column; gap: 4px; }
.sitemap-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.sitemap-row > strong {
  font-family: var(--font-display); font-weight: 600; color: var(--maroon-900);
  min-width: 190px; font-size: 1rem;
}
.sitemap-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sitemap-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600; color: var(--maroon-700);
  background: var(--ivory); border: 1px solid var(--line);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.sitemap-links a:hover { background: var(--maroon-800); border-color: var(--maroon-800); color: var(--gold-200); }
@media (max-width: 640px) {
  .sitemap-row > strong { min-width: 100%; }
}

.prose { max-width: 70ch; }
.prose p { margin-bottom: var(--space-4); }
.prose h2 { margin: var(--space-7) 0 var(--space-3); }
.prose h3 { margin: var(--space-6) 0 var(--space-2); }
.prose ul:not([class]) { margin: var(--space-4) 0; padding-left: var(--space-5); }
.prose ul:not([class]) li { margin-bottom: var(--space-2); color: var(--ink-soft); }
.prose ul:not([class]) li::marker { color: var(--gold-600); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--ivory); }
table.compare th, table.compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.compare th { font-family: var(--font-display); color: var(--maroon-800); background: var(--cream); font-weight: 600; }
table.compare tr:last-child td { border-bottom: none; }

.form-field { margin-bottom: var(--space-4); }
.form-field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; color: var(--maroon-800); }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--ivory); font-size: 0.95rem; transition: border-color 0.16s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold-500); outline: none; }

.contact-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.contact-card h2 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.contact-methods { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.contact-methods a { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--maroon-800); padding: 8px 0; }
.contact-methods a:hover { color: var(--gold-700); }
.contact-methods .icn { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg, var(--gold-200), var(--gold-400)); color: var(--maroon-900); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.notice-box { border: 1px solid var(--gold-400); background: linear-gradient(160deg, var(--gold-100), var(--cream)); border-radius: var(--radius-md); padding: var(--space-5); font-size: 0.94rem; }
.notice-box strong { color: var(--maroon-800); }

/* Content section for clan pages */
.content-section { max-width: 72ch; }
.content-section p { margin-bottom: var(--space-4); line-height: 1.7; }

@media (max-width: 640px) {
  .hero-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-facts { gap: var(--space-5); }
}
