/* ═══════════════════════════════════════════════════
   MYOBITUARYAPP — qr-memorial-cards.css
   Page-specific styles for qr-memorial-cards.blade.php
   Design: Dark Luxury Edition — Gold Accents
═══════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --dark-bg:           #0a0e14;
  --dark-bg-secondary: #0f1419;
  --dark-card:         #1a1f28;
  --dark-border:       #2a3038;
  --gold:              #d4aa4a;
  --gold-light:        #e8c76e;
  --gold-pale:         #f0dfa8;
  --text-primary:      #e6edf3;
  --text-secondary:    #8b949e;
  --text-muted:        #6e7681;
  --r:                 14px;
  --r-lg:              22px;
  --r-xl:              32px;
  --ease:              cubic-bezier(0.25,0.46,0.45,0.94);
  --shadow-soft:       0 8px 40px rgba(0,0,0,0.4);
  --shadow-deep:       0 20px 60px rgba(0,0,0,0.6);
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Lora', serif; }
a { text-decoration: none; color: inherit; }
img { display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn-gold {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold); color: #000;
  padding: 14px 30px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.3s var(--ease); text-decoration: none;
}
.btn-gold:hover {
  background: var(--gold-light); color: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,170,74,0.35);
}

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-primary);
  padding: 13px 26px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 500;
  border: 1.5px solid var(--dark-border); cursor: pointer;
  transition: all 0.3s var(--ease); text-decoration: none;
}
.btn-ghost-light:hover {
  background: var(--dark-card); border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   SECTION LABELS & TITLES
══════════════════════════════════════════════════ */
.section-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 12px;
}
.section-title em { font-style: italic; color: var(--gold-pale); }

.section-sub {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; max-width: 500px;
}

/* ══════════════════════════════════════════════════
   HERO SECTION — SIDE BY SIDE LAYOUT
══════════════════════════════════════════════════ */
.qr-hero-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--dark-bg);
  overflow: hidden;
  padding-top: 80px;
}

.qr-hero-left {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  z-index: 2;
}

.qr-hero-content { max-width: 550px; width: 100%; }

.qr-hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px;
}
.qr-hero-label::before { content: ''; width: 28px; height: 1px; background: var(--gold-light); }

.qr-hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
  color: #fff; margin-bottom: 16px;
}
.qr-hero-title em { font-style: italic; color: var(--gold-pale); }

.qr-hero-subtitle {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 32px;
}

/* ── Hero Feature Icons ── */
.qr-hero-features {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px; margin-bottom: 40px;
}

.qr-hero-feature-item { display: flex; align-items: flex-start; gap: 12px; }

.qr-hero-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(212,170,74,0.12);
  border: 1px solid rgba(212,170,74,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1.3rem; flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.qr-hero-feature-item:hover .qr-hero-feature-icon {
  background: var(--gold); color: #000; border-color: var(--gold); transform: scale(1.08);
}

.qr-hero-feature-text {
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500;
  color: var(--text-secondary); line-height: 1.4;
}

.qr-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero Right ── */
.qr-hero-right {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.qr-hero-right::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,14,20,0.5) 0%, rgba(22,27,34,0.3) 50%, transparent 100%);
  z-index: 1;
}

/* ── Card Mockup Display ── */
.qr-hero-mockup-container {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}

.qr-cards-display {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 20px;
}

.qr-card-item { position: relative; flex-shrink: 0; animation: float 3s ease-in-out infinite; }
.qr-card-item:nth-child(1) { animation-delay: 0s; }
.qr-card-item:nth-child(2) { animation-delay: 0.5s; }

.qr-card-vertical {
  width: 280px;
  background: rgba(26,31,40,0.8); backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-lg);
  padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); text-align: center;
}

.qr-card-photo-container {
  position: relative; border-radius: 12px;
  overflow: hidden; margin-bottom: 20px;
}
.qr-card-photo {
  width: 100%; height: 280px; object-fit: cover; display: block; border-radius: 12px;
}

.qr-card-name { font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.qr-card-dates { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: var(--gold-pale); letter-spacing: 0.08em; margin-bottom: 14px; }
.qr-card-divider { height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); margin: 12px 0; }

.qr-card-qr-badge {
  width: 60px; height: 60px; background: rgba(255,255,255,0.95); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--dark-bg); margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: all 0.3s var(--ease);
}
.qr-card-vertical:hover .qr-card-qr-badge { background: var(--gold); color: #fff; transform: scale(1.08); }

.qr-card-hint { font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }

.qr-phone-mockup {
  width: 260px;
  background: linear-gradient(135deg, #1a1f28 0%, #0f1419 100%);
  border: 8px solid #000; border-radius: 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8); overflow: hidden; position: relative;
}

.qr-phone-screen {
  width: 100%; height: 500px;
  background: linear-gradient(180deg, rgba(26,31,40,0.9) 0%, #0a0e14 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
}

.qr-phone-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 16px; animation: pulse 2s ease-in-out infinite; }
.qr-phone-text { font-family: 'Lora', serif; font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.qr-phone-subtext { font-size: 0.7rem; color: var(--text-secondary); }
.qr-phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 25px; background: #000; border-radius: 0 0 20px 20px; z-index: 10;
}

/* ══════════════════════════════════════════════════
   HOW IT WORKS — IMAGE LEFT / CONTENT RIGHT
══════════════════════════════════════════════════ */
.qr-how-section-new {
  padding: 100px 0;
  background: var(--dark-bg-secondary);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.qr-how-wrapper {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: flex-start; gap: 40px;
}

/* Left: Image */
.qr-how-visual { flex: 0 0 48%; position: relative; }
.qr-how-visual img {
  width: 100%; height: 100%; min-height: 450px;
  border-radius: var(--r-lg); box-shadow: var(--shadow-deep);
  position: relative; z-index: 2; transition: transform 0.5s var(--ease);
}
.qr-how-glow {
  position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,170,74,0.15) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 1; pointer-events: none;
}

/* Right: Content */
.qr-how-info { flex: 1; max-width: 550px; }

.qr-how-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px;
}
.qr-how-label::before { content: ''; width: 28px; height: 1px; background: var(--gold-light); }

.qr-how-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3.3vw, 2.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
  color: #fff; margin-bottom: 16px; display: inline;
}
.qr-how-title em { font-style: italic; color: var(--gold-pale); }

.qr-how-desc {
  margin-top: 12px; font-size: 0.95rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 36px;
}

/* ── 4 Icons in a row ── */
.qr-how-icons-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 36px;
}

.qr-how-icon-item { display: flex; flex-direction: column; gap: 10px; }

.qr-how-icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(212,170,74,0.1); border: 1px solid rgba(212,170,74,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1.1rem; transition: all 0.3s var(--ease);
}
.qr-how-icon-item:hover .qr-how-icon-box {
  background: var(--gold); color: #000; border-color: var(--gold); transform: scale(1.08);
}

.qr-how-icon-text { display: flex; flex-direction: column; gap: 3px; }
.qr-how-icon-text strong { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.qr-how-icon-text span   { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.4; }

.qr-how-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════
   FEATURES DETAILED SECTION
══════════════════════════════════════════════════ */
.qr-details-section {
  padding: 100px 0; background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
}

.qr-details-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.qr-details-left { max-width: 550px; }

.qr-details-list { list-style: none; padding: 0; margin: 0; }

.qr-details-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--dark-border);
  transition: all 0.3s var(--ease);
}
.qr-details-item:hover { transform: translateX(5px); }

.qr-details-check {
  width: 32px; height: 32px; min-width: 32px; border-radius: 8px;
  background: rgba(212,170,74,0.12); border: 1px solid rgba(212,170,74,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); transition: all 0.3s var(--ease); margin-top: 2px;
}
.qr-details-item:hover .qr-details-check { background: var(--gold); color: #fff; }

.qr-details-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.qr-details-text strong { color: var(--text-primary); font-weight: 600; }

.qr-details-image { position: relative; }
.qr-details-image img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-deep); }

.qr-price-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--gold); color: #000; border-radius: var(--r-lg);
  padding: 20px 28px; box-shadow: 0 14px 40px rgba(212,170,74,0.4);
}
.qr-price-from  { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
.qr-price-num   { font-family: 'Lora', serif; font-size: 2.2rem; font-weight: 700; line-height: 1.1; display: block; }
.qr-price-desc  { font-size: 0.72rem; opacity: 0.85; }

/* ══════════════════════════════════════════════════
   TESTIMONIAL SECTION
══════════════════════════════════════════════════ */
.qr-testimonial-section {
  padding: 100px 0; background: var(--dark-bg-secondary);
  border-top: 1px solid var(--dark-border);
}

.qr-testimonial-card {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: var(--r-lg); padding: 52px 56px;
  max-width: 900px; margin: 0 auto; position: relative; box-shadow: var(--shadow-soft);
}

.qr-quote-mark {
  font-family: 'Lora', serif; font-size: 7rem; line-height: 0.6;
  color: rgba(212,170,74,0.2); position: absolute; top: 20px; left: 40px;
  user-select: none; pointer-events: none;
}

.qr-testimonial-text {
  font-family: 'Lora', serif; font-size: 1.3rem; font-style: italic;
  line-height: 1.65; color: var(--text-primary); margin-bottom: 30px;
  position: relative; z-index: 1;
}

.qr-testimonial-author { display: flex; align-items: center; gap: 14px; }
.qr-testimonial-avatar {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--dark-border);
}
.qr-author-name  { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.qr-author-role  { font-size: 0.75rem; color: var(--text-secondary); }
.qr-stars        { color: var(--gold); font-size: 0.8rem; margin-bottom: 2px; }

/* ══════════════════════════════════════════════════
   FINAL CTA SECTION
══════════════════════════════════════════════════ */
.qr-cta-section {
  position: relative; padding: 100px 0; overflow: hidden;
  background: linear-gradient(135deg, #0a0e14 0%, #0f1419 50%, #1a1f28 100%);
  border-top: 1px solid var(--dark-border);
}

.qr-cta-bg { position: absolute; inset: 0; z-index: 0; }
.qr-cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.qr-cta-overlay { position: absolute; inset: 0; background: rgba(10,14,20,0.4); }

.qr-cta-inner { position: relative; z-index: 2; text-align: center; color: #fff; }

.qr-cta-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700;
  margin-bottom: 16px; line-height: 1.15;
}
.qr-cta-title em { font-style: italic; color: var(--gold-pale); }

.qr-cta-sub {
  font-size: 0.92rem; color: var(--text-secondary);
  max-width: 460px; margin: 16px auto 40px; line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-20px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.qr-hero-label          { animation: slideInLeft  0.7s var(--ease) 0.05s both; }
.qr-hero-title          { animation: slideInLeft  0.7s var(--ease) 0.15s both; }
.qr-hero-subtitle       { animation: slideInLeft  0.7s var(--ease) 0.25s both; }
.qr-hero-features       { animation: slideInLeft  0.7s var(--ease) 0.35s both; }
.qr-hero-actions        { animation: slideInLeft  0.7s var(--ease) 0.45s both; }
.qr-hero-mockup-container { animation: slideInRight 0.8s var(--ease) 0.20s both; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .qr-details-content { grid-template-columns: 1fr; gap: 40px; }
  .qr-hero-new        { min-height: auto; }
}

@media (max-width: 991px) {
  .qr-how-wrapper     { flex-direction: column; gap: 40px; }
  .qr-how-visual      { flex: 1; width: 100%; }
  .qr-how-info        { max-width: 100%; }
}

@media (max-width: 768px) {
  .qr-hero-new        { flex-direction: column; padding: 100px 0 50px; }
  .qr-hero-left       { flex: 1; padding: 40px 28px; }
  .qr-hero-right      { flex: 1; min-height: 400px; }
  .qr-hero-features   { grid-template-columns: 1fr; }
  .qr-how-section-new { padding: 70px 0; }
  .qr-how-icons-row   { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .qr-how-step-row    { padding: 14px 16px; gap: 14px; }
  .qr-testimonial-card { padding: 40px 28px; }
  .qr-quote-mark      { font-size: 5rem; top: 10px; left: 20px; }
  .qr-details-section,
  .qr-testimonial-section,
  .qr-cta-section     { padding: 70px 0; }
}

@media (max-width: 480px) {
  .qr-hero-title      { font-size: 2rem; }
  .qr-hero-actions    { flex-direction: column; }
  .qr-hero-actions a  { width: 100%; justify-content: center; }
  .qr-how-icons-row   { grid-template-columns: repeat(2, 1fr); }
  .qr-how-actions     { flex-direction: column; }
  .qr-how-actions a   { width: 100%; justify-content: center; }
  .qr-cards-display   { flex-direction: column; gap: 30px; }
  .qr-card-vertical,
  .qr-phone-mockup    { max-width: 100%; }
}