/* ============================================================
   Cards Diary – Premium CSS
   Colors: #F8C8DC (light pink) | #8B0000 (dark red) | #FFFFFF (white)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --pink: #F8C8DC;
  --pink-light: #fde8f0;
  --pink-mid: #f5b8cf;
  --red: #8B0000;
  --red-mid: #a00000;
  --red-light: rgba(139, 0, 0, 0.08);
  --white: #ffffff;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-soft: 0 8px 32px rgba(139, 0, 0, 0.10);
  --shadow-hover: 0 20px 60px rgba(139, 0, 0, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Performance: tell the browser to skip off-screen sections until scroll */
.why-us,
.testimonials,
.cta-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
  /* reserve approx height to avoid layout shift */
}

body {
  font-family: var(--font-serif);
  color: var(--red);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ---------- Typography ---------- */
h1 {
  font-family: var(--font-script);
  font-weight: 400;
}

h2,
h3 {
  font-family: var(--font-poppins);
  font-weight: 700;
}

strong {
  font-family: var(--font-poppins);
  font-weight: 600;
}

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

/* ---------- Utility ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-poppins);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.65;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-poppins);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--red);
  opacity: 0.7;
  max-width: 520px;
  margin: 0 auto;
  font-style: italic;
}

/* Poppins for any element explicitly needing punch */
.poppins {
  font-family: var(--font-poppins);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-poppins);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 40px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(248, 200, 220, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(139, 0, 0, 0.35);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--font-poppins);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 38px;
  border-radius: 2px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(139, 0, 0, 0.2);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 14px 40px;
  box-shadow: 0 2px 24px rgba(139, 0, 0, 0.10);
}

.navbar.scrolled .nav-brand-link {
  background: rgba(253, 232, 240, 0.45);
  border-radius: 6px;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.nav-brand-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  text-decoration: none;
  padding: 6px 12px 6px 14px;
  border-radius: 4px;
  background: transparent;
  border: none;
  position: relative;
  transition: var(--transition);
}

/* Left accent bar */
.nav-brand-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 60%;
  background: linear-gradient(to bottom, var(--red), rgba(139, 0, 0, 0.35));
  border-radius: 2px;
  transition: height var(--transition);
}

.nav-brand-link:hover::before {
  height: 85%;
}

.nav-brand-link:hover {
  transform: translateY(-1px);
}

/* Main script wordmark */
.logo-script {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(139, 0, 0, 0.18);
  white-space: nowrap;
  transition: letter-spacing var(--transition);
}

.nav-brand-link:hover .logo-script {
  letter-spacing: 0.025em;
}

/* Sub-tagline beneath wordmark */
.logo-tagline {
  font-family: var(--font-poppins);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.55;
  padding-left: 2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-poppins);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.75;
  transition: opacity 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--red);
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #fff5f9 0%, var(--pink) 55%, #f5c0d5 100%);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.f-card {
  position: absolute;
  border-radius: 8px;
  border: 1.5px solid rgba(139, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(2px);
}

.fc1 {
  width: 120px;
  height: 170px;
  top: 15%;
  left: 8%;
  animation: floatCard1 7s ease-in-out infinite;
  transform: rotate(-12deg);
}

.fc2 {
  width: 90px;
  height: 130px;
  top: 60%;
  left: 5%;
  animation: floatCard2 9s ease-in-out infinite;
  transform: rotate(8deg);
}

.fc3 {
  width: 110px;
  height: 155px;
  top: 12%;
  right: 8%;
  animation: floatCard3 8s ease-in-out infinite;
  transform: rotate(15deg);
}

.fc4 {
  width: 80px;
  height: 110px;
  top: 65%;
  right: 6%;
  animation: floatCard4 10s ease-in-out infinite;
  transform: rotate(-6deg);
}

@keyframes floatCard1 {

  0%,
  100% {
    transform: rotate(-12deg) translateY(0);
  }

  50% {
    transform: rotate(-12deg) translateY(-22px);
  }
}

@keyframes floatCard2 {

  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(8deg) translateY(18px);
  }
}

@keyframes floatCard3 {

  0%,
  100% {
    transform: rotate(15deg) translateY(0);
  }

  50% {
    transform: rotate(15deg) translateY(-18px);
  }
}

@keyframes floatCard4 {

  0%,
  100% {
    transform: rotate(-6deg) translateY(0);
  }

  50% {
    transform: rotate(-6deg) translateY(24px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.65;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-script);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(139, 0, 0, 0.12);
}

/* Hero brand title (logo-like heading) */
.hero-brand-title {
  font-family: var(--font-script);
  font-size: clamp(4.5rem, 11vw, 9rem);
  color: var(--red);
  line-height: 0.95;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(139, 0, 0, 0.12);
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--red);
  opacity: 0.78;
  font-style: italic;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--red));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    height: 40px;
  }

  50% {
    opacity: 0.8;
    height: 60px;
  }
}

/* ---------- FADE ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s var(--transition) forwards;
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- COLLECTION SECTION ---------- */
.collection {
  background: var(--white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.inv-card {
  background: var(--pink-light);
  border: 1.5px solid rgba(139, 0, 0, 0.20);
  border-radius: 6px;
  padding: 40px 28px 36px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
  /* GPU layer for smooth hover animations */
}

.inv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.inv-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(139, 0, 0, 0.4);
}

.inv-card:hover::before {
  opacity: 1;
}

.inv-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.inv-card-icon svg {
  width: 100%;
  height: 100%;
}

.inv-card-title {
  font-family: var(--font-poppins);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.inv-card-desc {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--red);
  opacity: 0.72;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
}

.inv-card-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid rgba(139, 0, 0, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.3s, opacity 0.3s;
}

.inv-card-link:hover {
  border-color: var(--red);
  opacity: 0.8;
}

/* ---------- WHY US SECTION ---------- */
.why-us {
  background: var(--white);
  border-top: 1px solid rgba(139, 0, 0, 0.07);
  border-bottom: 1px solid rgba(139, 0, 0, 0.07);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.why-item {
  text-align: center;
  padding: 36px 28px;
  border-radius: 6px;
  background: var(--pink-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-item h3 {
  font-family: var(--font-poppins);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.why-item p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--red);
  opacity: 0.7;
  font-style: italic;
  line-height: 1.65;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials {
  background: linear-gradient(160deg, var(--pink-light) 0%, var(--pink) 100%);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  /* GPU-composited slide animation */
}

.testimonial-card {
  min-width: 100%;
  padding: 56px 60px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(139, 0, 0, 0.12);
  position: relative;
  text-align: center;
}

.t-quote {
  font-family: var(--font-script);
  font-size: 7rem;
  color: var(--pink);
  line-height: 0.6;
  position: absolute;
  top: 30px;
  left: 40px;
  pointer-events: none;
}

.t-text {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--red);
  font-style: italic;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.t-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid rgba(139, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--red);
  flex-shrink: 0;
}

.t-author strong {
  display: block;
  font-family: var(--font-poppins);
  font-size: 0.95rem;
  color: var(--red);
  font-weight: 700;
}

.t-author span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--red);
  opacity: 0.55;
  letter-spacing: 0.08em;
}

.t-hearts {
  margin-top: 20px;
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  opacity: 0.55;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 0, 0, 0.3);
  background: var(--white);
  color: var(--red);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: scale(1.08);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--red);
  transform: scale(1.3);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: var(--white);
}

.cta-box {
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink) 100%);
  border: 1px solid rgba(139, 0, 0, 0.15);
  border-radius: 10px;
  padding: 80px 60px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '♥';
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 14rem;
  color: rgba(139, 0, 0, 0.04);
  pointer-events: none;
  font-family: serif;
  line-height: 1;
}

.cta-title {
  font-family: var(--font-poppins);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--red);
  opacity: 0.72;
  font-style: italic;
  max-width: 500px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--red);
  color: var(--white);
  padding: 72px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand .brand-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-script {
  font-family: var(--font-script) !important;
  color: var(--white) !important;
  font-size: 2.4rem !important;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.footer-link-group h4 {
  font-family: var(--font-poppins);
}

.footer-logo-container {
  display: inline-block;
  position: relative;
  transition: var(--transition);
  margin-bottom: 8px;
}

.footer-logo-container:hover {
  transform: translateY(-4px);
}

.footer-logo-img {
  height: 95px;
  width: auto;
  max-width: 100%;
  display: block;
  /* Add a soft beautiful shadow behind the logo directly, removing the box container */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  transition: transform 0.4s;
}

.footer-logo-container:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 16px;
  letter-spacing: 0.02em;
}

.footer-links-group h4 {
  font-family: var(--font-poppins);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.footer-links-group ul li {
  margin-bottom: 10px;
}

.footer-links-group a {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-links-group a:hover {
  color: var(--pink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
}

.heart-icon {
  color: var(--pink);
  display: inline;
}

/* ---------- COLLECTION MODAL ---------- */
.collection-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.collection-modal {
  background: var(--white);
  border: 1.5px solid rgba(139, 0, 0, 0.2);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

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

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, var(--pink-light), var(--white));
}

.modal-title {
  font-family: var(--font-poppins);
  font-size: 1.4rem;
  color: var(--red);
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  transform: rotate(90deg) scale(1.1);
}

.modal-close-btn svg {
  width: 28px;
  height: 28px;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  background: var(--white);
}

.modal-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.modal-option-card {
  background: var(--white);
  border: 1px solid rgba(139, 0, 0, 0.15);
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal-option-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(139, 0, 0, 0.4);
  background: var(--pink-light);
}

.modal-option-title {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--red);
  line-height: 1;
}

/* ---------- FAQ MODAL CONTENT ---------- */
.faq-modal-content {
  max-width: 800px;
}
.faq-body {
  padding: 32px 40px;
  background: var(--pink-light);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(139, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.faq-summary {
  font-family: var(--font-poppins);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--red);
  padding: 24px 32px;
  cursor: pointer;
  list-style: none; /* remove default arrow */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: background var(--transition);
}

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

.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] .faq-summary::after {
  content: '−'; /* proper minus sign */
  transform: rotate(180deg);
}

.faq-item[open] .faq-summary {
  background: rgba(139, 0, 0, 0.03);
  border-bottom: 1px solid rgba(139, 0, 0, 0.08);
}

.faq-content {
  padding: 24px 32px;
  background: var(--white);
  animation: faqFadeIn 0.3s ease-in-out;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-content p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--red);
  opacity: 0.8;
  line-height: 1.7;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .navbar {
    padding: 16px 24px;
  }

  .navbar.scrolled {
    padding: 12px 24px;
  }

  .nav-brand-link {
    width: 132px;
    height: 44px;
    border-radius: 10px;
  }

  .brand-logo {
    height: 100%;
    width: 100%;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    box-shadow: -4px 0 32px rgba(139, 0, 0, 0.12);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-title {
    font-size: clamp(3.2rem, 14vw, 5.5rem);
  }

  .hero-brand-title {
    font-size: clamp(3.4rem, 15vw, 5.8rem);
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card {
    padding: 40px 28px;
  }

  .t-quote {
    font-size: 5rem;
    left: 16px;
    top: 16px;
  }

  .cta-box {
    padding: 56px 28px;
  }

  .faq-body {
    padding: 24px 20px;
  }
  
  .faq-summary {
    padding: 20px 24px;
    font-size: 0.95rem;
  }
  
  .faq-content {
    padding: 20px 24px;
    font-size: 0.95rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .f-card {
    display: none;
  }
}

/* ---------- APP DOWNLOAD ---------- */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.app-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  height: 100vh;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.popup-box {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-hover);
  animation: fadeUpPopup 0.4s var(--transition) forwards;
}

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

.popup-box h3 {
  color: var(--red);
  margin-bottom: 12px;
}

.popup-box p {
  color: var(--red);
  opacity: 0.8;
  margin-bottom: 24px;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.download-btn {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.later-btn {
  background: transparent;
  color: var(--red);
  padding: 10px 20px;
  border: 1.5px solid var(--red);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.later-btn:hover {
  background: var(--red-light);
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}