/* ============================================================
   Bohar Matrimony — Main Stylesheet
   Premium Yellow Identity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --yellow:      #F5B800; /* Primary */
  --yellow-dark: #D99B00; /* Hover/Active */
  --yellow-soft: #FFF7D6; /* Section backgrounds */
  --bg-cream:    #FFFCF2; /* Main background */
  
  --black:       #242424; /* Charcoal text */
  --black-dark:  #202020; /* Footer background */
  --white:       #FFFFFF;
  
  --grey-50:     #FAFAFA;
  --grey-100:    #F3F3F3;
  --grey-200:    #E8E8E8;
  --grey-300:    #CCCCCC;
  --grey-500:    #6B6B6B; /* Muted Gray */
  --grey-700:    #444444;
  
  --success:     #16A34A;
  --error:       #DC2626;
  --warning:     #D97706;
  --info:        #0284C7;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 2px 8px rgba(36,36,36,.06);
  --shadow:      0 8px 24px rgba(36,36,36,.08);
  --shadow-lg:   0 16px 48px rgba(36,36,36,.12);

  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:  .25s ease;
  --transition-slow: .6s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h:       72px;
  --sidebar-w:   240px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--bg-cream);
  line-height: 1.6;
  min-height: 100vh;
}
body.dashboard-page {
  padding-top: var(--nav-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; color: var(--black); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.2; color: var(--black); margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 600; color: var(--black); }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--grey-500); }
small { font-size: .85rem; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.navbar .container { max-width: 1400px; }
.section    { padding: 80px 0; }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: 8px; }
.gap-2  { gap: 16px; }
.gap-3  { gap: 24px; }
.gap-4  { gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  display: flex; align-items: center;
  transition: all var(--transition-slow);
}
.navbar.sticky {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: 64px;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar-shell { gap: 20px; }
.navbar-brand img { height: 40px; transition: height var(--transition); display: block; }
.navbar.sticky .navbar-brand img { height: 32px; }
.navbar-center { flex: 1; display: flex; justify-content: center; }
.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.navbar-nav { display: flex; align-items: center; gap: 8px; }
.navbar-nav a {
  color: var(--black); padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500; position: relative;
}
.navbar-nav a:not(.btn-nav)::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--yellow); transition: all var(--transition); transform: translateX(-50%);
}
.navbar-nav a:not(.btn-nav):hover::after, .navbar-nav a.active::after { width: 80%; }
.navbar-nav a:not(.btn-nav):hover { transform: translateY(-1px); }

.navbar-nav .btn-nav {
  background: var(--yellow); color: var(--black); font-weight: 600;
  padding: 10px 20px; border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(245,184,0,.2);
  position: relative; overflow: hidden;
}
.navbar-nav .btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245,184,0,.3);
  background: var(--yellow-dark);
}
.navbar-nav .btn-nav::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-20deg); transition: none;
}
.navbar-nav .btn-nav:hover::before { animation: lightSweep .6s ease; }

@keyframes lightSweep { 0% { left: -100%; } 100% { left: 200%; } }

.nav-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
}
.nav-icon:hover { background: rgba(0,0,0,.04); }

.navbar-toggle { display: none; background: none; border: none; color: var(--black); font-size: 1.5rem; cursor: pointer; padding: 8px; }
.nav-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--error); color: var(--white);
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Bottom Nav (mobile) ────────────────────────────────────── */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--white); height: 64px; box-shadow: 0 -2px 10px rgba(0,0,0,.05); }
.bottom-nav ul { display: flex; height: 100%; }
.bottom-nav li { flex: 1; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: var(--grey-300);
  font-size: .7rem; font-weight: 500; gap: 4px;
}
.bottom-nav a i { font-size: 1.25rem; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--yellow-dark); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-xl); border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; transition: all 250ms ease;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--yellow); color: var(--black); box-shadow: 0 4px 12px rgba(245,184,0,.2); }
.btn-primary:hover { background: var(--yellow-dark); box-shadow: 0 6px 16px rgba(245,184,0,.3); transform: translateY(-2px); }
.btn-dark      { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #111; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline   { background: transparent; color: var(--black); border: 2px solid var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-yellow { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.btn-outline-yellow:hover { background: var(--yellow); color: var(--black); }
.btn-ghost     { background: transparent; color: var(--black); }
.btn-ghost:hover { background: var(--grey-100); }
.btn-danger    { background: var(--error); color: var(--white); }
.btn-success   { background: var(--success); color: var(--white); }
.btn-sm        { padding: 8px 16px; font-size: .875rem; border-radius: var(--radius-lg); }
.btn-lg        { padding: 18px 36px; font-size: 1.1rem; }
.btn-full      { width: 100%; }
.btn-icon      { padding: 12px; border-radius: 50%; }
.btn:disabled, .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.pagination a,
.pagination span.current {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.pagination a:hover {
  border-color: var(--yellow);
  background: var(--yellow-soft);
}
.pagination span.current {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}
.pagination.pagination-tight a,
.pagination.pagination-tight span.current {
  min-width: 46px;
  height: 46px;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .pagination {
    gap: 12px;
    margin-top: 22px;
  }
  .pagination.pagination-tight a,
  .pagination.pagination-tight span.current {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
  }
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: var(--black); }
.form-label .req { color: var(--error); margin-left: 2px; }
.form-control {
  display: block; width: 100%;
  padding: 14px 16px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--grey-200); background: var(--white);
  color: var(--black); transition: all var(--transition);
  appearance: none; font-size: 1rem;
}
.form-control:focus {
  outline: none; border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245,184,0,.15);
}
.form-control::placeholder { color: var(--grey-300); }
.form-hint { font-size: .85rem; color: var(--grey-500); margin-top: 6px; }
.form-error { font-size: .85rem; color: var(--error); margin-top: 6px; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23242424'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 40px; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Cards & UI Elements ─────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(0,0,0,.04);
}
.card-header { padding: 24px 32px; border-bottom: 1px solid var(--grey-100); }
.card-body   { padding: 32px; }

/* Profile Card */
.profile-card {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: all var(--transition); border: 1px solid rgba(0,0,0,.03);
  cursor: pointer; position: relative;
}
.profile-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.profile-card .photo-wrap { aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--grey-100); }
.profile-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.profile-card:hover .photo-wrap img { transform: scale(1.05); }
.profile-card .photo-blur { filter: blur(16px); transform: scale(1.15); }
.profile-card .photo-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: rgba(36,36,36,.6);
  color: var(--white); font-size: .9rem; font-weight: 500; gap: 8px;
}
.profile-card .info { padding: 20px; }
.profile-card .name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; color: var(--black); display: flex; align-items: center; gap: 6px; }
.profile-card .meta { font-size: .9rem; color: var(--grey-500); margin-bottom: 4px; }
.profile-card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  white-space: nowrap; text-transform: uppercase; letter-spacing: .5px;
}
.badge-yellow   { background: var(--yellow-soft); color: var(--yellow-dark); }
.badge-black    { background: var(--black); color: var(--white); }
.badge-success  { background: #E6F4EA; color: #1E8E3E; }
.badge-error    { background: #FCE8E6; color: #D93025; }

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--bg-cream);
  padding: 120px 0 80px; overflow: hidden;
}
.hero-glow {
  position: absolute; top: 50%; right: 10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,184,0,0.15) 0%, rgba(245,184,0,0) 70%);
  transform: translateY(-50%); z-index: 1; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; }
.hero-content { flex: 1; max-width: 600px; }
.hero-trust-label {
  display: inline-block; background: var(--yellow-soft); color: var(--yellow-dark);
  font-size: .85rem; font-weight: 700; padding: 6px 16px; border-radius: 20px;
  margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px;
}
.hero-actions { display: flex; gap: 16px; margin: 40px 0; flex-wrap: wrap; }
.hero-indicators { display: flex; gap: 24px; color: var(--grey-500); font-size: .9rem; font-weight: 500; }
.hero-indicators span { display: flex; align-items: center; gap: 8px; }
.hero-indicators i { color: var(--yellow); font-size: 1.1rem; }
.hero-image { flex: 1; position: relative; }
.hero-image img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); object-fit: cover; height: 600px; }

/* ── Search Bar Overlay ──────────────────────────────────────── */
.search-panel {
  position: relative; z-index: 10; margin-top: -60px;
  background: var(--white); border-radius: var(--radius-xl);
  padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.04);
}
.search-panel form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: end; }
.search-panel .form-group { margin: 0; }
.search-panel .form-control { background: var(--bg-cream); border-color: transparent; }
.search-panel .form-control:focus { background: var(--white); border-color: var(--yellow); }

/* ── How It Works ────────────────────────────────────────────── */
.steps-section { padding: 100px 0; background: var(--white); text-align: center; }
.steps-row { display: flex; justify-content: space-between; position: relative; margin-top: 60px; max-width: 1000px; margin-inline: auto; }
.steps-line { position: absolute; top: 40px; left: 10%; right: 10%; height: 2px; background: var(--grey-200); z-index: 1; }
.steps-line-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--yellow); width: 0; transition: width 1s ease-out; }
.step-item { position: relative; z-index: 2; flex: 1; padding: 0 20px; }
.step-circle {
  width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--yellow-soft); color: var(--yellow-dark); border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  box-shadow: 0 4px 12px rgba(245,184,0,.1); transition: transform var(--transition);
}
.step-item:hover .step-circle { transform: scale(1.1); }
.step-item h3 { font-size: 1.1rem; margin-bottom: 8px; }

/* ── Why Choose Us ───────────────────────────────────────────── */
.features-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 60px; text-align: center; }
.feature-item .icon-box {
  width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--yellow-soft); color: var(--yellow-dark); font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.feature-item:hover .icon-box { transform: rotate(5deg) translateY(-5px); background: #FFE066; }
.feature-item h3 { font-size: 1.05rem; margin-bottom: 8px; }

/* ── Trust Stats ─────────────────────────────────────────────── */
.stats-band { background: var(--yellow); padding: 60px 0; }
.stats-band .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; text-align: center; }
.stat-box .num { font-size: 3.5rem; font-weight: 800; color: var(--black); line-height: 1; margin-bottom: 8px; }
.stat-box .lbl { font-size: 1.1rem; color: rgba(36,36,36,.8); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ── Success Stories ─────────────────────────────────────────── */
.stories-section { padding: 120px 0; background: var(--bg-cream); }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 60px; align-items: center; }
.story-card-large {
  background: var(--white); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition-slow); position: relative;
}
.story-card-large:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.story-card-large:nth-child(2) { transform: scale(1.05); z-index: 2; }
.story-card-large:nth-child(2):hover { transform: scale(1.05) translateY(-10px); }
.story-img-large { height: 320px; width: 100%; object-fit: cover; }
.story-content-large { padding: 32px; position: relative; }
.story-quote-icon { position: absolute; top: -20px; right: 32px; width: 40px; height: 40px; background: var(--yellow); color: var(--black); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; transform: translateY(10px); transition: all var(--transition); }
.story-card-large:hover .story-quote-icon { opacity: 1; transform: translateY(0); }
.story-content-large h3 { font-size: 1.4rem; color: var(--black); margin-bottom: 4px; }
.story-content-large .meta { font-size: .9rem; color: var(--yellow-dark); font-weight: 600; margin-bottom: 16px; }
.story-content-large p { font-size: 1rem; color: var(--grey-700); font-style: italic; }

/* ── Membership ──────────────────────────────────────────────── */
.membership-banner {
  background: linear-gradient(135deg, #FFF3C0 0%, #F5B800 100%);
  border-radius: var(--radius-xl); padding: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  box-shadow: var(--shadow-lg); margin: 80px auto; position: relative; overflow: hidden;
}
.membership-icon {
  position: absolute; right: 20%; top: 50%; transform: translateY(-50%);
  font-size: 12rem; color: rgba(255,255,255,.2); pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(-55%); } }
.membership-banner h2 { font-size: 2.5rem; margin-bottom: 16px; color: var(--black); }
.membership-banner p { font-size: 1.2rem; color: rgba(36,36,36,.8); max-width: 500px; margin-bottom: 32px; }

/* ── Final CTA ───────────────────────────────────────────────── */
.final-cta {
  position: relative; padding: 120px 0; text-align: center; overflow: hidden;
}
.final-cta-bg {
  position: absolute; inset: 0; background: url('<?= APP_URL ?>/assets/img/wedding 1.jpg') center/cover;
  z-index: 1; transition: transform 10s linear;
}
.final-cta:hover .final-cta-bg { transform: scale(1.05); }
.final-cta-overlay {
  position: absolute; inset: 0; background: rgba(255,247,214,0.92); z-index: 2;
}
.final-cta .container { position: relative; z-index: 3; max-width: 800px; }
.final-cta h2 { font-size: 3.5rem; margin-bottom: 24px; color: var(--black); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--black-dark); color: rgba(255,255,255,.7);
  padding: 80px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 60px; }
.footer-logo img { height: 40px; margin-bottom: 20px; }
.footer-grid h4 { color: var(--yellow); font-size: 1.1rem; margin-bottom: 24px; font-weight: 600; }
.footer-grid ul { display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-grid a:hover { color: var(--yellow); }
.social-links { display: flex; gap: 16px; margin-top: 24px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--white); }
.social-links a:hover { background: var(--yellow); color: var(--black); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.powered-by { font-size: .9rem; color: rgba(255,255,255,.7); }
.powered-by a { color: var(--yellow); font-weight: 700; }
.yellow-heart { color: #FFD84D; }

/* ── Page Layouts (Public Pages) ─────────────────────────────── */
.page-hero { padding: 160px 0 80px; background: var(--bg-cream); text-align: center; }
.page-hero h1 { margin-bottom: 16px; }
.page-content { padding: 80px 0; background: var(--white); }

/* ── Animations (Scroll Reveal) ──────────────────────────────── */
.reveal-fade   { opacity: 0; transform: translateY(30px); transition: all 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale  { opacity: 0; transform: scale(0.95); transition: all 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-active { opacity: 1; transform: translateY(0) scale(1); }

/* ── Mobile Overrides ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .search-panel form { grid-template-columns: 1fr 1fr 1fr; }
  .search-panel form .btn { grid-column: span 3; }
  .features-row { grid-template-columns: repeat(3, 1fr); }
  .stories-grid { grid-template-columns: 1fr; }
  .story-card-large:nth-child(2) { transform: none; }
  .story-card-large:nth-child(2):hover { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .hero { flex-direction: column; padding-top: 100px; text-align: center; }
  .hero .container { flex-direction: column; }
  .hero-content { margin-bottom: 40px; }
  .hero-actions { justify-content: center; }
  .hero-indicators { justify-content: center; flex-wrap: wrap; }
  .hero-image { width: 100%; }
  .hero-image img { height: 400px; }
  
  .navbar-center { display: block; flex: 0; }
  .navbar-nav { display: none; }
  .navbar-nav.open { display: flex !important; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); padding: 80px 24px 24px; z-index: 2000; overflow-y: auto; pointer-events: auto; }
  .navbar-nav.open a { font-size: 1.2rem; padding: 16px; border-bottom: 1px solid var(--grey-100); width: 100%; }
  .navbar-toggle { display: block; z-index: 2001; position: relative; pointer-events: auto; }
  
  .search-panel { margin-top: 24px; border-radius: var(--radius-lg); }
  .search-panel form { grid-template-columns: 1fr; gap: 12px; }
  .search-panel form .btn { grid-column: 1; }
  
  .steps-row { flex-direction: column; gap: 40px; padding-left: 32px; }
  .steps-line { left: 32px; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps-line-fill { width: 2px; height: 0; transition: height 1s ease-out; }
  .step-item { display: flex; align-items: flex-start; text-align: left; padding: 0; }
  .step-circle { width: 48px; height: 48px; font-size: 1.2rem; margin: 0 24px 0 0; position: absolute; left: -24px; top: 0; background: var(--white); border-color: var(--yellow); }
  .step-item h3 { margin-top: 12px; }
  
  .bottom-nav { display: block; }
  body.has-mobile-nav { padding-bottom: 64px; }
  
  .features-row { grid-template-columns: 1fr 1fr; }
  .stats-band .container { flex-direction: column; gap: 32px; }
  
  .membership-banner { flex-direction: column; text-align: center; padding: 40px 24px; }
  .membership-icon { right: 50%; top: -20px; transform: translateX(50%); font-size: 8rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Utilities ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--grey-500); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-full { width: 100%; }

/* ── Flash Messages ──────────────────────────────────────────── */
.flash { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; font-size: .95rem; }
.flash-success { background: #E6F4EA; color: #1E8E3E; border: 1px solid #CEEAD6; }
.flash-error   { background: #FCE8E6; color: #D93025; border: 1px solid #FAD2CF; }
.flash-info    { background: #E8F0FE; color: #1A73E8; border: 1px solid #D2E3FC; }

/* ── Auth Box ────────────────────────────────────────────────── */
.auth-box { width: 100%; max-width: 440px; margin: 40px auto; background: var(--white); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 48px; margin: 0 auto 16px; }
.input-group { position: relative; }
.input-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grey-300); }
.input-group .form-control { padding-left: 44px; }

/* ── User Dashboard ──────────────────────────────────────────── */
.dash-layout { display: flex; min-height: calc(100vh - var(--nav-h)); max-width: 1300px; margin: var(--nav-h) auto 0; }
.dash-sidebar { width: 280px; flex-shrink: 0; padding: 32px 24px; border-right: 1px solid var(--grey-200); }
.dash-content { flex: 1; padding: 32px 40px; overflow-x: hidden; }

.user-card { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--grey-200); }
.user-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--bg-cream); box-shadow: var(--shadow-sm); }
.user-name { font-size: 1.1rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.user-meta { font-size: .85rem; color: var(--grey-500); }

.dash-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.dash-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); color: var(--grey-500); font-weight: 500; transition: all var(--transition); }
.dash-sidebar nav a i { width: 20px; text-align: center; font-size: 1.1rem; }
.dash-sidebar nav a:hover { background: var(--bg-cream); color: var(--black); }
.dash-sidebar nav a.active { background: var(--yellow-soft); color: var(--yellow-dark); }
.sidebar-badge { background: var(--error); color: var(--white); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: auto; }

.page-title { margin-bottom: 32px; }
.page-title h1 { font-size: 1.8rem; margin-bottom: 8px; }

.dashboard-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
}
.dashboard-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.45);
}
.dashboard-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dashboard-banner-copy strong { font-size: 1rem; }
.dashboard-banner-copy span { color: var(--grey-700); font-size: .95rem; }
.dashboard-banner-row { justify-content: space-between; }
.dashboard-banner-success { background: #E6F4EA; color: #1E8E3E; border: 1px solid #CEEAD6; }
.dashboard-banner-info { background: #E8F0FE; color: #1A73E8; border: 1px solid #D2E3FC; }
.dashboard-banner-error { background: #FCE8E6; color: #D93025; border: 1px solid #FAD2CF; }

.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.04); display: flex; flex-direction: column; }
.stat-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 16px; }
.stat-icon.yellow { background: var(--yellow-soft); color: var(--yellow-dark); }
.stat-icon.black  { background: var(--grey-200); color: var(--black); }
.stat-icon.green  { background: #E6F4EA; color: #1E8E3E; }
.stat-icon.blue   { background: #E8F0FE; color: #1A73E8; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--black); line-height: 1.2; }
.stat-label { font-size: .9rem; color: var(--grey-500); font-weight: 500; }

.interest-card { background: var(--white); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.04); display: flex; align-items: center; gap: 16px; transition: all var(--transition); }
.interest-card:hover { box-shadow: var(--shadow); }
.interest-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.interest-info { flex: 1; }
.interest-name { font-size: 1rem; font-weight: 700; color: var(--black); }
.interest-meta { font-size: .85rem; color: var(--grey-500); margin-top: 2px; }
.interest-actions { display: flex; gap: 8px; }
.dashboard-shell { padding-top: 28px; }
.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dashboard-banner-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.dashboard-membership { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dashboard-membership-metrics { display: flex; gap: 24px; flex-wrap: wrap; }
.dashboard-interest-list { display: flex; flex-direction: column; gap: 10px; }
.mobile-profile-actions { display: none; margin-top: 20px; }

.notif-item { padding: 18px 20px; border-bottom: 1px solid var(--grey-100); display: flex; align-items: flex-start; gap: 16px; }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: #FFFDF3; }
.notif-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow-soft); color: var(--yellow-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 700; color: var(--black); margin-bottom: 4px; }
.notif-msg { color: var(--grey-500); font-size: .95rem; }
.notif-time { color: var(--grey-500); font-size: .8rem; margin-top: 6px; }

/* ── Overrides for Mobile grids ──────────────────────────────── */
@media (max-width: 768px) {
  .dash-layout { flex-direction: column; margin-top: 56px; }
  .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--grey-200); padding: 24px; }
  .dash-content { padding: 24px; }
  .dash-content .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .dash-content .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 1100px) {
  .navbar-center { display: flex; }
  .navbar-nav { display: flex; }
  .navbar-toggle { display: none !important; }
  .bottom-nav { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .navbar-center { display: block; flex: 0; }
  .navbar-nav { display: none !important; }
  .navbar-nav.open { display: flex !important; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); padding: 80px 24px 24px; z-index: 2000; overflow-y: auto; pointer-events: auto; }
  .navbar-toggle { display: block; }
  .bottom-nav { display: none !important; }
}
@media (max-width: 480px) {
  .dash-content .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-content .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 12px; }
  .stat-value { font-size: 1.4rem; }
  .interest-card { flex-direction: column; text-align: center; align-items: center; }
  .interest-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .dashboard-hero, .dashboard-banner, .dashboard-banner-row, .dashboard-membership, .section-heading { align-items: flex-start; }
  .dashboard-membership-metrics { width: 100%; justify-content: space-between; }
}

/* Shared page spacing and dashboard/mobile overrides */
.public-page .section:first-of-type,
.public-page .info-hero,
.public-page .auth-page {
  padding-top: calc(var(--nav-h) + 28px);
}
.dashboard-page .dash-layout {
  max-width: none;
  width: 100%;
  margin: 0 auto;
}
.dashboard-page .dash-sidebar {
  display: none;
}
.dashboard-page .dash-content {
  padding: 32px 40px 96px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.dashboard-page .container.section {
  max-width: 1440px;
  padding-left: 40px;
  padding-right: 40px;
}
.dashboard-page .dashboard-shell {
  padding-top: 28px;
}
.dashboard-page .page-title {
  margin-bottom: 28px;
}
.navbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.navbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lang-switcher {
  position: relative;
}
.lang-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  background: var(--black);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1400;
  max-width: calc(100vw - 24px);
}
.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  color: #fff;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover {
  background: rgba(255,255,255,.08);
}
.navbar-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  background: var(--black);
  color: var(--white);
  border-radius: 14px;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  z-index: 1400;
  overflow: hidden;
  max-width: calc(100vw - 24px);
}
.dropdown-menu a,
.dropdown-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: rgba(255,255,255,.08); }
.dropdown-divider { height: 1px; background: rgba(255,255,255,.12); margin: 4px 0; }
.dropdown-danger { color: #FFD2D2; }
.filter-panel .filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.filter-panel .filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}
.filter-panel .filter-actions {
  margin-top: 14px;
}
.detail-grid {
  gap: 0;
}
.detail-item {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 8px 16px;
  align-items: start;
  padding: 14px 0;
}
.detail-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey-500);
  font-weight: 700;
}
.detail-value {
  font-weight: 600;
  color: var(--black);
}
@media (max-width: 768px) {
  .dashboard-page .navbar-toggle {
    display: none;
  }
  .dashboard-page .dash-layout {
    margin-top: var(--nav-h);
  }
  .dashboard-page .dash-sidebar {
    display: none;
  }
  .dashboard-page .dash-content {
    padding: 20px 16px 96px;
  }
  .dashboard-page .container.section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .dashboard-shell {
    padding-top: 18px;
  }
  .dashboard-page .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-page .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-profile-actions {
    display: block;
  }
  .public-page .section:first-of-type,
  .public-page .info-hero,
  .public-page .auth-page {
    padding-top: calc(var(--nav-h) + 16px);
  }
  .detail-item {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }
  .interest-card { flex-direction: column; text-align: center; align-items: center; }
  .interest-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .notif-item { border-radius: 14px; border: 1px solid var(--grey-100); margin-bottom: 12px; }
  .dashboard-page .container.section { padding-left: 16px; padding-right: 16px; }
}

/* ── Hero Load Animations ─────────────────────────────────────── */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroScaleIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

.hero-load-1 { opacity: 0; animation: heroFadeUp 0.6s ease forwards 0.1s; }
.hero-load-2 { opacity: 0; animation: heroFadeUp 0.6s ease forwards 0.2s; }
.hero-load-3 { opacity: 0; animation: heroFadeUp 0.6s ease forwards 0.3s; }
.hero-load-4 { opacity: 0; animation: heroFadeUp 0.6s ease forwards 0.4s; }
.hero-load-5 { opacity: 0; animation: heroFadeUp 0.6s ease forwards 0.5s; }
.hero-load-img { opacity: 0; animation: heroScaleIn 0.8s ease forwards 0.6s; }

/* ── Stories Carousel (Mobile) & Hover ───────────────────────── */
.stories-grid:hover .story-card-large:not(:hover) { opacity: 0.6; transform: scale(0.98); }
@media (max-width: 768px) {
  .stories-grid { 
    display: flex; flex-wrap: nowrap; overflow-x: auto; 
    scroll-snap-type: x mandatory; padding-bottom: 24px; gap: 16px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .stories-grid::-webkit-scrollbar { display: none; }
  .story-card-large { flex: 0 0 85%; scroll-snap-align: center; }
  .story-card-large:nth-child(2):hover { transform: none; }
}

/* ── Final CTA Scroll Parallax ───────────────────────────────── */
.final-cta-bg {
  position: absolute; inset: 0; background: url('/assets/img/wedding 1.jpg') center/cover;
  z-index: 1; transform: scale(1.1); transition: transform 0.1s linear;
}
