/* ============================================================
   Lucy Crean Counselling — beta2 stylesheet
   ============================================================ */

/* ── Self-hosted fonts (Playfair Display + Lato) ───────────── */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-400-normal.woff2') format('woff2'),
       url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-400-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-400-italic.woff2') format('woff2'),
       url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-400-italic.woff')  format('woff');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-500-normal.woff2') format('woff2'),
       url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-500-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-500-italic.woff2') format('woff2'),
       url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-500-italic.woff')  format('woff');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-700-normal.woff2') format('woff2'),
       url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-700-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-700-italic.woff2') format('woff2'),
       url('/lucycreancounselling-beta2/assets/fonts/playfair-display-latin-700-italic.woff')  format('woff');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/lucycreancounselling-beta2/assets/fonts/lato-latin-300-normal.woff2') format('woff2'),
       url('/lucycreancounselling-beta2/assets/fonts/lato-latin-300-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/lucycreancounselling-beta2/assets/fonts/lato-latin-400-normal.woff2') format('woff2'),
       url('/lucycreancounselling-beta2/assets/fonts/lato-latin-400-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/lucycreancounselling-beta2/assets/fonts/lato-latin-700-normal.woff2') format('woff2'),
       url('/lucycreancounselling-beta2/assets/fonts/lato-latin-700-normal.woff')  format('woff');
}

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --brown:       #2C1A0E;
  --brown-mid:   #4a2f1a;
  --taupe:       #C8BFB0;
  --taupe-light: #E8E2DA;
  --taupe-dark:  #9e9488;
  --white:       #ffffff;
  --text:        #2C1A0E;
  --text-light:  #5a4a3a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', Helvetica, Arial, sans-serif;

  --max-width: 1160px;
  --section-pad: 80px 20px;
  --radius: 4px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--brown);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* Explicit paragraph spacing for markdownify output contexts */
.prose p,
.welcome-text p,
.support-split__text p,
.contact-section p {
  margin-bottom: 1.2em;
}
.prose p:last-child,
.welcome-text p:last-child,
.support-split__text p:last-child,
.contact-section p:last-child {
  margin-bottom: 0;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-dark {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}
.btn-dark:hover { background: var(--brown-mid); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--brown); text-decoration: none; }
.btn-outline-dark {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-outline-dark:hover { background: var(--brown); color: var(--white); text-decoration: none; }

/* ── Header ────────────────────────────────────────────────── */
#site-header {
  background: var(--brown);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; color: var(--taupe); }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 10px 0;
}

.header-contact {
  display: flex;
  gap: 24px;
}
.header-contact a {
  font-size: 12px;
  color: var(--taupe-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.header-contact a:hover { color: var(--white); }

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.site-nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--taupe-light);
  text-decoration: none;
}
.site-nav a:hover { color: var(--white); }

/* ── Hamburger ─────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--brown-mid);
  padding: 20px 20px 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin-bottom: 20px;
}
.mobile-nav ul li + li { margin-top: 4px; }
.mobile-nav ul a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav ul a:hover { color: var(--white); }
.mobile-nav-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-contact a {
  font-size: 13px;
  color: var(--taupe-light);
  text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 20px 120px;
  text-align: center;
  background-image: url('/lucycreancounselling-beta2/assets/images/hero-woodland-lucy.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 14, 0.62);
}
.hero > * { position: relative; }
.hero h1 {
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 24px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--taupe-light);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ── Welcome ───────────────────────────────────────────────── */
.welcome {
  background: var(--taupe);
  padding: var(--section-pad);
}
.welcome h2 { margin-bottom: 20px; }
.welcome p { color: var(--text-light); }
.welcome-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ── Support split ─────────────────────────────────────────── */
.support-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.support-split__image {
  background-image: url('/lucycreancounselling-beta2/assets/images/field-meadow.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 48px;
}
.support-split__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 14, 0.35);
}
.support-split__overlay {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.35;
  max-width: 360px;
}
.support-split__text {
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 60px 56px;
}
.support-split__text h2 { margin-bottom: 16px; }
.support-split__text p { color: var(--text-light); margin-bottom: 28px; }

/* ── Conditions ────────────────────────────────────────────── */
.conditions {
  background: var(--taupe-light);
  padding: var(--section-pad);
}
.conditions h2 {
  text-align: center;
  margin-bottom: 56px;
}
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}
.condition-item h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--brown);
}
.condition-item hr {
  border: none;
  border-top: 1px solid var(--taupe-dark);
  margin-bottom: 14px;
}
.condition-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.read-more {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* ── Contact section ───────────────────────────────────────── */
.contact-section {
  background: var(--white);
  padding: var(--section-pad);
}
.contact-section h2 { margin-bottom: 8px; }
.contact-section .subheading {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1rem;
}
.contact-details { margin-top: 0; }
.contact-details h3 { margin-bottom: 16px; }
.contact-details p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 8px; }
.contact-details a { color: var(--brown); }

/* ── Form ──────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--taupe-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brown);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { margin-top: 16px; }

/* ── Footer ────────────────────────────────────────────────── */
#site-footer {
  background: var(--brown);
  padding: 48px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-site-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.footer-tagline {
  font-size: 14px;
  color: var(--taupe-light);
  margin: 0;
  line-height: 1.5;
}

.footer-copyright {
  font-size: 12px;
  color: var(--taupe-light);
  margin: 8px 0 0;
  opacity: 0.7;
}

.footer-col--links {}

.footer-heading {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--taupe-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-col--bacp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.bacp-logo {
  max-width: 120px;
  height: auto;
  display: block;
}

.footer-accredited {
  font-size: 12px;
  color: var(--taupe-light);
  margin: 0;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col--bacp {
    align-items: center;
  }
  .footer-col--links {
    align-items: center;
  }
}

/* ── Inner page hero ───────────────────────────────────────── */
.page-hero {
  background: var(--taupe);
  /* top padding accounts for sticky header (contact row ~30px + nav row ~44px + gaps) */
  padding: 100px 20px 60px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ── Prose sections ────────────────────────────────────────── */
.prose-section { padding: var(--section-pad); }
.prose-section.taupe { background: var(--taupe-light); }
.prose-section--no-top { padding-top: 0; }
.prose { max-width: 720px; margin: 0 auto; }

/* ── FAQs ──────────────────────────────────────────────────── */
.faq-section {
  padding: var(--section-pad);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid #C8BFB0;
}

.faq-item:first-child {
  border-top: 1px solid #C8BFB0;
}

.faq-question {
  font-family: var(--serif);
  font-size: 1.2rem;  /* same visual weight as h3 */
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.faq-answer {
  /* Override browser default dd indent (margin-inline-start: 40px) */
  margin: 0;
  padding: 0;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
}

.faq-cta {
  max-width: 760px;
  margin: 52px auto 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.faq-cta p {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 600px) {
  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ── Testimonial block ─────────────────────────────────────── */
.testimonial-block {
  background: #C8BFB0;
  /* No side padding here — background must reach the viewport edge */
  padding: 60px 0;
  text-align: center;
}

.testimonial-quote {
  max-width: 720px;
  /* Side padding on the inner element keeps text readable without constraining the background */
  margin: 0 auto;
  padding: 0 80px;
  border: none;
}

.testimonial-quote p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  color: #2C1A0E;
  line-height: 1.6;
  margin: 0 0 20px;
}

.testimonial-attribution {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a4030;
}

@media (max-width: 768px) {
  .testimonial-quote {
    padding: 0 24px;
  }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col,
  .support-split,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .conditions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .support-split__image { min-height: 300px; }
  .support-split__text { padding: 40px 28px; }
}

@media (max-width: 767px) {
  :root { --section-pad: 56px 20px; }

  .header-right { display: none; }

  .nav-toggle {
    display: flex;
  }

  .hero { padding: 90px 20px 80px; }

  /* Photo above text in Welcome on mobile */
  .welcome-two-col {
    display: flex;
    flex-direction: column;
  }
  .welcome-photo-col { order: -1; }

  /* Reduce top whitespace on conditions heading */
  .conditions { padding-top: 36px; }
}

@media (max-width: 600px) {
  .conditions-grid {
    grid-template-columns: 1fr;
  }
}
