/*
Theme Name: Kelly Gallagher Theme
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Custom one-page WordPress theme for Kelly Gallagher, MPCC with blog templates, WordPress-managed navigation, and LinkedIn links in header and footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kelly-gallagher-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

:root {
  --bg: #faf7f2;
  --warm-white: #fff9f4;
  --main: #2d6b6b;
  --main-dark: #1e4d4d;
  --main-light: #e8f4f4;
  --accent: #d4a843;
  --accent-dark: #b8860b;
  --dark: #2c2c2c;
  --mid: #5a5a5a;
  --light: #8a8a8a;
  --text: #2c2c2c;
  --border: #e2d9cc;
  --cta: #b8860b;
  --cta-hover: #d4a843;
  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(0,0,0,0.06);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }
a:hover { color: var(--main-dark); }
main { display: block; }
.container { width: min(100% - 2rem, 860px); margin: 0 auto; }
.container-wide { width: min(100% - 2rem, var(--max-width)); margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--main);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.divider { width: 48px; height: 3px; background: var(--accent-dark); margin: 1.25rem 0; border-radius: 2px; }
.divider-center { margin-left: auto; margin-right: auto; }
.btn-primary,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"] {
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
  display: inline-block;
  cursor: pointer;
}
.btn-primary:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover { background: var(--cta-hover); color: #fff; }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
.site-branding { text-decoration: none; }
.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--main-dark);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.site-tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--light);
  letter-spacing: 0.05em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--main-dark);
  background: #fff;
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.social-link:hover { transform: translateY(-1px); border-color: var(--main); color: var(--main); }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

.main-navigation { justify-self: center; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--main-dark);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
}
.menu-toggle:hover { background: #fff; }
.menu-primary-container ul,
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  text-decoration: none;
  color: var(--main-dark);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--accent-dark); }

/* Hero + sections */
.hero-section {
  background: var(--main-dark);
  color: #fff;
  padding: 8rem 0 6rem;
  text-align: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.hero-section h1,
.entry-title,
.page-title,
.single-post-title,
#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 1.5rem;
}
.hero-section h1 em,
#hero h1 em { font-style: italic; color: var(--accent); }
.hero-copy {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.section { padding: 5rem 0; }
.section-warm { background: var(--warm-white); }
.section-cream { background: var(--bg); }
.section-dark { background: var(--main-dark); color: #fff; text-align: center; }
.section-dark .section-label { color: var(--accent); }
.section-dark p { color: rgba(255,255,255,0.82); }
.section h2,
.about-text h2,
#problem h2,
#how h2,
#stories h2,
#contact h2,
#approach h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  line-height: 1.3;
  color: inherit;
}
.section-dark h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: 1.05rem; color: var(--mid); margin-bottom: 2.5rem; max-width: 680px; }
.section-dark .lead { color: rgba(255,255,255,0.82); margin-left: auto; margin-right: auto; }

.reason-grid,
.benefit-grid,
.story-grid {
  display: grid;
  gap: 1.5rem;
}
.reason-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.benefit-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.story-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.reason-card,
.story-card,
.benefit-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.reason-card h4,
.benefit-card h3,
.story-card h3 {
  color: var(--main-dark);
  margin: 0 0 0.6rem;
}
.reason-card p,
.benefit-card p,
.story-card p { color: var(--mid); margin: 0; font-size: 0.92rem; }
.benefit-card { border-left: 4px solid var(--main); padding: 2rem 1.75rem; }
.benefit-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.story-tag {
  display: inline-block;
  background: var(--main-light);
  color: var(--main-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.story-outcome {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--main);
  font-weight: 500;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.about-photo img,
.about-photo-placeholder {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
}
.about-photo-placeholder {
  background: var(--main-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  border: 2px dashed var(--main);
}
.credential-badge {
  display: inline-block;
  background: var(--main-dark);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.contact-link { color: rgba(255,255,255,0.75); text-decoration: none; }
.contact-link:hover { color: #fff; }
.contact-options { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Page/Post */
.content-wrap { padding: 4rem 0; }
.entry-content,
.entry-summary { color: var(--mid); font-size: 1rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--dark);
  font-family: 'Playfair Display', serif;
}
.entry-content a { word-break: break-word; }

.single-post-shell,
.page-shell {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
  padding: 4rem 0;
}
.single-post-header { margin-bottom: 2rem; }
.post-meta { color: var(--light); font-size: 0.9rem; margin-bottom: 1rem; }
.post-featured-image { margin: 1.5rem 0 2rem; border-radius: var(--radius); overflow: hidden; }

/* Search form */
.search-form,
.search-form-wrap form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
}
.search-form label { flex: 1; }
.search-form input[type="search"],
.search-form-wrap input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  outline: none;
}
.search-form input[type="search"]:focus,
.search-form-wrap input[type="search"]:focus { border-color: var(--main); }
.search-form .search-submit { padding: 0.75rem 1.25rem; }

/* Footer */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.55);
  padding: 2rem 0;
  font-size: 0.85rem;
}
.site-footer-inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer strong { color: rgba(255,255,255,0.85); }
.footer-social { display: flex; align-items: center; gap: 0.8rem; }
.footer-social .social-link { background: transparent; border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.8); }
.footer-social .social-link:hover { color: white; border-color: rgba(255,255,255,0.45); }

/* Widgets/sidebar */
.widget { margin-bottom: 2rem; }
.widget h2,
.widget-title,
.sidebar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.sidebar { padding: 2rem; background: white; border-radius: 10px; border: 1px solid var(--border); }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.sidebar ul li:last-child { border-bottom: none; }
.sidebar ul li a { text-decoration: none; }
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  width: min(100% - 2rem, 1060px);
  margin: 0 auto;
  padding: 4rem 0;
  align-items: start;
}

/* Shared archive/blog CSS */
.archive-hero {
  background: var(--dark);
  color: white;
  padding: 7rem 2rem 4rem;
  text-align: center;
}
.archive-hero .section-label { color: var(--accent); }
.archive-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.archive-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.posts-grid-wrap {
  padding: 4rem 2rem;
  background: var(--bg);
}
.posts-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.post-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.post-card-thumb {
  height: 200px;
  overflow: hidden;
  background: var(--accent);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--main);
  margin-bottom: 0.5rem;
}
.post-card-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.post-card-body h2 a { text-decoration: none; color: inherit; }
.post-card-body h2 a:hover { color: var(--main); }
.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}
.post-card-meta {
  font-size: 0.75rem;
  color: var(--light, #aaa);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}
.post-card-meta a {
  color: var(--cta);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.82rem;
}
.post-card-meta a:hover { color: var(--cta-hover); }
.pagination-wrap {
  text-align: center;
  padding: 2rem;
  background: var(--bg);
}
.pagination-wrap .page-numbers,
.pagination-wrap .page-numbers li,
.pagination-wrap .page-numbers a,
.pagination-wrap .page-numbers span {
  list-style: none;
}
.pagination-wrap .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  margin: 0 0.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--dark);
  border: 1px solid var(--border);
  transition: all 0.2s;
  background: #fff;
}
.pagination-wrap .current,
.pagination-wrap .page-numbers:hover {
  background: var(--main);
  color: white;
  border-color: var(--main);
}
.no-results-wrap {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--bg);
}
.no-results-wrap h2 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.no-results-wrap p { color: var(--mid); margin-bottom: 2rem; }
.search-form-wrap {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}
.search-form-wrap button { padding: 0.75rem 1.25rem; }
.four-oh-four {
  background: var(--dark);
  color: white;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
}
.four-oh-four h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.four-oh-four h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.four-oh-four p { color: rgba(255,255,255,0.72); margin-bottom: 2rem; max-width: 440px; margin-left: auto; margin-right: auto; }
.comment-section { padding: 3rem 0 0; border-top: 1px solid var(--border); margin-top: 3rem; }
.comment-section h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--dark); margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-item { background: white; border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; border-left: 3px solid var(--accent); box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.comment-author-name { font-weight: 700; color: var(--dark); font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: var(--mid); margin-left: 0.5rem; }
.comment-text { font-size: 0.92rem; color: var(--mid); margin-top: 0.5rem; line-height: 1.65; }
.comment-respond { margin-top: 2.5rem; }
.comment-respond h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--dark); margin-bottom: 1.25rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--main); outline: none; }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .submit input { padding: 0.8rem 2rem; }

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

@media (max-width: 900px) {
  .site-header-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "nav nav"; }
  .site-branding-wrap { grid-area: brand; }
  .header-actions { grid-area: actions; }
  .main-navigation { grid-area: nav; justify-self: stretch; }
  .menu-toggle { display: inline-flex; }
  .main-navigation .menu-primary-container,
  .main-navigation > div { display: none; width: 100%; }
  .main-navigation.toggled .menu-primary-container,
  .main-navigation.toggled > div { display: block; }
  .menu-primary-container ul,
  .main-navigation ul { flex-direction: column; align-items: flex-start; padding: 1rem 0 0.5rem; }
  .with-sidebar,
  .about-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-section { padding-top: 7rem; }
  .site-footer-inner { flex-direction: column; text-align: center; }
}
.credential-logos {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.credential-logos img,
.credential-logos a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.credential-logos .icf-badge,
.credential-logos a img {
  max-width: 150px !important;
  height: auto !important;
}

.credential-logos img[src*="utdallas"] {
  max-width: 190px !important;
  height: auto !important;
}

.credential-logos img[src*="Indiana"] {
  max-width: 190px !important;
  height: auto !important;
  margin-top: -10px !important;
}
#about.section {
  padding-bottom: 0 !important;
}

#contact.section {
  padding-top: 32px !important;
}

.credential-logos img[src*="Indiana"] {
  margin-top: -18px !important;
}