/* ==========================================================================
   Adishakti — Design System & Styles
   A Kalaripayattu Training & Healing Space
   ========================================================================== */

/* Google Fonts loaded via wp_enqueue_style() in functions.php — no @import needed */

/* ==========================================================================
   CSS Custom Properties — Design Tokens
   ========================================================================== */
:root {
  /* Color Palette */
  --background: hsl(30, 33%, 92%);          /* #F5EDE3 warm sand */
  --foreground: hsl(20, 32%, 18%);           /* #3D2B1F deep brown */

  --card: hsl(35, 30%, 95%);                 /* soft ivory */
  --card-foreground: hsl(20, 32%, 18%);

  --primary: hsl(18, 46%, 54%);              /* #C4724E terracotta */
  --primary-foreground: hsl(35, 40%, 96%);

  --secondary: hsl(82, 25%, 39%);            /* #6B7B4C olive green */
  --secondary-foreground: hsl(35, 40%, 96%);

  --muted: hsl(30, 20%, 85%);
  --muted-foreground: hsl(20, 15%, 45%);

  --accent: hsl(37, 40%, 61%);              /* #C9A96E muted gold */
  --accent-foreground: hsl(20, 32%, 18%);

  --border: hsl(30, 20%, 82%);

  /* Extended Palette */
  --warm-cream: hsl(35, 35%, 97%);
  --terracotta-light: hsl(18, 50%, 92%);
  --olive-light: hsl(82, 20%, 90%);
  --gold-light: hsl(37, 35%, 90%);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-py: 6rem;
  --section-py-lg: 8rem;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
}

.container--medium {
  max-width: 960px;
}

.grid {
  display: grid;
  gap: 3rem;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

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

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

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

.grid--gap-lg { gap: 5rem; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-terracotta-light { background-color: var(--terracotta-light); }
.bg-olive-light { background-color: var(--olive-light); }
.bg-gold-light { background-color: var(--gold-light); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ==========================================================================
   Section Spacing
   ========================================================================== */
.section {
  padding: var(--section-py) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-py-lg) 0;
  }
}

/* ==========================================================================
   Label / Eyebrow
   ========================================================================== */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.label--accent { color: var(--accent); }
.label--secondary { color: var(--secondary); }
.label--light { color: hsla(35, 40%, 96%, 0.7); }

/* ==========================================================================
   Headings
   ========================================================================== */
.heading-xl {
  font-size: 2.5rem;
  font-weight: 500;
}

.heading-lg {
  font-size: 1.875rem;
  font-weight: 500;
}

.heading-md {
  font-size: 1.25rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .heading-xl { font-size: 3rem; }
  .heading-lg { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .heading-xl { font-size: 3.75rem; }
}

/* ==========================================================================
   Body Text
   ========================================================================== */
.body-lg {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.body-md {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.body-sm {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn--primary:hover {
  opacity: 0.9;
}

.btn--primary-inv {
  background-color: var(--primary-foreground);
  color: var(--primary);
}
.btn--primary-inv:hover {
  opacity: 0.9;
}

.btn--secondary-inv {
  background-color: var(--secondary-foreground);
  color: var(--secondary);
}
.btn--secondary-inv:hover {
  opacity: 0.9;
}

.btn--outline {
  background: transparent;
  border: 1px solid hsla(20, 32%, 18%, 0.2);
  color: var(--foreground);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline-light {
  background: transparent;
  border: 1px solid hsla(35, 40%, 96%, 0.3);
  color: var(--primary-foreground);
}
.btn--outline-light:hover {
  border-color: hsla(35, 40%, 96%, 0.6);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Dividers
   ========================================================================== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background-color: hsla(37, 40%, 61%, 0.4);
}

.divider__symbol {
  color: var(--accent);
  font-size: 1.125rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: hsla(30, 33%, 92%, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid hsla(30, 20%, 82%, 0.5);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .navbar__inner { height: 5rem; }
}

.navbar__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .navbar__brand { font-size: 1.5rem; }
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .navbar__links { display: flex; }
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--primary);
}

.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  width: 2.5rem;
  height: 2.5rem;
}

@media (min-width: 768px) {
  .navbar__toggle { display: none; }
}

.navbar__toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.navbar__mobile {
  display: none;
  background-color: var(--background);
  border-top: 1px solid hsla(30, 20%, 82%, 0.5);
  padding: 1.5rem 0;
}

.navbar__mobile.is-open {
  display: block;
}

@media (min-width: 768px) {
  .navbar__mobile { display: none !important; }
}

.navbar__mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.navbar__mobile-links a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.navbar__mobile-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
}

.hero__content {
  order: 2;
}

@media (min-width: 768px) {
  .hero__content { order: 1; }
}

.hero__content > * + * {
  margin-top: 2rem;
}

.hero__image-wrapper {
  order: 1;
  position: relative;
}

@media (min-width: 768px) {
  .hero__image-wrapper { order: 2; }
}

.hero__image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .hero__image { height: 600px; }
}

@media (min-width: 1024px) {
  .hero__image { height: 700px; }
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(30, 33%, 92%, 0.3), transparent);
  border-radius: 2px;
}

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy {
  padding: var(--section-py) 0;
}

@media (min-width: 768px) {
  .philosophy { padding: var(--section-py-lg) 0; }
}

.philosophy__content > * + * {
  margin-top: 2rem;
}

.philosophy__quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .philosophy__quote { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .philosophy__quote { font-size: 2.25rem; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .about__image { height: 500px; }
}

.about__content > * + * {
  margin-top: 1.5rem;
}

.about__stats {
  display: flex;
  gap: 3rem;
  padding-top: 1rem;
}

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--primary);
}

.about__stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefit {
  text-align: center;
  padding: 1.5rem;
}

.benefit > * + * {
  margin-top: 1rem;
}

.benefit__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Offerings
   ========================================================================== */
.offering-card {
  padding: 2rem 2.5rem;
  border-radius: 2px;
  border: 1px solid hsla(30, 20%, 82%, 0.6);
  background-color: var(--background);
  transition: border-color 0.5s ease;
}

.offering-card:hover {
  border-color: hsla(18, 46%, 54%, 0.3);
}

.offering-card > * + * {
  margin-top: 1.5rem;
}

.offering-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offering-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
  opacity: 0.7;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offering-card__link {
  display: inline-block;
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  transition: all 0.3s ease;
}

.offering-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Healing
   ========================================================================== */
.healing__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .healing__image { height: 500px; }
}

.healing__content > * + * {
  margin-top: 1.5rem;
}

.healing__list {
  padding-top: 0.5rem;
}

.healing__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  padding: 0.375rem 0;
}

.healing__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--secondary);
  flex-shrink: 0;
}

/* ==========================================================================
   Who It's For
   ========================================================================== */
.audience-item {
  display: flex;
  gap: 1.25rem;
}

.audience-item__number {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 300;
  color: hsla(37, 40%, 61%, 0.4);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.audience-item__content > * + * {
  margin-top: 0.5rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.cta-section .heading-lg {
  color: var(--primary-foreground);
}

.cta-section .body-lg {
  color: hsla(35, 40%, 96%, 0.8);
}

.cta-section--secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.cta-section--secondary .heading-lg {
  color: var(--secondary-foreground);
}

.cta-section--secondary .body-lg {
  color: hsla(35, 40%, 96%, 0.8);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 4rem 0 3rem;
  border-top: 1px solid hsla(30, 20%, 82%, 0.5);
}

@media (min-width: 768px) {
  .footer { padding: 5rem 0 3rem; }
}

.footer__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; }
}

.footer__section > * + * {
  margin-top: 1rem;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--foreground);
}

.footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.375rem 0;
  transition: color 0.3s ease;
}

.footer__link:hover { color: var(--primary); }

.footer__bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(30, 20%, 82%, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer__quote {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.6;
  font-style: italic;
}

/* ==========================================================================
   Inner Page Styles
   ========================================================================== */
.page-hero {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: 9rem;
    padding-bottom: 6rem;
  }
}

.page-hero__content > * + * {
  margin-top: 1.5rem;
}

/* Cards for programs / treatments */
.info-card {
  padding: 2rem 2.5rem;
  border-radius: 2px;
  border: 1px solid;
}

.info-card > * + * {
  margin-top: 1.25rem;
}

.info-card--terracotta {
  border-color: hsla(18, 46%, 54%, 0.3);
  background-color: hsla(18, 50%, 92%, 0.2);
}

.info-card--olive {
  border-color: hsla(82, 25%, 39%, 0.2);
  background-color: hsla(82, 20%, 90%, 0.2);
}

.info-card--gold {
  border-color: hsla(37, 40%, 61%, 0.3);
  background-color: hsla(37, 35%, 90%, 0.2);
}

.info-card--border {
  border-color: hsla(30, 20%, 82%, 0.6);
  background: transparent;
}

/* Feature list */
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  padding: 0.25rem 0;
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
}

.feature-list--secondary li::before {
  background-color: var(--secondary);
}

/* Condition grid items */
.condition-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid hsla(30, 20%, 82%, 0.6);
  border-radius: 2px;
  font-size: 0.875rem;
  color: var(--foreground);
}

.condition-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--secondary);
  flex-shrink: 0;
}

/* Conditions grid */
.grid--conditions {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid--conditions {
  gap: 1rem;
}

/* Two forms cards */
.form-card {
  padding: 1.5rem;
  border: 1px solid hsla(30, 20%, 82%, 0.6);
  border-radius: 2px;
}

.form-card > * + * {
  margin-top: 0.75rem;
}

.form-card--highlight {
  border-color: hsla(18, 46%, 54%, 0.3);
  background-color: hsla(18, 50%, 92%, 0.15);
}

.form-card__note {
  font-size: 0.75rem;
  color: var(--accent);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Animal forms box */
.info-box {
  padding: 1.5rem;
  border-radius: 2px;
}

.info-box--olive {
  background-color: hsla(82, 20%, 90%, 0.4);
}

.info-box > * + * {
  margin-top: 0.75rem;
}

/* Contact info in CTA */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
}

.contact-info__item {
  text-align: center;
}

.contact-info__label {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

/* Page content spacing helper */
.content-stack > * + * {
  margin-top: 1.5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */

/* Remove inner padding Elementor adds to widget containers */
.elementor-widget-container {
  line-height: inherit;
}

/* Ensure Elementor sections go edge-to-edge when set to full width */
.elementor-section.elementor-section-stretched {
  left: 0 !important;
  right: 0 !important;
}

/* Fix navbar overlap — Elementor page content starts below fixed navbar */
.elementor-page .site-main,
.page-template-templates-full-width .site-main {
  padding-top: 0;
}

/* Elementor adds its own padding via sections — don't double up */
.elementor-top-section:first-child {
  margin-top: 0;
}

/* Prevent Elementor editor iframe from inheriting navbar z-index issues */
body.elementor-editor-active .navbar {
  z-index: 9999;
}
