/*
Theme Name: ParuchMD Sports Psychiatry & Athlete Optimization
Theme URI: https://paruchmd.com
Author: ParuchMD Technical Team
Author URI: https://paruchmd.com
Description: Custom high-converting WordPress theme for ParuchMD Sports Psychiatry & Athlete Optimization. Features physician-led mental performance, 9-domain athlete evaluation, and evidence-based sports psychiatry templates.
Version: 1.1.1
Requires at least: 6.0
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: paruchmd
Tags: medical, sports, psychiatry, performance, clean, responsive, accessibility-ready, Gutenberg
*/

:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --accent: #0284C7;
  --accent-hover: #0369A1;
  --accent-light: #E0F2FE;
  --secondary-accent: #0D9488;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #334155;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --radius: 8px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-top: 1.5rem; }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1.25rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
}

.brand-logo span {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: #CBD5E1;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover, .main-nav .current-menu-item a {
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid #334155;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #090D16 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: #fff;
  font-size: 3rem;
  max-width: 900px;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: var(--accent-light);
  font-size: 1.25rem;
  max-width: 800px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.section-dark {
  background: var(--primary);
  color: #F1F5F9;
}

.section-dark h2, .section-dark h3 {
  color: #fff;
}

.section-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

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

.section-dark .section-title p {
  color: #94A3B8;
}

/* Card Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-num {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

/* Callout Box */
.callout {
  background: #EFF6FF;
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

/* Research Highlights */
.research-box {
  background: #FFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 2rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.stat-item {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.stat-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-heading);
}

.stat-lbl {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* FAQ Accordion */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.faq-q {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: #090D16;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #1E293B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: #94A3B8;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: var(--primary); padding: 1.5rem; border-top: 1px solid #1E293B; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero h1 { font-size: 2.25rem; }
  .section { padding: 3rem 0; }
}


/* v1.1 hardening and usability */
html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
main { display: block; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: #0F172A;
  display: block; font-size: 0.95rem; font-weight: 700; height: auto;
  left: 1rem; line-height: normal; padding: 0.9rem 1rem; top: 1rem;
  width: auto; z-index: 100000; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

.site-branding { display: flex; align-items: center; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 48px; width: auto; }
.nav-cta { padding: 0.5rem 1rem; }

.hero { isolation: isolate; }
.hero::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 42%;
  background: radial-gradient(circle at 70% 35%, rgba(2,132,199,.20), transparent 60%);
  pointer-events: none; z-index: -1;
}

.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #38BDF8; outline-offset: 3px;
}

.form-card { background: #fff; border-top: 4px solid var(--accent); }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; margin-bottom: .35rem; font-weight: 650; color: var(--text-dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .8rem .85rem; border: 1px solid var(--border-color);
  border-radius: var(--radius); background: #fff; color: var(--text-dark); font: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.field-help { color: var(--text-muted); font-size: .875rem; margin: .35rem 0 0; }
.btn-block { width: 100%; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin: 0 0 2rem; border: 1px solid; }
.notice-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.notice-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.privacy-callout { margin-top: 1.5rem; padding: 1rem 1.25rem; background: #F8FAFC; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: .92rem; }
.footer-tagline { margin-top: 1rem; color: #94A3B8; }
.narrow-content { max-width: 760px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 768px) {
  .header-container { flex-wrap: wrap; }
  .main-nav a { display: block; padding: .35rem 0; }
  .main-nav .btn { padding: .7rem 1rem; text-align: center; }
  .hero { padding-top: 4rem; }
}

.hero-compact { padding: 3.25rem 0 2.75rem; }
.editor-content { max-width: 860px; }
.editor-content > * + * { margin-top: 1rem; }
.editor-content-section { background: #fff; border-top: 1px solid var(--border-color); }
.post-summary { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.post-summary h2 { margin-top: 0; }
