/* Joanne Schwartz Counselling — base styles */

:root {
  --ink: #231F20;
  --forest: #1E5631;
  --leaf: #8CC63F;
  --gray: #808080;
  --gray-light: #e5e1d8;
  --bg: #ffffff;
  --bg-soft: #f8f4ec;
  --max-width: 1080px;
  --radius: 12px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

a {
  color: var(--forest);
  text-decoration: underline;
}

a:hover {
  color: var(--leaf);
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.6rem;
  margin-top: 0;
}

h3 {
  font-size: 1.15rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1rem;
}

.logo-link {
  display: block;
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
}

.main-nav a:not(.btn):hover,
.main-nav a[aria-current="page"]:not(.btn) {
  color: var(--forest);
  border-bottom: 2px solid var(--leaf);
}

.main-nav .btn {
  color: #fff;
  border-bottom: none;
}

.main-nav .btn:hover {
  color: #fff;
}

.main-nav .btn-outline {
  color: var(--forest);
}

.main-nav .btn-outline:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #164625;
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--forest);
  color: #fff;
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(35,31,32,0.42) 0%, rgba(30,86,49,0.55) 100%),
    url("/assets/img/hero-forest.jpg") center 35% / cover no-repeat;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero p.tagline {
  color: #fff;
  font-size: 1.15rem;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  opacity: 0.95;
}

.hero .btn-primary {
  background: #fff;
  color: var(--forest);
}

.hero .btn-primary:hover {
  background: var(--leaf);
  color: var(--ink);
}

.hero-sub {
  padding: 3rem 0;
  text-align: center;
}

/* Page header (interior pages) */
.page-hero {
  background: var(--bg-soft);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

/* Sections */
section {
  padding: 3rem 0;
}

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

.section-narrow {
  max-width: 46rem;
  margin: 0 auto;
}

/* Help list (pill tags) */
.help-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 0;
  margin: 1.5rem 0;
}

.help-list li {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--leaf);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* About headshot */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-layout img {
  border-radius: var(--radius);
}

.about-layout .about-copy p {
  margin-top: 0;
}

/* Split image + text section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-section img {
  border-radius: var(--radius);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.split-section h2 {
  margin-top: 0;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--gray-light);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  color: var(--forest);
}

.faq-item p {
  margin: 0.5rem 0;
}

/* Pricing card */
.pricing-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 40rem;
  margin: 0 auto;
}

/* Embeds */
.embed-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.embed-wrap iframe {
  width: 100%;
  border: none;
}

/* CTA band */
.cta-band {
  background: var(--forest);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--forest);
}

.cta-band .btn-primary:hover {
  background: var(--leaf);
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--gray-light);
  padding: 2.5rem 0;
  color: var(--gray);
  font-size: 0.92rem;
  background: var(--bg);
}

.site-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.site-footer img {
  height: 32px;
  width: auto;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--gray);
}

.footer-note {
  border-top: 1px solid var(--gray-light);
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

/* Terms page */
.terms-content h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--forest);
}

.terms-content p {
  margin: 0.85rem 0;
}

/* Mobile */
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--gray-light);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .main-nav ul li a {
    display: block;
    padding: 0.6rem 0;
  }

  .main-nav .btn {
    margin-top: 0.75rem;
    text-align: center;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-layout img {
    max-width: 220px;
    margin: 0 auto;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section img {
    height: 220px;
  }

  h1 {
    font-size: 1.7rem;
  }
}
