/* ============================================================
   Praxis Osteopathy — Global CSS
   File: assets/css/osteo-global.css
   Palette from logo: Deep Forest Green #1A3A2E, Sage Green #4A7A5E,
   Warm Gold #C4943A, Cream #F9F5EE, Off-white #FDFBF8
   ============================================================ */

/* ─── 0. CSS CUSTOM PROPERTIES ─── */
:root {
  /* Brand Colors */
  --osteo-green-deep:   #1A3A2E;
  --osteo-green-mid:    #2D5A42;
  --osteo-green-sage:   #4A7A5E;
  --osteo-green-light:  #7AAE93;
  --osteo-gold:         #C4943A;
  --osteo-gold-light:   #D4AD65;
  --osteo-cream:        #F9F5EE;
  --osteo-cream-warm:   #F2EBE0;
  --osteo-white:        #FDFBF8;
  --osteo-text-dark:    #1C1C1C;
  --osteo-text-body:    #3A3A3A;
  --osteo-text-muted:   #767676;
  --osteo-border:       rgba(26, 58, 46, 0.12);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --size-xs:   clamp(0.75rem, 1.5vw, 0.875rem);
  --size-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --size-base: clamp(1rem, 2vw, 1.125rem);
  --size-md:   clamp(1.125rem, 2.5vw, 1.375rem);
  --size-lg:   clamp(1.375rem, 3vw, 1.75rem);
  --size-xl:   clamp(1.75rem, 4vw, 2.5rem);
  --size-2xl:  clamp(2.25rem, 5vw, 3.5rem);
  --size-3xl:  clamp(3rem, 7vw, 5rem);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26, 58, 46, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 58, 46, 0.12);
  --shadow-lg: 0 12px 48px rgba(26, 58, 46, 0.18);
  --shadow-gold: 0 4px 24px rgba(196, 148, 58, 0.24);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-smooth: 400ms cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Z-indices */
  --z-modal:   9999;
  --z-nav:     1000;
  --z-card:    10;
}

/* ─── 1. RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--osteo-text-body);
  background-color: var(--osteo-white);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
/* Exclude modal close button from the reset above */
#osteo-bm__close { background: revert; border: revert; }

/* ─── 2. TYPOGRAPHY SCALE ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--osteo-green-deep);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--size-3xl); font-weight: 300; }
h2 { font-size: var(--size-2xl); }
h3 { font-size: var(--size-xl); }
h4 { font-size: var(--size-lg); }

p { max-width: 68ch; }

.osteo-label {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--osteo-gold);
}

/* ─── 3. BUTTON SYSTEM ─── */
.osteo-booking-trigger,
.osteo-btn-primary,
.osteo-btn-secondary,
.osteo-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

/* Primary — gold fill */
.osteo-booking-trigger,
.osteo-btn-primary {
  background-color: var(--osteo-gold);
  color: var(--osteo-white);
  box-shadow: var(--shadow-gold);
}
.osteo-booking-trigger:hover,
.osteo-btn-primary:hover {
  background-color: var(--osteo-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 148, 58, 0.36);
}
.osteo-booking-trigger:active,
.osteo-btn-primary:active {
  transform: translateY(0);
}

/* Secondary — green fill */
.osteo-btn-secondary {
  background-color: var(--osteo-green-deep);
  color: var(--osteo-white);
  box-shadow: var(--shadow-md);
}
.osteo-btn-secondary:hover {
  background-color: var(--osteo-green-mid);
  transform: translateY(-2px);
}

/* Ghost — outline */
.osteo-btn-ghost {
  background-color: transparent;
  color: var(--osteo-green-deep);
  border: 1.5px solid var(--osteo-green-deep);
}
.osteo-btn-ghost:hover {
  background-color: var(--osteo-green-deep);
  color: var(--osteo-white);
}

.osteo-btn-icon {
  transition: transform var(--transition-base);
  display: inline-block;
}
.osteo-booking-trigger:hover .osteo-btn-icon,
.osteo-btn-primary:hover .osteo-btn-icon {
  transform: translateX(4px);
}

/* ─── 4. CARD SYSTEM ─── */
.osteo-card {
  background: var(--osteo-white);
  border: 1px solid var(--osteo-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  position: relative;
}
.osteo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--osteo-gold) 0%, transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}
.osteo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.osteo-card:hover::before { opacity: 1; }

.osteo-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
}
.osteo-card__icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--osteo-cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.osteo-card__icon { width: 28px; height: 28px; }
.osteo-card__title {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 400;
  color: var(--osteo-green-deep);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}
.osteo-card__description {
  font-size: var(--size-sm);
  color: var(--osteo-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  flex: 1;
}
.osteo-card__cta {
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--osteo-gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--transition-base);
}
.osteo-card:hover .osteo-card__cta { gap: 0.625rem; }

/* ─── 5. SECTION UTILITIES ─── */
.osteo-section {
  padding: var(--space-3xl) 0;
}
.osteo-section--cream {
  background-color: var(--osteo-cream);
}
.osteo-section--green {
  background-color: var(--osteo-green-deep);
  color: var(--osteo-cream);
}
.osteo-container {
  width: min(90%, 1180px);
  margin-inline: auto;
}
.osteo-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: var(--space-xl);
  align-items: center;
}
.osteo-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-lg);
}
.osteo-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-md);
}

/* ─── 6. DIVIDERS ─── */
.osteo-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--osteo-gold), var(--osteo-gold-light));
  margin: var(--space-md) 0;
  border: none;
}
.osteo-divider--center { margin-inline: auto; }

/* ─── 7. HERO SECTION ─── */
.osteo-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--osteo-green-deep);
}

/* Left: copy */
.osteo-hero__copy {
  padding: var(--space-3xl) var(--space-2xl) var(--space-3xl) max(var(--space-xl), 5vw);
  position: relative;
  z-index: 2;
}
.osteo-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}
.osteo-hero__eyebrow-line {
  width: 32px;
  height: 1.5px;
  background: var(--osteo-gold);
}
.osteo-hero__tagline {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--osteo-gold);
  font-weight: 500;
}
.osteo-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--osteo-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}
.osteo-hero__headline em {
  font-style: italic;
  color: var(--osteo-gold-light);
}
.osteo-hero__body {
  font-size: var(--size-md);
  color: rgba(249, 245, 238, 0.78);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-weight: 300;
  max-width: 52ch;
}
.osteo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-xl);
}
.osteo-hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.osteo-hero__trust-badge {
  font-size: var(--size-xs);
  color: rgba(249, 245, 238, 0.6);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.osteo-hero__trust-badge::before {
  content: '✓';
  color: var(--osteo-gold);
  font-size: 0.7rem;
}

/* Right: photo panel */
.osteo-hero__visual {
  position: relative;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
}
.osteo-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.osteo-hero__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--osteo-green-deep) 0%,
    transparent 25%
  );
  pointer-events: none;
}
/* Floating credential card */
.osteo-hero__credential {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-lg);
  background: rgba(26, 58, 46, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 148, 58, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--osteo-cream);
  max-width: 280px;
}
.osteo-hero__credential-name {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 400;
  color: var(--osteo-white);
  margin-bottom: 0.25rem;
}
.osteo-hero__credential-title {
  font-size: var(--size-xs);
  color: var(--osteo-gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}
.osteo-hero__credential-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.osteo-hero__credential-badge {
  font-size: 0.6875rem;
  background: rgba(196, 148, 58, 0.18);
  border: 1px solid rgba(196, 148, 58, 0.35);
  color: var(--osteo-gold-light);
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Background decor */
.osteo-hero__bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.osteo-hero__bg-decor::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 122, 94, 0.15) 0%, transparent 70%);
}
.osteo-hero__bg-decor::after {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 148, 58, 0.08) 0%, transparent 70%);
}

/* Scroll cue */
.osteo-hero__scroll-cue {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(249, 245, 238, 0.45);
  font-size: var(--size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.osteo-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(249, 245, 238, 0.45), transparent);
  animation: osteoScrollPulse 2s ease-in-out infinite;
}
@keyframes osteoScrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* Logo in hero */
.osteo-hero__logo {
  display: block;
  margin-bottom: var(--space-xl);
  max-width: 180px;
}



/* ─── 9. ENTRANCE ANIMATIONS ─── */
@keyframes osteoFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.osteo-fade-up {
  animation: osteoFadeUp 0.7s ease both;
}
.osteo-fade-up--d1 { animation-delay: 0.1s; }
.osteo-fade-up--d2 { animation-delay: 0.22s; }
.osteo-fade-up--d3 { animation-delay: 0.36s; }
.osteo-fade-up--d4 { animation-delay: 0.5s; }
.osteo-fade-up--d5 { animation-delay: 0.65s; }

/* ─── 10. RESPONSIVE ─── */
@media (max-width: 900px) {
  .osteo-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 50svh;
    min-height: auto;
  }
  .osteo-hero__copy {
    padding: calc(var(--space-2xl) + 60px) var(--space-lg) var(--space-xl);
    order: 1;
    background: var(--osteo-green-deep);
  }
  .osteo-hero__visual {
    order: 0;
    height: 50svh;
    min-height: 280px;
  }
  .osteo-hero__visual-overlay {
    background: linear-gradient(
      180deg,
      transparent 0%,
      var(--osteo-green-deep) 90%
    );
  }
  .osteo-hero__credential {
    bottom: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    max-width: none;
  }
  .osteo-hero__scroll-cue { display: none; }


}

@media (max-width: 560px) {
  .osteo-hero__actions { flex-direction: column; align-items: flex-start; }
  .osteo-hero__logo { max-width: 140px; }

}

/* ─── 11. FOCUS / ACCESSIBILITY ─── */
:focus-visible {
  outline: 2px solid var(--osteo-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── 12. BOOKING MODAL UTILITIES ─── */

/* Body scroll lock — applied by JS when modal opens */
body.osteo-modal-open {
  overflow: hidden;
  /* Prevent layout shift from scrollbar disappearing */
  padding-right: var(--osteo-scrollbar-width, 0px);
}

/* Ensure booking trigger buttons never inherit unexpected styles */
.osteo-booking-trigger {
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  user-select: none;
}