/* ============================================================
   Banstead Acupuncture — Main Stylesheet
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
  /* Warm, desaturated palette matching the design */
  --green-dark: #4a553d;
  --green-mid: #7a8b6a;
  --green-light: #c8d0be;
  --cream: #f4f3f0;
  --cream-dark: #eae5db;
  --white: #fafaf8;
  --text-dark: #3a3a38;
  --text-mid: #6b6b66;
  --text-light: #9a9a94;
  --border: #dad6ce;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1280px;
  --header-height: 78px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans), sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream);
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-mid);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif), serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 { font-size: 1rem; }

ul { list-style: none; }

/* ----- Utility ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--font-sans), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1.5px solid var(--green-dark);
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
}

.btn--outline:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

.btn--small {
  padding: 9px 18px;
  font-size: 0.72rem;
}

/* ============================================================
   HEADER / NAVIGATION
   Header is cream/white — blends seamlessly into hero
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
}

/* Logo: original logo image (dark olive on light bg) */
.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo img {
  height: 72px;
  width: auto;
}

.site-header__logo .logo-mobile {
  display: none;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-list a {
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--green-mid);
}

.nav-cta {
  margin-left: 10px;
}

.nav-cta .btn {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  padding: 8px 18px;
  font-size: 0.72rem;
}

.nav-cta .btn:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

/* Header CTA — visible only on mobile, next to hamburger */
.header-cta {
  display: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(32px, 1fr) minmax(0, calc(var(--max-width) * 0.45)) minmax(0, calc(var(--max-width) * 0.55)) 0;
  min-height: 420px;
}

.hero__inner {
  display: contents;
}

.hero__content {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px 36px 0;
  margin-left: 192px;
  max-width: calc(var(--max-width) * 0.45);
  position: relative;
  z-index: 2;
}

.hero__content h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.18;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.hero__divider {
  width: 48px;
  height: 2px;
  background: var(--green-dark);
  margin: 14px 0;
}

.hero__description {
  color: var(--text-mid);
  margin-bottom: 6px;
  max-width: 440px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.hero__lead {
  color: var(--text-mid);
  margin-bottom: 20px;
  max-width: 440px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
  font-size: 0.8rem;
}

.hero__location svg {
  flex-shrink: 0;
}

/* Hero image — bleeds to right viewport edge */
.hero__image-wrap {
  grid-column: 3 / -1;
  position: relative;
  overflow: hidden;
}

.hero__image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
}

/* Gradient fade from cream into the image */
.hero__image-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(to right, var(--cream), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-badges {
  background: #ecede7;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-badges__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-badge__icon {
  width: 36px;
  height: 36px;
  color: var(--green-mid);
}

.trust-badge__icon svg {
  width: 100%;
  height: 100%;
}

.trust-badge h4 {
  font-family: var(--font-sans), sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-dark);
}

.trust-badge p {
  font-size: 0.78rem;
  color: var(--text-mid);
  max-width: 180px;
  line-height: 1.45;
}

/* ============================================================
   HOW I CAN HELP + TESTIMONIALS
   ============================================================ */
.how-help {
  padding: 40px 0;
  background: var(--cream);
}

.how-help .container {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.how-help__photo {
  border-radius: 6px;
  overflow: hidden;
}

.how-help__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.how-help__text h2 {
  margin-bottom: 14px;
}

.how-help__text p {
  color: var(--text-mid);
  margin-bottom: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Testimonial Carousel — outer wrapper includes arrows + card */
.testimonial-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-carousel {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  flex: 1;
  min-width: 0;
}

.testimonial-carousel__slide {
  display: none;
}

.testimonial-carousel__slide.active {
  display: block;
}

.testimonial-carousel__quote {
  font-family: var(--font-serif), serif;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  padding-top: 24px;
}

.testimonial-carousel__quote::before {
  content: "\201C";
  font-family: var(--font-serif), serif;
  font-size: 3rem;
  color: var(--green-mid);
  position: absolute;
  top: -8px;
  left: 0;
  line-height: 1;
}

.testimonial-carousel__author {
  font-size: 0.78rem;
  color: var(--text-mid);
}

.testimonial-carousel__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}

.testimonial-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.testimonial-carousel__dot.active {
  background: var(--green-dark);
}

/* Arrows sit outside the card */
.testimonial-carousel__arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  color: var(--text-light);
  flex-shrink: 0;
}

.testimonial-carousel__arrow:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

/* ============================================================
   GENERAL CONTENT / INNER PAGES
   ============================================================ */
.page-hero {
  background: var(--green-dark);
  color: var(--cream);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(245, 241, 234, 0.7);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.content-section {
  padding: 56px 0;
}

.content-section:nth-child(even) {
  background: var(--white);
}

.content-section h2 {
  margin-bottom: 20px;
  margin-top: 40px;
}

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

.content-section h3 {
  margin-bottom: 12px;
  margin-top: 28px;
}

.content-section p {
  color: var(--text-mid);
  margin-bottom: 14px;
  max-width: 780px;
  font-size: 0.9rem;
}

.content-section ul.styled-list {
  margin-bottom: 14px;
  max-width: 780px;
}

.content-section ul.styled-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: var(--text-mid);
  font-size: 0.9rem;
}

.content-section ul.styled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-mid);
}

/* Two-column layout for inner pages */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.two-col img {
  border-radius: 8px;
  width: 100%;
}

/* ============================================================
   FEES TABLE
   ============================================================ */
.fees-table {
  width: 100%;
  max-width: 700px;
  border-collapse: collapse;
  margin: 20px 0;
}

.fees-table th,
.fees-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.fees-table th {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--cream-dark);
}

.fees-table td {
  color: var(--text-mid);
  font-size: 0.88rem;
}

.fees-table tr:hover td {
  background: var(--cream);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
  max-width: 780px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 36px 16px 0;
  font-family: var(--font-sans), sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--green-dark);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--green-mid);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  content: "\2212";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer__inner {
  padding: 0 0 16px;
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans), sans-serif;
  font-size: 0.9rem;
  background: #fff;
  color: var(--text-dark);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-mid);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================================
   CONTACT ACTION BUTTONS
   ============================================================ */
.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.contact-action:hover {
  border-color: var(--green-mid);
  background: var(--cream);
}

.contact-action svg {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  color: var(--green-dark);
  pointer-events: none;
}

.contact-action span {
  pointer-events: none;
}

.contact-action__label {
  font-family: var(--font-serif), serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-action__detail {
  color: var(--text-mid);
  font-size: 0.82rem;
  word-break: break-word;
}

@media (max-width: 540px) {
  .contact-actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CALL-TO-ACTION BANNER
   ============================================================ */
.cta-banner {
  background: var(--green-dark);
  color: var(--cream);
  padding: 44px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--cream);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(245, 241, 234, 0.7);
  margin-bottom: 22px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
}

.cta-banner .btn {
  border-color: rgba(245, 241, 234, 0.5);
  color: var(--cream);
}

.cta-banner .btn:hover {
  background: var(--cream);
  color: var(--green-dark);
  border-color: var(--cream);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-dark);
  color: var(--cream);
  padding: 44px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer__brand p {
  color: rgba(245, 241, 234, 0.6);
  font-size: 0.82rem;
  margin-top: 12px;
  max-width: 260px;
}

.footer__brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__brand .footer-logo img {
  height: 28px;
  filter: brightness(0) invert(0.88) sepia(0.15) saturate(0.5);
}

.footer__brand .footer-logo-text {
  font-family: var(--font-serif), serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.site-footer h4 {
  font-family: var(--font-sans), sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.site-footer ul li {
  margin-bottom: 6px;
}

.site-footer ul li a {
  color: rgba(245, 241, 234, 0.6);
  font-size: 0.82rem;
}

.site-footer ul li a:hover {
  color: var(--cream);
}

.footer__contact-item {
  display: flex;
  align-items: start;
  gap: 8px;
  color: rgba(245, 241, 234, 0.6);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 14px;
  height: 14px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(245, 241, 234, 0.5);
}

.footer__bottom a {
  color: rgba(245, 241, 234, 0.5);
}

.footer__bottom a:hover {
  color: var(--cream);
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  /* Switch to mobile hamburger nav at tablet width */
  .header-cta {
    display: inline-block;
    margin-left: auto;
    padding: 7px 14px;
    font-size: 0.68rem;
  }

  .menu-toggle {
    display: block;
    margin-left: 12px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .nav-cta {
    display: none;
  }

  /* Hero — reduce left margin */
  .hero__content {
    margin-left: 32px;
  }

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

  /* Keep photo beside text, not above */
  .how-help .container {
    grid-template-columns: 180px 1fr 1fr;
    gap: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 52px;
  }

  .header-cta {
    display: inline-block;
    margin-left: auto;
    padding: 7px 14px;
    font-size: 0.68rem;
  }

  .menu-toggle {
    display: block;
    margin-left: 12px;
  }

  .site-header__logo .logo-desktop {
    display: none;
  }

  .site-header__logo .logo-mobile {
    display: block;
    height: 36px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .nav-cta {
    display: none;
  }

  /* Hero */
  .hero {
    display: block;
    min-height: auto;
  }

  .hero__inner {
    display: block;
  }

  .hero__content {
    padding: 32px 24px;
    margin-left: 0;
    max-width: none;
  }

  .hero__image-wrap {
    height: 260px;
    overflow: hidden;
  }

  .hero__image-wrap img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__image-wrap::before {
    display: none;
  }

  /* Trust badges */
  .trust-badges__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* How I Can Help */
  .how-help .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .how-help__photo {
    max-width: 180px;
    margin: 0 auto;
  }

  .how-help__text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .how-help__text p {
    text-align: center;
  }

  .testimonial-wrapper {
    flex-direction: row;
  }

  /* Two column layouts */
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer__brand .footer-logo {
    justify-content: center;
  }

  .footer__brand p {
    max-width: none;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .trust-badges__grid {
    grid-template-columns: 1fr;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }
}
