/* ==========================================================================
   Bruce Barge Coaching & Consulting — brucebarge.com
   Rebuilt from the original Squarespace 7.1 site.

   Palette (extracted from the Squarespace theme CSS):
     terracotta accent  #C79288  hsl(9.5, 36%, 66%)
     dark accent brown  #625448  hsl(27.7, 15%, 33%)   (header / "dark" sections)
     olive green        #77815C  hsl(76.2, 17%, 43%)   ("bright" sections)
     pale lavender gray #E6E4E8  (theme lightAccent, rarely used)

   Type (original): headings "Orpheus Pro" (Adobe font, Squarespace-hosted)
     -> substituted with Cormorant Garamond (closest Google Font, self-hosted).
   Body: "Inter Tight" (self-hosted, same as original).
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --terracotta: #C79288;
  --dark-accent: #625448;
  --olive: #77815C;
  --heading-font: 'Cormorant Garamond', 'Times New Roman', serif;
  --body-font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

/* Squarespace heading scale: h1 6.5rem, h2 4.2rem, h3 2.8rem, h4 1.6rem */
h1 { font-size: clamp(2.8rem, 6.6vw + 1rem, 6.5rem); }
h2 { font-size: clamp(2rem, 3.9vw + 1rem, 4.2rem); }
h3 { font-size: clamp(1.5rem, 2.2vw + 1rem, 2.8rem); }
h4 { font-size: 1.6rem; }

a { color: inherit; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 1.05em 2.1em;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .85; }
.btn--light { background: #fff; color: var(--dark-accent); }
.btn--accent { background: var(--terracotta); color: #fff; }

/* ---------- Section themes (match Squarespace section themes) ---------- */

.section { padding: 5rem 5vw; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.theme-white  { background: #fff; color: #111; }
.theme-bright { background: var(--olive); color: #fff; }
.theme-dark   { background: var(--dark-accent); color: #fff; }
.theme-dark h2.accent-heading { color: var(--terracotta); }
.theme-black  { background: #000; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  background: var(--dark-accent);
  color: #fff;
  position: relative;
  z-index: 10;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header-logo img { height: 64px; width: auto; }
.site-nav { display: flex; gap: 2.2rem; }
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  padding: .25em 0;
}
.site-nav a:hover, .site-nav a.active { opacity: .75; }

/* Mobile nav (pure CSS hamburger) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }
.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
}
@media (max-width: 720px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-accent);
    flex-direction: column;
    gap: 0;
    padding: .5rem 5vw 1.5rem;
  }
  .site-nav a { padding: .8em 0; font-size: 1.15rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--dark-accent);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 18, .35);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 5vw;
}
.hero-content h1 { font-weight: 600; }
.hero-content h2 {
  margin-top: 1rem;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw + .8rem, 3rem);
}

/* ---------- Home: services ---------- */

.intro-heading {
  text-align: center;
  max-width: 62rem;
  margin: 0 auto 4rem;
}
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}
.service img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.service h3 { margin: 1.4rem 0 .6rem; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; max-width: 34rem; margin: 0 auto; }
}

/* ---------- Home: client logos ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.logo-grid img { width: 100%; max-width: 220px; margin: 0 auto; }
@media (max-width: 720px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem 2rem; }
}

/* ---------- Split / card sections (image beside text) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) 3fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.split.split--even { grid-template-columns: 1fr 1fr; align-items: start; }
.split-text h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.9rem); line-height: 1.4; }
.split-text .btn { margin-top: 2.2rem; }
@media (max-width: 860px) {
  .split, .split.split--even { grid-template-columns: 1fr; gap: 2.5rem; }
}

.stacked-figure img + * { margin-top: 2rem; }
.about-side-text { margin-bottom: 2.5rem; }
.about-side-text h3 { margin-bottom: 1rem; }

/* ---------- Banner with background image (about) ---------- */

.banner {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.banner-content {
  position: relative;
  z-index: 1;
  padding: 5rem 8vw;
  max-width: 70rem;
}

/* ---------- Item lists (credentials, testimonials) ---------- */

.list-title {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 3.9vw + 1rem, 4.2rem);
  text-align: center;
  margin-bottom: 4rem;
  line-height: 1.25;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.credential img { max-width: 190px; margin: 0 auto 1.5rem; }
@media (max-width: 900px) { .credentials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .credentials { grid-template-columns: 1fr; } }

.testimonial-list { max-width: 62rem; margin: 0 auto; }
.testimonial { text-align: center; margin-bottom: 5rem; }
.testimonial:last-child { margin-bottom: 0; }
.testimonial blockquote {
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.4rem);
  line-height: 1.45;
  quotes: none;
}
.testimonial cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 1rem;
}

/* ---------- Accordion (Core Values) ---------- */

.accordion { max-width: 56rem; margin: 0 auto; }
.accordion details { border-bottom: 1px solid rgba(0, 0, 0, .25); }
.accordion details:first-of-type { border-top: 1px solid rgba(0, 0, 0, .25); }
.accordion summary {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem);
  font-weight: 500;
  padding: 1.2rem .2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.6rem; font-family: var(--body-font); }
.accordion details[open] summary::after { content: '\2013'; }
.accordion .accordion-body { padding: 0 .2rem 1.8rem; }
.accordion .accordion-body p { margin-bottom: 1rem; }
.accordion .accordion-body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.page-intro { text-align: center; max-width: 54rem; margin: 0 auto; }
.page-intro p { margin-top: 1.2rem; }

.contact-form {
  max-width: 40rem;
  margin: 3rem auto 0;
  text-align: left;
}
.contact-form .field { margin-bottom: 1.4rem; }
.contact-form .field-row { display: flex; gap: 1.2rem; }
.contact-form .field-row .field { flex: 1; }
.contact-form label {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: .4rem;
}
.contact-form label .req { opacity: .75; font-weight: 400; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: #111;
  background: #fff;
  border: none;
  padding: .75em .9em;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form .btn { margin-top: .6rem; }
@media (max-width: 540px) { .contact-form .field-row { flex-direction: column; gap: 0; } }

.poem { font-size: 1.02rem; }
.poem h3 { line-height: 1.35; margin-bottom: .4rem; }
.poem p { line-height: 1.6; }
.poem .attribution {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-top: 1.4rem;
}

/* ---------- Donate ---------- */

.donate-hero { text-align: center; max-width: 60rem; margin: 0 auto; padding: 6rem 5vw; }
.donate-hero h1 { font-size: clamp(2rem, 3.9vw + 1rem, 4.2rem); }
.donate-hero .btn { margin-top: 3rem; }
.btn--inactive { cursor: default; }
.btn--inactive:hover { opacity: 1; }

/* ---------- Footer ---------- */

.site-footer {
  background: #fff;
  color: #111;
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 3.5rem 5vw 3rem;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-social svg { width: 26px; height: 26px; fill: #111; }
.footer-social:hover svg { fill: var(--dark-accent); }
.footer-logo { max-width: 300px; }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
p + p { margin-top: 1rem; }
