/* ════════════ Shared Styles for Kindred Wellness ════════════ */
/* Extracted from index.html for reuse across all pages       */

/* ════════════ Design Tokens ════════════ */
:root {
  --sage: #7F9A6A;
  --sage-dark: #6B8558;
  --sage-light: rgba(127, 154, 106, 0.12);
  --blue: #8FB8BE;
  --blue-light: rgba(143, 184, 190, 0.15);
  --linen: #FEFAF3;
  --cream: #F6F3EC;
  --charcoal: #2E2E2E;
  --taupe: #D8D2C6;
  --text-mid: #5C5C5C;
  --white: #FFFFFF;

  --font-heading: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max-width: 1100px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════ Reset ════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: calc(500 + var(--a11y-weight-offset, 0));
  color: var(--charcoal);
  background: var(--linen);
  line-height: calc(1.65 + var(--a11y-lh-offset, 0));
  overflow-x: hidden;
}

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

/* ════════════ Navigation ════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(254, 250, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid rgba(216, 210, 198, 0.4);
  transition: box-shadow 0.5s var(--ease);
}

header.scrolled {
  box-shadow: 0 2px 24px rgba(46, 46, 46, 0.05);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  transition: transform 0.5s var(--ease);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

.nav-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--charcoal);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--sage);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--sage); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.nav-cta,
.nav-links a.nav-cta:link,
.nav-links a.nav-cta:visited {
  background: #7F9A6A;
  color: #FFFFFF !important;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-block;
  transition: all 0.3s var(--ease);
  border: 1.5px solid #7F9A6A;
  -webkit-text-fill-color: #FFFFFF;
}

.nav-links a.nav-cta:hover {
  background: transparent;
  color: #7F9A6A !important;
  -webkit-text-fill-color: #7F9A6A;
}

.nav-links a.nav-cta::after { display: none; }

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  display: none !important;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--taupe);
  border-radius: 10px;
  padding: 0.5rem 0;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(46, 46, 46, 0.08);
  z-index: 110;
}

/* Invisible bridge so mouse can travel from trigger to menu without losing hover */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 400;
  white-space: nowrap;
}

.nav-dropdown-menu a::after { display: none; }

.nav-dropdown-menu a:hover {
  background: var(--sage-light);
  color: var(--sage);
}

.nav-dropdown-menu .nav-dropdown-overview {
  border-bottom: 1px solid var(--taupe);
  margin-bottom: 0.25rem;
  padding-bottom: 0.75rem;
  font-weight: 500;
  color: var(--sage);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════ Buttons ════════════ */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(127, 154, 106, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--taupe);
}

.btn-outline:hover {
  border-color: var(--sage);
  color: var(--sage);
  transform: translateY(-2px);
}

/* ════════════ Footer ════════════ */
footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--blue); }

.footer-practice {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 3rem;
}

.footer-practice-item {
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-practice-item .fp-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.footer-practice-item a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-practice-item a:hover {
  color: var(--blue);
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

/* ════════════ Scroll Animation ════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════ Sub-page Content Styles ════════════ */
.page-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
  background: var(--linen);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.page-hero .page-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

.page-content {
  padding: 4rem 2rem 6rem;
  background: var(--linen);
}

.page-content-inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2rem 0 0.75rem;
}

.page-content p {
  color: var(--text-mid);
  line-height: calc(1.85 + var(--a11y-lh-offset, 0));
  margin-bottom: 1.25rem;
}

.page-content ul,
.page-content ol {
  color: var(--text-mid);
  line-height: calc(1.85 + var(--a11y-lh-offset, 0));
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content a {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: rgba(127, 154, 106, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}

.page-content a:hover {
  text-decoration-color: var(--sage);
}

.page-content .callout {
  background: var(--cream);
  border-left: 3px solid var(--sage);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.page-content .callout p:last-child {
  margin-bottom: 0;
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: gap 0.3s var(--ease);
}

.page-back-link:hover {
  gap: 0.6rem;
}

/* ════════════ Cross-links ════════════ */
.page-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--taupe);
}

.page-related p {
  font-size: 0.92rem;
  color: var(--text-mid);
}

.page-related a {
  color: var(--sage);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.page-related a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 3px;
}

/* ════════════ Focus Areas Layout ════════════ */
.focus-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Sidebar */
.focus-sidebar {
  position: sticky;
  top: 7rem;
}

.focus-sidebar h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sage);
}

.focus-sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.focus-sidebar-nav a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.25s var(--ease);
}

.focus-sidebar-nav a:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
}

.focus-sidebar-nav a.active {
  background: var(--sage-light);
  color: var(--sage);
  font-weight: 600;
}

.focus-sidebar .sidebar-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--taupe);
}

.focus-sidebar .sidebar-cta a {
  display: block;
  text-align: center;
}

/* Focus main area */
.focus-main h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.focus-main .focus-subtitle {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Typography inside focus-main sub-pages */
.focus-main h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
}

.focus-main h2:first-of-type {
  margin-top: 0;
}

.focus-main h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2rem 0 0.75rem;
}

.focus-main p {
  color: var(--text-mid);
  line-height: calc(1.85 + var(--a11y-lh-offset, 0));
  margin-bottom: 1.25rem;
}

.focus-main ul,
.focus-main ol {
  color: var(--text-mid);
  line-height: calc(1.85 + var(--a11y-lh-offset, 0));
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.focus-main li {
  margin-bottom: 0.5rem;
}

.focus-main a {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: rgba(127, 154, 106, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}

.focus-main a:hover {
  text-decoration-color: var(--sage);
}

.focus-main .callout {
  background: var(--cream);
  border-left: 3px solid var(--sage);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.focus-main .callout p:last-child {
  margin-bottom: 0;
}

/* Focus area cards (landing page) */
.focus-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.focus-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  border-left: 3px solid var(--sage);
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: block;
}

.focus-card:nth-child(2) { border-left-color: var(--blue); }
.focus-card:nth-child(3) { border-left-color: var(--taupe); }

.focus-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(46, 46, 46, 0.06);
}

.focus-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.focus-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.focus-card .card-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s var(--ease);
}

.focus-card:hover .card-link {
  gap: 0.5rem;
}

/* ════════════ Responsive ════════════ */
@media (max-width: 768px) {
  .focus-layout {
    grid-template-columns: 1fr;
    padding: 8rem 1.5rem 4rem;
    gap: 2rem;
  }

  .focus-sidebar {
    position: static;
    border-bottom: 1px solid var(--taupe);
    padding-bottom: 1.5rem;
  }

  .focus-sidebar h2 {
    border-bottom: none;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
  }

  .focus-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .focus-sidebar-nav a {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  .focus-sidebar .sidebar-cta {
    display: none;
  }
}

@media (max-width: 680px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    background: rgba(254, 250, 243, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 280px;
    height: 100vh;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -4px 0 24px rgba(46, 46, 46, 0.08);
    align-items: flex-start;
  }

  .nav-links.active { transform: translateX(0); }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 1rem;
    min-width: auto;
    display: none;
  }

  .nav-dropdown.mobile-open .nav-dropdown-menu {
    display: block;
  }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-practice { grid-template-columns: 1fr; text-align: center; }
}
