/* Fathers' Forum — modern site styles */

:root {
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ebe3;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5c6570;
  --color-primary: #2c4a6e;
  --color-primary-dark: #1e3450;
  --color-accent: #c47d3a;
  --color-accent-light: #e8c9a8;
  --color-border: #e2ddd4;
  --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 35, 50, 0.08);
  --radius: 12px;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary-dark);
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  line-height: 1.2;
}

.logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  cursor: pointer;
  color: var(--color-primary);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  border-radius: 8px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
  }
}

/* Hero */
.hero {
  padding: 3.5rem 0 1.75rem;
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-bg) 55%, var(--color-bg) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.hero-credentials {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-primary-dark);
}

.hero-credentials strong {
  font-size: 1.15rem;
}

.hero-credentials-roles {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: none;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions.text-center {
  justify-content: center;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-video-link {
  margin: 0;
  text-align: center;
}

.hero-video-link a {
  display: inline-block;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary-dark);
  text-decoration: none;
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.hero-video-link a:hover {
  background: #f0dcc4;
  color: var(--color-primary);
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

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

.btn-accent:hover {
  background: #a8682e;
  color: #fff;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.hero + .section {
  padding-top: 1.25rem;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}

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

.card h3 {
  margin: 0 0 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Resource links */
.resource-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .resource-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resource-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.resource-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.resource-item strong {
  display: block;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.resource-item span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.resource-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Timeline / months */
.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.timeline-item:hover {
  border-color: var(--color-primary);
}

.timeline-month {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-accent);
  min-width: 4.5rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.timeline-item strong {
  display: block;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

/* Stages */
.stage-block {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.stage-block h3 {
  margin-top: 0;
}

/* Article */
.article-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2rem;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.article-list a:hover {
  color: var(--color-accent);
}

.article-list .date {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-bg-alt);
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.book-feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .book-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.book-feature-icon {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.book-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.book-cover-thumb {
  width: 140px;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.book-cover-becoming-a-dad {
  width: 118px;
}

.resource-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.resource-item-with-img {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--color-accent-light);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-header {
  padding: 2.5rem 0 1.5rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.inclusivity-note {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.inclusivity-note strong {
  color: var(--color-primary-dark);
}

/* Contact form */
.contact-form {
  max-width: 32rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-primary-dark);
}

.form-optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-honey {
  position: absolute;
  left: -9999px;
}

.form-success {
  background: #e8f4ea;
  border: 1px solid #a8d5b0;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #1e4d2b;
}

.form-note {
  max-width: 32rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 1.25rem 0 0.75rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
