/* ═══════════════════════════════════════
   OWC Design System
   Ozark Wellness Chiropractic — 2026 Rebrand
   ═══════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  /* Brand colors — from rebrand kit */
  --slate:       #3D5467;
  --slate-light: #5A7085;
  --sage:        #7A8F6A;
  --sage-light:  #96A88A;
  --sage-muted:  #B0BDA6;
  --cream:       #FAF7F2;
  --cream-warm:  #F5F0E8;
  --warm-gray:   #E8E3DA;
  --text:        #2C3E44;
  --text-light:  #5E6E74;
  --white:       #FFFFFF;
  --rule:        rgba(122, 143, 106, 0.2);

  /* Typography */
  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --content-width: 680px;
  --page-padding: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ─── Base ─── */
html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.72;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--slate);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1.2em;
}

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

em {
  font-style: italic;
  color: var(--slate);
}

strong {
  font-weight: 500;
  color: var(--slate);
}

a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--slate);
}

/* ─── Layout ─── */
.page-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* ─── Header ─── */
.site-header {
  padding: 28px 0;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--sage);
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Gradient fallback while video loads */
  background: linear-gradient(
    160deg,
    #2C3E44 0%,
    #3D5467 20%,
    #5A7085 40%,
    #7A8F6A 60%,
    #96A88A 75%,
    #D4C5A0 88%,
    #E8D5B0 100%
  );
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Overlay for text readability over video */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(44, 62, 68, 0.5) 0%,
    rgba(44, 62, 68, 0.3) 40%,
    rgba(44, 62, 68, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  padding: 0 var(--page-padding);
}

.hero-practice {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  color: rgba(250, 247, 242, 0.7);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 0.2s;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards 0.35s;
}

.hero-headline em {
  font-style: italic;
  color: rgba(250, 247, 242, 0.85);
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 300;
  color: rgba(250, 247, 242, 0.75);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 0.5s;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease) forwards 1s;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  stroke: rgba(250, 247, 242, 0.4);
  stroke-width: 1.5;
  fill: none;
  animation: gentleBounce 2.5s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── Opening (used on interior pages) ─── */
.opening {
  padding: 80px 0 60px;
  text-align: center;
}

.opening-practice {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--sage);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.opening-text {
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.85;
  font-size: 1.05rem;
}

.opening-text p {
  margin-bottom: 1.6em;
}

/* ─── Content Sections ─── */
.content-section {
  padding: 48px 0;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--rule);
  margin: 0 auto 48px;
}

.section-body {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-body p {
  font-size: 1rem;
  color: var(--text);
}

/* ─── Page Transition CTA ─── */
.page-cta {
  padding: 60px 0 80px;
  text-align: center;
}

.page-cta p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.6em;
  font-size: 1rem;
}

.btn-continue {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sage);
  padding: 14px 40px;
  border: 1px solid var(--sage-muted);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-continue:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.btn-continue:disabled,
.btn-continue.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Threshold Checkbox ─── */
.commitment-block {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 40px 0;
}

.commitment-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  line-height: 1.7;
  font-size: 0.95rem;
}

.commitment-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--sage);
  cursor: pointer;
}

/* ─── Scheduling Section ─── */
.calendly-section {
  padding: 40px 0;
}

.calendly-embed {
  min-height: 600px;
  border-radius: 4px;
  overflow: hidden;
}

/* ─── Location Block ─── */
.location-section {
  padding: 48px 0;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.location-info {
  padding: 32px;
}

.location-info h3 {
  color: var(--slate);
  margin-bottom: 12px;
}

.location-address {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.location-hours {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}

.location-hours strong {
  font-weight: 500;
}

.location-phone {
  margin-top: 12px;
}

.location-phone a {
  color: var(--sage);
  font-weight: 400;
  font-size: 0.95rem;
}

.location-map {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* ─── Practice Info Block ─── */
.practice-info {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
  margin: 32px 0;
}

/* ─── Footer ─── */
.site-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ─── Learn Section Cards ─── */
.learn-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.learn-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
  transition: border-color 0.2s var(--ease);
}

.learn-card:hover {
  border-color: var(--sage-muted);
}

.learn-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.learn-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.learn-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards;
}

.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.15s; }
.fade-in-3 { animation-delay: 0.25s; }
.fade-in-4 { animation-delay: 0.35s; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  html { font-size: 16px; }

  .site-header { padding: 20px 0; }
  .site-logo img { height: 34px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 0.75rem; }

  .opening { padding: 48px 0 40px; }
  .content-section { padding: 32px 0; }
  .commitment-block { padding: 24px; }

  .page-cta { padding: 40px 0 60px; }
}

/* ─── Chat Widget Space ─── */
body {
  padding-bottom: 0;
}

/* Reserve space so widget doesn't overlap footer on mobile */
@media (max-width: 640px) {
  .site-footer {
    padding-bottom: 80px;
  }
}
