﻿/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES
   Wedding Marketplace — Unified Theme (Warm, Romantic, Trustworthy)
   ========================================================================== */

/* 1. Design Tokens & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --color-primary: #E85D75;          /* Warm Rose */
  --color-primary-dark: #C73E58;     /* Pressed state */
  --color-primary-tint-10: #FDEFF1;  /* Select chips & row hovers */
  --color-secondary: #2B2640;        /* Deep Plum */
  --color-ink: #22202B;              /* Dark charcoal text */
  --color-ink-muted: #6B6877;        /* Soft grey meta */
  --color-border: #E7E3E8;           /* Card dividers & fields */
  --color-surface: #FFFFFF;          /* Pure white panels */
  --color-surface-alt: #FBF7F4;      /* Warm ivory section fills */
  --color-success: #2E8B57;          /* Response rate, available dates */
  --color-warning: #D98C2B;          /* Deal labels, scarce dates */
  --color-gold: #C9A227;             /* Ratings stars & award seals */
  --color-overlay: rgba(34, 32, 43, 0.6);

  /* Typography */
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", sans-serif;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(34, 32, 43, 0.08);
  --shadow-md: 0 8px 24px rgba(34, 32, 43, 0.08);
  --shadow-lg: 0 24px 48px rgba(34, 32, 43, 0.16);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset & Base Elements
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: var(--color-surface);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* 3. Global Layout
   ========================================================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.section-spacing {
  padding: var(--space-xxxl) 0;
}

/* Sticky scroll-up header */
header.global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition-normal);
}

.header-utility-bar {
  background-color: var(--color-secondary);
  color: var(--color-surface-alt);
  font-size: 12px;
  font-weight: 500;
  padding: var(--space-xs) 0;
}

.header-utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-wordmark span {
  color: var(--color-primary);
}

/* Navigation & Mega Menu */
.nav-links-wrap {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  height: 100%;
  align-items: center;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.nav-item:hover .nav-link {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ============================================================
   UNIFIED NAV MEGA PANEL SYSTEM
   All dropdown menus share identical 3D flip-down animation.
   ============================================================ */

/* ── Shared backdrop ─────────────────────────────────────── */
.nav-mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background-color: rgba(34, 32, 43, 0.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.38s;
}
.nav-mega-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0s;
}

/* ── Panel base (all menus) ──────────────────────────────── */
.nav-mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 150;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 16px 56px rgba(34, 32, 43, 0.14);

  /* 3D flip-down origin at the very top edge */
  transform-origin: top center;
  transform: perspective(900px) rotateX(-10deg) scaleY(0.94) translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /* Closing animation (slightly faster reverse) */
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 1, 1),
    opacity   0.28s cubic-bezier(0.4, 0, 1, 1),
    visibility 0s   0.32s;
}

/* Opening state */
.nav-mega-panel.open {
  transform: perspective(900px) rotateX(0deg) scaleY(1) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  /* Opening animation (ease-out bounce feel) */
  transition:
    transform 0.46s cubic-bezier(0.23, 1, 0.32, 1),
    opacity   0.36s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s   0s;
}

/* Active underline on the triggering nav-link */
.nav-item.mega-open .nav-link {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ── Shared inner container ──────────────────────────────── */
.mega-panel-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

/* ── Panel section title ──────────────────────────────────── */
.mega-section-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.2px;
}

.mega-section-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ── VENUES / VENDORS panel layout ───────────────────────── */
.mega-columns-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}
/* Venues = 4 even columns */
.mega-columns-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
/* Vendors = 3 wide + promo card */
.mega-columns-grid.cols-3-promo { grid-template-columns: repeat(3, 1fr) 260px; }

/* Category link rows */
.mega-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-cat-list li a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  padding: 8px var(--space-xs);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mega-cat-list li a:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-primary);
}
.mega-cat-list li a svg {
  flex-shrink: 0;
  color: var(--color-ink-muted);
  transition: color 0.15s ease;
}
.mega-cat-list li a:hover svg {
  color: var(--color-primary);
}

/* Sub-tag row (Complete your wedding team) */
.mega-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-md);
}
.mega-tag-row a {
  font-size: 13px;
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.mega-tag-row a:hover { color: var(--color-primary); }
.mega-tag-row a.bold { font-weight: 700; color: var(--color-ink); }

/* ── DRESSES panel layout ────────────────────────────────── */
.mega-dresses-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-xxl);
  align-items: start;
}
.mega-dress-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.mega-dress-categories a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mega-dress-categories a:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-primary);
}
.mega-designer-strip {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  scrollbar-width: none;
}
.mega-designer-strip::-webkit-scrollbar { display: none; }
.mega-designer-card {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  text-decoration: none;
  color: var(--color-ink);
}
.mega-designer-card img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  margin-bottom: var(--space-xs);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mega-designer-card:hover img {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mega-designer-card span {
  font-size: 12px;
  font-weight: 500;
}

/* ── Promo card (shared) ─────────────────────────────────── */
.mega-promo-card {
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.mega-promo-card + .mega-promo-card {
  margin-top: var(--space-md);
}
.mega-promo-card .promo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xs);
}
.mega-promo-card h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
}
.mega-promo-card p {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.5;
}
.mega-promo-card a {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.mega-promo-card a:hover { text-decoration: underline; }

/* ── IDEAS panel layout ──────────────────────────────────── */
.mega-ideas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: start;
}
.mega-ideas-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-xl);
}
.mega-ideas-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-ideas-col a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-muted);
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s ease;
  display: block;
}
.mega-ideas-col a:last-child { border-bottom: none; }
.mega-ideas-col a:hover { color: var(--color-primary); }

.mega-ideas-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.mega-idea-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.mega-idea-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mega-idea-card-img img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.mega-idea-card-body {
  padding: var(--space-sm) var(--space-md);
}
.mega-idea-card-body h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 4px;
}
.mega-idea-card-body p {
  font-size: 12px;
  color: var(--color-ink-muted);
  line-height: 1.5;
}

/* ── REGISTRY panel layout ───────────────────────────────── */
.mega-registry-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xxl);
  align-items: start;
}
.mega-registry-sidebar {
  border-right: 1px solid var(--color-border);
  padding-right: var(--space-xxl);
}
.mega-registry-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-lg);
}
.mega-registry-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-muted);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s ease;
}
.mega-registry-links a:last-child { border-bottom: none; }
.mega-registry-links a:hover { color: var(--color-primary); }
.mega-registry-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.mega-registry-cta:hover { opacity: 0.75; }

.mega-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.mega-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: white;
}
.mega-brand-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.mega-brand-card img { max-height: 32px; width: auto; object-fit: contain; }

/* ── Responsive collapse ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav-mega-panel { display: none; } /* Use mobile drawer instead */
}

/* Hamburger mobile nav toggle */
.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.hamburger-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-secondary);
  margin: 5px 0;
  transition: transform var(--transition-fast);
}

/* User Account Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Global Footer */
footer.global-footer {
  background-color: var(--color-secondary);
  color: var(--color-surface-alt);
  padding: var(--space-xxl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  border-bottom: 1px solid rgba(231, 227, 232, 0.1);
  padding-bottom: var(--space-xxl);
  margin-bottom: var(--space-xl);
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(251, 247, 244, 0.7);
}

.footer-col ul a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 13px;
  color: rgba(251, 247, 244, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

/* 4. Global Typography & Headlines
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-secondary);
  font-weight: 700;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

.text-muted {
  color: var(--color-ink-muted);
}

.font-serif {
  font-family: var(--font-serif);
}

/* 5. Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
  color: var(--color-surface);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-surface);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-ghost:hover {
  background-color: var(--color-primary-tint-10);
  color: var(--color-primary-dark);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  background-color: var(--color-border);
  color: var(--color-ink-muted);
  cursor: not-allowed;
}

/* Heart/Save Button */
.btn-save {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-muted);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-save:hover {
  transform: scale(1.08);
  border-color: var(--color-primary);
}

.btn-save.saved {
  background-color: var(--color-primary-tint-10);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* 6. Form Inputs & Controls
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--space-xxs);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background-color: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-tint-10);
}

/* Floating Label Inputs */
.form-floating {
  position: relative;
}

.form-floating .form-control {
  padding: 20px 16px 6px;
}

.form-floating label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--color-ink-muted);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  top: 12px;
  font-size: 11px;
  color: var(--color-primary);
}

/* Compound Search Bar component */
.search-compound-bar {
  display: flex;
  background-color: var(--color-surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  padding: 6px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  gap: var(--space-xs);
  border-right: 1px solid var(--color-border);
  position: relative;
}

.search-field:last-of-type {
  border-right: none;
}

.search-field input {
  border: none;
  width: 100%;
  padding: 8px 0;
  font-size: 15px;
}

.search-field input:focus {
  outline: none;
}

.search-field svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.search-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 150;
  max-height: 250px;
  overflow-y: auto;
  margin-top: var(--space-xs);
  display: none;
}

.search-autocomplete-item {
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
}

.search-autocomplete-item:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-primary);
}

/* 7. Badges, Icons & Breadcrumbs
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xxs);
  padding: var(--space-xxs) var(--space-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-pill);
}

.badge-award {
  background-color: #FDF6E2;
  color: var(--color-gold);
}

.badge-deal {
  background-color: var(--color-primary-tint-10);
  color: var(--color-primary);
}

.badge-popular {
  background-color: #FFF2EB;
  color: var(--color-warning);
}

.badge-success {
  background-color: #E6F3EC;
  color: var(--color-success);
}

/* Breadcrumbs */
.breadcrumb-container {
  padding: var(--space-md) 0;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
  font-size: 13px;
  color: var(--color-ink-muted);
}

.breadcrumb-item::after {
  content: "/";
  margin-left: var(--space-xs);
}

.breadcrumb-item:last-child::after {
  content: "";
}

.breadcrumb-item.active {
  color: var(--color-secondary);
  font-weight: 600;
}

/* Star Rating component */
.star-rating-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xxs);
}

.star-rating-row svg {
  width: 16px;
  height: 16px;
  fill: var(--color-border);
  color: var(--color-border);
}

.star-rating-row svg.filled {
  fill: var(--color-gold);
  color: var(--color-gold);
}

.star-rating-val {
  font-weight: 700;
  font-size: 14px;
  margin-left: var(--space-xxs);
}

/* 8. Component Templates (Cards & Grids)
   ========================================================================== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* Vendor Marketplace Card */
.vendor-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
}

.vendor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.vendor-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.vendor-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vendor-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
}

.vendor-card-action {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.vendor-card-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vendor-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-xxs);
}

.vendor-card-title {
  font-size: 18px;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.vendor-card-meta {
  font-size: 13px;
  color: var(--color-ink-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
  margin-bottom: var(--space-sm);
}

.vendor-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.tag-chip {
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  font-size: 12px;
  padding: 3px var(--space-xs);
  border-radius: var(--radius-sm);
}

.vendor-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vendor-card-price {
  font-size: 15px;
  color: var(--color-ink);
}

.vendor-card-price span {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 18px;
}

/* Category Circle / Tile component */
.category-tile-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-xxl) 0;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  width: 140px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-primary-tint-10);
  border: 1px solid rgba(232, 93, 117, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background-color var(--transition-fast);
}

.category-tile:hover .category-tile-icon {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.category-tile h4 {
  font-size: 14px;
  font-weight: 600;
}

/* Magazine / Idea Card */
.idea-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  background-color: var(--color-surface);
}

.idea-card:hover {
  box-shadow: var(--shadow-md);
}

.idea-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.idea-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idea-card-body {
  padding: var(--space-md);
}

.idea-card-eyebrow {
  color: var(--color-primary);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xxs);
}

.idea-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-secondary);
}

/* Forum Thread row styles */
.forum-thread-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  gap: var(--space-md);
  align-items: center;
}

.forum-thread-main h4 {
  font-size: 16px;
  margin-bottom: var(--space-xxs);
}

.forum-thread-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--color-ink-muted);
}

.forum-reply-count {
  text-align: right;
  font-size: 13px;
  color: var(--color-ink-muted);
}

.forum-reply-count span {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Modal Overlay & Card layout */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-ink-muted);
}

.modal-header {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.modal-body {
  padding: var(--space-lg);
}

/* Toast System notification banner */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.toast {
  background-color: var(--color-secondary);
  color: var(--color-surface-alt);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0;
  transform: translateY(16px);
  animation: toast-in 0.3s forwards, toast-out 0.3s 3.2s forwards;
}

@keyframes toast-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-16px); }
}

/* 9. Layout grids (Search Results)
   ========================================================================== */
.directory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xxl);
  margin-top: var(--space-xl);
}

.filters-sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: var(--space-xs);
}

.filter-group {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

.filter-group:last-of-type {
  border-bottom: none;
}

.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  margin-bottom: var(--space-sm);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

/* View toggle (List/Map/Images) */
.view-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.view-segment-control {
  display: inline-flex;
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.view-segment-btn {
  background: none;
  border: none;
  padding: 6px var(--space-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.view-segment-btn.active {
  background-color: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Static Map visual container */
.map-view-container {
  height: 500px;
  background-color: #E5E3DF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.map-marker {
  position: absolute;
  width: 32px;
  height: 32px;
  background-color: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: transform var(--transition-fast);
}

.map-marker:hover {
  transform: translate(-50%, -50%) scale(1.15);
  background-color: var(--color-primary-tint-10);
  z-index: 20;
}

.map-marker svg {
  color: var(--color-primary);
  width: 16px;
  height: 16px;
}

/* 10. Vendor Profile Page details
   ========================================================================== */
.profile-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: var(--space-xs);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.profile-gallery-item {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.profile-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.profile-gallery-item:hover img {
  transform: scale(1.04);
}

.profile-gallery-item:first-child {
  grid-row: span 2;
}

.profile-gallery-item.view-all-photos::after {
  content: "View all photos";
  position: absolute;
  inset: 0;
  background-color: rgba(34, 32, 43, 0.4);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xxl);
}

.profile-nav-tabs {
  position: sticky;
  top: 72px;
  background-color: var(--color-surface);
  display: flex;
  gap: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  z-index: 90;
}

.profile-tab-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink-muted);
  cursor: pointer;
  white-space: nowrap;
}

.profile-tab-item.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
}

.profile-sticky-card {
  position: sticky;
  top: 96px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.profile-sticky-card-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-md);
}

/* Availability Calendar Grid */
.calendar-widget {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background-color: var(--color-surface-alt);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-xxs);
  text-align: center;
}

.calendar-day-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-ink-muted);
  padding-bottom: var(--space-xxs);
}

.calendar-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.calendar-cell.available {
  background-color: #E6F3EC;
  color: var(--color-success);
}

.calendar-cell.limited {
  background-color: #FFF2EB;
  color: var(--color-warning);
}

.calendar-cell.unavailable {
  background-color: #F6F4F7;
  color: var(--color-ink-muted);
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Slide-out Message Drawer component */
.slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: min(420px, 100vw);
  height: 100vh;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
}

.slide-drawer.active {
  transform: translateX(0);
}

.slide-drawer-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-drawer-body {
  padding: var(--space-lg);
  flex: 1;
  overflow-y: auto;
}

/* 12. Media Queries & Responsive Design
   ========================================================================== */

/* Tablet Layout (max-width: 1024px) */

/* Homepage premium wedding landing */
.home-hero-premium {
  align-items: center;
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: 710px;
  padding: 108px 0 92px;
}

.home-hero-premium::before {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(105deg, rgba(24, 20, 38, 0.86) 0%, rgba(50, 35, 55, 0.72) 45%, rgba(232, 93, 117, 0.35) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.home-hero-grid {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.78fr);
}

.home-hero-content {
  color: #fff;
  text-align: left;
}

.home-hero-eyebrow,
.home-section-heading span {
  color: #ffdbe3;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.home-hero-content h1 {
  color: #fff;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.95;
  margin-bottom: 20px;
  max-width: 760px;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.home-hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 720px;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.home-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.home-hero-chips span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.13);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 15px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-hero-premium .search-compound-bar {
  margin: 0;
  max-width: 900px;
  padding: 8px;
}

.home-hero-premium .search-compound-bar .btn {
  border-radius: var(--radius-pill);
  font-weight: 800;
  min-height: 52px;
  padding: 12px 32px;
  white-space: nowrap;
}

.home-hero-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  max-width: 720px;
}

.home-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-stat strong {
  color: #fff;
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
}

.home-stat span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 13px;
  margin-top: 7px;
}

.home-hero-visual {
  min-height: 470px;
  position: relative;
}

.home-visual-card {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  box-shadow: 0 32px 90px rgba(13, 10, 24, 0.38);
  overflow: hidden;
  position: absolute;
}

.home-visual-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-visual-card-main {
  height: 420px;
  left: 0;
  right: 48px;
  top: 0;
}

.home-visual-card-small {
  bottom: 0;
  height: 210px;
  right: 0;
  width: 48%;
}

.home-visual-label {
  background: linear-gradient(180deg, transparent, rgba(18, 13, 28, 0.78));
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 70px 24px 24px;
  position: absolute;
  right: 0;
}

.home-visual-label span,
.home-visual-note small {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-visual-label strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 26px;
  margin-top: 4px;
}

.home-visual-note {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  bottom: 28px;
  box-shadow: 0 22px 55px rgba(16, 13, 28, 0.24);
  display: flex;
  gap: 12px;
  left: -22px;
  padding: 14px 16px;
  position: absolute;
}

.home-visual-note strong {
  color: var(--premium-plum);
  display: block;
  font-size: 14px;
}

.home-visual-note small {
  color: var(--color-text-muted);
  letter-spacing: 0;
  margin-top: 3px;
  text-transform: none;
}

.home-visual-note-icon {
  align-items: center;
  background: linear-gradient(145deg, #ff7b95, #d94662);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.home-journey-section {
  background:
    radial-gradient(circle at 8% 15%, rgba(232, 93, 117, 0.13), transparent 22rem),
    radial-gradient(circle at 90% 15%, rgba(255, 204, 214, 0.42), transparent 26rem),
    linear-gradient(180deg, #fffaf7 0%, #fff 100%);
}

.home-section-heading {
  margin: 0 auto 36px;
  max-width: 760px;
  text-align: center;
}

.home-section-heading span {
  color: var(--premium-rose);
  justify-content: center;
  margin-bottom: 10px;
}

.home-section-heading h2 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 12px;
}

.home-section-heading p {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.home-journey-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-journey-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(232, 93, 117, 0.14);
  border-radius: 26px;
  box-shadow: var(--premium-shadow-sm);
  color: inherit;
  display: block;
  min-height: 230px;
  overflow: hidden;
  padding: 28px;
  position: relative;
  text-decoration: none;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms ease, border-color 320ms ease;
}

.home-journey-card::after {
  background: linear-gradient(135deg, rgba(232, 93, 117, 0.14), transparent 56%);
  border-radius: 999px;
  content: "";
  height: 150px;
  position: absolute;
  right: -60px;
  top: -70px;
  width: 150px;
}

.home-journey-card:hover {
  border-color: rgba(232, 93, 117, 0.28);
  box-shadow: var(--premium-shadow-md);
  transform: translateY(-8px);
}

.home-journey-icon {
  align-items: center;
  background: #fff1f4;
  border-radius: 50%;
  color: var(--premium-rose);
  display: inline-flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  margin-bottom: 24px;
  width: 46px;
}

.home-journey-card h3 {
  color: var(--premium-plum);
  font-size: 23px;
  margin-bottom: 12px;
}

.home-journey-card p {
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1180px) {
  .home-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-content {
    text-align: center;
  }

  .home-hero-content p,
  .home-hero-content h1,
  .home-hero-stats {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-chips {
    justify-content: center;
  }

  .home-hero-premium .search-compound-bar {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-visual {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-hero-premium {
    min-height: auto;
    padding: 76px 0 58px;
  }

  .home-hero-stats,
  .home-journey-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-premium .search-compound-bar .btn {
    width: 100%;
  }

  .home-journey-card {
    min-height: auto;
  }
}
@media (max-width: 1024px) {
  .nav-links-wrap {
    display: none; /* Hamburger navigation triggers instead */
  }

  .hamburger-toggle {
    display: block;
  }

  .directory-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    display: none; /* Collapses to responsive overlay */
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sticky-card {
    position: relative;
    top: 0;
  }
}

/* Mobile Layout (max-width: 600px) */
@media (max-width: 600px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section-spacing {
    padding: var(--space-xl) 0;
  }

  .search-compound-bar {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    gap: var(--space-xs);
  }

  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xs) 0;
  }

  .search-field:last-of-type {
    border-bottom: none;
  }

  .profile-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 250px;
  }

  .profile-gallery-item:not(:first-child) {
    display: none;
  }

  .profile-gallery-item:first-child {
    grid-row: span 1;
  }

  .spreadsheet-table th, .spreadsheet-table td {
    padding: var(--space-xs);
  }
}

/* 13. Premium Presentation Layer
   ========================================================================== */
:root {
  --premium-rose: #e65470;
  --premium-plum: #272239;
  --premium-cream: #fffaf7;
  --premium-shadow-sm: 0 8px 24px rgba(43, 38, 64, 0.08);
  --premium-shadow-md: 0 18px 48px rgba(43, 38, 64, 0.13);
  --premium-shadow-lg: 0 30px 80px rgba(43, 38, 64, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 93, 117, 0.035), transparent 25rem),
    linear-gradient(180deg, #fff 0%, var(--premium-cream) 100%);
}

::selection {
  background: rgba(232, 93, 117, 0.22);
  color: var(--color-secondary);
}

header.global-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(43, 38, 64, 0.06), 0 10px 35px rgba(43, 38, 64, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-utility-bar {
  background: linear-gradient(105deg, #211d32 0%, #332c4c 55%, #29243e 100%);
}

.logo-wordmark {
  letter-spacing: -0.7px;
  transition: transform 280ms ease, opacity 280ms ease;
}

.logo-wordmark:hover {
  color: var(--color-secondary);
  opacity: 0.88;
  transform: translateY(-1px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  bottom: -1px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transition: transform 260ms ease;
  width: 100%;
}

.nav-link:hover::after,
.nav-item.mega-open .nav-link::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-mega-panel {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: rgba(232, 93, 117, 0.2);
  box-shadow: var(--premium-shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn {
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.btn::after {
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.34) 50%, transparent 75%);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-140%);
  transition: transform 520ms ease;
}

.btn:hover::after {
  transform: translateX(140%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #ef6a82 0%, var(--premium-rose) 55%, #d84763 100%);
  box-shadow: 0 8px 22px rgba(232, 93, 117, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ee607a 0%, #d94662 100%);
  box-shadow: 0 13px 30px rgba(232, 93, 117, 0.32);
}

.btn-secondary:hover {
  border-color: rgba(232, 93, 117, 0.45);
  box-shadow: var(--premium-shadow-sm);
}

.premium-hero {
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 -80px 110px rgba(24, 20, 38, 0.14);
}

.premium-hero::after {
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(115deg, rgba(232, 93, 117, 0.08), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.premium-hero > .container {
  position: relative;
  z-index: 3;
}

.premium-hero h1 {
  letter-spacing: -1.1px;
  text-wrap: balance;
}

.premium-hero .search-compound-bar {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 65px rgba(16, 13, 28, 0.3);
  transition: box-shadow 260ms ease, transform 260ms ease;
}

.premium-hero .search-compound-bar:focus-within {
  box-shadow: 0 28px 75px rgba(16, 13, 28, 0.38);
  transform: translateY(-3px);
}

.section-spacing {
  position: relative;
}

.section-spacing h2,
.content-hero h1 {
  letter-spacing: -0.65px;
  text-wrap: balance;
}

.vendor-card,
.idea-card,
.content-card,
.stat-card,
.brand-card,
.dress-card,
.deal-card {
  border-color: rgba(43, 38, 64, 0.1);
  border-radius: 16px;
  box-shadow: var(--premium-shadow-sm);
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.vendor-card:hover,
.idea-card:hover,
.content-card:hover,
.stat-card:hover,
.brand-card:hover,
.dress-card:hover,
.deal-card:hover {
  border-color: rgba(232, 93, 117, 0.28);
  box-shadow: var(--premium-shadow-md);
  transform: translateY(-7px);
}

.vendor-card-media img,
.idea-card-img img,
.content-card img,
.dress-card img {
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 400ms ease;
}

.vendor-card:hover .vendor-card-media img,
.idea-card:hover .idea-card-img img,
.content-card:hover img,
.dress-card:hover img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.055);
}

.vendor-card-content,
.idea-card-body,
.content-card-body {
  background: linear-gradient(180deg, #fff 0%, rgba(255, 250, 247, 0.7) 100%);
}

.category-tile {
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-tile:hover {
  transform: translateY(-8px);
}

.category-tile-icon {
  background:
    radial-gradient(circle at 35% 25%, #fff 0%, transparent 34%),
    linear-gradient(145deg, #fff4f6, #f9e6ea);
  box-shadow: 0 12px 30px rgba(232, 93, 117, 0.12);
  transition:
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 300ms ease,
    box-shadow 300ms ease,
    color 300ms ease;
}

.category-tile:hover .category-tile-icon {
  background: linear-gradient(145deg, #f27188, #db4965);
  box-shadow: 0 17px 38px rgba(232, 93, 117, 0.3);
  transform: rotate(-3deg) scale(1.06);
}

.badge {
  box-shadow: 0 5px 15px rgba(43, 38, 64, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-control,
.search-field input,
select {
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.form-control:focus,
.search-field input:focus,
select:focus {
  border-color: rgba(232, 93, 117, 0.65);
  box-shadow: 0 0 0 4px rgba(232, 93, 117, 0.1);
  outline: none;
}

.content-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 93, 117, 0.15), transparent 28rem),
    linear-gradient(135deg, #fffaf7 0%, #fcedf0 100%);
  overflow: hidden;
  position: relative;
}

.content-hero::after {
  border: 1px solid rgba(232, 93, 117, 0.12);
  border-radius: 50%;
  content: "";
  height: 260px;
  position: absolute;
  right: -70px;
  top: -120px;
  width: 260px;
}

footer.global-footer {
  background:
    radial-gradient(circle at 85% 10%, rgba(232, 93, 117, 0.16), transparent 24rem),
    linear-gradient(135deg, #211d32, #302946 65%, #262138);
}

.footer-col ul a {
  display: inline-block;
  transition: color 200ms ease, transform 200ms ease;
}

.footer-col ul a:hover {
  transform: translateX(4px);
}

.motion-ready .premium-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease var(--reveal-delay, 0ms),
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
}

.motion-ready .premium-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .header-main-nav {
    position: relative;
  }

  .nav-links-wrap.active {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-border);
    border-radius: 0 0 18px 18px;
    box-shadow: var(--premium-shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
    left: calc(var(--space-lg) * -1);
    overflow-y: auto;
    padding: var(--space-sm) var(--space-lg) var(--space-lg);
    position: absolute;
    right: calc(var(--space-lg) * -1);
    top: 100%;
  }

  .nav-links-wrap.active .nav-item {
    height: auto;
    width: 100%;
  }

  .nav-links-wrap.active .nav-link {
    border-bottom: 1px solid var(--color-border);
    height: auto;
    padding: 15px 4px;
    width: 100%;
  }

  .hamburger-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .header-utility-bar .container > div {
    display: none;
  }

  .header-utility-bar .container > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-main-nav {
    height: 64px;
  }

  .logo-wordmark {
    font-size: 20px;
  }

  .header-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
  }

  .header-actions .btn-primary,
  .header-actions #header-logout-btn {
    display: none;
  }

  .header-actions .btn-secondary {
    font-size: 12px;
    min-height: 36px;
    padding: 7px 10px !important;
  }

  .nav-links-wrap.active {
    left: calc(var(--space-md) * -1);
    right: calc(var(--space-md) * -1);
  }

  .premium-hero {
    background-attachment: scroll !important;
  }

  .premium-hero h1 {
    letter-spacing: -0.5px;
  }

  .vendor-card:hover,
  .idea-card:hover,
  .content-card:hover,
  .stat-card:hover,
  .brand-card:hover,
  .dress-card:hover,
  .deal-card:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Matrimonial portal homepage - GlobalJS */
.matrimonial-home {
  background: #f3f3f3;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.matri-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
}

.matri-topbar {
  background: #98004f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.matri-topbar-inner {
  align-items: center;
  display: flex;
  gap: 10px;
  height: 26px;
}

.matri-topbar a,
.matri-nav a,
.matri-footer a {
  color: inherit;
  text-decoration: none;
}

.matri-brand-header {
  background: linear-gradient(180deg, #d948bd 0%, #a70e79 100%);
  border-bottom: 4px solid #242424;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.matri-nav-wrap {
  align-items: center;
  display: flex;
  gap: 34px;
  min-height: 118px;
}

.matri-logo {
  align-items: center;
  color: #fff;
  display: inline-flex;
  flex: 0 0 300px;
  gap: 12px;
  text-decoration: none;
}

.matri-logo-mark {
  align-items: center;
  background: #111;
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
  color: #f6d000;
  display: inline-flex;
  font-size: 25px;
  font-weight: 900;
  height: 62px;
  justify-content: center;
  letter-spacing: -2px;
  width: 70px;
}

.matri-logo-text strong {
  color: #fff;
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 0 #000;
  text-transform: uppercase;
}

.matri-logo-text small {
  color: #ffd900;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
  text-shadow: 1px 1px 0 #000;
}

.matri-nav {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.matri-nav a {
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 13px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.matri-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.matri-page-bg {
  background: linear-gradient(90deg, #ececec 0%, #fff 14%, #fff 86%, #ececec 100%);
  padding-bottom: 18px;
}

.matri-layout {
  align-items: flex-start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 315px;
  padding-top: 12px;
}

.matri-content-card,
.matri-sidebar-card {
  background: #fff;
  border: 1px solid #ddd;
}

.matri-main-col {
  padding: 12px;
}

.matri-title-bar {
  background: linear-gradient(180deg, #d941c2 0%, #9d0065 100%);
  border-radius: 5px;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
  padding: 13px 18px;
}

.matri-intro-row {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 180px;
  margin-bottom: 30px;
}

.matri-intro-copy p {
  font-size: 16px;
  margin: 0 0 12px;
}

.matri-intro-photo {
  background: transparent;
  padding: 0;
  text-align: center;
}
.matri-intro-photo img {
  border: 0;
  border-radius: 0;
  display: block;
  height: auto;
  max-width: 230px;
  object-fit: contain;
  width: 100%;
}

.matri-section {
  margin-bottom: 30px;
}

.matri-section h1,
.matri-section h2,
.matri-faq h3 {
  color: #c34a9b;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.matri-section h1 {
  font-size: 31px;
  margin: 0 0 24px;
}

.matri-section h2 {
  font-size: 30px;
  margin: 0 0 14px;
}

.matri-category-grid {
  display: grid;
  gap: 20px 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.matri-category-card {
  align-items: center;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 5px;
  color: #c64b99;
  display: flex;
  flex-direction: column;
  height: 130px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: underline;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.matri-category-card:hover {
  border-color: #bd187e;
  box-shadow: 0 8px 22px rgba(166, 0, 104, 0.15);
  color: #9d0065;
  transform: translateY(-3px);
}

.matri-category-card strong {
  font-size: 21px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.matri-city-art {
  display: block;
  height: 64px;
  position: relative;
  width: 112px;
}

.matri-city-art::before,
.matri-city-art::after {
  content: "";
  position: absolute;
}

.matri-islamabad::before {
  border-bottom: 54px solid #dfe8f5;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  bottom: 0;
  left: 16px;
}

.matri-islamabad::after {
  background: linear-gradient(90deg, #9bb1d2 4px, transparent 4px 18px, #9bb1d2 18px 22px, transparent 22px);
  bottom: 0;
  height: 60px;
  left: 0;
  width: 112px;
}

.matri-lahore::before {
  background: linear-gradient(#9aa6b8, #d7dce5);
  border-radius: 50% 50% 8px 8px;
  bottom: 0;
  height: 78px;
  left: 45px;
  width: 20px;
}

.matri-lahore::after {
  background: #c6cedd;
  border-radius: 50%;
  bottom: 70px;
  height: 22px;
  left: 44px;
  width: 22px;
}

.matri-karachi::before {
  background: #e9edf7;
  border-radius: 58px 58px 8px 8px;
  bottom: 0;
  height: 66px;
  left: 24px;
  width: 72px;
}

.matri-karachi::after {
  background: #fff;
  border-radius: 40px 40px 0 0;
  bottom: 0;
  box-shadow: 0 -43px 0 -24px #d7dced;
  height: 42px;
  left: 50px;
  width: 20px;
}

.matri-icon-art {
  align-items: center;
  background: radial-gradient(circle at 30% 30%, #fff, #e7eef9);
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  color: #789d23;
  display: inline-flex;
  font-size: 47px;
  height: 72px;
  justify-content: center;
  text-decoration: none;
  width: 72px;
}

.matri-search-panel h2 {
  margin-bottom: 10px;
}

.matri-advanced-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr 1.45fr 1fr 1fr 1fr;
}

.matri-advanced-form label {
  color: #111;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  gap: 6px;
}

.matri-advanced-form select {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  height: 46px;
  padding: 0 16px;
  font-family: inherit;
  cursor: pointer;
}

.matri-advanced-form select option {
  font-size: 16px;
  font-weight: 500;
  padding: 12px;
  background: #fff;
  color: #333;
}

.matri-advanced-form button {
  background: #a00057;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  grid-column: 1 / -1;
  height: 38px;
}

.matri-daily-heading {
  font-size: 18px !important;
  margin-bottom: 10px !important;
}

.matri-proposal-list {
  display: grid;
  gap: 12px;
}

.matri-proposal-card {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 10px;
}

.matri-photo-placeholder {
  align-items: flex-start;
  background: transparent;
  border: 0;
  display: flex;
  height: auto;
  justify-content: center;
  padding-top: 2px;
  text-align: center;
  width: 64px;
}
.matri-photo-placeholder img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.matri-proposal-meta {
  color: #b32678;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.matri-proposal-card h3 {
  color: #c34a9b;
  font-size: 15px;
  line-height: 1.15;
  margin: 4px 0 8px;
  text-transform: none;
}

.matri-profile-grid {
  display: grid;
  font-size: 12px;
  gap: 6px 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matri-verified {
  color: #229900;
  font-style: normal;
  font-weight: 900;
}

.matri-progress {
  color: #b32678;
  font-style: normal;
  font-weight: 900;
}

.matri-details-btn {
  background: #76a71f;
  border-radius: 4px;
  color: #fff !important;
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  margin-top: 8px;
  padding: 4px 10px;
  text-transform: uppercase;
}

.matri-pagination {
  display: flex;
  gap: 4px;
  margin: 22px 0 0;
}

.matri-pagination a,
.matri-pagination strong {
  border: 1px solid #c34a9b;
  color: #9d0065;
  display: inline-block;
  padding: 6px 9px;
  text-decoration: none;
}

.matri-pagination strong {
  background: #9d0065;
  color: #fff;
}

.matri-faq {
  padding-top: 10px;
}

.matri-faq h2 {
  color: #111;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
}

.matri-faq h3 {
  font-size: 25px;
  margin: 6px 0 4px;
}

.matri-faq p {
  margin: 0 0 8px;
}

.matri-sidebar-card {
  padding: 14px 12px;
}

.matri-sidebar-card h2 {
  color: #c34a9b;
  font-size: 25px;
  margin: 0 0 14px;
}

.matri-featured-card {
  border-bottom: 1px solid #ccc;
  padding: 14px 0 18px;
  position: relative;
}

.matri-featured-card:last-child {
  border-bottom: 0;
}

.matri-new-ribbon {
  background: #d37ad0;
  color: #fff;
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  text-transform: uppercase;
  transform: rotate(-35deg);
  transform-origin: left center;
}

.matri-featured-card h3 {
  color: red;
  font-size: 14px;
  margin: -8px 0 4px 26px;
  text-align: center;
  text-transform: uppercase;
}

.matri-featured-card p {
  color: red;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}

.matri-featured-card ul {
  font-size: 12px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 12px;
}

.matri-featured-card a {
  color: #0b8f23;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
}

.matri-footer {
  background: linear-gradient(180deg, #d641bd 0%, #a50e79 100%);
  color: #fff;
  margin-top: 0;
  padding: 18px 0 0;
}

.matri-footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.3fr 1.3fr 1fr 1.3fr;
}

.matri-footer h4 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  padding-bottom: 9px;
  text-transform: uppercase;
}

.matri-footer p,
.matri-footer a {
  color: #fff;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.matri-social {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: #c34a9b;
  display: inline-flex;
  font-size: 23px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-right: 10px;
  width: 34px;
}

.matri-footer-bottom {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 12px;
  margin-top: 18px;
  padding: 10px;
  text-align: center;
}

@media (max-width: 1050px) {
  .matri-layout {
    grid-template-columns: 1fr;
  }

  .matri-sidebar {
    order: -1;
  }

  .matri-nav-wrap,
  .matri-intro-row {
    grid-template-columns: 1fr;
  }

  .matri-nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 18px;
    padding-top: 18px;
  }

  .matri-logo {
    flex-basis: auto;
  }

  .matri-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .matri-container {
    padding: 0 10px;
  }

  .matri-brand-header {
    border-bottom-width: 3px;
  }

  .matri-nav a {
    font-size: 14px;
    padding: 8px 9px;
  }

  .matri-logo-text strong {
    font-size: 19px;
  }

  .matri-title-bar,
  .matri-section h1,
  .matri-section h2 {
    font-size: 24px;
  }

  .matri-intro-row,
  .matri-category-grid,
  .matri-advanced-form,
  .matri-profile-grid,
  .matri-footer-grid {
    grid-template-columns: 1fr;
  }

  .matri-proposal-card {
    grid-template-columns: 1fr;
  }

  .matri-photo-placeholder {
  align-items: flex-start;
  background: transparent;
  border: 0;
  display: flex;
  height: auto;
  justify-content: center;
  padding-top: 2px;
  text-align: center;
  width: 64px;
}
.matri-photo-placeholder img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}
}
/* Matrimonial dropdown navigation and form pages */
.matri-nav details {
  position: relative;
}

.matri-nav summary {
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
  padding: 12px 13px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  user-select: none;
}

.matri-nav summary::-webkit-details-marker {
  display: none;
}

.matri-nav summary::after {
  content: " ?";
  font-size: 11px;
}

.matri-nav details[open] > summary,
.matri-nav summary:hover {
  background: #5d0737;
}

.matri-dropdown-menu {
  background: #5b062f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  display: grid;
  left: 0;
  min-width: 218px;
  position: absolute;
  top: 100%;
  z-index: 5000;
}

.matri-dropdown-right .matri-dropdown-menu {
  left: auto;
  right: 0;
}

.matri-dropdown-menu a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  padding: 13px 16px !important;
  text-shadow: none !important;
  white-space: nowrap;
}

.matri-dropdown-menu a:hover {
  background: #7a0a45 !important;
  color: #fff !important;
}

.matri-dropdown-columns {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  min-width: 320px;
}

.matri-form-page {
  padding-bottom: 52px;
  padding-top: 12px;
}

.matri-simple-card {
  background: #fff;
  box-shadow: 0 0 0 1px #eee;
  margin: 0 auto;
  max-width: 1110px;
  min-height: 540px;
  padding: 12px 14px 44px;
}

.matri-page-heading {
  color: #c34a9b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin: 18px 0 8px;
}

.matri-instructions {
  color: #d31414;
  font-size: 13px;
  line-height: 1.5;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.matri-register-form h2 {
  border-bottom: 1px solid #cfcfcf;
  color: #c34a9b;
  font-size: 18px;
  margin: 18px 0 18px;
  padding-bottom: 12px;
  text-decoration: underline;
}

.matri-form-grid {
  display: grid;
  gap: 18px 38px;
}

.matri-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.matri-register-form label,
.matri-contact-form label {
  color: #111;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.matri-register-form small,
.matri-register-form label small {
  color: red;
  font-size: 11px;
  font-style: italic;
}

.matri-register-form input,
.matri-register-form select,
.matri-contact-form input,
.matri-contact-form textarea {
  background: #fff;
  border: 1px solid #bfc3c7;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 14px;
  min-height: 36px;
  padding: 8px 12px;
  width: 100%;
}

.matri-register-form input:focus,
.matri-register-form select:focus,
.matri-contact-form input:focus,
.matri-contact-form textarea:focus {
  border-color: #c34a9b;
  box-shadow: 0 0 0 3px rgba(195, 74, 155, 0.14);
  outline: none;
}

.matri-inline-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 0.7fr;
}

.matri-radio-row {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 36px;
}

.matri-radio-row input {
  min-height: auto;
  width: auto;
}

.matri-submit-green {
  background: #5cb85c;
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  margin-top: 24px;
  min-height: 40px;
  width: 100%;
}

.matri-submit-green:hover {
  background: #4da64d;
}

.matri-note-red {
  color: red;
  font-size: 13px;
  margin-top: 18px;
}

.matri-contact-grid {
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  padding: 0 14px;
}

.matri-contact-form p,
.matri-support-panel p {
  font-size: 14px;
  margin: 0 0 18px;
}

.matri-contact-form form {
  display: grid;
  gap: 14px;
}

.matri-contact-form textarea {
  min-height: 60px;
  resize: vertical;
}

.matri-captcha-word {
  color: #1f62b6;
  display: block;
  font-family: Georgia, serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -3px;
  margin: 12px 0 8px 18px;
  text-shadow: 1px 2px 0 rgba(31, 98, 182, 0.18);
  transform: rotate(-8deg) skewX(-18deg);
  width: max-content;
}

.matri-refresh-link {
  color: #c34a9b;
  font-weight: 500;
  margin-bottom: 4px;
  text-decoration: underline;
}

.matri-support-panel {
  padding-top: 45px;
}

.matri-support-panel h2 {
  color: #c34a9b;
  font-size: 28px;
  margin: 0 0 12px;
}

.matri-support-panel a {
  color: #c34a9b;
  text-decoration: underline;
}

.matri-support-panel hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 28px 0;
}

@media (max-width: 1050px) {
  .matri-dropdown-menu,
  .matri-dropdown-right .matri-dropdown-menu {
    left: 0;
    right: auto;
  }

  .matri-contact-grid,
  .matri-form-grid.three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .matri-nav {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .matri-nav > a,
  .matri-nav summary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: block;
    font-size: 13px !important;
    padding: 10px 9px !important;
    text-align: center;
  }

  .matri-dropdown-menu {
    min-width: 100%;
    position: static;
  }

  .matri-dropdown-columns {
    grid-template-columns: 1fr;
    min-width: 100%;
  }

  .matri-simple-card {
    padding: 10px 10px 30px;
  }

  .matri-contact-grid,
  .matri-form-grid.three,
  .matri-inline-fields {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .matri-support-panel {
    padding-top: 8px;
  }

  .matri-footer-bottom {
    display: grid;
    gap: 8px;
    text-align: center;
  }
}
/* Dynamic matrimonial API states */
.matri-photo-thumb {
  border: 1px solid #1f3e75;
  height: 82px;
  overflow: hidden;
  width: 64px;
}

.matri-photo-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.matri-quick-filter-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0 4px;
}

.matri-quick-filter-row a {
  background: #fff;
  border: 1px solid #c34a9b;
  border-radius: 4px;
  color: #9d0065;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
}

.matri-quick-filter-row a:hover {
  background: #9d0065;
  color: #fff;
}

.matri-form-status {
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  padding: 10px 12px;
}

.matri-form-status.success {
  background: #e8f6e8;
  border: 1px solid #5cb85c;
  color: #276b27;
}

.matri-form-status.error {
  background: #fff0f0;
  border: 1px solid #d9534f;
  color: #b00000;
}

.matri-submit-green:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

@media (max-width: 760px) {
  .matri-quick-filter-row {
    grid-template-columns: 1fr 1fr;
  }
}
/* Readable custom dropdowns for the advanced matrimonial search */
.matri-advanced-form label {
  position: relative;
}

.matri-native-select-hidden {
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
}

.matri-custom-select {
  position: relative;
  width: 100%;
  z-index: 2;
}

.matri-custom-select.open {
  z-index: 50;
}

.matri-custom-select-trigger {
  align-items: center;
  background: #fff;
  border: 2px solid #d7d7d7;
  border-radius: 5px;
  color: #111;
  cursor: pointer;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  height: 50px;
  justify-content: space-between;
  line-height: 1.2;
  padding: 0 16px;
  text-align: left;
  width: 100%;
}

.matri-custom-select-chevron {
  border-bottom: 5px solid #333;
  border-right: 5px solid #333;
  display: inline-block;
  height: 22px;
  margin-left: 12px;
  transform: rotate(45deg) translateY(-4px);
  width: 22px;
}

.matri-custom-select-menu {
  background: #fff;
  border: 1px solid #777;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  display: none;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
}

.matri-custom-select.open .matri-custom-select-menu {
  display: block;
}

.matri-custom-select-option {
  background: #fff;
  border: 0;
  color: #111;
  cursor: pointer;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 42px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.matri-custom-select-option:hover,
.matri-custom-select-option.selected {
  background: #1e6bd6;
  color: #fff;
}
/* Keep custom search dropdown buttons from inheriting the form submit button style */
.matri-advanced-form .matri-custom-select-trigger {
  align-items: center;
  background: #fff;
  border: 2px solid #d7d7d7;
  border-radius: 5px;
  color: #111;
  display: flex;
  font-size: 16px;
  font-weight: 800;
  grid-column: auto;
  height: 50px;
  justify-content: space-between;
  line-height: 1.2;
  padding: 0 16px;
  text-align: left;
  width: 100%;
}

.matri-advanced-form .matri-custom-select-option {
  background: #fff;
  border: 0;
  border-radius: 0;
  color: #111;
  display: block;
  font-size: 16px;
  font-weight: 600;
  grid-column: auto;
  height: auto;
  line-height: 1.25;
  min-height: 44px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.matri-advanced-form .matri-custom-select-option:hover,
.matri-advanced-form .matri-custom-select-option.selected {
  background: #1e6bd6;
  color: #fff;
}
/* Privacy-first proposal cards: no personal photos shown */
.matri-list-photo-placeholder {
  align-items: center;
  background: linear-gradient(180deg, #dce8fb, #355c9b);
  border: 2px solid #244679;
  color: #fff;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  line-height: 1.08;
  min-height: 160px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.matri-featured-meta {
  color: #b32626;
  font-size: 12px;
  font-weight: 900;
  margin: -4px 0 8px;
  text-transform: none;
}

.matri-proposal-meta {
  color: #b32626;
  font-size: 12px;
  font-weight: 900;
}

