/* =====================================================================
   spainpaharganj — Polish & UX Refinement Layer
   Senior Product Design — Spacing, Typography, Rhythm, Clarity
   ===================================================================== */

/* ─────────────────────────────────────────────────────
   FONT UPGRADE: Swap to Playfair Display + DM Sans
   (both are loaded via the existing Google Fonts link
   — also adding DM Sans as a fallback for Plus Jakarta)
───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Updated font stack — feels editorial and human */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;

  /* Generous spacing tokens */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Section vertical rhythm */
  --section-py: clamp(5rem, 9vw, 9rem);

  /* Readable line length */
  --measure-narrow: 42ch;
  --measure:        60ch;
  --measure-wide:   80ch;
}

/* ─────────────────────────────────────────────────────
   GLOBAL RESETS & BREATHING ROOM
───────────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
}

/* Remove bottom margin from last children in containers */
p:last-child,
h1:last-child, h2:last-child, h3:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────
   TYPOGRAPHY — Cleaner, More Human Scale
───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.3rem); }

p {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  max-width: var(--measure);
}

/* Section intro paragraph — slightly larger */
.section-intro {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 56ch;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────
   SECTION TITLE SYSTEM — Consistent & Breathable
───────────────────────────────────────────────────── */
.section-title-wrap {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-pretitle {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-rose-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.section-title-wrap > p {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 52ch;
  margin: 0;
}

/* Centered variant */
.section-title-wrap.text-center .section-title-wrap > p {
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────
   CONTAINER — More generous horizontal padding
───────────────────────────────────────────────────── */
.container {
  padding-left:  clamp(1.25rem, 5vw, 3.5rem);
  padding-right: clamp(1.25rem, 5vw, 3.5rem);
  max-width: 1280px;
}

/* Section vertical padding — generous breathing room */
.section-padding,
section[class] {
  padding-top:    var(--section-py);
  padding-bottom: var(--section-py);
}

/* Override for sections that need tighter spacing */
.stats-section {
  padding-top:    clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

/* ─────────────────────────────────────────────────────
   HEADER — Cleaner, properly layered
───────────────────────────────────────────────────── */
.header-container {
  height: auto;
  padding-top:    1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

/* Reduce header density when scrolled */
.site-header.scrolled .header-container {
  padding-top:    0.65rem;
  padding-bottom: 0.65rem;
}

/* ─────────────────────────────────────────────────────
   NAV LINKS — More space between items
───────────────────────────────────────────────────── */
.nav-menu {
  gap: 0.25rem;
}

.nav-link {
  padding: 0.55rem 0.9rem;
  gap: 4px;
}

.nav-link-label {
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────
   HERO SECTION — Proper content spacing
───────────────────────────────────────────────────── */
.hero-section {
  padding-top:    clamp(7rem, 14vw, 11rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
  min-height: 95vh;
}

.hero-content {
  max-width: 620px;
}

.hero-pretitle {
  margin-bottom: 1.75rem !important;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.80;
  color: rgba(255,255,255,0.72);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

.hero-btns {
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────
   SERVICE CARDS — Spacious grid
───────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

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

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

.service-card {
  border-radius: 16px;
  overflow: hidden;
}

.service-card-body {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.service-card-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.service-card-body p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-price {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────
   TRUST BADGE ROW — Proper gap
───────────────────────────────────────────────────── */
.trust-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-badge-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-rose-gold-dark);
}

/* ─────────────────────────────────────────────────────
   STATS SECTION — More padding and refined type
───────────────────────────────────────────────────── */
.stats-grid {
  gap: 0;
}

.stat-item {
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
}

.stat-number {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 0.6rem;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.20em;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────
   ABOUT / TWO-COLUMN SECTIONS — Generous gap
───────────────────────────────────────────────────── */
.about-grid {
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.feature-item {
  padding: clamp(1rem, 2vw, 1.5rem);
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────────────────
   PACKAGE / PRICING CARDS — Spacious & readable
───────────────────────────────────────────────────── */
.packages-grid {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.package-card {
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 2.75rem);
}

.package-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin-bottom: 0.5rem;
}

.package-subtitle {
  font-size: 0.82rem;
  margin-bottom: 1.75rem;
}

.package-price {
  margin-bottom: 2rem;
}

.package-price .price-amount {
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.package-features {
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.package-feature {
  font-size: 0.86rem;
  line-height: 1.5;
  gap: 0.6rem;
}

/* ─────────────────────────────────────────────────────
   TESTIMONIALS — Room to breathe
───────────────────────────────────────────────────── */
.testimonials-grid {
  gap: clamp(1.5rem, 3vw, 2rem);
}

.testimonial-card {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: 18px;
}

.testimonial-quote {
  font-size: clamp(0.88rem, 1.1vw, 0.96rem);
  line-height: 1.80;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-size: 0.82rem;
  gap: 0.75rem;
}

/* ─────────────────────────────────────────────────────
   MASONRY GALLERY — Better proportions
───────────────────────────────────────────────────── */
.masonry-gallery {
  gap: 4px;
}

.mosaic-item {
  min-height: 260px;
}

.mosaic-large {
  min-height: 360px;
}

.mosaic-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
}

/* ─────────────────────────────────────────────────────
   FAQ / ACCORDION — Cleaner spacing
───────────────────────────────────────────────────── */
.faq-item {
  padding: 0;
  margin-bottom: 2px;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 500;
  line-height: 1.5;
}

.faq-answer {
  font-size: 0.88rem;
  line-height: 1.78;
  padding: 0 1.5rem 1.25rem;
}

/* ─────────────────────────────────────────────────────
   CONTACT SECTION — More space
───────────────────────────────────────────────────── */
.contact-grid {
  gap: clamp(3rem, 6vw, 5rem);
}

.contact-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: 16px;
  gap: 1rem;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.form-input,
.form-select,
.form-textarea {
  font-size: 0.92rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  line-height: 1.5;
}

.form-textarea {
  min-height: 120px;
}

/* ─────────────────────────────────────────────────────
   FOOTER — Generous padding + cleaner layout
───────────────────────────────────────────────────── */
.footer-grid {
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.78;
  margin-top: 1.25rem;
  max-width: 32ch;
}

.footer-heading {
  font-family: var(--font-sans) !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links {
  gap: 0.9rem;
}

.footer-links li a {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-hours-list li {
  font-size: 0.84rem;
  padding: 0.35rem 0;
}

.footer-bottom {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  font-size: 0.8rem;
}

/* ─────────────────────────────────────────────────────
   BUTTONS — Properly sized, not over-padded
───────────────────────────────────────────────────── */
.btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  gap: 0.5rem;
}

.btn-primary {
  padding: 0.8rem 1.9rem;
}

.btn-secondary {
  padding: 0.75rem 1.75rem;
}

/* ─────────────────────────────────────────────────────
   VIDEO SECTION — Better title spacing
───────────────────────────────────────────────────── */
.video-showcase-section > .container {
  padding-bottom: 0;
}

.video-triptych {
  margin-top: 0;
}

/* ─────────────────────────────────────────────────────
   TREATMENT STRIP CARDS
───────────────────────────────────────────────────── */
.treatment-pill {
  border-radius: 14px;
  min-width: 200px;
}

.treatment-pill-info {
  padding: 1rem 1.25rem 1.4rem;
}

.treatment-pill-name {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.treatment-pill-price {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────
   MOBILE RESPONSIVE OVERRIDES
───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero-section {
    padding-top: clamp(6rem, 15vw, 9rem);
    padding-bottom: 4rem;
  }

  .about-grid {
    gap: 2.5rem;
  }

  .package-card {
    padding: 1.75rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .footer-grid {
    gap: 2.5rem;
  }
}

/* ─────────────────────────────────────────────────────
   ANTI-AI — Human typography details
   (Optical adjustments that make it feel crafted)
───────────────────────────────────────────────────── */

/* Proper apostrophes and quote rendering */
blockquote, .testimonial-quote {
  font-style: italic;
}

/* Subtle letter-spacing on uppercase labels */
.section-pretitle,
.nav-link-label,
.video-cell-tag,
.stat-label,
.footer-heading,
.service-price,
.nav-top-text {
  -webkit-font-feature-settings: "ss01", "kern";
  font-feature-settings: "ss01", "kern";
}

/* Slightly warmer body text on cream backgrounds */
section:not(.video-showcase-section):not(.stats-section) p {
  color: #5a4f48;
}

/* Gallery section title white override */
.gallery-showcase-section .section-title,
.video-showcase-section .section-title {
  color: var(--color-warm-white);
}

.gallery-showcase-section .section-title-wrap > p {
  color: rgba(255,255,255,0.55);
  margin: 0 auto;
}

/* Tighten the hero scroll hint on small screens */
@media (max-width: 640px) {
  .hero-scroll-hint { display: none; }
  .hero-deco-leaf-1,
  .hero-deco-leaf-2 { display: none; }
}

/* Prevent images causing layout reflow */
.service-card img,
.mosaic-item img,
.treatment-pill-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Neutral divider lines instead of heavy borders */
hr {
  border: none;
  border-top: 1px solid rgba(92,77,68,0.08);
  margin: 2.5rem 0;
}

/* Gallery Video Item Styling */
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover video {
  transform: scale(1.06);
}

.gallery-item-video-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 13, 9, 0.75);
  border: 1px solid rgba(197, 168, 128, 0.5);
  color: var(--color-rose-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-item:hover .gallery-item-video-badge {
  transform: scale(1.12);
  background: var(--color-rose-gold);
  color: var(--color-brown-dark);
}

/* ─────────────────────────────────────────────────────
   PREMIUM SUBPAGE HEADERS — Consistent Dark Theme
───────────────────────────────────────────────────── */
.premium-page-header {
  position: relative;
  background: linear-gradient(135deg, var(--color-brown-dark) 0%, #1e1511 100%);
  padding-top: clamp(8rem, 14vw, 11rem) !important;
  padding-bottom: clamp(4rem, 8vw, 6rem) !important;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

.premium-page-header .section-pretitle {
  color: var(--color-rose-gold) !important;
  margin-bottom: 1.2rem;
}

.premium-page-header h1 {
  color: var(--color-warm-white) !important;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.premium-page-header p {
  color: rgba(250, 246, 240, 0.8) !important;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* For subpages using two-column header layouts */
.premium-page-header.grid,
.premium-page-header .grid {
  text-align: left;
}

/* Ambient glow orbs in subpage headers (similar to homepage) */
.premium-page-header::before,
.premium-page-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.12;
  z-index: 1;
}

.premium-page-header::before {
  top: -20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: var(--color-rose-gold);
}

.premium-page-header::after {
  bottom: -20%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: var(--color-sage);
}

/* Gold Lotus Watermark in header */
.premium-page-header .header-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  color: var(--color-rose-gold);
}

.premium-page-header .container {
  position: relative;
  z-index: 2;
}

/* ============================================================
   READABILITY / CONTRAST FIXES
   Gold accent text on light/cream backgrounds was too faint.
   Route small accent TEXT to the darker --color-rose-gold-text
   (WCAG AA on cream) while leaving fills, borders, icons and
   gold-on-dark sections on the original brighter gold.
   ============================================================ */

/* Eyebrow / section labels on LIGHT backgrounds */
.section-pretitle {
  color: var(--color-rose-gold-text);
}

/* .hero-pretitle sits over a DARK cinematic overlay — keep it light/bright
   (a lighter gold actually reads better there than the muted base). */
.hero-pretitle {
  color: var(--color-rose-gold);
}

/* Top bar text was faint white (0.45 opacity) on dark — brighten for legibility */
.nav-top-text {
  color: rgba(255, 255, 255, 0.72);
}

/* Brand sub-label ("wellness & renewal") — was barely legible */
.logo-sub {
  color: var(--color-rose-gold-text);
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: 1;
}

/* Brand name — firm up weight so it reads clearly */
.logo-main {
  color: var(--color-brown-dark);
  font-weight: 600;
}

/* Inline link accents in body copy */
.prose a,
.rich-text a,
p a {
  color: var(--color-rose-gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Keep gold bright where it sits on DARK backgrounds (overrides above).
   .video-cell-tag and .video-showcase-section labels are over near-black
   video cells, so they stay on the original brighter gold. */
.video-showcase-section .section-pretitle,
.premium-page-header .section-pretitle,
.site-footer a:hover,
.fsm-nav-link:hover .fsm-link-text {
  color: var(--color-rose-gold);
}

