/* ==========================================================================
   Problem Gambling Advocates — Site Styles
   Palette: soft blue (#3B6E8F) + warm cream (#FAF7F2) + deep ink (#1F2A36)
   Type:    Lora (serif headings) + Inter (sans body)
   ========================================================================== */

:root {
  --blue: #3B6E8F;
  --blue-dark: #2C5470;
  --blue-soft: #E8F0F5;
  --cream: #FAF7F2;
  --cream-deep: #F1EBE0;
  --ink: #1F2A36;
  --muted: #5B6773;
  --accent: #C8956D;          /* warm terracotta for subtle highlights */
  --border: #E3DED3;
  --max: 1140px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(31, 42, 54, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 42, 54, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

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

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

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand-mark { width: 38px; height: 38px; }

.brand-text {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-links a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

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

.btn-outline:hover {
  background: var(--blue-soft);
  text-decoration: none;
}

/* ---------- Hero ----------------------------------------------------------- */

.hero {
  padding: 80px 0 70px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.hero-lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ------------------------------------------------------- */

section { padding: 70px 0; }

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-intro {
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 48px;
}

.section-alt { background: var(--cream-deep); }

/* ---------- Path cards (dual audience on home) ----------------------------- */

.paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.path-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.path-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.path-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--blue);
}

.path-card h3 { margin-bottom: 12px; }

.path-card p { color: var(--muted); }

.path-card a {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Service grid --------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.service-card .badge {
  width: 32px;
  height: 32px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.service-card p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Founder bio section ------------------------------------------- */

.founder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  background: var(--cream-deep);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.founder-meta {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--blue-soft);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.founder-meta strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.founder-meta ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.founder-meta li { margin-bottom: 4px; }

.founder-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.founder-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.founder-body p { color: var(--ink); }
.founder-body p.lede { font-size: 1.1rem; color: var(--ink); }

/* ---------- Affordability callout ---------------------------------------- */

.affordability {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.affordability h3 {
  color: #fff;
  margin: 0 0 6px;
  font-family: 'Lora', Georgia, serif;
}

.affordability p { color: rgba(255, 255, 255, 0.94); margin: 0; }

/* ---------- "Hire us for any piece" pill row ----------------------------- */

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}

.service-pills span {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

.service-pills span.accent {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

@media (max-width: 800px) {
  .founder { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { max-width: 280px; }
  .affordability { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- CTA band ------------------------------------------------------- */

.cta-band {
  background: var(--blue);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 560px; margin: 0 auto 28px; }

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

.cta-band .btn-primary:hover { background: var(--cream); }

/* ---------- About / two-column -------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.two-col .col-side {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.two-col .col-side h3 { margin-top: 0; }

.two-col .col-side ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.two-col .col-side li { margin-bottom: 8px; }

/* ---------- Contact form / info ------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info p { margin-bottom: 16px; }

.contact-info .label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-info .value {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.form-row textarea { min-height: 130px; resize: vertical; }

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 50px 0 30px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.site-footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Crisis banner ------------------------------------------------- */

.crisis-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.crisis-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

/* ---------- Hero image band ------------------------------------------------ */

.hero-image-band {
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.hero-image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ---------- Responsive ----------------------------------------------------- */

@media (max-width: 800px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }

  .paths,
  .services-grid,
  .two-col,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero { padding: 56px 0 50px; }
  section { padding: 56px 0; }
}
