/**
 * WedEazzy — Public Site Enhancement Layer
 * ========================================
 * Loaded AFTER css/shared.css on every public page. Adds the motion,
 * mobile-navigation and responsive refinements that pair with
 * js/wedeazzy-enhance.js, without editing the existing stylesheets.
 *
 * All colour comes from the tokens already defined in shared.css (--red is now
 * the logo's "e" red, #DC1F30), so the brand stays defined in one place.
 */

:root {
  --wz-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wz-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wz-dur: 0.5s;
}

/* Reduced motion wins over everything below. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .wz-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   1. SCROLL REVEAL
   ============================================================ */
.wz-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--wz-dur) var(--wz-ease),
              transform var(--wz-dur) var(--wz-ease);
  will-change: opacity, transform;
}
.wz-revealed {
  opacity: 1;
  transform: none;
}
/* Once revealed, drop the hint so long pages don't hold hundreds of layers. */
.wz-revealed { will-change: auto; }

/* ============================================================
   2. HEADER
   ============================================================ */
.header {
  transition: box-shadow 0.3s var(--wz-ease),
              background-color 0.3s var(--wz-ease),
              height 0.3s var(--wz-ease);
}
.header.wz-scrolled {
  box-shadow: 0 6px 24px rgba(80, 40, 20, 0.09);
  background: rgba(251, 247, 242, 0.98);
}
[data-theme="dark"] .header.wz-scrolled { background: rgba(20, 18, 22, 0.98); }

.header-right a.nav-link {
  position: relative;
  transition: color 0.2s var(--wz-ease), background-color 0.2s var(--wz-ease);
}
/* Underline grows from the centre on hover. */
.header-right a.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: left 0.25s var(--wz-ease), right 0.25s var(--wz-ease);
}
.header-right a.nav-link:hover::after { left: 13px; right: 13px; }

/* ============================================================
   3. MOBILE NAVIGATION
   ============================================================ */
.wz-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.wz-nav-toggle:hover { border-color: var(--red); }
.wz-nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--black);
  transition: transform 0.3s var(--wz-ease), opacity 0.2s ease;
}
.wz-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wz-nav-toggle.active span:nth-child(2) { opacity: 0; }
.wz-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.wz-nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(27, 27, 31, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--wz-ease);
}
.wz-nav-scrim.show { opacity: 1; pointer-events: auto; }

.wz-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  /* dvh so an iOS Safari toolbar appearing mid-scroll doesn't clip the panel */
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px rgba(80, 40, 20, 0.18);
  z-index: 999;
  transform: translateX(103%);
  transition: transform 0.34s var(--wz-ease);
  padding: 78px 20px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wz-nav-panel.show { transform: translateX(0); }

/* The panel receives clones of the real header links, so style by element
   rather than by a class the markup may not have. */
.wz-nav-panel > a,
.wz-nav-panel > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  background: none;
  border: none;
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.wz-nav-panel > a:hover,
.wz-nav-panel > button:hover {
  background: var(--blush);
  color: var(--red-dark);
  transform: translateX(3px);
}
/* Keep the WhatsApp CTA visually primary inside the drawer. */
.wz-nav-panel > .header-cta {
  justify-content: center;
  margin-top: 10px;
  color: #fff !important;
}
.wz-nav-panel > a.nav-link::after { display: none; }

@media (max-width: 820px) {
  .wz-nav-toggle { display: flex; }
  /* index.html uses .header-nav, the shared.css pages use .header-right. */
  .header-right, .header-nav { display: none !important; }
  .header-inner { justify-content: space-between; }
}

/* ============================================================
   4. BACK TO TOP
   ============================================================ */
.wz-to-top {
  position: fixed;
  left: 22px;
  bottom: 96px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--red);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: all 0.28s var(--wz-ease);
}
.wz-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.wz-to-top:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(220, 31, 48, 0.32);
}

/* The FAQ chatbot launcher already occupies bottom-left at 24px; lift the
   back-to-top button clear of it rather than overlapping. */
@media (max-width: 640px) {
  .wz-to-top { left: 14px; bottom: 92px; width: 40px; height: 40px; }
}

/* ============================================================
   5. IMAGE FADE-IN
   ============================================================ */
.wz-img-fade { opacity: 0; transition: opacity 0.55s var(--wz-ease); }
.wz-img-in { opacity: 1; }

/* ============================================================
   6. CARD & BUTTON MICRO-INTERACTIONS
   ============================================================ */
.vendor-card,
.category-card,
.city-card,
.blog-card {
  transition: transform 0.3s var(--wz-ease),
              box-shadow 0.3s var(--wz-ease),
              border-color 0.3s var(--wz-ease);
  will-change: transform;
}
.vendor-card:hover,
.category-card:hover,
.city-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Zoom the card's own image on hover, without letting it escape the radius. */
.vendor-card, .category-card, .city-card, .blog-card { overflow: hidden; }
.vendor-card img, .category-card img, .city-card img, .blog-card img {
  transition: transform 0.55s var(--wz-ease);
}
.vendor-card:hover img,
.category-card:hover img,
.city-card:hover img,
.blog-card:hover img { transform: scale(1.055); }

.btn-primary, .header-cta, .float-wa {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--wz-ease), box-shadow 0.2s var(--wz-ease), background-color 0.2s ease;
}
.btn-primary:active, .header-cta:active { transform: scale(0.975); }

/* Ripple ink injected by wedeazzy-enhance.js */
.wz-ink {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: wzInk 0.6s var(--wz-ease) forwards;
  pointer-events: none;
}
@keyframes wzInk {
  to { transform: scale(2.4); opacity: 0; }
}

/* Visible keyboard focus across the public site. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================
   7. RESPONSIVE REFINEMENTS (tablet & phone)
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 18px; }
}

@media (max-width: 820px) {
  .header-inner { height: 64px; }
  .brand img { height: 38px; }
  .page-hero { padding: 26px 0 30px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 14px; }

  .page-hero h1 { font-size: clamp(21px, 6vw, 28px); }
  .page-hero p { font-size: 13.5px; }

  /* The WhatsApp pill and the two chat launchers all live along the bottom
     edge on mobile; shrink the pill so they can coexist. */
  .float-wa {
    bottom: 16px;
    right: 14px;
    padding: 11px 16px;
    font-size: 13px;
  }

  /* Collapse the marketing grids to a single column. Deliberately an explicit
     list rather than a [class*="-grid"] wildcard with !important: that would
     also capture the vendor/couple dashboard grids (form-grid-premium,
     metrics-grid, payment-methods-grid, …) which share this stylesheet, and
     silently override layouts this change has no business touching. */
  .hero-grid, .value-grid, .steps-grid, .testi-grid, .role-grid,
  .plan-grid, .logos-grid, .info-grid, .city-grid, .blog-grid,
  .cat-circle-grid, .cat-bride-grid, .cat-groom-grid,
  .pre-wedding-grid, .footer-middle-grid {
    grid-template-columns: 1fr;
  }

  /* Any horizontally-scrolling strip gets momentum + snap instead of a
     cramped wrap. */
  .scroll-row, .chips-row, .filter-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .scroll-row::-webkit-scrollbar,
  .chips-row::-webkit-scrollbar,
  .filter-row::-webkit-scrollbar { display: none; }
  .scroll-row > *, .chips-row > *, .filter-row > * { scroll-snap-align: start; }

  /* Comfortable tap targets. */
  .btn-primary, .header-cta, .call-link { min-height: 44px; }

  table { font-size: 13px; }
}

/* Tablet portrait: two columns reads better than one full-width column. */
@media (min-width: 641px) and (max-width: 1024px) {
  .city-grid, .blog-grid, .cat-circle-grid,
  .cat-bride-grid, .cat-groom-grid, .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Prevent any single element from forcing a horizontal scrollbar on phones —
   the most common cause of the "page is slightly wider than the screen" feel. */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  img, video, iframe, table { max-width: 100%; }
}

/* ============================================================
   GLOBAL DESTINATIONS SECTION STYLES
   ============================================================ */
.destinations-section {
  background: #FFFFFF;
  padding: 56px 0 64px 0;
  border-top: 1px solid rgba(234, 225, 215, 0.6);
  position: relative;
}

.dest-headline-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px auto;
}

.dest-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #DC1F30;
  margin-bottom: 10px;
}

.dest-headline {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #0A1D37;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.dest-subtitle {
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 16px;
  color: #5A5560;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* Country Tabs Navigation Bar */
.dest-country-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 6px;
  background: #F9F8F6;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 99px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.dest-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 99px;
  border: 1px solid transparent;
  background: transparent;
  color: #4A4550;
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.dest-country-btn .flag {
  font-size: 18px;
  line-height: 1;
}

.dest-country-btn:hover {
  color: #DC1F30;
  background: rgba(220, 31, 48, 0.05);
}

.dest-country-btn.active {
  background: #DC1F30;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(220, 31, 48, 0.28);
}

/* Desktop Main Panel Grid: Tabs on Left, Cities Grid on Right */
.dest-panel-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.dest-country-sidebar {
  background: #FAF9F8;
  border: 1px solid rgba(234, 225, 215, 0.8);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.dest-sidebar-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #DC1F30;
  margin-bottom: 8px;
  padding-left: 6px;
}

.dest-side-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #2D2735;
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  width: 100%;
}

.dest-side-btn:hover {
  background: rgba(220, 31, 48, 0.06);
  color: #DC1F30;
}

.dest-side-btn.active {
  background: #FFFFFF;
  border-color: rgba(220, 31, 48, 0.25);
  color: #DC1F30;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(220, 31, 48, 0.08);
}

.dest-side-btn .side-flag {
  font-size: 20px;
  margin-right: 10px;
}

.dest-side-btn .side-count {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: #F3EBEB;
  color: #5A5560;
}

.dest-side-btn.active .side-count {
  background: rgba(220, 31, 48, 0.12);
  color: #DC1F30;
}

/* Country Content View */
.dest-country-content {
  display: none;
  animation: destFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dest-country-content.active {
  display: block;
}

@keyframes destFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dest-country-header {
  margin-bottom: 24px;
}

.dest-country-header h3 {
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #0A1D37;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dest-country-header p {
  font-size: 14px;
  color: #6B6574;
  line-height: 1.5;
}

/* City Cards Grid */
.dest-cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dest-city-card {
  background: #FFFFFF;
  border: 1px solid rgba(234, 225, 215, 0.8);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.dest-city-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 31, 48, 0.3);
  box-shadow: 0 12px 28px rgba(220, 31, 48, 0.1);
}

.dest-city-img-wrap {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
  background: #FAF9F8;
}

.dest-city-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-city-card:hover .dest-city-img-wrap img {
  transform: scale(1.08);
}

.dest-city-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dest-city-name {
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #0A1D37;
  margin-bottom: 4px;
}

.dest-city-count {
  font-size: 13px;
  color: #6B6574;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dest-city-count .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.dest-city-link {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: #DC1F30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.dest-city-card:hover .dest-city-link {
  gap: 10px;
}

/* Responsive Queries & Premium Refinements for Global Destinations */
.dest-city-flag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 29, 55, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dest-city-count .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  animation: pulseGreen 2s infinite;
}

@media (max-width: 1024px) {
  .destinations-section {
    padding: 40px 0 48px 0;
  }
  .dest-headline-wrap {
    margin-bottom: 24px;
    padding: 0 12px;
  }
  .dest-headline {
    font-size: clamp(24px, 5.5vw, 34px);
  }
  .dest-subtitle {
    font-size: 14.5px;
  }
  .dest-panel-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* Hide sidebar on mobile to prevent duplicate tabs */
  .dest-country-sidebar {
    display: none !important;
  }
  /* Make top tabs bar horizontal scrollable carousel on mobile */
  .dest-country-tabs {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    padding: 6px 10px;
    border-radius: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px;
    margin-bottom: 20px;
  }
  .dest-country-tabs::-webkit-scrollbar {
    display: none;
  }
  .dest-country-btn {
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13.5px;
    border-radius: 99px;
  }
  .dest-cities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .dest-city-card {
    border-radius: 14px;
  }
  .dest-city-img-wrap {
    height: 130px;
  }
  .dest-city-body {
    padding: 12px 14px;
  }
  .dest-city-name {
    font-size: 15.5px;
  }
  .dest-city-count {
    font-size: 12px;
    margin-bottom: 8px;
  }
}

@media (max-width: 540px) {
  .dest-cities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .dest-city-img-wrap {
    height: 110px;
  }
  .dest-city-body {
    padding: 10px;
  }
  .dest-city-name {
    font-size: 14.5px;
  }
  .dest-city-count {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dest-city-link {
    font-size: 12px;
  }
  .dest-city-flag-badge {
    font-size: 9.5px;
    padding: 3px 6px;
    top: 6px;
    left: 6px;
  }
}


