/* ═══════════════════════════════════════════════════════
   NUANCE — Premium Editorial Layer v3.0
   Inspired by: Aesop, Glossier, The Ordinary, Vogue Beauty
   This file APPENDS to nuance.css — do not duplicate
   ═══════════════════════════════════════════════════════ */

/* ─── EDITORIAL TYPOGRAPHY REFINEMENTS ─────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1 { letter-spacing: -0.03em; line-height: 1.08; }
h2 { letter-spacing: -0.02em; line-height: 1.15; }
h3 { letter-spacing: -0.01em; line-height: 1.25; }

/* Subtle serif italic for editorial emphasis */
.editorial-accent {
  font-style: italic;
  color: var(--coral);
}

/* ─── PREMIUM SECTION TRANSITIONS ──────────────────────── */
section {
  position: relative;
}

/* Elegant divider between sections */
.section-divider::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  margin: 0 auto 3rem;
}

/* Full-bleed image sections */
.section-fullbleed {
  position: relative;
  overflow: hidden;
}
.section-fullbleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-fullbleed .section-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(28,25,23,0) 0%, rgba(28,25,23,0.7) 100%);
}

/* ─── EDITORIAL CARDS — Magazine feel ──────────────────── */
.card-editorial {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,249,247,0.98) 100%);
  border: 1px solid rgba(95,75,61,0.08);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.5s cubic-bezier(0.16,1,0.3,1);
}
.card-editorial::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,59,90,0.3), rgba(255,125,150,0.18), transparent);
  pointer-events: none;
}
.card-editorial:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 72px rgba(22,19,16,0.08), 0 10px 24px rgba(22,19,16,0.04);
}

.card-editorial .card-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.card-editorial .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.card-editorial:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-editorial .card-content {
  padding: 1.5rem 1.75rem 2rem;
}

.card-editorial .card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.card-editorial .card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1c1917;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card-editorial .card-excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #78716c;
}

/* ─── PREMIUM HERO — Full-impact ──────────────────────── */
.hero-premium {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(230,59,90,0.08) 0%, transparent 28%),
    radial-gradient(circle at top left, rgba(255,125,150,0.08) 0%, transparent 22%),
    linear-gradient(165deg, #fffdfc 0%, #fff7f4 44%, #fffaf8 100%);
}

.hero-premium::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(230,59,90,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-premium .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #78716c;
  backdrop-filter: blur(8px);
  margin-bottom: 2rem;
}
.hero-premium .hero-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-premium h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #1c1917;
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.hero-premium h1 em {
  font-style: italic;
  color: var(--coral);
}

.hero-premium .hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #78716c;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* ─── PREMIUM CTA BUTTONS ────────────────────────────── */
.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-premium-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230,59,90,0.2);
}
.btn-premium-primary:hover {
  background: var(--coral-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230,59,90,0.25);
}

.btn-premium-outline {
  background: transparent;
  color: #1c1917;
  border: 1.5px solid rgba(0,0,0,0.12);
}
.btn-premium-outline:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-1px);
}

/* Arrow animation on hover */
.btn-premium .btn-arrow {
  transition: transform 0.3s ease;
}
.btn-premium:hover .btn-arrow {
  transform: translateX(4px);
}

/* ─── EDITORIAL GRID — Magazine layout ─────────────────── */
.editorial-grid {
  display: grid;
  gap: 1.5rem;
}
.editorial-grid-2 { grid-template-columns: 1fr; }
.editorial-grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .editorial-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Feature card — large hero-style card */
.card-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.5s cubic-bezier(0.16,1,0.3,1);
}
@media (min-width: 768px) {
  .card-feature {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    align-items: stretch;
  }
  .card-feature .feature-img {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
    max-width: 24rem;
    width: 100%;
  }
  .card-feature .feature-body {
    min-width: 0;
  }
}
@media (min-width: 1280px) {
  .card-feature {
    grid-template-columns: minmax(20rem, 26rem) minmax(0, 1fr);
  }
  .card-feature .feature-img {
    max-width: 26rem;
  }
}
.card-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.06);
}
.card-feature .feature-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card-feature .feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.card-feature:hover .feature-img img {
  transform: scale(1.04);
}
.card-feature .feature-body {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─── STAT COUNTERS — Editorial impact numbers ─────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); gap: 0; }
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(230,59,90,0.15), transparent);
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--coral);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a29e;
  margin-top: 0.5rem;
}

/* ─── TRUST BAR — Subtle credibility strip ─────────────── */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.trust-bar span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a29e;
}

/* ─── PULL QUOTE — Editorial accent ────────────────────── */
.pull-quote {
  position: relative;
  padding: 2.5rem 0;
  margin: 3rem auto;
  max-width: 560px;
  text-align: center;
}
.pull-quote::before {
  content: '\201C';
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  color: var(--coral);
  line-height: 1;
  opacity: 0.3;
  margin-bottom: 0.5rem;
}
.pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: #44403c;
  letter-spacing: -0.01em;
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: normal;
  color: #a8a29e;
  letter-spacing: 0.04em;
}

/* ─── NEWSLETTER PREMIUM ──────────────────────────────── */
.newsletter-premium {
  background:
    radial-gradient(circle at top right, rgba(230,59,90,0.08) 0%, transparent 24%),
    radial-gradient(circle at bottom left, rgba(255,125,150,0.08) 0%, transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,247,244,0.96) 56%, rgba(255,252,250,0.98) 100%);
  border: 1px solid rgba(95,75,61,0.08);
  box-shadow: 0 28px 72px rgba(24,18,16,0.06);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-premium::before {
  content: '';
  position: absolute;
  top: -22%;
  right: -10%;
  width: 44%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(230,59,90,0.05) 0%, transparent 72%);
  pointer-events: none;
}
.newsletter-premium h2 {
  color: #20191d !important;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
}
.newsletter-premium p {
  color: #6f625f !important;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}
.newsletter-premium .input-group {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-premium input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(95,75,61,0.10) !important;
  background: rgba(255,255,255,0.92) !important;
  color: #20191d !important;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-premium input[type="email"]:focus {
  border-color: var(--coral);
}
.newsletter-premium input[type="email"]::placeholder {
  color: #8f7782 !important;
}

/* ─── IMAGE TREATMENTS ────────────────────────────────── */
.img-editorial {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.img-editorial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.img-editorial:hover img {
  transform: scale(1.03);
}

/* Gradient overlay on images */
.img-editorial::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(28,25,23,0.3) 100%);
  pointer-events: none;
}

/* ─── SCROLL REVEAL ENHANCEMENTS ──────────────────────── */
[data-sal] {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ─── MOBILE REFINEMENTS ──────────────────────────────── */
@media (max-width: 768px) {
  .hero-premium h1 {
    font-size: 2.25rem;
  }
  .hero-premium .hero-sub {
    font-size: 1rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .trust-bar {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .newsletter-premium .input-group {
    flex-direction: column;
  }
}

/* ─── GLASSMORPHISM ELEMENTS ──────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ─── READING TIME BADGE ──────────────────────────────── */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #a8a29e;
  font-weight: 500;
}
.reading-time svg {
  width: 14px;
  height: 14px;
}
