/* ============================================================
   APPLE TREE OSTEOPATHS — style.css
   Shared stylesheet for all 12 pages
   Fonts: Playfair Display (headings) + Lato (body)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

/* --- Brand Colours & Global Variables --- */
:root {
  --green:        #7a9e7e;   /* sage green — primary brand colour */
  --green-dark:   #5a7a5e;   /* darker green for hover states */
  --green-light:  #f0f5f0;   /* very pale green for section backgrounds */
  --brown:        #6b4f3a;   /* warm brown — headings */
  --grey-dark:    #6b6b6b;   /* body text */
  --grey-mid:     #999999;   /* secondary text, captions */
  --grey-light:   #f7f7f5;   /* light background sections */
  --white:        #ffffff;
  --border:       #e8e8e4;   /* subtle borders */

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', Arial, sans-serif;

  --max-width:    1100px;
  --nav-height:   80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.75;
}

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

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--brown);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.9;
  font-size: 1rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Layout Helpers --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

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

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

.section--brown {
  background: var(--brown);
  color: var(--white);
}

.section--brown h1,
.section--brown h2,
.section--brown h3,
.section--brown h4 {
  color: var(--white);
}

.section--brown p {
  color: rgba(255,255,255,0.85);
}

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

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  height: 64px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--grey-dark);
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--green);
}

.nav__book {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-weight: 400 !important;
  transition: background 0.2s !important;
}

.nav__book:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey-dark);
  transition: all 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

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

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

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

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

.btn--white {
  background: var(--white);
  color: var(--brown);
}

.btn--white:hover {
  background: var(--grey-light);
  color: var(--brown);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grey-light);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.92) 45%, rgba(255,255,255,0.2) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
  max-width: 580px;
  margin-left: 5%;
}

.hero__content h1 {
  margin-bottom: 1.25rem;
}

.hero__content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: 1.75rem;
}

.card__body h3 {
  margin-bottom: 0.75rem;
}

.card__body p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* --- Credential Pills --- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
}

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border-left: 3px solid var(--green);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
}

.testimonial p {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.testimonial__author {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
}

/* --- Accordion (FAQs) --- */
.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--brown);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.accordion__trigger:hover {
  color: var(--green);
}

.accordion__icon {
  font-size: 1.25rem;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.accordion__item.open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__body {
  display: none;
  padding: 0 0 1.25rem 0;
}

.accordion__item.open .accordion__body {
  display: block;
}

.accordion__body p {
  font-size: 0.95rem;
}

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.two-col__image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
}

/* --- Practitioner Profile --- */
.practitioner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.practitioner__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
}

/* --- Section Intro (centred heading + subtext) --- */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.section-intro p {
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  background: var(--brown);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
  /* invert white logo won't work on brown — use white version */
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.2s;
}

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

.footer p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer__bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

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

/* --- Utility --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Responsive: Tablet --- */
@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col--reverse {
    direction: ltr;
  }

  .two-col__image {
    height: 300px;
  }

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

  .practitioner__photo {
    max-width: 260px;
  }

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

/* --- Responsive: Mobile --- */
@media (max-width: 600px) {
  :root {
    --nav-height: 64px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .nav__logo {
    height: 48px;
  }

  /* Hide desktop nav links, show toggle */
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    min-height: 420px;
  }

  .hero__overlay {
    background: rgba(255,255,255,0.88);
  }

  .hero__content {
    margin-left: 0;
    padding: 3rem 1.25rem;
  }

  .hero__content p {
    font-size: 1rem;
  }

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

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

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

  .btn {
    width: 100%;
    text-align: center;
  }
}
