/*
Theme Name: Healthletic Partners
Theme URI: https://healthleticpartners.com
Author: Healthletic Partners
Description: Sports-anchored development and advisory platform theme.
Version: 1.0.0
License: Private
Text Domain: healthletic
Tags: custom-menu, custom-logo, theme-options, full-width-template
*/

/* ============================================================
   RESET & ROOT
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --primary: #717f94;
  --text: #1E1E1E;
  --text-secondary: #1E1E1E;
  --text-subtle: #666;
  --text-muted: #1E1E1E;
  --text-faint: #1E1E1E;
  --text-placeholder: #aaa;
  --accent: #297B2E;
  --accent-muted: #6a8f6d;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f8f8f6;
  --bg-card-hover: #eef0ee;
  --bg-nav: rgba(255, 255, 255, 0.94);
  --border: #e5e5e2;
  --error: #c0392b;
  --overlay: rgba(0, 0, 0, 0.55);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.18);

  /* Layout */
  --radius: 8px;
  --max: 1100px;

  /* Typography */
  --font: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.green {
  color: var(--accent-muted) !important;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem clamp(24px, 5vw, 64px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img,
.nav-logo .custom-logo {
  height: 4rem !important;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* WordPress nav menu */
.nav-right {
  display: flex;
  gap: 3rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* CTA button — can be applied via Menu CSS Classes OR separate button */
.nav-links .menu-item-cta a,
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--white) !important;
  background: var(--accent);
  padding: 9px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-links .menu-item-cta a:hover,
.nav-cta:hover { opacity: 0.85; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px clamp(24px, 5vw, 64px);
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}

.mobile-menu.open { display: flex; }

.mobile-menu a,
.mobile-menu ul,
.mobile-menu li { list-style: none; }

.mobile-menu a {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  padding: 4px 0;
  display: block;
}

/* Flatten WordPress menu structure in mobile */
.mobile-menu .menu { display: contents; }
.mobile-menu .menu-item { display: contents; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(24px, 5vw, 64px) 80px;
  background: var(--bg);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.1rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: var(--font);
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--text);
  max-width: 875px;
  margin-bottom: 32px;
}

h1 strong { font-weight: 600; color: var(--text); }

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.hero-micro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-style: italic;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary:hover { opacity: 0.85; }

.btn-text {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.btn-text:hover { color: var(--text); }

/* ============================================================
   SECTIONS BASE
   ============================================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  max-width: var(--max);
  margin: 0 auto;
}

section {
  padding: 100px clamp(24px, 5vw, 64px);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.1rem;
}

h2 {
  font-family: var(--font);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 300;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 24px;
}

h2 strong { font-weight: 600; }

.section-body {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.75;
}

/* ============================================================
   APPROACH
   ============================================================ */
#approach { background: var(--bg-soft); }

.approach-layout {
  display: flex;
  gap: 80px;
  margin-top: 56px;
  align-items: flex-start;
}

.approach-body {
  flex: 1;
}

.approach-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.approach-body p:last-child { margin-bottom: 0; }

.approach-grid {
  flex: 1;
}

.approach-list { display: flex; flex-direction: column; gap: 0; }

.approach-item:first-child { padding-top: 0; border-top: none; }

.approach-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.approach-item:last-child { border-bottom: 1px solid var(--border); }

.approach-item strong {
  display: block;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}

/* ============================================================
   FOCUS AREAS
   ============================================================ */
#focus { background: var(--bg); }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
}

.focus-card {
  background: var(--bg-soft);
  padding: 40px 36px;
  transition: background 0.2s;
}

.focus-card:hover { background: var(--bg-card-hover); }

.focus-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.focus-card h3 {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.focus-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-subtle);
  line-height: 1.65;
}

/* ============================================================
   AHC
   ============================================================ */
#ahc { background: var(--bg-soft); }

.ahc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}

.ahc-image { border-radius: var(--radius); overflow: hidden; }

.ahc-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.ahc-caption {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
  text-align: center;
}

.ahc-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.ahc-principles {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principle {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

.principle:last-child { border-bottom: 1px solid var(--border); }

.ahc-disclaimer {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-placeholder);
  line-height: 1.7;
  margin-top: 20px;
  font-style: italic;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
#experience { background: var(--bg); }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 56px;
  align-items: start;
}

.exp-left {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.exp-left p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

.exp-left p:last-child { 
  font-size: 24px;
  font-style: italic;
}

.exp-tag-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.exp-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.exp-tag {
  font-size: 13px;
  font-weight: 400;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 40px;
  line-height: 1;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--bg-soft); }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-inner .section-body {
  margin-bottom: 20px;
}
.about-body p:last-child { 
  font-size: 24px;
  font-style: italic;
  max-width: 975px;
}

.about-inner .section-body:last-child { margin-bottom: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: var(--text);
  padding: 100px clamp(24px, 5vw, 64px);
}

#contact .section-tag {
  color: var(--accent-muted);
}
#contact h2 {
  color: var(--white);
}
#contact .section-body { color: var( --text-subtle); }

/* ============================================================
 * 
   FOOTER
   ============================================================ */
footer {
  background: var(--bg);
  padding: 32px clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img,
.footer-logo .custom-logo {
  height: 3rem;
  width: auto;
}

.footer-logo-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

footer p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg);
  border-radius: 12px;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-modal);
}

.modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  font-family: var(--font);
  transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.modal h3 {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.modal > div > p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-subtle);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); background: var(--white); }

.form-error {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
}

.form-submit {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.form-submit:hover { opacity: 0.85; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.form-success .check {
  font-size: 40px;
  margin-bottom: 12px;
}

.form-success h4 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--text-subtle);
  margin: 0;
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .approach-layout { flex-direction: column; gap: 48px; }
  .approach-item:first-child { padding-top: 24px; border-top: 1px solid var(--border); }
  .ahc-layout,
  .exp-grid { grid-template-columns: 1fr; gap: 48px; }
  .focus-grid { grid-template-columns: 1fr; }
  .modal { padding: 36px 24px; }
}

@media (max-width: 540px) {
  h1 { font-size: 34px; }
  section { padding: 72px 24px; }
  #contact { padding: 72px 24px; }
}
