/* Capital Wellness & Recovery — Main Stylesheet v8
   This file is the compiled CSS from your existing site.
   Copy your full styles.css content here, or re-upload via the theme editor.
   The key variables used throughout templates: */
:root {
  --blue: #192d54;
  --blue-light: #4a90d9;
  --cream: #f7f5f0;
  --text: #17202b;
  --muted: #5a6472;
  --radius-lg: 24px;
  --radius-md: 16px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--blue); }
.text-white { color: #fff; }
.text-center { text-align: center; }
.section-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-light); margin-bottom: 12px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
p { margin-bottom: 16px; }
a { color: var(--blue); text-decoration: none; }
/* Buttons */
.btn { display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; border: 0; text-decoration: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(25,45,84,.2); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-lg { padding: 16px 36px; font-size: 14px; }
.btn-sm { padding: 10px 20px; font-size: 12px; }
/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid rgba(23,32,43,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-logo img { height: 40px; }
.logo-light { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-list > li > a, .nav-account-toggle, .nav-login-link { padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--text); border-radius: 8px; cursor: pointer; background: none; border: none; font-family: inherit; }
.nav-list > li > a:hover, .nav-account-toggle:hover, .nav-login-link:hover { color: var(--blue); }
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(28,34,44,.15); min-width: 200px; padding: 8px; list-style: none; z-index: 200; }
.dropdown a, .dropdown .logout-link, .dropdown .account-greeting { display: block; padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--text); border-radius: 8px; }
.dropdown .account-greeting { font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.dropdown .logout-link { color: #c0392b; cursor: pointer; }
.dropdown a:hover { background: var(--cream); }
.has-dropdown:hover .dropdown { display: block; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
/* Hero */
.service-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg .photo { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%); }
.service-hero .inner { position: relative; z-index: 2; padding: 60px 0; color: #fff; max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.service-hero .section-kicker { color: rgba(255,255,255,.7); }
.service-hero h1 { color: #fff; }
.service-hero .service-lead { color: rgba(255,255,255,.85); font-size: 18px; max-width: 540px; margin: 16px 0 28px; }
/* Benefits grid */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.benefit-card { background: var(--cream); border-radius: 20px; padding: 28px 24px; }
.benefit-icon { font-size: 28px; display: block; margin-bottom: 12px; }
/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; }
.step { text-align: center; }
.step-num { font-size: 40px; font-weight: 900; color: var(--blue-light); opacity: .3; display: block; margin-bottom: 8px; }
/* Related grid */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 32px; }
.related-card { border-radius: 16px; overflow: hidden; position: relative; display: block; aspect-ratio: 4/3; }
.related-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.related-card:hover img { transform: scale(1.05); }
.related-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-weight: 700; font-size: 15px; }
/* Content split */
.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
/* Detail cards (services page) */
.detail-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 4px 24px rgba(28,34,44,.07); }
.detail-card:nth-child(even) .detail-card-img { order: 2; }
.detail-card-img img { width: 100%; height: 320px; object-fit: cover; }
.detail-card-body { padding: 40px 32px; }
.price-menu { margin: 20px 0; }
.price-menu > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(23,32,43,.08); font-size: 15px; }
.price-menu > div:last-child { border-bottom: 0; }
.price-menu span { font-weight: 800; color: var(--blue); font-size: 18px; }
.card-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
/* Services grid (homepage) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.service-tile { border-radius: 20px; overflow: hidden; background: var(--cream); display: block; transition: transform .2s ease, box-shadow .2s ease; }
.service-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,34,44,.12); }
.tile-img img { width: 100%; height: 200px; object-fit: cover; }
.tile-body { padding: 24px; }
.tile-cta { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
/* Booking intro */
.booking-intro { padding: 64px 0 40px; }
/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in, .reveal.visible { opacity: 1; transform: none; }
/* Footer */
.site-footer { background: var(--blue); color: #fff; padding: 64px 0 32px; }
.foot-top { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.foot-logo { flex: 0 0 auto; }
.foot-cols { display: flex; gap: 40px; flex-wrap: wrap; flex: 1; }
.foot-col { min-width: 120px; }
.foot-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.foot-col a { display: block; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.4); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; gap: 8px; }
.foot-bottom a { color: rgba(255,255,255,.5); }
/* Responsive */
@media (max-width: 768px) {
  .content-split, .detail-card { grid-template-columns: 1fr; }
  .detail-card:nth-child(even) .detail-card-img { order: 0; }
  .nav-list { display: none; flex-direction: column; position: fixed; inset: 0; top: 68px; background: #fff; padding: 24px; z-index: 99; gap: 4px; }
  .nav-list.open { display: flex; }
  .burger { display: flex; }
  .dropdown { position: static; box-shadow: none; padding-left: 16px; }
}

/* ============================================================
   v8.1 FIXES
   ============================================================ */

/* HOME HERO — full bleed with content layered on top */
.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d1a30;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.home-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,20,40,.82) 0%,
    rgba(10,20,40,.55) 55%,
    rgba(10,20,40,.25) 100%
  );
}
.home-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* SERVICES GRID — uniform cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-tile {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(28,34,44,.07);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}
.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28,34,44,.13);
}
.tile-img {
  height: 210px;
  overflow: hidden;
  background: #192d54;
}
.tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.service-tile:hover .tile-img img {
  transform: scale(1.05);
}
.tile-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tile-body h3 { margin-bottom: 8px; }
.tile-body p { flex: 1; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.tile-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: auto;
}

/* FOOTER LOGO FALLBACK */
.foot-logo img {
  height: 44px;
  display: block;
}
.foot-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
}

/* UNIFORM SERVICE PAGE HEROES */
.service-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background: #0d1a30;
  overflow: hidden;
}
.service-hero .hero-bg {
  position: absolute;
  inset: 0;
}
.service-hero .hero-bg .photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-hero .hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.1) 100%);
}
.service-hero .inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px;
  color: #fff;
}
.service-hero .inner h1 { color: #fff; }
.service-hero .inner .section-kicker { color: rgba(255,255,255,.65); }
.service-hero .inner .service-lead {
  color: rgba(255,255,255,.85);
  font-size: 18px;
  max-width: 540px;
  margin: 16px 0 28px;
  line-height: 1.6;
}

/* UNIFORM CONTENT SECTIONS */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .content-split { grid-template-columns: 1fr; gap: 32px; }
  .home-hero { min-height: 100svh; }
  .home-hero-content { padding-top: 100px; }
}

/* Service tile Book Now button */
.tile-book {
  display: inline-block;
  padding: 6px 14px;
  background: #192d54;
  color: #fff !important;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s;
}
.tile-book:hover { background: #4a90d9; }

/* Nav Book Now highlight */
.nav-book-btn {
  background: #192d54 !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 18px !important;
  font-size: 13px !important;
}
.nav-book-btn:hover { background: #4a90d9 !important; }

/* Photo strip responsive */
@media (max-width: 640px) {
  .photo-strip { grid-template-columns: 1fr !important; height: auto !important; }
  .photo-strip img { height: 200px; }
}

/* Account greeting in dropdown */
.account-greeting {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #a0a8b0 !important;
  padding: 10px 14px 4px !important;
  pointer-events: none;
}

/* ============================================================
   v8.4 — CLEAN SERVICE CARD GRID
   ============================================================ */

/* Row of 3 equal cards */
.svc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* Row of 2 centered cards — same width as top row cards */
.svc-row-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: calc(66.666% + 16px); /* matches 2 of 3 columns + 1 gap */
  margin-left: auto;
  margin-right: auto;
}

/* Individual card */
.svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(28,34,44,.07);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28,34,44,.13);
}

/* Image area — fixed height, no gaps */
.svc-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background: #192d54;
}
.svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s ease;
}
.svc-card:hover .svc-img img {
  transform: scale(1.04);
}

/* Text body */
.svc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.svc-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #17202b;
  margin-bottom: 8px;
}
.svc-body p {
  font-size: 14px;
  color: #5a6472;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0;
}
.svc-pricing {
  font-size: 12px;
  color: #192d54;
  font-weight: 700;
  margin: 10px 0 0;
}
.svc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .svc-row { grid-template-columns: repeat(2, 1fr); }
  .svc-row-2 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}
@media (max-width: 580px) {
  .svc-row, .svc-row-2 { grid-template-columns: 1fr; max-width: 100%; }
}

/* ── 404 / PAGE NOT FOUND FIX ─────────────────────────────
   WordPress shows its own 404 when permalink structure isn't
   flushed. The fix is in WP admin, not CSS — but style it
   nicely in the meantime.                                   */
.error404 #main-content {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

/* ============================================================
   v8.7 — HARD CARD RESET
   Targets WordPress theme CSS that forces flex on <a> tags
   ============================================================ */
#cwr-svc-grid a.cwr-card,
#cwr-svc-grid a.cwr-card * {
  box-sizing: border-box !important;
}
#cwr-svc-grid a.cwr-card {
  display: block !important;
  flex-direction: unset !important;
}
#cwr-svc-grid a.cwr-card > .cwr-card-img {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
  float: none !important;
  flex: none !important;
  overflow: hidden !important;
}
#cwr-svc-grid a.cwr-card > .cwr-card-img > img {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center top !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#cwr-svc-grid a.cwr-card > .cwr-card-body {
  display: block !important;
  flex: none !important;
  float: none !important;
  clear: both !important;
  padding: 22px !important;
}
