/* ═══════════════════════════════════════════
   PLASMA LIFE CENTER — Global Styles
   ═══════════════════════════════════════════ */

:root {
  --ink: #1a1612;
  --cream: #f8f5f0;
  --warm: #e8e0d4;
  --sand: #d4c9b8;
  --accent: #8b6914;
  --accent-light: #c49a2a;
  --deep: #2c1810;
  --glass: rgba(248, 245, 240, 0.85);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ─── UTILITY ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s ease;
}
nav.scrolled {
  padding: 0.9rem 2.5rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.04);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--accent); }
.nav-cta {
  background: var(--ink) !important;
  color: var(--cream) !important;
  padding: 0.65rem 1.5rem !important;
  border-radius: 100px !important;
  opacity: 1 !important;
  font-size: 0.8rem !important;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--deep) !important; }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
  padding: 12px 8px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  position: absolute; left: 10px;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink);
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.3s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--deep); transform: translateY(-1px); }
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--ink);
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--sans);
  border: 1.5px solid rgba(26,22,18,0.15);
  transition: all 0.3s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.3s;
  border: none; cursor: pointer;
}
.btn-gold:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ─── SECTION COMMONS ─── */
section { padding: 7rem 0; }
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(26,22,18,0.6);
  max-width: 560px;
  margin-top: 1.25rem;
  font-weight: 300;
}

/* Dark section overrides */
.dark-section { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.dark-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.dark-section .section-label { color: var(--accent-light); }
.dark-section .section-title { color: var(--cream); }
.dark-section .section-desc { color: rgba(248,245,240,0.55); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,105,20,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .section-label { color: var(--accent-light); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 700px;
  color: var(--cream);
  margin-top: 0.5rem;
}
.page-hero h1 em { font-style: italic; color: var(--accent-light); }
.page-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(248,245,240,0.55);
  max-width: 540px;
  margin-top: 1.5rem;
  font-weight: 300;
}

/* ─── CARDS ─── */
.card {
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  background: white;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: rgba(139,105,20,0.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 20px; height: 20px; color: var(--accent); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(26,22,18,0.6);
}

/* ─── FAQ ACCORDION ─── */
.faq-list {
  max-width: 780px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
}
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.06); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-align: left;
  transition: color 0.3s;
  gap: 1rem;
}
.faq-q:hover { color: var(--accent); }
.faq-q svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--accent);
  transition: transform 0.3s;
}
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 1.5rem;
}
.faq-a p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(26,22,18,0.6);
  max-width: 680px;
}

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: white;
  color: var(--ink);
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--deep);
  color: rgba(248,245,240,0.4);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(248,245,240,0.06);
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}
footer h4 {
  color: var(--cream);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
footer a {
  display: block;
  color: rgba(248,245,240,0.4);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
  transition: color 0.3s;
}
footer a:hover { color: var(--cream); }
.footer-disclaimer {
  padding-top: 2rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(248,245,240,0.25);
  max-width: 800px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.78rem;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-hero { animation: fadeUp 1s ease 0.3s both; }
.anim-hero-2 { animation: fadeUp 1s ease 0.5s both; }
.anim-hero-3 { animation: fadeUp 1s ease 0.7s both; }
.anim-hero-4 { animation: fadeUp 1s ease 0.9s both; }

/* ─── RESPONSIVE ─── */

/* Tablet */
@media (max-width: 1024px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .container { padding: 0 1.5rem; }
}

/* Mobile */
@media (max-width: 900px) {
  /* ── Nav ── */
  nav {
    padding: 1rem 1.25rem;
  }
  nav.scrolled {
    padding: 0.75rem 1.25rem;
  }
  .nav-logo {
    position: relative;
    z-index: 110;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    z-index: 105;
    padding: 5rem 2rem 3rem;
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.15rem;
    opacity: 1;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-cta {
    margin-top: 1rem !important;
    padding: 1rem 2rem !important;
    font-size: 0.9rem !important;
    width: auto !important;
    text-align: center !important;
    display: inline-flex !important;
    justify-content: center !important;
  }

  /* ── Sections & Spacing ── */
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .page-hero { padding: 7.5rem 0 3rem; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .page-hero p { font-size: 1rem; }

  .section-title { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .section-desc { font-size: 0.95rem; }

  /* ── Grid Layouts ── */
  .responsive-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .responsive-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* ── Hero ── */
  .hero-section-custom h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
  }

  /* ── Cards ── */
  .card {
    padding: 2rem 1.5rem;
  }

  /* ── Forms ── */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* ── FAQ ── */
  .faq-q {
    font-size: 1rem;
    padding: 1.25rem 0;
  }

  /* ── Tall visual elements ── */
  [style*="aspect-ratio:3/4"] {
    aspect-ratio: 4/3 !important;
    max-height: 350px;
  }
  [style*="aspect-ratio:4/5"] {
    aspect-ratio: 1/1 !important;
  }

  /* ── Dark section steps ── */
  .dark-section .container > div[style*="grid"] {
    gap: 1.5rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  nav { padding: 0.85rem 1rem; }
  nav.scrolled { padding: 0.7rem 1rem; }
  .nav-logo { font-size: 1.2rem; }
  .container { padding: 0 1rem; }
  section { padding: 3.5rem 0; }
  .page-hero { padding: 7rem 0 2.5rem; }

  .btn-primary, .btn-secondary, .btn-gold {
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .card { padding: 1.75rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Hero stats row */
  .hero [style*="gap:3rem"] {
    gap: 1.5rem !important;
  }
  .hero [style*="font-size:2rem"] {
    font-size: 1.6rem !important;
  }
}
