/* =========================================================
   Naturopathic Healthcare Centre — static site stylesheet
   ========================================================= */

:root {
  --color-bg:        #9b9a8c; /* outer page background */
  --color-light:      #fcfcfa; /* section background (near-white) */
  --color-panel:      #e2e4e4; /* light panel background */
  --color-taupe:       #9b9a8c; /* warm taupe accent (matches page body tone) */
  --color-dark:        #2a3536; /* dark text / dark sections */
  --color-dark-text:   #2a3536;
  --color-on-dark:      #fcfcfa;
  --color-whatsapp:      #25d366;

  --font-heading: "Urbanist", "Segoe UI", Arial, sans-serif;
  --font-body:    "Poppins", "Segoe UI", Arial, sans-serif;

  --radius-btn: 9999px;
  --radius-card: 0.75rem;

  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-panel);
  color: var(--color-dark-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 500; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--light   { background: var(--color-light); }
.section--panel    { background: var(--color-panel); }
.section--dark     { background: var(--color-dark); color: var(--color-on-dark); }
.section--taupe    { background: var(--color-taupe); color: var(--color-dark); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-btn);
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--color-dark);
  color: var(--color-on-dark);
}
.btn--primary:hover { background: #3d4c4d; }

.btn--outline {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
  padding: 0.8rem 1.85rem;
}
.btn--outline:hover { background: rgba(0,0,0,0.06); }

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-whatsapp);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: 0.5rem;
}
.btn--whatsapp:hover { opacity: 0.9; }
.btn--whatsapp svg { width: 20px; height: 20px; fill: #fff; flex: none; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--color-panel);
  position: sticky;
  top: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 100;
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  margin-inline: clamp(0.75rem, 4vw, calc((100vw - var(--max-width)) / 2));
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.logo-img {
  height: clamp(48px, 7vw, 68px);
  width: auto;
  display: block;
}

.logo-img--home {
  height: clamp(48px, 7vw, 68px);
}

@media (min-width: 640px) {
  .logo-img--home { height: clamp(64px, 10vw, 100px); }
}

.logo-img--footer {
  height: clamp(56px, 8vw, 76px);
  margin-inline: auto;
}

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--color-dark);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.main-nav a {
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

.main-nav a.nav-cta {
  background: var(--color-dark);
  color: var(--color-on-dark);
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-btn);
  border-bottom: none;
  font-weight: 500;
}
.main-nav a.nav-cta:hover {
  background: #3d4c4d;
  border-bottom: none;
  color: var(--color-on-dark);
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .main-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.5rem);
    background: var(--color-panel);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-radius: 1rem;
    overflow: hidden;
  }
  .main-nav.is-open,
  .nav-toggle-input:checked ~ .main-nav { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .main-nav li { border-top: 1px solid rgba(0,0,0,0.08); }
  .main-nav li:first-child { border-top: none; }
  .main-nav a { display: block; padding: 0.85rem 0; }
  .main-nav a.nav-cta { display: inline-block; margin-top: 0.6rem; padding: 0.7rem 1.4rem; }

  .site-header__inner { position: relative; }
}

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--color-panel);
  padding-block: clamp(2rem, 6vw, 4rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 800px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
}

.hero__image { border-radius: var(--radius-card); overflow: hidden; }
.hero__image img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

@media (max-width: 799px) {
  .hero__image { order: -1; }
  .hero__image img { aspect-ratio: 16 / 9; max-height: 220px; }
}

.hero__actions { margin-top: 1.75rem; }

/* ---------- Services grid (home teaser / services page) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.service-card {
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 190px;
}

.service-card--taupe { background: var(--color-taupe); color: var(--color-dark); }
.service-card--dark  { background: var(--color-dark); color: var(--color-on-dark); }
.service-card--plain {
  background: transparent;
  color: var(--color-dark);
  border: 1px solid rgba(42, 53, 54, 0.18);
}

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

.service-card .btn { align-self: flex-start; }

/* ---------- Service detail sections ---------- */
.service-detail-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .service-detail-wrap { grid-template-columns: 1.6fr 1fr; }
}

.service-detail { max-width: 720px; }
.service-detail h2 { margin-bottom: 0.9em; }
.service-detail p { color: var(--color-dark-text); }

.service-detail-icon {
  display: none;
}

@media (min-width: 900px) {
  .service-detail-icon {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 1rem;
    position: sticky;
    top: 2rem;
  }
  .service-detail-icon img {
    width: 65%;
    max-width: 260px;
    opacity: 0.16;
  }
}

/* ---------- Visit-us / contact-info section ---------- */
.visit-us { text-align: center; }
.visit-us address { font-style: normal; }
.visit-us .map-wrap {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 900px;
  margin-inline: auto;
}
.visit-us .map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.visit-us__divider {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.35;
  margin: 0.9rem auto 0;
}

.visit-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: clamp(2rem, 5vw, 3rem) auto 2rem;
  text-align: center;
}

@media (min-width: 700px) {
  .visit-us__grid { grid-template-columns: repeat(3, 1fr); }
}

.visit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
}

.visit-card__icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.visit-card h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 0.6em;
}

.visit-card p,
.visit-card address {
  margin: 0;
  font-style: normal;
  font-weight: 500;
}
.visit-card p + p { margin-top: 0.2em; }
.visit-card a { text-decoration: none; }
.visit-card a:hover { text-decoration: underline; }

/* ---------- Practitioner detail page ---------- */
.practitioner__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 800px) {
  .practitioner__grid { grid-template-columns: minmax(240px, 420px) 1fr; }
}

.practitioner__photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
}
.practitioner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.practitioner__info { text-align: center; }
.practitioner__info h2 { margin-bottom: 0.3em; }
.practitioner__info p { margin-bottom: 1.4em; }

.practitioner__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.practitioner__buttons .btn { min-width: 240px; }

/* ---------- Book now / team page ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem) 1.5rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

@media (min-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-card { display: flex; flex-direction: column; align-items: center; }

.team-photo {
  width: clamp(130px, 22vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.1rem;
  flex: none;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-card h3 { font-size: 1rem; margin-bottom: 0.3em; }
.team-card p { font-size: 0.9rem; margin-bottom: 1.1em; }

.team-card .btn {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.4rem;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.contact-photo { border-radius: var(--radius-card); overflow: hidden; }
.contact-photo img { width: 100%; }

.contact-info { text-align: center; margin-top: 1.5rem; }
.contact-info a { text-decoration: underline; }
.contact-info .btn--whatsapp { margin-top: 1rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
}
.form-field .required { font-size: 0.8rem; opacity: 0.75; margin-left: 0.35rem; }

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 5px;
  border: 2px solid var(--color-dark);
  background: #fff;
  color: var(--color-dark-text);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #3d4c4d;
  outline-offset: 1px;
}

.contact-form .btn { align-self: flex-start; }

.form-status {
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--success { background: #dff2e1; color: #1c5e2c; }
.form-status--error   { background: #fde3e3; color: #7a1c1c; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-on-dark);
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}


.site-footer p { margin: 1rem 0 0; font-size: 0.9rem; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  list-style: none;
  padding: 0;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.social-links svg { width: 24px; height: 24px; fill: currentColor; }
