/*
Theme Name: SwanPsych Modern
Template: pilcrow
Version: 1.0
Description: Child theme for Alexander Swan academic website.
Author: Alexander Swan
*/

:root {
  --sp-bg: #f7f7f4;
  --sp-card: #ffffff;
  --sp-text: #1f2933;
  --sp-muted: #5f6b76;
  --sp-accent: #315f72;
  --sp-accent-dark: #244756;
  --sp-border: #e4e2dc;
  --sp-radius: 18px;
  --sp-shadow: 0 12px 30px rgba(0,0,0,.08);
}

body {
  background: var(--sp-bg);
  color: var(--sp-text);
  font-size: 18px;
  line-height: 1.65;
}

#page,
#wrapper,
#main {
  max-width: 1100px;
  margin: 0 auto;
}

#site-title,
.site-title,
h1, h2, h3 {
  letter-spacing: -0.03em;
}

#site-title a,
.site-title a {
  color: var(--sp-text);
  text-decoration: none;
}

#access,
.main-navigation {
  border: 0;
  background: transparent;
}

#access a,
.main-navigation a {
  font-weight: 700;
  text-decoration: none;
}

.entry-content {
  max-width: 900px;
}

.entry-content img {
  border-radius: var(--sp-radius);
}

.swan-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

.swan-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.swan-hero p {
  font-size: 1.15rem;
  color: var(--sp-muted);
}

.swan-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.swan-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.35rem;
  box-shadow: var(--sp-shadow);
}

.swan-card h2,
.swan-card h3 {
  margin-top: 0;
}

.swan-button,
.wp-block-button__link {
  display: inline-block;
  background: var(--sp-accent);
  color: white !important;
  padding: .75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.swan-button:hover,
.wp-block-button__link:hover {
  background: var(--sp-accent-dark);
}

@media (max-width: 800px) {
  .swan-hero,
  .swan-card-grid {
    grid-template-columns: 1fr;
  }
}




/* ===== SwanPsych Homepage Refresh ===== */

:root {
  --sp-bg: #fafaf8;
  --sp-text: #222222;
  --sp-muted: #5d6670;
  --sp-accent: #2d556b;
  --sp-accent-dark: #1f3e50;
  --sp-card: #ffffff;
  --sp-border: #e5e2dc;
  --sp-soft: #f1f0ec;
  --sp-radius: 20px;
  --sp-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

body {
  background: var(--sp-bg);
  color: var(--sp-text);
}

.entry-title {
  display: none;
}

.entry-content {
  max-width: 1100px;
  margin: 0 auto;
}

.swan-home {
  font-size: 18px;
  line-height: 1.65;
}

.swan-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 4rem;
}

.swan-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--sp-accent);
  margin-bottom: 1rem;
}

.swan-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: 0 0 1rem;
}

.swan-hero p {
  font-size: 1.18rem;
  color: var(--sp-muted);
  max-width: 700px;
}

.swan-headshot {
  background: var(--sp-soft);
  border-radius: 28px;
  padding: 1rem;
  box-shadow: var(--sp-shadow);
}

.swan-headshot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
}

.swan-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.swan-button {
  display: inline-block;
  background: var(--sp-accent);
  color: #ffffff !important;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.swan-button:hover {
  background: var(--sp-accent-dark);
  color: #ffffff !important;
}

.swan-button.secondary {
  background: #ffffff;
  color: var(--sp-accent) !important;
  border: 1px solid var(--sp-border);
}

.swan-section {
  padding: 3rem 0;
}

.swan-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.75rem;
}

.swan-section-intro {
  color: var(--sp-muted);
  max-width: 750px;
  font-size: 1.08rem;
}

.swan-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.swan-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
  box-shadow: var(--sp-shadow);
}

.swan-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

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

.swan-card a {
  font-weight: 800;
  color: var(--sp-accent);
  text-decoration: none;
}

.swan-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.swan-stat {
  background: var(--sp-soft);
  border-radius: var(--sp-radius);
  padding: 1.25rem;
  text-align: center;
}

.swan-stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.swan-stat span {
  color: var(--sp-muted);
  font-size: 0.95rem;
}

.swan-feature {
  background: var(--sp-accent);
  color: #ffffff;
  border-radius: 28px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.swan-feature h2,
.swan-feature p {
  color: #ffffff;
}

.swan-feature p {
  max-width: 800px;
  font-size: 1.1rem;
}

.swan-feature .swan-button {
  background: #ffffff;
  color: var(--sp-accent) !important;
}

@media (max-width: 850px) {
  .swan-hero,
  .swan-card-grid,
  .swan-stats {
    grid-template-columns: 1fr;
  }

  .swan-hero {
    padding-top: 1.5rem;
  }
}

/* Force homepage layout to use full available width */

body.home .entry-content,
body.home .swan-home {
  max-width: 1100px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

body.home .swan-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) !important;
  gap: 3rem !important;
  align-items: center !important;
}

body.home .swan-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.85rem !important;
}

body.home .swan-button {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 !important;
}

body.home .swan-headshot {
  max-width: 420px !important;
  width: 100% !important;
}

body.home .swan-headshot img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

@media (max-width: 850px) {
  body.home .swan-hero {
    grid-template-columns: 1fr !important;
  }

  body.home .swan-buttons {
    justify-content: flex-start !important;
  }
}

/* Hard reset for homepage hero */

body.home .swan-hero-fixed {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto 4rem auto !important;
  padding: 3rem 1rem !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 3rem !important;
  box-sizing: border-box !important;
}

body.home .swan-hero-copy {
  flex: 1 1 58% !important;
  max-width: 650px !important;
  text-align: left !important;
}

body.home .swan-hero-photo {
  flex: 0 0 360px !important;
  max-width: 360px !important;
}

body.home .swan-hero-photo img {
  width: 100% !important;
  max-width: 360px !important;
  height: auto !important;
  display: block !important;
  border-radius: 24px !important;
}

body.home .swan-button-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  margin-top: 1.5rem !important;
}

body.home .swan-button-row .swan-button {
  display: inline-block !important;
  width: auto !important;
  min-width: auto !important;
  margin: 0 !important;
  padding: 0.65rem 1rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 850px) {
  body.home .swan-hero-fixed {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body.home .swan-hero-photo {
    flex: 0 1 auto !important;
    max-width: 420px !important;
  }

  body.home .swan-hero-photo img {
    max-width: 420px !important;
  }
}


/* ==================================================
   SWANPSYCH DESIGN SYSTEM
   Reusable styles for pages
   ================================================== */

:root {
  --sp-bg: #fafaf8;
  --sp-text: #222222;
  --sp-muted: #5d6670;
  --sp-accent: #2d556b;
  --sp-accent-dark: #1f3e50;
  --sp-card: #ffffff;
  --sp-soft: #f1f0ec;
  --sp-border: #e5e2dc;
  --sp-radius: 20px;
  --sp-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Page wrapper */

.swan-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-size: 18px;
  line-height: 1.65;
}

/* Page hero */

.swan-page-hero {
  padding: 3rem 0;
  text-align: center;
}

.swan-page-hero .swan-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--sp-accent);
  margin-bottom: 1rem;
}

.swan-page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin: 0 0 1rem;
}

.swan-page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--sp-muted);
  font-size: 1.18rem;
}

/* Sections */

.swan-section {
  padding: 2.5rem 0;
}

.swan-section h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.75rem;
}

.swan-section-intro {
  max-width: 760px;
  color: var(--sp-muted);
  font-size: 1.08rem;
}

/* Grids */

.swan-grid-2,
.swan-grid-3 {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.swan-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.swan-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards */

.swan-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
  box-shadow: var(--sp-shadow);
}

.swan-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

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

.swan-card a {
  font-weight: 800;
  color: var(--sp-accent);
  text-decoration: none;
}

/* Buttons */

.swan-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.swan-button {
  display: inline-block;
  background: var(--sp-accent);
  color: #ffffff !important;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.swan-button:hover {
  background: var(--sp-accent-dark);
  color: #ffffff !important;
}

.swan-button.secondary {
  background: #ffffff;
  color: var(--sp-accent) !important;
  border: 1px solid var(--sp-border);
}

/* Callout / feature box */

.swan-callout {
  background: var(--sp-accent);
  color: #ffffff;
  border-radius: 28px;
  padding: 2.25rem;
  margin: 2rem 0;
}

.swan-callout h2,
.swan-callout h3,
.swan-callout p {
  color: #ffffff;
}

.swan-callout .swan-button {
  background: #ffffff;
  color: var(--sp-accent) !important;
}

/* Two-column text/image layout */

.swan-split {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.swan-split img {
  width: 100%;
  height: auto;
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
}

/* Simple list blocks */

.swan-clean-list {
  background: var(--sp-soft);
  border-radius: var(--sp-radius);
  padding: 1.25rem 1.5rem;
}

.swan-clean-list ul {
  margin-bottom: 0;
}

/* Mobile fixes */

@media (max-width: 850px) {
  .swan-grid-2,
  .swan-grid-3,
  .swan-split {
    grid-template-columns: 1fr;
  }

  .swan-page-hero {
    text-align: left;
  }

  .swan-page-hero p {
    margin-left: 0;
  }
}

/* Force 3-card homepage row */

body.home .swan-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.1rem !important;
  width: 100% !important;
}

body.home .swan-grid-3 .swan-card {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (max-width: 850px) {
  body.home .swan-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* Simple forced card row */

.swan-card-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 18px !important;
  width: 100% !important;
}

.swan-card-row > .swan-card {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

@media (max-width: 850px) {
  .swan-card-row {
    flex-direction: column !important;
  }
}