:root {
  --primary: #2f6f72;
  --primary-dark: #1d4648;
  --accent: #f4c095;
  --light: #f5f7f8;
  --dark: #132728;
  --text: #1b1f24;
  --muted: #5f6f75;
  --font-base: 'Karla', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.6;
}

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

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

a:hover,
a:focus {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 1000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section.bg-light {
  background: var(--light);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(19, 39, 40, 0.08);
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
}

.site-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: #ffffff;
  padding: 96px 24px 24px;
  transition: right var(--transition);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
}

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

.site-nav li + li {
  margin-top: 1.25rem;
}

.site-nav a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.site-nav.open {
  right: 0;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  width: 24px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hero */
.hero {
  padding: 5.5rem 0 4rem;
  background: linear-gradient(135deg, rgba(47, 111, 114, 0.1), rgba(244, 192, 149, 0.2));
}

.hero-container {
  display: grid;
  gap: 2.5rem;
}

.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.hero-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.hero-highlights li {
  margin-bottom: 0.5rem;
  padding-left: 1.75rem;
  position: relative;
}

.hero-highlights li::before {
  content: "●";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
}

.btn-secondary {
  background: rgba(47, 111, 114, 0.12);
  color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(47, 111, 114, 0.22);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--primary);
  color: #ffffff;
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.text-link::after {
  content: "→";
  transition: transform var(--transition);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Section layouts */
.section-grid {
  display: grid;
  gap: 2rem;
}

.about-cta {
  margin-top: 1.5rem;
}

.card-grid {
  display: grid;
  gap: 1.75rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(19, 39, 40, 0.08);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.program-grid {
  display: grid;
  gap: 1.5rem;
}

.program {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(47, 111, 114, 0.18);
  background: #ffffff;
}

.program h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.program p {
  color: var(--muted);
}

.team-grid {
  display: grid;
  gap: 1.5rem;
}

.team-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(19, 39, 40, 0.08);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.team-card h3 {
  margin-bottom: 0;
}

.team-card p.small {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.testimonials {
  background: radial-gradient(circle at top, rgba(47, 111, 114, 0.12), transparent);
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

blockquote {
  margin: 0;
  padding: 1.75rem;
  border-left: 4px solid var(--accent);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(19, 39, 40, 0.08);
}

blockquote p {
  margin: 0 0 1rem;
  font-style: italic;
}

blockquote cite {
  font-weight: 600;
  color: var(--primary);
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(19, 39, 40, 0.08);
  background: #ffffff;
}

.gallery figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  background: #ffffff;
}

.contact {
  background: linear-gradient(135deg, rgba(47, 111, 114, 0.08), rgba(244, 192, 149, 0.18));
}

.contact-container {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.2rem;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  font-weight: 600;
}

.contact-form-wrapper {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 35px rgba(19, 39, 40, 0.12);
}

.form-grid {
  display: grid;
  gap: 1.2rem;
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  color: var(--dark);
}

input,
select,
textarea {
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(19, 39, 40, 0.2);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 114, 0.15);
}

textarea {
  resize: vertical;
}

.form-action {
  margin-top: 0.5rem;
}

.form-disclaimer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
}

.form-status.error {
  color: #c63f3f;
}

.form-status.success {
  color: #277c54;
}

/* Footer */
.site-footer {
  background: #0f1d1e;
  color: #e7f1f2;
  padding-top: 3rem;
}

.footer-container {
  display: grid;
  gap: 2rem;
}

.footer-column h4,
.footer-column h3 {
  margin-top: 0;
  color: #f1f6f7;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-column a {
  color: #c6d8d9;
}

.footer-column a:hover,
.footer-column a:focus {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(230, 240, 241, 0.12);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: #a6bbbc;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 12px 24px rgba(47, 111, 114, 0.35);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background var(--transition), transform var(--transition);
  z-index: 850;
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translate(-50%, 120%);
  width: min(90%, 520px);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(19, 39, 40, 0.18);
  padding: 1.5rem;
  transition: transform var(--transition);
  z-index: 950;
}

.cookie-banner.active {
  transform: translate(-50%, 0);
}

.cookie-content {
  display: grid;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Legal pages */
.legal-main .legal-hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(135deg, rgba(47, 111, 114, 0.15), rgba(244, 192, 149, 0.15));
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--dark);
}

.legal-hero p {
  color: var(--muted);
}

.legal-content {
  padding: 3.5rem 0 4rem;
}

.legal-content article {
  display: grid;
  gap: 1.5rem;
}

.legal-content h2 {
  margin-bottom: 0.2rem;
  color: var(--dark);
}

address {
  font-style: normal;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive styles */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .site-nav {
    position: static;
    height: auto;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }

  .site-nav li + li {
    margin-top: 0;
  }

  .nav-toggle {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .section-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-container {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .hero {
    padding: 6.5rem 0 5rem;
  }

  .hero-text p {
    font-size: 1.15rem;
  }
}

.scroll-to-top.visible {
  display: inline-flex;
}

input.error,
textarea.error,
select.error {
  border-color: #c63f3f;
  box-shadow: 0 0 0 3px rgba(198, 63, 63, 0.15);
}

.social-links a {
  color: var(--primary);
  font-weight: 600;
}

.social-links a:hover,
.social-links a:focus {
  color: var(--primary-dark);
}

/* FILE: assets/js/main.js */
window.history.scrollRestoration = 'manual';

window.addEventListener('pageshow', () => {
  window.scrollTo(0, 0);
});

document.addEventListener('DOMContentLoaded', () => {
  const navToggle = document.querySelector('.nav-toggle');
  const siteNav = document.querySelector('.site-nav');
  const navLinks = document.querySelectorAll('.site-nav a');
  const scrollLinks = document.querySelectorAll('[data-scroll="true"]');
  const scrollButton = document.getElementById('scrollToTop');
  const contactForm = document.getElementById('contactForm');
  const cookieBanner = document.getElementById('cookieBanner');
  const acceptCookiesBtn = document.getElementById('acceptCookies');
  const currentYearSpan = document.getElementById('currentYear');
  const resetLinks = document.querySelectorAll('[data-reset-scroll="true"]');

  if (currentYearSpan) {
    currentYearSpan.textContent = new Date().getFullYear();
  }

  if (navToggle && siteNav) {
    navToggle.addEventListener('click', () => {
      const isOpen = siteNav.classList.toggle('open');
      navToggle.setAttribute('aria-expanded', String(isOpen));
    });
  }

  navLinks.forEach(link => {
    link.addEventListener('click', () => {
      if (siteNav && siteNav.classList.contains('open')) {
        siteNav.classList.remove('open');
        navToggle?.setAttribute('aria-expanded', 'false');
      }
    });
  });

  scrollLinks.forEach(link => {
    link.addEventListener('click', event => {
      const hash = link.getAttribute('href');
      if (!hash || !hash.startsWith('#')) return;
      const target = document.querySelector(hash);
      if (target) {
        event.preventDefault();
        target.scrollIntoView({ behavior: 'smooth' });
      }
    });
  });

  resetLinks.forEach(link => {
    link.addEventListener('click', () => {
      window.scrollTo({ top: 0 });
    });
  });

  if (scrollButton) {
    window.addEventListener('scroll', () => {
      if (window.scrollY > 300) {
        scrollButton.classList.add('visible');
      } else {
        scrollButton.classList.remove('visible');
      }
    });

    scrollButton.addEventListener('click', () => {
      window.scrollTo({ top: 0, behavior: 'smooth' });
    });
  }

  if (contactForm) {
    contactForm.addEventListener('submit', event => {
      event.preventDefault();
      const statusEl = contactForm.querySelector('.form-status');
      const requiredFields = ['name', 'email', 'message'];
      let isValid = true;

      requiredFields.forEach(id => {
        const field = contactForm.querySelector(`#${id}`);
        if (field) {
          field.classList.remove('error');
          if (!field.value.trim()) {
            field.classList.add('error');
            isValid = false;
          }
        }
      });

      const emailField = contactForm.querySelector('#email');
      if (emailField && emailField.value) {
        const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
        if (!emailPattern.test(emailField.value.trim())) {
          emailField.classList.add('error');
          isValid = false;
        }
      }

      if (statusEl) {
        statusEl.classList.remove('error', 'success');
        if (!isValid) {
          statusEl.textContent = 'Please complete the required fields before sending.';
          statusEl.classList.add('error');
          return;
        }

        statusEl.textContent = 'Thank you for your message. Our coordination team will reach out shortly.';
        statusEl.classList.add('success');
      }

      contactForm.reset();
    });
  }

  if (cookieBanner) {
    const consent = localStorage.getItem('uwcCookieConsent');
    if (!consent) {
      cookieBanner.classList.add('active');
    }

    acceptCookiesBtn?.addEventListener('click', () => {
      localStorage.setItem('uwcCookieConsent', 'accepted');
      cookieBanner.classList.remove('active');
    });
  }
});

/* FILE: robots.txt */
User-agent: *
Disallow:

Sitemap: https://www.undefinedwellnesscollective.com/sitemap.xml

/* FILE: sitemap.xml */
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.undefinedwellnesscollective.com/index.html</loc>
    <lastmod>2024-06-06</lastmod>
    <changefreq>monthly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://www.undefinedwellnesscollective.com/terms.html</loc>
    <lastmod>2024-06-06</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.6</priority>
  </url>
  <url>
    <loc>https://www.undefinedwellnesscollective.com/privacy.html</loc>
    <lastmod>2024-06-06</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.6</priority>
  </url>
  <url>
    <loc>https://www.undefinedwellnesscollective.com/cookie-policy.html</loc>
    <lastmod>2024-06-06</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
  </url>
</urlset>