/* =============================================
   KOI WELLBEING — LA MESA
   Exact visual match to koiwellbeing.com
   Font: Montserrat | Dark: #00243d | Teal: #157e99
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Montserrat, Helvetica, Arial, Lucida, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #666;
  background: #fff;
  line-height: 1.7em;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- COLOUR TOKENS ---- */
:root {
  --dark:      #003a5c;
  --teal:      #1a90ae;
  --teal-dk:   #0f7a95;
  --teal-lt:   #1da0bf;
  --body:      #555555;
  --heading:   #222222;
  --white:     #ffffff;
  --light:     #f4f8fa;
  --border:    #e0eaee;
  --overlay:   rgba(0, 40, 65, 0.72);
}

/* ---- UTILITY ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 980px; margin: 0 auto; padding: 0 40px; }
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-teal   { color: var(--teal); }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: Montserrat, Helvetica, Arial, Lucida, sans-serif;
  line-height: 1.4em;
}
h1 {
  font-size: 50px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 70px;
  color: var(--white);
}
h2 {
  font-size: 38px;
  font-weight: 300;
  color: var(--heading);
  line-height: 53px;
}
h3 {
  font-size: 20px;
  font-weight: 300;
  color: var(--heading);
  line-height: 28px;
}
h4 {
  font-size: 15px;
  font-weight: 300;
  color: var(--heading);
  line-height: 25px;
}
p {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  line-height: 26px;
  margin-bottom: 1em;
}
p:last-child { margin-bottom: 0; }
p.large {
  font-size: 18px;
  line-height: 32px;
}
p.white { color: rgba(255,255,255,0.85); }

/* ---- SECTION LABELS / EYEBROW ---- */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow.white { color: rgba(255,255,255,0.7); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: Montserrat, Helvetica, Arial, Lucida, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--teal-dk);
  border-color: var(--teal-dk);
  color: var(--white);
}
/* Outline variant */
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
/* White outline — on dark backgrounds */
.btn-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--white);
  color: var(--dark);
}
/* Teal fill with white border — hero primary CTA */
.btn-hero {
  background: var(--teal);
  color: var(--white);
  border-color: var(--white);
}
.btn-hero:hover {
  background: var(--teal-dk);
  border-color: rgba(255,255,255,0.6);
}

/* ---- SECTION PADDING ---- */
.section { padding: 80px 0; }
.section-lg { padding: 110px 0; }
.section-sm { padding: 50px 0; }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--dark);
  transition: box-shadow 0.3s;
}
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 68px; width: auto; }
.logo-text-wrap { display: flex; flex-direction: column; margin-left: 10px; }
.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
}
.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.main-nav > li {
  position: relative;
}
.main-nav > li > a,
.main-nav > li > span {
  display: block;
  padding: 0 12px;
  line-height: 80px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.main-nav > li > a:hover,
.main-nav > li > span:hover,
.main-nav > li > a.active {
  color: var(--teal);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 80px;
  left: 0;
  min-width: 240px;
  background: var(--dark);
  border-top: 3px solid var(--teal);
  padding: 12px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.main-nav > li:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: 9px 22px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.72);
  transition: color 0.15s, padding-left 0.15s;
}
.nav-dropdown li a:hover {
  color: var(--teal);
  padding-left: 28px;
}
.nav-dropdown .drop-group {
  display: block;
  padding: 10px 22px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 6px;
}
.nav-dropdown .drop-group:first-child {
  border-top: none;
  margin-top: 0;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-phone {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.2s;
}
.header-phone:hover { color: var(--teal); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 36, 61, 0.78);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.hero-inner { max-width: 700px; }
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.3;
}
.hero-tagline {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.6;
}
.hero-sub {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Centred hero variant — matches koiwellbeing.com layout */
.hero-inner-center {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero-logo {
  height: 130px;
  width: auto;
  display: block;
  margin: 0 auto 36px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.3));
}
.hero-inner-center h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.15;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.hero-inner-center .hero-tagline {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 15px;
  line-height: 1.85;
}
.hero-btns-center {
  justify-content: center;
}
.br-desk { display: inline; }

/* =============================================
   INTRO BAR
   ============================================= */
.intro-bar {
  background: var(--teal);
  padding: 18px 40px;
  text-align: center;
}
.intro-bar p {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

/* =============================================
   SECTION HEADING BLOCK
   ============================================= */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.service-tile {
  background: var(--dark);
  padding: 50px 40px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.service-tile:hover { background: #003050; }
.service-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--teal);
  transition: width 0.4s;
}
.service-tile:hover::after { width: 100%; }

.service-tile h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.service-tile p {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.service-tile .btn {
  font-size: 11px;
  padding: 12px 24px;
}

/* =============================================
   FEATURE ROWS (image + text alternating)
   ============================================= */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.feature-row.flip .feat-img  { order: 2; }
.feature-row.flip .feat-text { order: 1; }

.feat-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
}
.feat-text {
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feat-text.bg-dark  { background: var(--dark); }
.feat-text.bg-white { background: var(--white); }
.feat-text.bg-light { background: var(--light); }

.feat-text h2 { margin-bottom: 20px; }
.feat-text.bg-dark h2 { color: var(--white); }
.feat-text.bg-dark p  { color: rgba(255,255,255,0.75); }
.feat-text .btn { margin-top: 12px; align-self: flex-start; }

/* =============================================
   ABOUT / MISSION SECTION
   ============================================= */
.mission-section {
  background: var(--dark);
  text-align: center;
}
.mission-section h2 {
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 24px;
}
.mission-section p {
  color: rgba(255,255,255,0.75);
  max-width: 720px;
  margin: 0 auto 1em;
  font-size: 15px;
  line-height: 1.85;
}
.mission-section .btn { margin-top: 16px; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: #eef8fb;
  border-bottom: 1px solid #cce8f0;
  padding: 0 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.stats-grid > div {
  padding: 36px 20px;
  border-right: 1px solid #cce8f0;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.stats-grid > div:last-child {
  border-right: none;
}
.stats-grid > div:hover {
  background: #c8e8f2;
  transform: translateY(-2px);
}
.stat-num {
  font-size: 44px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
}

/* =============================================
   TEAM SECTION
   ============================================= */
.team-section { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}
.team-card { overflow: hidden; }
.team-card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--light) center/cover no-repeat;
}
.team-card-info {
  padding: 20px 16px;
  text-align: center;
  background: var(--white);
}
.team-card-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.team-card-info .role {
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============================================
   FEATURED IN LOGOS
   ============================================= */
.featured-section {
  background: var(--white);
  padding: 60px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.featured-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 36px;
  display: block;
}
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  opacity: 0.5;
  filter: grayscale(1);
}
.logo-strip img { height: 36px; width: auto; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-section {
  background: var(--dark);
  text-align: center;
  padding: 90px 40px;
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 38px;
  font-weight: 300;
}
.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 32px;
}
.cta-phone {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--dark);
  border-top: 3px solid var(--teal);
  padding: 70px 0 0;
  color: rgba(255,255,255,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-logo { margin-bottom: 18px; display: flex; align-items: center; }
.footer-logo img { height: 44px; width: auto; }
.footer-logo .logo-text-wrap { margin-left: 8px; }
.footer-logo .logo-text { font-size: 15px; }

.footer-about {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.footer-col h5 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal); }

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.fci-icon {
  width: 32px;
  height: 32px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.fci-text {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.fci-text a { color: rgba(255,255,255,0.55); }
.fci-text a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p,
.footer-bottom a {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}
.footer-bottom a:hover { color: var(--teal); }

/* =============================================
   INTERIOR PAGE HERO
   ============================================= */
.page-hero {
  background: var(--dark);
  padding: 150px 40px 70px;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--teal);
  margin: 30px auto 0;
}
.page-hero .eyebrow { margin-bottom: 12px; color: var(--teal); }
.page-hero h1 { font-size: 42px; }
.page-hero p {
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 15px;
}

/* =============================================
   CONTENT SECTIONS (interior pages)
   ============================================= */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.content-row.flip > :first-child { order: 2; }
.content-row.flip > :last-child  { order: 1; }

.content-img {
  min-height: 460px;
  background: var(--light) center/cover no-repeat;
}
.content-text h2 { margin-bottom: 18px; }
.content-text h3 { margin: 28px 0 10px; color: var(--teal); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Callout box */
.callout {
  border-left: 4px solid var(--teal);
  background: var(--light);
  padding: 24px 28px;
  margin: 28px 0;
}
.callout p {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* Bullet list */
.koi-list { margin: 20px 0; }
.koi-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--body);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}
.koi-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-top: 7px;
}
.koi-list.white li { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }
.koi-list.white li::before { background: var(--teal); }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.info-card {
  background: var(--white);
  padding: 30px;
  border-top: 3px solid var(--teal);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.info-card.dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--teal);
  box-shadow: none;
}
.info-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.info-card.dark h4 { color: var(--teal); }
.info-card p { font-size: 13px; margin: 0; }
.info-card.dark p { color: rgba(255,255,255,0.65); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-size: 22px;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-form-wrap {
  background: var(--light);
  padding: 50px;
}
.contact-form-wrap h3 {
  font-size: 22px;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d0d0d0;
  background: var(--white);
  font-family: Montserrat, Helvetica, Arial, Lucida, sans-serif;
  font-size: 13px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* =============================================
   TEAM PAGE
   ============================================= */
.team-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}
.team-member {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  overflow: hidden;
}
.team-member .photo {
  height: 340px;
  background: var(--light) center/cover no-repeat;
}
.team-member .bio {
  padding: 28px;
}
.team-member h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.team-member .title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: block;
}
.team-member p { font-size: 13px; line-height: 1.8; }

/* =============================================
   PLACEHOLDER HIGHLIGHT
   ============================================= */
.ph {
  background: rgba(21,126,153,0.12);
  border: 1px dashed var(--teal);
  padding: 2px 8px;
  color: #0a5d72;
  border-radius: 2px;
  font-style: italic;
  font-size: 0.9em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feat-img  { order: 0; }
  .feature-row.flip .feat-text { order: 0; }
  .feat-text { padding: 60px 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; line-height: 1.3; }
  h2 { font-size: 26px; }
  .container, .container-sm { padding: 0 20px; }
  .header-wrap { padding: 0 20px; }
  .main-nav {
    display: none;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 30px;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    border-top: 2px solid var(--teal);
  }
  .main-nav.open { display: flex; }
  .main-nav > li { width: 100%; }
  .main-nav > li > a,
  .main-nav > li > span { line-height: normal; padding: 14px 24px; font-size: 12px; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--teal);
    margin: 0 24px 8px;
    display: none;
    padding: 6px 0;
  }
  .nav-dropdown.open { display: block; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .hero { min-height: auto; padding-top: 80px; }
  .hero-content { padding: 60px 20px; }
  .section, .section-lg { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .content-row, .contact-layout { grid-template-columns: 1fr; }
  .content-row.flip > :first-child { order: 0; }
  .content-row.flip > :last-child  { order: 0; }
  .feat-text { padding: 50px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-wrap { padding: 30px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-page-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 60px 24px; }
  .br-desk { display: none; }
  .hero-logo { height: 90px; margin-bottom: 24px; }
  .hero-inner-center h1 { font-size: 28px; letter-spacing: 1px; }
  .hero-btns-center { gap: 12px; }
}

/* =============================================
   HERO — NEIGHBOURHOOD VARIANT (no bg image)
   ============================================= */
.hero-neighbourhood {
  background-color: #003a5c;
  background-size: cover;
  background-position: center;
  min-height: 75vh;
}
.hero-neighbourhood .hero-tagline {
  max-width: 700px;
  font-size: 15px;
  line-height: 1.8;
}

/* Team card — no photo */
.team-featured-noimg {
  grid-template-columns: 1fr;
  max-width: 640px;
}
.team-featured-noimg .team-featured-bio {
  padding: 48px 52px;
}

/* =============================================
   HERO — LA MESA LOCATION BADGE
   ============================================= */
.hero-location-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  padding: 7px 22px;
  margin-bottom: 28px;
}

/* =============================================
   SERVICES CAROUSEL
   ============================================= */
.services-carousel-wrap {
  position: relative;
  padding: 0 56px;
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
  min-width: calc(100% / 3);
  padding: 0 14px;
  box-sizing: border-box;
}
/* Lighter service tiles for carousel */
.carousel-slide .service-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  padding: 44px 36px 40px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.carousel-slide .service-tile:hover {
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.carousel-slide .service-tile::after { display: none; }
.carousel-slide .service-tile h3 {
  color: var(--dark);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 16px;
}
.carousel-slide .service-tile p { color: var(--body); margin-bottom: 28px; }
.carousel-slide .service-tile .btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
  font-size: 11px;
  padding: 10px 22px;
}
.carousel-slide .service-tile .btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-arrow:hover { background: var(--teal); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.carousel-dot.active { background: var(--teal); }

/* =============================================
   CTA — WHITE VERSION (homepage)
   ============================================= */
.cta-section.cta-white {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.cta-section.cta-white h2 { color: var(--dark); }
.cta-section.cta-white p { color: var(--body); }
.cta-section.cta-white .cta-phone { color: var(--dark); }
.cta-section.cta-white .cta-phone span { color: var(--dark); }
/* btn-white becomes teal outline on white CTA backgrounds */
.cta-section.cta-white .btn-white {
  color: var(--teal);
  border-color: var(--teal);
}
.cta-section.cta-white .btn-white:hover {
  background: var(--teal);
  color: var(--white);
}

/* =============================================
   CONTACT PAGE HERO — KOI FISH BG
   ============================================= */
.page-hero-koi {
  background-image: url('https://koiwellbeing.com/wp-content/uploads/2023/11/fishpaper-background.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-hero-koi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 36, 61, 0.72);
}
.page-hero-koi .eyebrow,
.page-hero-koi h1,
.page-hero-koi p { position: relative; z-index: 1; }

/* =============================================
   TEAM FEATURED — SINGLE PROVIDER
   ============================================= */
.team-featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 800px;
  margin: 0 auto 44px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.team-featured-photo {
  background: var(--light) center/cover no-repeat;
  min-height: 340px;
}
.team-featured-bio {
  padding: 40px 44px;
  background: var(--light);
}
.team-featured-bio h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.team-featured-bio .role {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.team-featured-bio p { font-size: 13px; line-height: 1.9; }

@media (max-width: 900px) {
  .carousel-slide { min-width: 50%; }
  .services-carousel-wrap { padding: 0 40px; }
  .team-featured { grid-template-columns: 1fr; }
  .team-featured-photo { min-height: 280px; }
}
@media (max-width: 600px) {
  .carousel-slide { min-width: 100%; }
  .services-carousel-wrap { padding: 0 32px; }
}

/* =============================================
   MEGA MENU — WHITE DROPDOWN
   ============================================= */

/* Hide old-style dropdowns that were already in nav */
.main-nav > li.has-mega > .nav-dropdown { display: none; }

.mega-drop {
  position: absolute;
  top: 80px;
  left: 0;
  background: #ffffff;
  box-shadow: 0 16px 50px rgba(0,36,61,0.14);
  border-top: 3px solid var(--teal);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 20px;
  min-width: 500px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 300;
}
.mega-drop-sm {
  grid-template-columns: 1fr;
  min-width: 280px;
}
.has-mega:hover .mega-drop,
.has-mega.open .mega-drop {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mega-item {
  display: flex;
  flex-direction: column;
  padding: 13px 16px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, padding-left 0.15s;
  cursor: pointer;
}
.mega-item:hover {
  background: #f0f8fa;
  border-left-color: var(--teal);
  padding-left: 20px;
}
.mega-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 3px;
  transition: color 0.15s;
}
.mega-item:hover .mega-title { color: var(--teal); }
.mega-desc {
  font-size: 11px;
  font-weight: 400;
  color: #999;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}

/* ── Services two-panel flyout ────────────────────────────── */
.mega-drop-services {
  display: flex !important;
  grid-template-columns: none;
  padding: 0;
  min-width: 540px;
  gap: 0;
}
.mega-cats {
  min-width: 210px;
  padding: 10px 0;
  border-right: 1px solid #eef0f2;
  flex-shrink: 0;
}
.mega-cats .mega-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 0;
  border-left: 3px solid transparent;
  padding: 12px 18px;
  gap: 8px;
}
.mega-cats .mega-item.active,
.mega-cats .mega-item:hover {
  background: #f0f8fa;
  border-left-color: var(--teal);
  padding-left: 21px;
}
.mega-arrow {
  font-size: 18px;
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.15s;
  line-height: 1;
}
.mega-cats .mega-item.active .mega-arrow,
.mega-cats .mega-item:hover .mega-arrow { opacity: 1; }

/* Sub-panel — frosted glass */
.mega-sub-panel {
  flex: 1;
  padding: 18px 20px;
  background: rgba(245, 251, 253, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 220px;
  position: relative;
}
.mega-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: fadeSubIn 0.18s ease both;
}
.mega-sub.active { display: flex; }
@keyframes fadeSubIn {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.mega-sub-heading {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddeef3;
}
.mega-sub a {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  border-radius: 4px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.mega-sub a:hover {
  background: #ffffff;
  color: var(--teal);
  border-left-color: var(--teal);
  padding-left: 16px;
}

/* ── Mobile mega menu ──────────────────────────── */
@media (max-width: 768px) {
  .mega-drop {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--teal);
    background: rgba(255,255,255,0.06);
    padding: 6px 0 6px 12px;
    opacity: 1;
    transform: none;
    min-width: 0;
    gap: 0;
  }
  .mega-drop.open { display: grid; }
  .mega-item { padding: 10px 16px; border-radius: 0; border-left: none; }
  .mega-item:hover { padding-left: 16px; background: rgba(255,255,255,0.08); }
  .mega-title { color: rgba(255,255,255,0.9); font-size: 12px; letter-spacing: 1px; }
  .mega-item:hover .mega-title { color: var(--teal); }
  .mega-desc { display: none; }
}

/* =============================================
   SITE-WIDE LIGHTENING
   ============================================= */

/* Lighter card borders and softer shadows */
.info-card {
  border-radius: 6px;
}

/* Lighter interior page hero tint */
.page-hero {
  background: linear-gradient(135deg, #00243d 0%, #0a3d5c 100%);
}

/* Softer dark sections — use a slightly lighter navy */
section[style*="background: var(--dark)"],
.section[style*="background: var(--dark)"] {
  /* Handled inline — leaving for override if needed */
}

/* Cards on light bg get a clean border */
.cards-grid .info-card:not(.dark) {
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: 6px;
  background: var(--white);
}

/* Subtle hover lift on all cards */
.info-card, .team-card, .carousel-slide .service-tile {
  transition: box-shadow 0.25s, transform 0.25s;
}
.info-card:hover, .team-card:hover, .carousel-slide .service-tile:hover {
  box-shadow: 0 8px 28px rgba(0,36,61,0.10);
  transform: translateY(-3px);
}

/* Fade-in animation for sections */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.55s ease both; }

/* =============================================
   MOBILE — COMPREHENSIVE PHONE FIXES
   ============================================= */
@media (max-width: 768px) {

  /* ── Hero ── */
  .hero { min-height: 100svh; padding: 0; }
  .hero-content { padding: 100px 24px 60px; }
  .hero-logo { height: 70px; margin-bottom: 16px; }
  .hero-location-badge { font-size: 9px; letter-spacing: 3px; padding: 6px 16px; margin-bottom: 16px; }
  .hero-inner-center h1 { font-size: 26px; line-height: 1.25; letter-spacing: 1px; }
  .hero-tagline { font-size: 13px; line-height: 1.7; margin-bottom: 28px; }
  .hero-btns { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-btns .btn { text-align: center; width: 100%; padding: 16px 20px; font-size: 12px; }

  /* ── Stats bar ── */
  .stats-bar { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div { padding: 24px 12px; border-right: 1px solid #cce8f0; }
  .stats-grid > div:nth-child(2) { border-right: none; }
  .stats-grid > div:nth-child(3) { border-right: 1px solid #cce8f0; border-top: 1px solid #cce8f0; }
  .stats-grid > div:nth-child(4) { border-right: none; border-top: 1px solid #cce8f0; }
  .stat-num { font-size: 32px; }
  .stat-label { font-size: 9px; letter-spacing: 2px; }

  /* ── Intro bar ── */
  .intro-bar { font-size: 11px; padding: 14px 20px; text-align: center; }

  /* ── Sections ── */
  .section, .section-lg { padding: 50px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 13px; }

  /* ── Carousel ── */
  .services-carousel-wrap { padding: 0 40px; }
  .carousel-slide { min-width: 100%; padding: 0 8px; }
  .carousel-arrow { width: 32px; height: 32px; font-size: 14px; }

  /* ── Feature rows ── */
  .feature-row { grid-template-columns: 1fr; }
  .feature-row .feat-img { min-height: 260px; order: 0 !important; }
  .feature-row .feat-text { order: 1 !important; padding: 40px 24px; }
  .feat-text h2 { font-size: 22px; line-height: 1.3; }
  .feat-text p { font-size: 13px; }
  .feat-text .btn { width: 100%; text-align: center; margin-top: 8px; }

  /* ── Page hero (interior pages) ── */
  .page-hero { padding: 70px 24px 50px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 13px; }

  /* ── CTA sections ── */
  .cta-section { padding: 50px 24px; }
  .cta-section h2 { font-size: 22px; }
  .cta-section p { font-size: 13px; margin-bottom: 24px; }
  .cta-section .btn { display: block; width: 100%; text-align: center; margin: 0 0 12px 0 !important; }

  /* ── Cards grid ── */
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-card { padding: 28px 24px; }

  /* ── Content rows (about, team etc) ── */
  .content-row { grid-template-columns: 1fr; gap: 0; }
  .content-img { min-height: 260px; }
  .content-text { padding: 32px 24px; }
  .content-text h2 { font-size: 22px; }

  /* ── Team featured ── */
  .team-featured { grid-template-columns: 1fr; }
  .team-featured-photo { min-height: 240px; }
  .team-featured-bio { padding: 28px 24px; }

  /* ── Contact layout ── */
  .contact-layout { grid-template-columns: 1fr; gap: 0; }
  .contact-info { padding: 32px 24px; }
  .contact-form-wrap { padding: 32px 24px; border-top: 1px solid var(--border); }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: 11px; }
  .footer-about { font-size: 12px; }
  .footer-social { margin-top: 16px; }

  /* ── Mobile mega menu — flat list for services ── */
  .mega-drop-services { flex-direction: column; }
  .mega-cats { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 6px 0; min-width: 0; }
  .mega-sub-panel { display: none; } /* hide sub-panel on mobile — category links are enough */
  .mega-cats .mega-item { padding: 10px 16px; }

  /* ── Buttons full width on small screens ── */
  .hero-btns-center { width: 100%; }

  /* ── Specials / info cards ── */
  .specials-grid { grid-template-columns: 1fr; }

  /* ── Typography ── */
  h2 { font-size: 24px; line-height: 1.3; }
  h3 { font-size: 18px; }
  p { font-size: 14px; }
}

/* Extra small phones */
@media (max-width: 400px) {
  .hero-inner-center h1 { font-size: 22px; }
  .btn { padding: 14px 18px; font-size: 11px; }
  .stat-num { font-size: 28px; }
}
