/*
Theme Name: Francis Psychotherapy
Theme URI: https://www.francispsychotherapy.net/
Author: Dylan Raines
Author URI: https://www.dylanraines.com
Description: Custom theme for Francis Psychotherapy Services, LLC. Matches the current calm blue and cream look, with Martha's requested content edits.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: francis-psychotherapy
Tags: custom-menu, featured-images, one-column, accessibility-ready

Francis Psychotherapy Services, LLC
*/

:root {
  --fp-blue: #5b9bd5;
  --fp-blue-dark: #3d7eb8;
  --fp-blue-soft: #e8f2fb;
  --fp-cream: #f8efe6;
  --fp-cream-deep: #f3e6d8;
  --fp-orange: #e39b4a;
  --fp-orange-hover: #d08938;
  --fp-text: #2d3748;
  --fp-muted: #4a5568;
  --fp-white: #ffffff;
  --fp-line: #e2e8f0;
  --fp-radius: 16px;
  --fp-shadow: 0 10px 30px rgba(45, 55, 72, 0.08);
  --fp-font: "Source Sans 3", "Source Sans Pro", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fp-font);
  color: var(--fp-text);
  background: var(--fp-blue-soft);
  line-height: 1.65;
  font-size: 17px;
}

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

a {
  color: var(--fp-blue);
  text-decoration: none;
}

a:hover {
  color: var(--fp-blue-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--fp-blue);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--fp-white);
  padding: 18px 0 10px;
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 118px;
}

.header-left,
.header-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  width: auto;
  max-width: 220px;
  position: relative;
  z-index: 2;
}

.header-left {
  align-items: flex-start;
  justify-content: center;
}

.header-right {
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}

.site-header .header-btn {
  display: inline-flex;
  width: auto !important;
  max-width: none;
  min-width: 0;
  min-height: 38px;
  padding: 8px 18px;
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
}

.header-right .header-btn {
  align-self: flex-end;
}

.site-branding {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.custom-logo-link {
  display: inline-block;
}

.custom-logo-link img,
.custom-logo,
.site-logo {
  width: 320px;
  height: auto;
  margin: 0 auto;
}

.site-llc {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--fp-blue);
  letter-spacing: 0.01em;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--fp-blue);
  color: var(--fp-blue);
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: inherit;
}

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

.btn-solid {
  background: var(--fp-blue);
  color: #fff;
  border-color: var(--fp-blue);
}

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

.header-phone {
  font-size: 14px;
  color: var(--fp-text);
}

/* Nav */
.site-nav {
  background: var(--fp-cream);
  border-top: 1px solid #f3e4d4;
}

.nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-height: 48px;
}

.nav-list,
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  color: var(--fp-text);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 0;
  display: inline-block;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--fp-blue-dark);
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 280px;
  border-radius: 12px;
  box-shadow: var(--fp-shadow);
  padding: 8px 0;
  z-index: 20;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.sub-menu a {
  display: block;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--fp-text);
  padding: 12px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--fp-blue);
  padding: 42px 0 48px;
}

.hero-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--fp-shadow);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.hero-card h1 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-card p {
  margin: 0 0 14px;
  color: var(--fp-muted);
}

.hero-aside {
  padding-top: 6px;
}

.hero-aside .btn-solid {
  margin-bottom: 14px;
}

.hero-aside .schedule-note {
  margin: 0 0 12px;
  font-weight: 600;
}

.hero-aside p {
  margin: 0 0 16px;
  color: var(--fp-text);
}

.meet-link {
  font-weight: 600;
}

/* Two column expertise + modalities */
.two-col-section {
  padding: 56px 0 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: #fff;
  border-radius: var(--fp-radius);
  padding: 32px;
  box-shadow: var(--fp-shadow);
}

.section-title {
  margin: 0 0 18px;
  font-size: 28px;
}

.pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pill {
  background: var(--fp-orange);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  text-align: left;
}

.modality-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modality-list a,
.modality-list .no-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--fp-blue-soft);
  color: var(--fp-text);
  font-weight: 600;
}

.modality-list a:hover {
  background: var(--fp-blue);
  color: #fff;
}

.modality-list .no-link {
  background: #f7fafc;
  color: var(--fp-muted);
  font-weight: 600;
}

/* Cards */
.modalities-band {
  background: var(--fp-blue);
  padding: 48px 0 56px;
}

.modalities-band .section-title {
  color: #fff;
  text-align: center;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mod-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--fp-shadow);
  display: flex;
  flex-direction: column;
}

.mod-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.mod-card-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mod-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--fp-text);
}

.mod-card .read-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Contact */
.contact-section {
  background: var(--fp-cream);
  padding: 56px 0;
}

.contact-card {
  width: min(640px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--fp-shadow);
}

.contact-card h2 {
  text-align: center;
  margin: 0 0 22px;
}

.fp-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fp-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.req {
  color: #c53030;
}

.fp-form input,
.fp-form textarea {
  width: 100%;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  margin-bottom: 14px;
}

.fp-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  text-align: center;
  color: #276749;
  font-weight: 600;
}

.form-error {
  color: #c53030;
  text-align: center;
}

/* Footer */
.site-footer {
  background: #fff;
  text-align: center;
  padding: 22px 16px;
  font-size: 14px;
  color: var(--fp-muted);
}

/* Inner pages */
.page-hero {
  background: var(--fp-cream);
  padding: 48px 0 36px;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: 34px;
}

.page-content {
  padding: 36px 0 64px;
}

.content-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--fp-shadow);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.split img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 420px;
}

.martha-photo {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

blockquote.emdr-quote {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  font-size: 19px;
  font-style: italic;
  color: var(--fp-text);
  line-height: 1.5;
}

blockquote.emdr-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
}

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

.rates-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--fp-line);
}

.rates-list li:last-child {
  border-bottom: 0;
}

.rate-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--fp-blue-dark);
}

/* Responsive */
@media (max-width: 900px) {
  .header-grid,
  .hero-card,
  .two-col,
  .split,
  .card-grid,
  .fp-form .row {
    grid-template-columns: 1fr;
  }

  .header-grid {
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 8px 0 12px;
  }

  .site-branding {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    order: 1;
  }

  .header-left,
  .header-right {
    align-items: center;
    max-width: none;
  }

  .header-left {
    order: 2;
  }

  .header-right {
    order: 3;
    text-align: center;
  }

  .header-right .header-btn,
  .header-left .header-btn {
    align-self: center;
  }

  .pills {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .sub-menu {
    position: static;
    transform: none;
    box-shadow: none;
    display: block;
    padding-left: 12px;
  }

  .hero-card,
  .two-col,
  .content-card {
    padding: 22px;
  }
}
