/* Total Wellness Clinic — totalwellness.clinic
   Palette taken from the source site's theme variables. */

:root {
  --navy:        #0e3f86;
  --navy-deep:   #143361;
  --navy-soft:   #5b97ee;
  --green:       #8ccc64;
  --green-deep:  #65ac38;
  --mist:        #f4f9f9;
  --pale:        #eaf3fa;
  --bar:         #eff1f2;
  --slate:       #a0b1bf;
  --ink:         #20303c;
  --white:       #ffffff;

  --wrap: 1140px;
  --gut: 24px;

  --fs-display: clamp(1.75rem, 1.1rem + 2.6vw, 3.1rem);
  --fs-h2:      clamp(1.35rem, 1rem + 1.5vw, 2.1rem);
  --fs-h3:      clamp(1.05rem, .92rem + .55vw, 1.35rem);
  --fs-body:    1rem;

  --font-display: 'Jost', 'Avenir Next', 'Century Gothic', 'Futura', system-ui, sans-serif;
  --font-body:    'Nunito Sans', 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .7em 1.2em; z-index: 999;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--navy-soft);
  outline-offset: 2px;
}

/* ---------------------------------------------------------- header */
.site-header { text-align: center; padding: 30px var(--gut) 18px; background: var(--white); }
.site-header .logo { display: block; width: 168px; margin: 0 auto 14px; }
.site-header .logo img { width: 100%; }

.brandline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.15rem, .82rem + 1.35vw, 1.85rem);
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
  line-height: 1.32;
}
.brandline a { text-decoration: none; color: inherit; }
.brandline a:hover { color: var(--green-deep); }
.brandline--name { margin-bottom: .5rem; }

.taglines { margin: .35rem 0 0; font-size: .84rem; line-height: 1.85; color: var(--navy); }
.taglines span { display: block; }

/* ---------------------------------------------------------- nav */
.nav { background: var(--bar); border-block: 1px solid #e2e6e9; }
.nav-inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px;
}
.nav-phone {
  font-size: .82rem; letter-spacing: .05em; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display);
}
.nav-phone:hover { color: var(--green-deep); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--slate); border-radius: 3px;
  color: var(--navy); font: inherit; font-size: .8rem; padding: .4em .8em; cursor: pointer;
  letter-spacing: .06em; text-transform: uppercase;
}

.nav-list {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 22px; margin: 0; padding: 0;
}
.nav-list a {
  font-family: var(--font-display);
  display: block; padding: 15px 0;
  font-size: .82rem; letter-spacing: .045em; text-decoration: none; color: var(--navy);
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--green-deep); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green-deep); }

/* the "More" group */
.has-sub { position: relative; }
.has-sub > button {
  font-family: var(--font-display);
  background: none; border: 0; cursor: pointer; color: var(--navy);
  font-size: .82rem; letter-spacing: .045em; padding: 15px 0;
  display: inline-flex; align-items: center; gap: .4em;
}
.has-sub > button::after {
  content: ""; width: .42em; height: .42em; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.has-sub > button:hover { color: var(--green-deep); }
.submenu {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; right: 0; top: 100%; z-index: 60;
  background: var(--white); border: 1px solid #e2e6e9;
  box-shadow: 0 10px 28px rgba(20,51,97,.13);
  min-width: 232px; display: none;
}
.has-sub[data-open="true"] .submenu { display: block; }
.submenu a { padding: 9px 18px; border: 0; white-space: nowrap; }
.submenu a:hover { background: var(--mist); }

/* ---------------------------------------------------------- sections */
.section { padding: clamp(44px, 6vw, 82px) 0; }
.section--mist { background: var(--mist); }
.section--pale { background: var(--pale); }

.h-display {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--fs-display); letter-spacing: .055em; text-transform: uppercase;
  color: var(--green); margin: 0 0 .5em; line-height: 1.18;
}
.h-display--navy { color: var(--navy); }
.h-section {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--fs-h2); letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); margin: 0 0 .6em; line-height: 1.25;
}
.h-card {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h3); letter-spacing: .03em;
  color: var(--navy); margin: 0 0 .45em;
}
.lede { font-size: 1.06rem; color: var(--navy); }
.center { text-align: center; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-block; font-family: var(--font-display);
  padding: .82em 2.1em; border: 1px solid var(--green); border-radius: 999px;
  color: var(--green-deep); background: transparent; text-decoration: none;
  font-size: .82rem; letter-spacing: .09em; text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--green); color: #fff; }
.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-deep); border-color: var(--green-deep); }

/* ---------------------------------------------------------- home hero */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.tiles img { width: 100%; height: clamp(220px, 26vw, 360px); object-fit: cover; }

.tile-labels {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  padding: clamp(34px, 4vw, 56px) 0 clamp(40px, 5vw, 70px);
  text-align: center;
}
.tile-labels h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(.95rem, .8rem + .5vw, 1.24rem);
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--green); margin: 0 0 1.4em; line-height: 1.4;
}
.tile-labels .btn { font-size: .72rem; padding: .72em 1.5em; }

/* ---------------------------------------------------------- testimonial */
.quote { max-width: 760px; margin-inline: auto; text-align: center; }
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.95; color: var(--navy); }
.quote cite {
  display: block; margin-top: 1.6em; font-style: normal;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .05em; color: var(--navy);
}

/* ---------------------------------------------------------- generic content */
.prose p { margin: 0 0 1.15em; }
.prose ul { margin: 0 0 1.15em; padding-left: 1.25em; }
.prose li { margin-bottom: .55em; }
.prose strong { font-weight: 600; }
.panel { background: var(--mist); padding: clamp(28px, 4vw, 54px); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.split--flip > :first-child { order: 2; }

.specialties {
  list-style: none; margin: 0 auto 2.4em; padding: 0; max-width: 560px;
  text-align: center; columns: 2; column-gap: 40px;
}
.specialties li { margin-bottom: .5em; break-inside: avoid; }

/* service rows */
.svc { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; margin-bottom: clamp(44px, 5vw, 78px); }
.svc:nth-child(even) > .svc-media { order: 2; }
.svc-media img { width: 100%; height: clamp(280px, 34vw, 470px); object-fit: cover; }
.svc-kicker { color: var(--green-deep); font-family: var(--font-display); letter-spacing: .05em; margin: 0 0 .9em; }
/* Plain tinted block, same treatment as .panel — the site has no accent-bar callouts. */
.disclaimer { font-size: .84rem; color: var(--ink); background: var(--mist); padding: 1.15em 1.35em; }

/* card grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: clamp(24px, 3vw, 42px); }
.card img { width: 100%; height: 260px; object-fit: cover; margin-bottom: 1.1em; }
.card .prose { font-size: .95rem; }

/* hotlines */
.hotlines { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.hotline { text-align: center; padding: 1.6em 1.2em; background: var(--white); }
.hotline h2 {
  font-family: var(--font-display); font-weight: 300; font-size: 1rem;
  letter-spacing: .055em; text-transform: uppercase; color: var(--green); margin: 0 0 .6em; line-height: 1.45;
}
.hotline a { font-size: 1.28rem; font-family: var(--font-display); text-decoration: none; letter-spacing: .03em; }
.hotline a:hover { color: var(--green-deep); }

/* page banner */
.banner img { width: 100%; height: clamp(200px, 27vw, 380px); object-fit: cover; }

/* tips */
.tip { margin-bottom: clamp(30px, 3.5vw, 48px); }

/* blog */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(26px, 3vw, 44px); }
.post img { width: 100%; height: 220px; object-fit: cover; margin-bottom: 1.1em; }
.post h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; line-height: 1.45; margin: 0 0 .5em; }
.post h2 a { text-decoration: none; }
.post h2 a:hover { color: var(--green-deep); }
.post p { font-size: .93rem; margin: 0 0 1em; }

/* credentials */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px 40px; margin-top: 2.4em; }
.cred strong { display: block; font-family: var(--font-display); font-weight: 400; color: var(--navy); letter-spacing: .02em; }
.cred span { font-size: .92rem; color: var(--ink); }

.portrait { width: 260px; border-radius: 50%; margin: 0 auto 2em; }

/* ---------------------------------------------------------- contact form */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 24px; }
.field { display: flex; flex-direction: column; gap: .4em; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; font-family: var(--font-display); }
.field input, .field textarea {
  font: inherit; font-size: .98rem; color: var(--navy);
  padding: .72em .85em; border: 1px solid var(--slate); border-radius: 3px; background: #fff;
  width: 100%;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy-soft); }
/* Honeypot. MUST ship with the markup — if this rule ever goes missing the field
   renders as a visible "Website" box that real people helpfully fill in, and every
   one of those enquiries is then silently discarded by design. Positioned off-screen
   rather than display:none, which better bots know to skip. */
.hp, .bg-hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none;
}
.form-note { font-size: .82rem; color: var(--ink); margin-top: 1.2em; }
/* Success/error read from the tint and the text colour rather than an accent bar. */
.alert { padding: 1.05em 1.25em; margin-bottom: 1.6em; font-size: .95rem; border: 1px solid; border-radius: 3px; }
.alert--ok  { background: #eef7e8; border-color: #bcdfa6; color: #33611c; }
.alert--err { background: #fdeeee; border-color: #eec4c0; color: #8d2b20; }
.alert a { color: inherit; }

/* ---------------------------------------------------------- contact strip */
.contact-strip { text-align: center; }
.contact-strip .big {
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em;
  text-decoration: none; display: inline-block; margin: .25em 0;
}
.contact-strip .big:hover { color: var(--green-deep); }
.contact-strip .brainmark { width: 190px; margin: 2.2em auto 0; opacity: .95; }

/* ---------------------------------------------------------- footer */
.site-footer {
  background: var(--white); border-top: 1px solid #e2e6e9;
  padding: 34px var(--gut); text-align: center; font-size: .82rem; color: var(--ink);
}
.site-footer nav { margin-bottom: 1.1em; }
.site-footer nav a { color: var(--navy); text-decoration: none; margin: 0 .7em; line-height: 2.1; }
.site-footer nav a:hover { color: var(--green-deep); text-decoration: underline; }
.site-footer .legal { margin: 0; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile-labels { grid-template-columns: repeat(2, 1fr); }
  .split, .svc { grid-template-columns: 1fr; }
  .split--flip > :first-child, .svc:nth-child(even) > .svc-media { order: 0; }
  .svc-media img { height: clamp(230px, 46vw, 340px); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; }
  .nav-list {
    display: none; flex-direction: column; align-items: stretch;
    width: 100%; gap: 0; padding-bottom: 10px;
  }
  .nav-list[data-open="true"] { display: flex; }
  .nav-list > li { border-top: 1px solid #e2e6e9; }
  .nav-list a, .has-sub > button { padding: 12px 2px; width: 100%; text-align: left; }
  .has-sub > button { justify-content: space-between; }
  .submenu {
    position: static; display: block; border: 0; box-shadow: none;
    background: transparent; padding: 0 0 8px 16px; min-width: 0;
  }
  .submenu a { padding: 9px 2px; }
  .specialties { columns: 1; }
}

@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .tile-labels { grid-template-columns: 1fr; gap: 34px; }
  .portrait { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .nav, .site-footer nav, .btn { display: none; }
  body { color: #000; }
}

/* current page lives inside the "More" group */
.has-sub > button.current { color: var(--green-deep); }
.has-sub > button.current::before {
  content: ""; position: absolute; left: 0; right: 1.1em; bottom: 0;
  border-bottom: 2px solid var(--green);
}
.has-sub > button { position: relative; }
@media (max-width: 760px) { .has-sub > button.current::before { content: none; } }

.post-meta { font-size: .78rem; color: #5e778c; margin: 0 0 .9em; letter-spacing: .02em; }

/* Wix renders these three page titles in title case, not caps */
.h-display--tc { text-transform: none; letter-spacing: .02em; }
