/*
Theme Name: Chiropractic LIFE Center
Theme URI:
Author: Dr. Ann Studer
Description: A luxury wellness WordPress theme for Dr. Ann Studer's Chiropractic LIFE Center. Fully compatible with Elementor page builder. Features brand-matched typography, colors, and layout systems.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chiro-life-center
Tags: elementor, wellness, custom-colors, custom-logo, full-width-template, one-column
*/

/* ============================================================
   BRAND DESIGN TOKENS
   ============================================================
   Edit these CSS variables to update colors site-wide.
   ============================================================ */

:root {
  /* Brand Colors — from Refined Brand Identity Guide */
  --color-sage:        #A5B3A5;   /* Sage Green */
  --color-cream:       #F7F4EF;   /* Warm Cream / site background */
  --color-gold:        #C8A66B;   /* Warm Gold / accent */
  --color-charcoal:    #645A57;   /* Deep Warm Dark / text */
  --color-deep-sage:   #3D5449;   /* Darker sage for headers/CTA */
  --color-white:       #FFFFFF;
  --color-light-sage:  #EAF0EA;   /* Very light sage for section bgs */
  --color-text:        #3A3430;   /* Near-black text */

  /* Typography */
  --font-heading:      'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:         'Lato', 'Source Sans Pro', Arial, sans-serif;
  --font-accent:       'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --spacing-xs:   0.5rem;
  --spacing-sm:   1rem;
  --spacing-md:   2rem;
  --spacing-lg:   4rem;
  --spacing-xl:   6rem;
  --spacing-2xl:  8rem;

  /* Section padding */
  --section-pad-v: 100px;
  --section-pad-h: 60px;

  /* Transitions */
  --transition: 0.3s ease;

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-deep-sage);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-charcoal);
  margin-bottom: 1.25rem;
}

p:last-child { margin-bottom: 0; }

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  color: var(--color-deep-sage);
  border-left: 3px solid var(--color-gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: rgba(200, 166, 107, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.container--wide {
  max-width: 1400px;
}

.section {
  padding: var(--section-pad-v) var(--section-pad-h);
}

.section--cream { background-color: var(--color-cream); }
.section--white { background-color: var(--color-white); }
.section--sage  { background-color: var(--color-light-sage); }
.section--dark  { background-color: var(--color-deep-sage); color: var(--color-cream); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p { color: var(--color-cream); }

/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(165, 179, 165, 0.2);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(100, 90, 87, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 72px;
  width: auto;
  filter: brightness(0.7) contrast(1.15);
}

/* Navigation */
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  transition: color var(--transition);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.site-nav a:hover,
.site-nav a.current-menu-item {
  color: var(--color-gold);
}

.site-nav a:hover::after,
.site-nav a.current-menu-item::after {
  width: 100%;
}

/* CTA nav button */
.nav-cta {
  background: var(--color-deep-sage) !important;
  color: var(--color-cream) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 2px;
  letter-spacing: 0.1em;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--color-gold) !important;
  color: var(--color-white) !important;
}

.nav-cta::after { display: none !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-charcoal);
  transition: var(--transition);
}

/* Mobile nav open state */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-deep-sage);
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61, 84, 73, 0.6) 0%,
    rgba(61, 84, 73, 0.4) 50%,
    rgba(61, 84, 73, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(247, 244, 239, 0.9);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
  line-height: 1;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-gold);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(247, 244, 239, 0.7);
}

.btn--outline-light:hover {
  background: var(--color-cream);
  color: var(--color-deep-sage);
  border-color: var(--color-cream);
}

.btn--dark {
  background: var(--color-deep-sage);
  color: var(--color-cream);
  border-color: var(--color-deep-sage);
}

.btn--dark:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

/* ============================================================
   DECORATIVE ELEMENTS
   ============================================================ */

.gold-divider {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.5rem auto;
}

.gold-divider--left {
  margin-left: 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 1rem;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--image-right .two-col__content { order: 1; }
.two-col--image-right .two-col__image   { order: 2; }

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  background: var(--color-white);
  border-top: 3px solid var(--color-gold);
  text-align: center;
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-sage);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Comparison columns */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 3rem 0;
}

.comparison-col {
  padding: 3rem 2.5rem;
}

.comparison-col--left {
  background: var(--color-light-sage);
}

.comparison-col--right {
  background: var(--color-deep-sage);
  color: var(--color-cream);
}

.comparison-col--right h3,
.comparison-col--right p,
.comparison-col--right li {
  color: var(--color-cream);
}

.comparison-col h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.comparison-col ul {
  list-style: none;
}

.comparison-col li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(165, 179, 165, 0.3);
  font-size: 1rem;
  color: var(--color-charcoal);
}

.comparison-col--right li {
  border-color: rgba(247, 244, 239, 0.2);
}

/* Quote section */
.quote-section {
  text-align: center;
  padding: var(--section-pad-v) var(--section-pad-h);
  background: var(--color-deep-sage);
}

.quote-section blockquote {
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.quote-section cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ============================================================
   ABOUT / PROFILE SECTION
   ============================================================ */

.profile-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.profile-image-wrap {
  position: relative;
}

.profile-image-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--color-gold);
  z-index: 0;
}

.profile-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
}

.profile-credentials {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(165, 179, 165, 0.4);
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-charcoal);
}

.credential-item::before {
  content: '—';
  color: var(--color-gold);
  flex-shrink: 0;
}

/* ============================================================
   WHO THIS IS FOR
   ============================================================ */

.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.who-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-left: 3px solid var(--color-sage);
}

.who-item::before {
  content: '✦';
  color: var(--color-gold);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-bottom: 3px solid var(--color-gold);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
}

.testimonial-card cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage);
}

/* ============================================================
   SCHEDULE / BOOKING
   ============================================================ */

.booking-wrap {
  background: var(--color-white);
  padding: 3rem;
  border: 1px solid rgba(165, 179, 165, 0.3);
  max-width: 900px;
  margin: 0 auto;
}

.booking-placeholder {
  background: var(--color-light-sage);
  border: 2px dashed var(--color-sage);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-md);
}

.booking-placeholder p {
  color: var(--color-sage);
  font-style: italic;
}

.office-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.office-info-card {
  text-align: center;
}

.office-info-card h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.office-info-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================================
   RESOURCES PAGE
   ============================================================ */

.resource-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(165, 179, 165, 0.3);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.resource-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--color-light-sage);
  color: var(--color-sage);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  text-align: center;
  padding: var(--section-pad-v) var(--section-pad-h);
  background: var(--color-cream);
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--color-deep-sage);
}

.cta-banner p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: var(--color-charcoal);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   COACHING PAGE
   ============================================================ */

.coaching-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.coaching-module {
  padding: 2.5rem;
  border: 1px solid rgba(165, 179, 165, 0.4);
  background: var(--color-white);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.coaching-module:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(100, 90, 87, 0.1);
}

.coaching-module__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(200, 166, 107, 0.3);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ============================================================
   PAGE BANNERS
   ============================================================ */

.page-banner {
  background: var(--color-deep-sage);
  padding: 8rem var(--section-pad-h) 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-banner h1 {
  color: var(--color-cream);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
}

.page-banner p {
  color: rgba(247, 244, 239, 0.8);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 5rem var(--section-pad-h) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: rgba(247, 244, 239, 0.65);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 1.5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.9);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(247, 244, 239, 0.65);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-col address {
  font-style: normal;
  color: rgba(247, 244, 239, 0.65);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 244, 239, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(247, 244, 239, 0.4);
  font-size: 0.8125rem;
  margin: 0;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-gold) !important;
}

/* ============================================================
   ELEMENTOR OVERRIDES & COMPATIBILITY
   ============================================================ */

/* Allow Elementor to control full-width layouts */
.elementor-page .site-content {
  padding: 0;
  margin: 0;
}

/* Remove default WP content padding when Elementor is active */
.elementor-page .entry-content {
  padding: 0;
}

/* Ensure header stays above Elementor sections */
.elementor-section {
  z-index: auto;
}

/* Elementor button style override to match brand */
.elementor-button.elementor-button-brand {
  background: var(--color-gold);
  color: var(--color-white);
  border: 1.5px solid var(--color-gold);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Global Elementor section padding helpers */
.e-section-sm  { padding-top: 60px !important;  padding-bottom: 60px !important; }
.e-section-md  { padding-top: 100px !important; padding-bottom: 100px !important; }
.e-section-lg  { padding-top: 140px !important; padding-bottom: 140px !important; }
.e-section-xl  { padding-top: 180px !important; padding-bottom: 180px !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --section-pad-v: 80px;
    --section-pad-h: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .profile-image-wrap {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-v: 60px;
    --section-pad-h: 24px;
  }

  .site-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(247, 244, 239, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform var(--transition);
    border-bottom: 1px solid rgba(165, 179, 165, 0.2);
    z-index: 999;
  }

  .site-nav.nav-open {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col--image-right .two-col__content { order: 2; }
  .two-col--image-right .two-col__image   { order: 1; }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .who-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.75rem;
  }
}
