/*
Theme Name: WHOA
Theme URI: https://whoa-app.com
Author: WHOA
Description: Marketing site theme for WHOA (Workhorse Office Application) - office software for nonprofit organizations that manage horses.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whoa
*/

/* ---------- Design tokens ---------- */
:root {
  --whoa-bg: #FAF5EC;
  --whoa-bg-alt: #F1E9DA;
  --whoa-ink: #2B2420;
  --whoa-ink-soft: #5B4F42;
  --whoa-ink-faint: #9A8B76;
  --whoa-line: #E4D9C6;
  --whoa-accent: #B5502E;
  --whoa-on-accent: #FFF8EE;
  --whoa-max: 1200px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--whoa-bg);
  color: var(--whoa-ink);
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  margin: 0 0 0.5em;
  line-height: 1.18;
}

p { margin: 0 0 1em; }

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

a {
  color: var(--whoa-accent);
  text-decoration: none;
}
a:hover { filter: brightness(0.82); }

ul { margin: 0; padding: 0; list-style: none; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Layout helpers ---------- */
.whoa-container {
  max-width: var(--whoa-max);
  margin: 0 auto;
  padding: 0 24px;
}

.whoa-section { padding: 88px 0; }
.whoa-section--tight { padding: 56px 0; }
.whoa-section--alt { background: var(--whoa-bg-alt); }

.whoa-eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--whoa-bg-alt);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--whoa-ink-soft);
  letter-spacing: 0.02em;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--whoa-accent); color: var(--whoa-on-accent); }
.btn-primary:hover { filter: brightness(0.88); color: var(--whoa-on-accent); }
.btn-text { color: var(--whoa-ink); font-weight: 600; }
.btn-text:hover { filter: brightness(0.7); }

/* ---------- Header ---------- */
.whoa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--whoa-line);
}

.whoa-logo {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--whoa-ink);
}
.whoa-logo:hover { filter: none; color: var(--whoa-ink); }

.whoa-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--whoa-ink);
}

.whoa-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.whoa-nav a { color: var(--whoa-ink); }
.whoa-nav .current-menu-item > a,
.whoa-nav .current_page_item > a { color: var(--whoa-accent); }

.whoa-header-cta { flex-shrink: 0; }

#whoa-nav-check { display: none; }

/* ---------- Hero ---------- */
.whoa-hero {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 72px 0;
}
.whoa-hero-copy {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.whoa-hero-copy h1 { font-size: 46px; font-weight: 600; }
.whoa-hero-copy .lede { font-size: 19px; color: var(--whoa-ink-soft); max-width: 540px; }
.whoa-hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 4px; }
.whoa-hero-media { flex: 1 1 0; }

/* ---------- Photo placeholder ---------- */
.whoa-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--whoa-bg-alt);
  border: 1px solid var(--whoa-line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--whoa-ink-soft);
  text-align: center;
  padding: 24px;
}
.whoa-section--alt .whoa-photo-placeholder { background: var(--whoa-bg); }
.whoa-photo-placeholder svg { width: 38px; height: 38px; }
.whoa-photo-placeholder span { font-size: 13px; font-style: italic; }

/* ---------- Grids & cards ---------- */
.whoa-grid {
  display: grid;
  gap: 26px;
}
.whoa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.whoa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.whoa-card {
  background: var(--whoa-bg);
  border: 1px solid var(--whoa-line);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.whoa-section--alt .whoa-card { background: var(--whoa-bg); }
.whoa-card svg { width: 28px; height: 28px; }
.whoa-card h3 { font-size: 18px; font-weight: 600; }
.whoa-card p { font-size: 15px; color: var(--whoa-ink-soft); line-height: 1.55; margin: 0; }

.whoa-section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.whoa-section-head h2 { font-size: 34px; font-weight: 600; }
.whoa-section-head p { color: var(--whoa-ink-soft); font-size: 17px; margin: 0; }

/* ---------- Case study ---------- */
.whoa-split {
  display: flex;
  align-items: center;
  gap: 56px;
}
.whoa-split > * { flex: 1 1 0; }
.whoa-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--whoa-accent);
}
blockquote.whoa-quote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 18px;
  border-left: 3px solid var(--whoa-accent);
  padding-left: 20px;
  color: var(--whoa-ink-soft);
  margin: 0;
}

/* ---------- Callout banner ---------- */
.whoa-callout {
  background: var(--whoa-ink);
  color: var(--whoa-bg);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.whoa-callout h2 { color: var(--whoa-bg); font-size: 26px; }
.whoa-callout p { color: #D8CCB8; margin: 10px 0 0; }
.whoa-callout .btn-primary { white-space: nowrap; }

/* ---------- Closing CTA ---------- */
.whoa-cta-final { text-align: center; }
.whoa-cta-final h2 { font-size: 32px; max-width: 560px; margin: 0 auto 16px; }
.whoa-cta-final p { color: var(--whoa-ink-soft); font-size: 17px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.whoa-footer {
  padding: 40px 0;
  border-top: 1px solid var(--whoa-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--whoa-ink-soft);
}
.whoa-footer-links { display: flex; gap: 26px; }
.whoa-footer-links a { color: var(--whoa-ink-soft); }
.whoa-footer-logo { font-family: 'Lora', serif; font-weight: 700; font-size: 17px; color: var(--whoa-ink); }

/* ---------- Solutions page: pain/response rows ---------- */
.whoa-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--whoa-line);
  border: 1px solid var(--whoa-line);
  border-radius: 12px;
  overflow: hidden;
}
.whoa-row {
  background: var(--whoa-bg);
  padding: 36px;
  display: flex;
  gap: 40px;
}
.whoa-row > * { flex: 1 1 0; }
.whoa-row-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--whoa-ink-faint);
  margin-bottom: 8px;
}
.whoa-row-response {
  border-left: 1px solid var(--whoa-line);
  padding-left: 40px;
}
.whoa-row-response .whoa-row-label { color: var(--whoa-accent); }
.whoa-row p { font-size: 16px; line-height: 1.55; margin: 0; }
.whoa-row-response p { font-weight: 500; }

/* ---------- Features page: grouped feature list ---------- */
.whoa-feature-group {
  padding: 48px 0;
  border-top: 1px solid var(--whoa-line);
  display: flex;
  gap: 48px;
}
.whoa-feature-group-head {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.whoa-feature-group-head svg { width: 30px; height: 30px; color: var(--whoa-accent); }
.whoa-feature-group-head h2 { font-size: 23px; font-weight: 600; }
.whoa-feature-group-head p { color: var(--whoa-ink-soft); font-size: 15px; margin: 0; }

.whoa-feature-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
}
.whoa-feature-item { display: flex; gap: 12px; align-items: flex-start; }
.whoa-feature-item svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--whoa-accent); }
.whoa-feature-item strong { display: block; font-size: 15px; }
.whoa-feature-item span { font-size: 14px; color: var(--whoa-ink-soft); }

/* ---------- Contact page ---------- */
.whoa-contact { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .whoa-hero,
  .whoa-split,
  .whoa-row,
  .whoa-feature-group,
  .whoa-callout {
    flex-direction: column;
    align-items: stretch;
  }
  .whoa-row-response {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--whoa-line);
    padding-top: 24px;
  }
  .whoa-feature-group-head { flex-basis: auto; }
  .whoa-grid--2, .whoa-grid--3, .whoa-feature-list { grid-template-columns: 1fr; }
  .whoa-hero-copy h1 { font-size: 34px; }

  .whoa-nav-toggle { display: inline-flex; }
  .whoa-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--whoa-bg);
    border-bottom: 1px solid var(--whoa-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .whoa-nav a { padding: 10px 0; width: 100%; }
  .whoa-header { position: relative; flex-wrap: wrap; }
  #whoa-nav-check:checked ~ .whoa-nav { display: flex; }
}

@media (max-width: 600px) {
  .whoa-section { padding: 56px 0; }
  .whoa-callout { padding: 32px; }
  .whoa-section-head h2 { font-size: 27px; }
}
