/* =========================================================
   FourRoots Wellness & Consulting Group — Stylesheet
   Dark navy / teal / cyan premium wellness theme
   ========================================================= */

:root {
  /* Core palette */
  --navy-deep: #020F1E;
  --navy-mid: #062641;
  --ocean-blue: #0B4163;
  --teal: #078A9B;
  --cyan: #20C5DD;
  --aqua-soft: #A8F0F5;
  --gold: #B79A53;

  /* Text */
  --text-primary: #F4FAFB;
  --text-secondary: #C9DEE6;
  --text-muted: #86A6B1;

  /* Surfaces */
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-bg-strong: rgba(255, 255, 255, 0.065);
  --card-border: rgba(168, 240, 245, 0.14);
  --card-shadow: 0 20px 50px -20px rgba(2, 8, 18, 0.7);
  --nav-bg: rgba(3, 14, 28, 0.74);

  /* Type */
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --header-height: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;

  /* Base gradient wash: deep navy sinking into midnight and ocean blue,
     with soft cyan/teal glows in the upper-right and lower-left. */
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 900px 700px at 88% 6%, rgba(32, 197, 221, 0.16), transparent 60%),
    radial-gradient(ellipse 800px 600px at 6% 92%, rgba(7, 138, 155, 0.15), transparent 62%),
    radial-gradient(ellipse 600px 500px at 95% 70%, rgba(11, 65, 99, 0.35), transparent 65%),
    linear-gradient(180deg, #020F1E 0%, #062641 32%, #0B4163 58%, #062641 82%, #020F1E 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  background-repeat: no-repeat;
}

/* Faint scattered particles + very low-opacity plus symbols, layered
   above the gradient but behind all real content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(168, 240, 245, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 14%, rgba(168, 240, 245, 0.3), transparent 60%),
    radial-gradient(1px 1px at 34% 42%, rgba(168, 240, 245, 0.28), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 58%, rgba(168, 240, 245, 0.25), transparent 60%),
    radial-gradient(1px 1px at 22% 74%, rgba(168, 240, 245, 0.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 82%, rgba(168, 240, 245, 0.25), transparent 60%),
    radial-gradient(1px 1px at 55% 90%, rgba(168, 240, 245, 0.22), transparent 60%),
    radial-gradient(1px 1px at 45% 24%, rgba(168, 240, 245, 0.25), transparent 60%);
  background-repeat: no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='140'%3E%3Cpath%20d='M70%2054v32M54%2070h32'%20stroke='%2320C5DD'%20stroke-width='2.5'%20stroke-linecap='round'%20fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 140px 140px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0;
}

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

a { color: var(--cyan); text-decoration: none; }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--navy-deep);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Everything that should sit visibly above the decorative layers */
.site-header, main, .footer, .back-to-top {
  position: relative;
  z-index: 1;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 240, 245, 0.1);
}

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

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.nav__brand-mark { display: block; }

.nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__brand-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.nav__menu { display: flex; align-items: center; gap: 8px; }

.nav__link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__link:hover { background: rgba(168, 240, 245, 0.08); color: var(--text-primary); }

.nav__link.is-active {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: var(--navy-deep);
  font-weight: 600;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: var(--navy-deep);
  box-shadow: 0 10px 26px -10px rgba(32, 197, 221, 0.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(32, 197, 221, 0.6); }

.btn--ghost {
  background: transparent;
  color: var(--aqua-soft);
  border-color: rgba(168, 240, 245, 0.4);
}
.btn--ghost:hover { background: rgba(168, 240, 245, 0.08); border-color: var(--cyan); transform: translateY(-2px); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 88px;
  display: flex;
  justify-content: center;
}

.hero__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.hero__glow--top {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(32, 197, 221, 0.4), transparent 72%);
}

.hero__glow--bottom {
  width: 420px;
  height: 420px;
  bottom: -220px;
  left: -120px;
  background: radial-gradient(circle, rgba(7, 138, 155, 0.32), transparent 70%);
}

.hero__roots { position: absolute; inset: 0; color: var(--aqua-soft); opacity: 0.1; }
.hero__roots svg { width: 100%; height: 100%; }

.root-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hero__divider {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 14px;
}
.eyebrow--center { text-align: center; }

.hero__headline {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 500;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.info-bar {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--aqua-soft);
}

.info-bar__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */

.section {
  padding: 88px 24px;
  position: relative;
}

.section--tint {
  background: linear-gradient(180deg, rgba(7, 138, 155, 0.09), rgba(6, 38, 65, 0.28));
  border-top: 1px solid rgba(168, 240, 245, 0.07);
  border-bottom: 1px solid rgba(168, 240, 245, 0.07);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  margin-bottom: 32px;
  color: var(--text-primary);
}
.section__title--center { text-align: center; }

/* =========================================================
   ABOUT
   ========================================================= */

.about__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-secondary);
}

.tagline {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--aqua-soft);
  margin-top: 36px;
}

/* =========================================================
   SERVICES CARDS (glass style)
   ========================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--card-bg-strong);
  box-shadow: 0 26px 50px -18px rgba(32, 197, 221, 0.28), var(--card-shadow);
}

.card__icon { width: 46px; height: 46px; color: var(--cyan); margin-bottom: 18px; }
.card__icon svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card__icon svg circle { fill: currentColor; stroke: none; }

.card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 600; color: var(--text-primary); }
.card p { font-size: 0.94rem; color: var(--text-secondary); }

/* =========================================================
   GALLERY
   ========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  background: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -18px rgba(32, 197, 221, 0.3), var(--card-shadow);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* =========================================================
   FOUNDER
   ========================================================= */

.founder {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 56px;
  align-items: start;
}

.founder__photo-wrap { text-align: center; }

.founder__photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03), 0 20px 50px -18px rgba(32, 197, 221, 0.45);
  border: 3px solid rgba(168, 240, 245, 0.35);
}

.founder__photo-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.founder__name { font-size: 1.6rem; margin-bottom: 6px; color: var(--text-primary); }
.founder__credential { color: var(--cyan); font-weight: 600; margin-bottom: 22px; }

.founder__quals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.founder__quals li { position: relative; padding-left: 22px; font-size: 0.95rem; color: var(--text-secondary); }
.founder__quals li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.founder__bio p { margin-bottom: 16px; color: var(--text-secondary); }

/* =========================================================
   CONTACT
   ========================================================= */

.contact__message {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-secondary);
}

.contact__card {
  max-width: 420px;
  margin: 0 auto 32px;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
}

.contact__org { font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.contact__card a { font-weight: 600; }

.section#contact > .section__inner > .btn {
  display: flex;
  width: fit-content;
  margin: 0 auto 48px;
}

.crisis-notice {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(183, 154, 83, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.crisis-notice strong { color: var(--text-primary); }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--navy-deep);
  color: var(--text-secondary);
  padding: 56px 24px 28px;
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--navy-deep), var(--navy-deep)),
    linear-gradient(90deg, transparent, var(--gold), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(168, 240, 245, 0.1);
}

.footer__brand { display: flex; align-items: center; margin-bottom: 16px; }
.footer__logo { height: 46px; width: auto; }

.footer__org { font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }

.footer a { color: var(--text-secondary); opacity: 0.9; }
.footer a:hover { opacity: 1; color: var(--cyan); }

.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }

.footer__copy {
  max-width: var(--max-width);
  margin: 24px auto 0;
  font-size: 0.82rem;
  opacity: 0.6;
  text-align: center;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: var(--navy-deep);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(32, 197, 221, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, box-shadow 0.25s ease;
  z-index: 400;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 14px 32px -8px rgba(32, 197, 221, 0.75); }

/* =========================================================
   ENTRANCE ANIMATION
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder__photo-wrap { max-width: 240px; margin: 0 auto; }
  .founder__quals { align-items: center; }
  .founder__quals li { text-align: left; }

  .hero__glow--top { width: 340px; height: 340px; top: -140px; right: -110px; filter: blur(50px); }
  .hero__glow--bottom { width: 300px; height: 300px; bottom: -160px; left: -100px; filter: blur(50px); }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 240, 245, 0.1);
    padding: 12px 20px 20px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav__link { padding: 12px 16px; border-radius: 10px; }

  .hero { padding: 72px 20px 56px; }
  .section { padding: 64px 20px; }

  body::after { opacity: 0.03; background-size: 100px 100px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .info-bar { flex-direction: column; gap: 10px; }

  .hero__glow--top { width: 220px; height: 220px; filter: blur(36px); }
  .hero__glow--bottom { width: 200px; height: 200px; filter: blur(36px); }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { opacity: 0.3; }
}
