/* CAHSEDS — static rebuild of the Next.js site (design tokens + page styles) */

:root {
  --primary: hsl(168, 36%, 33%);
  --primary-light: hsl(168, 36%, 95%);
  --primary-glow: rgba(45, 123, 107, 0.15);
  --secondary: hsl(28, 40%, 48%);
  --secondary-light: hsl(28, 40%, 95%);
  --accent: hsl(210, 30%, 40%);
  --background: hsl(40, 20%, 98%);
  --foreground: hsl(210, 24%, 16%);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(45, 123, 107, 0.12);
  --card-shadow: 0 8px 32px 0 rgba(45, 123, 107, 0.06);
  --text-muted: hsl(210, 12%, 40%);
  --border: hsl(210, 16%, 90%);
  --max-width: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --font-outfit: "Outfit", sans-serif;
  --font-playfair: "Playfair Display", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: hsl(168, 36%, 45%);
    --primary-light: hsl(168, 36%, 12%);
    --primary-glow: rgba(73, 157, 140, 0.15);
    --secondary: hsl(28, 40%, 55%);
    --secondary-light: hsl(28, 40%, 15%);
    --accent: hsl(210, 25%, 65%);
    --background: hsl(210, 24%, 9%);
    --foreground: hsl(210, 16%, 92%);
    --card-bg: rgba(22, 28, 36, 0.85);
    --card-border: rgba(73, 157, 140, 0.15);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --text-muted: hsl(210, 10%, 65%);
    --border: hsl(210, 16%, 20%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  color: var(--foreground);
  background: var(--background);
  background-image:
    radial-gradient(at 0% 0%, var(--primary-glow) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--primary-glow) 0px, transparent 50%);
  background-attachment: fixed;
  font-family: var(--font-outfit), sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Soften Bootstrap defaults so brand CSS wins */
main {
  flex-grow: 1;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-playfair), serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--foreground);
  margin: 0;
}

p {
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  margin-bottom: 0; /* override Bootstrap reboot */
}

/* Neutralize Bootstrap reboot spacing that would alter the original layout */
.home-intro p,
.treatment-content p,
.long-bio p,
.faq-content p,
.partner-tagline,
.page-subtitle,
.footer-description,
.contact-text {
  margin-bottom: 0;
}

button,
summary {
  font-family: inherit;
}

.glass {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-smooth);
}

.glass:hover {
  border-color: rgba(45, 123, 107, 0.25);
  box-shadow: 0 12px 40px 0 rgba(45, 123, 107, 0.1);
}

.nav-link-anim {
  position: relative;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link-anim::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link-anim:hover::after,
.nav-link-anim.is-active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-foot-nav {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.page-foot-nav a {
  color: var(--secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.page-foot-nav a:hover {
  color: var(--primary);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(45, 123, 107, 0.15));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-list .nav-item-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
}

.nav-list .nav-item-link:hover,
.nav-list .nav-item-link.is-active {
  color: var(--primary);
}

.nav-list .nav-item-link.is-active {
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--foreground);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-list .nav-item-link {
    display: block;
    width: 100%;
    font-size: 1.1rem;
  }
}

/* ========== Footer ========== */
.site-footer {
  background-color: var(--primary-light);
  border-top: 1px solid var(--card-border);
  padding: 4rem 2rem 2rem 2rem;
  margin-top: auto;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-logo-title {
  font-family: var(--font-playfair), serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.footer-logo-subtitle {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-description {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-column-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-family: var(--font-playfair), serif;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.footer-link-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-link-list a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
}

.footer-info-list strong {
  color: var(--foreground);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ========== Home ========== */
.home-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 35vh;
}

.hero-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  font-weight: 600;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
}

.hero-graphic {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.home-intro {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-image: url("../pics/leaf_pale.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
}

.home-intro-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--foreground);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 2.75rem;
  }
}

/* ========== Shared page chrome ========== */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem 4rem 2rem;
  display: flex;
  flex-direction: column;
}

.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-title {
  font-size: 2.75rem;
  color: var(--primary);
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* ========== Treatment ========== */
.treatment-page {
  gap: 5rem;
}

.treatment-content {
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  background-image: url("../pics/leaf_pale.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
}

.treatment-content > p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--foreground);
}

.treatment-divider {
  margin: 2rem 0;
  height: 1px;
  background-color: var(--border);
}

.treatment-section-title {
  font-family: var(--font-playfair), serif;
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 600;
}

.treatment-content .treatment-body {
  line-height: 1.8;
}

/* ========== Partnership ========== */
.partnership-page {
  gap: 4rem;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.partner-card {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
  background-image: url("../pics/leaf_pale.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 200px;
}

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avatar-container {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(45, 123, 107, 0.12);
  border: 3px solid var(--card-border);
  position: relative;
  background-color: var(--primary-light);
}

.avatar-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partner-name {
  font-family: var(--font-playfair), serif;
  font-size: 1.75rem;
  color: var(--primary);
  font-weight: 700;
}

.partner-role {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  font-weight: 600;
  margin-top: -0.5rem;
}

.partner-tagline {
  font-size: 1.05rem;
  line-height: 1.6;
}

.long-bio {
  display: none;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  margin-top: 0.5rem;
  background-image: url("../pics/leaf_pale.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 150px;
}

.long-bio.is-open {
  display: flex;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  align-self: flex-start;
  transition: var(--transition-smooth);
  font-family: inherit;
  padding: 0;
}

.toggle-btn:hover {
  color: var(--secondary);
}

.toggle-btn svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .partner-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .toggle-btn {
    align-self: center;
  }
}

/* ========== FAQs ========== */
.faqs-page {
  gap: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item summary {
  padding: 1.5rem;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  color: var(--primary);
  font-family: var(--font-playfair), serif;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--secondary);
  transition: var(--transition-smooth);
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  background-image: url("../pics/leaf_pale.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 100px;
}

.faq-link {
  color: var(--secondary) !important;
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.faq-link:hover {
  color: var(--primary) !important;
}

/* ========== Find Us ========== */
.find-us-page {
  gap: 3.5rem;
}

.maps-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.map-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.address-details {
  padding: 1.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
}

.address-title {
  font-family: var(--font-playfair), serif;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.address-text {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--foreground);
  margin: 0;
}

.directions-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--secondary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.directions-link:hover {
  color: var(--primary) !important;
  transform: translateX(4px);
}

.expanded-map-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  background-color: #f7f7f7;
}

.expanded-map-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.expanded-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-section {
  max-width: 800px;
  margin: 2rem auto 0 auto;
  width: 100%;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-title {
  font-family: var(--font-playfair), serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.contact-link {
  color: var(--secondary) !important;
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.contact-link:hover {
  color: var(--primary) !important;
}

@media (max-width: 768px) {
  .expanded-map-wrapper {
    height: 300px;
  }
}
