/*
 * Theme Name: NexCura
 * Theme URI: https://nexcura.com
 * Description: Wellness discovery platform
 * Author: NexCura Team
 * Version: 1.0.0
 * License: GPL v2 or later
 */

/* ============================================================
   DESIGN TOKENS & CSS VARIABLES
   ============================================================ */

:root {
  /* Colors */
  --terra:      #C45C2A;
  --gold:       #B09040;
  --cream:      #F5F0E8;
  --cream-alt:  #FAFBF9;
  --dark:       #2D3A31;
  --muted:      #9FA9A5;
  --border:     #E8EBE7;
  
  /* Typography */
  --serif:      'Playfair Display', serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  
  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  
  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(45, 58, 49, 0.06);
  --shadow-md:  0 4px 16px rgba(45, 58, 49, 0.1);
  --shadow-lg:  0 8px 32px rgba(45, 58, 49, 0.12);
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--dark);
  background: white;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--terra);
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  border-bottom: 1px solid var(--border);
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-logo a {
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--dark);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--terra);
}

.nav-btn {
  padding: 0.75rem 1.5rem;
  background: var(--terra);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: background 0.2s;
}

.nav-btn:hover {
  background: #A84C1A;
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }
  .nav-links { display: none; }
  h1 { font-size: 2rem; }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sec {
  padding: 4rem 0;
}

.sec-alt {
  background: var(--cream-alt);
}

.g2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .g2, .g3 {
    grid-template-columns: 1fr;
  }
  .sec {
    padding: 2rem 0;
  }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.body-copy {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--cream);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: var(--terra);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: #A84C1A;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--terra);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--terra);
  color: var(--terra);
}

.btn-outline:hover {
  background: var(--cream);
}

.btn-outline-lt {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  padding: 4rem 2rem;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--dark);
  margin: 1.5rem 0;
}

.hero-tag {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

.proof-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--cream-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.proof-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--terra);
}

.proof-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.proof-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.proof-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
}

.goal-sel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.goal-sel-label {
  font-weight: 500;
  font-size: 0.95rem;
}

.chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chip {
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
}

.chip:hover {
  background: #F0E8DD;
}

.chip.active {
  background: var(--terra);
  color: white;
  border-color: var(--terra);
}

.goal-preview {
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-md);
}

.goal-preview h4 {
  margin-bottom: 0.5rem;
}

.goal-preview p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--terra);
  box-shadow: var(--shadow-md);
}

.card-cream {
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.card-cream:hover {
  background: #F0E8DD;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.svc-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.svc-card:hover {
  border-color: var(--terra);
  box-shadow: var(--shadow-md);
}

.svc-img {
  font-size: 2.5rem;
  min-width: 50px;
  text-align: center;
}

.svc-body {
  flex: 1;
}

.svc-body h3 {
  margin-bottom: 0.5rem;
}

.svc-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.clinic-card {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.clinic-card:hover {
  border-color: var(--terra);
  box-shadow: var(--shadow-md);
}

.clinic-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.clinic-loc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.clinic-verified {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #F0F5E8;
  color: #5A7A3D;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.clinic-unverified {
  background: #F5F1E8;
  color: var(--gold);
}

.tag-pill {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.score-big {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--terra);
}

/* ============================================================
   FORMS & FILTERS
   ============================================================ */

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--cream-alt);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 500;
  font-size: 0.85rem;
}

.filter-group select,
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 768px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PAGE HERO
   ============================================================ */

.page-hero {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--cream) 0%, white 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 1rem;
  line-height: 1.3;
}

.page-hero .ph-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.crumb a {
  color: var(--muted);
}

.crumb a:hover {
  color: var(--terra);
}

/* ============================================================
   DIVIDER
   ============================================================ */

.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  padding: 4rem 2rem;
  background: var(--dark);
  color: white;
  text-align: center;
}

.cta-band h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-band p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 1rem;
  background: white;
  border: none;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-q:hover {
  background: var(--cream-alt);
}

.faq-arrow {
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding: 1rem;
}

/* ============================================================
   VALUE SCORE COMPONENTS
   ============================================================ */

.vs-bar {
  width: 100%;
  height: 8px;
  background: var(--cream);
  border-radius: 999px;
  overflow: hidden;
}

.vs-fill {
  height: 100%;
  background: var(--terra);
  transition: width 0.3s;
}

.pillar-card {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pillar-card h4 {
  margin-bottom: 0.75rem;
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
}

.vs-table th {
  text-align: left;
  padding: 1rem;
  background: var(--cream-alt);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.vs-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.vs-table tbody tr:hover {
  background: var(--cream-alt);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ci-icon {
  font-size: 1.5rem;
  min-width: 40px;
  text-align: center;
}

.ci-icon + div h3 {
  margin-bottom: 0.25rem;
}

.goal-score {
  text-align: center;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.goal-score-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 0.25rem;
}

.goal-score-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.goal-diag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.goal-diag-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.2s;
}

.goal-diag-card:hover {
  border-color: var(--terra);
  background: var(--cream);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--dark);
  color: white;
  padding: 3rem 2rem;
}

.footer-tagline {
  max-width: 1200px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--terra);
}

.footer-div {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.footer-social {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  font-weight: 600;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--terra);
}

.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

details summary {
  cursor: pointer;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.disc-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .sec {
    padding: 2rem 1rem;
  }
  
  .nav {
    padding: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}
