/* ==========================================================================
   Your Wellness Center — shared stylesheet
   Plain CSS, no framework, no build step. One file, used by every page.
   ========================================================================== */

:root {
  --color-primary: #790090;
  --color-primary-dark: #5c006e;
  --color-accent: #2ea3f2;
  --color-highlight: #fce905;
  --color-ink: #333333;
  --color-ink-soft: #5a5a5a;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f4f9;
  --color-footer-bg: #222222;
  --font-heading: 'Roboto', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --max-width: 1140px;
  --header-height: 96px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-center-wrap { text-align: center; margin: 2.5rem 0; }
.btn-light {
  background: #fff;
  color: var(--color-primary);
}
.btn-light:hover { background: var(--color-bg-soft); }

/* ---------- Top info bar ---------- */
.top-bar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--color-highlight); text-decoration: none; }

/* ---------- Header / navigation ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 1rem;
}
.logo-link { display: block; flex-shrink: 0; }
.logo-link img { height: 68px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 1.9rem;
}
.primary-nav a {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.is-open { max-height: 600px; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .primary-nav a {
    display: block;
    padding: 0.9em 0;
    border-bottom: 1px solid #eee;
  }
  .top-bar .container { justify-content: center; text-align: center; }
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 460px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 0, 30, 0.55);
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
}
.hero-slide-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 90px 24px;
  text-align: center;
}
.hero-slide-content h2 {
  color: #fff;
  font-size: 2rem;
}
.hero-slide-content .hero-quote {
  color: var(--color-highlight);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}
.hero-slide-content p { font-size: 1.15rem; }
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: #fff; }

/* ---------- Generic sections ---------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--color-bg-soft); }
.section-dark {
  background: var(--color-primary);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.intro-block { max-width: 820px; margin: 0 auto 3rem; text-align: center; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 780px) {
  .grid-3 { grid-template-columns: 1fr; }
}
.card {
  text-align: left;
}
.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  color: var(--color-accent);
}
.card h4 { margin-bottom: 0.5em; }
.card ul { padding-left: 1.2em; list-style: disc; }
.card ul li { margin-bottom: 0.3em; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--color-bg-soft);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.page-header h1 { margin-bottom: 0.3em; }

/* ---------- Media + text pairs ---------- */
.media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.media-text.reverse .media-text-media { order: 2; }
@media (max-width: 780px) {
  .media-text { grid-template-columns: 1fr; }
  .media-text.reverse .media-text-media { order: 0; }
}
.media-text-media img,
.media-text-media video,
.media-text-media iframe {
  border-radius: 6px;
  width: 100%;
}
.video-frame {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  border-radius: 6px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Social follow ---------- */
.social-follow { text-align: center; }
.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  list-style: none;
  margin-top: 1.5rem;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}
.social-icons a:hover { background: var(--color-primary-dark); }
.social-icons svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-radius: 4px;
}
.testimonial p:last-of-type { margin-bottom: 0.4em; }
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
}
.testimonial .role { color: var(--color-ink-soft); font-size: 0.9rem; }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-card img { border-radius: 4px; }
.price { font-weight: 700; color: var(--color-primary); }

/* ---------- Contact ---------- */
.contact-details {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}
.contact-details a { font-weight: 700; }
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.contact-form .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .contact-form .two-col { grid-template-columns: 1fr; }
}
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.35em;
  font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { justify-self: start; }
.form-note {
  background: var(--color-bg-soft);
  border: 1px solid #e4dbe8;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: #ccc;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-icons { justify-content: center; }
}
.site-footer h4 { color: var(--color-accent); font-size: 1rem; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.4em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  text-align: center;
  color: #999;
}
