/*
Theme Name: Worthington Wealth Management
Theme URI: https://worthingtonwealth.com
Author: Worthington Wealth Management
Author URI: https://worthingtonwealth.com
Description: Custom theme for Worthington Wealth Management. Built for full HTML/CSS control, fiduciary-grade compliance workflow, and clean content management.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: Private
License URI: https://worthingtonwealth.com
Text Domain: wwm
*/

/* NOTE: The "Version:" line above is what busts the browser/Kinsta cache
   for this file. Bump it (1.0.1 -> 1.0.2, etc.) any time you edit style.css. */

/* ============================================
   DESIGN SYSTEM TOKENS
   ============================================ */
:root {
  --wwm-green: #01783F;
  --wwm-green-dark: #076E43;
  --wwm-brass: #a87c4f;
  --wwm-brass-soft: #c9a875;
  --wwm-white: #ffffff;
  --wwm-off-white: #f8f7f5;
  --wwm-text: #1a1a1a;
  --wwm-text-light: #4a4a4a;
  --wwm-border: #e2e0dc;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --section-pad: clamp(3rem, 6vw, 5rem);
  --content-max: 1280px;
  --content-narrow: 720px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--wwm-text);
  background: var(--wwm-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================
   ACCESSIBILITY UTILITIES
   ============================================ */
/* Hidden visually, still read by screen readers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
/* "Skip to content" link: appears only when tabbed to */
.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--wwm-white);
  color: var(--wwm-green);
  border: 2px solid var(--wwm-green);
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wwm-white);
  border-bottom: 1px solid var(--wwm-border);
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: 0.75rem; }
.site-logo img { height: 50px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--wwm-green-dark);
}
.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wwm-brass);
  margin-top: 2px;
}

/* Navigation */
.site-nav { display: flex; align-items: center; }
.site-nav > ul { list-style: none; display: flex; align-items: center; }
.site-nav .menu-item { position: relative; }
.site-nav .menu-item > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--wwm-text);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.site-nav .menu-item > a:hover,
.site-nav .current-menu-item > a { color: var(--wwm-green); }

/* Dropdowns */
.site-nav .sub-menu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--wwm-white);
  border: 1px solid var(--wwm-border);
  border-top: 2px solid var(--wwm-green);
  padding: 0.5rem 0;
}
.site-nav .menu-item:hover > .sub-menu {
  display: block;
}
.site-nav .sub-menu .menu-item a {
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--wwm-text-light);
  transition: color 0.15s, background 0.15s;
}
.site-nav .sub-menu .menu-item a:hover {
  color: var(--wwm-green);
  background: var(--wwm-off-white);
}

/* CTA button in nav */
.nav-cta > a {
  background: var(--wwm-green) !important;
  color: var(--wwm-white) !important;
  border-radius: 3px;
  padding: 0.45rem 1rem !important;
  font-size: 0.8rem !important;
  transition: background 0.2s;
}
.nav-cta > a:hover {
  background: var(--wwm-green-dark) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wwm-text);
  margin: 5px 0;
  transition: transform 0.2s;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.page-content {
  padding: var(--section-pad) 1.5rem;
}
.page-content-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
}
.page-content-inner p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--wwm-text-light);
  margin-bottom: 1.25rem;
}
.page-content-inner p:last-child { margin-bottom: 0; }
.page-content-inner a:not(.btn-outline) {
  color: var(--wwm-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--wwm-brass-soft);
  transition: text-decoration-color 0.15s;
}
.page-content-inner a:not(.btn-outline):hover {
  text-decoration-color: var(--wwm-green);
}

/* Content headings */
.content-heading,
.page-content-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--wwm-green-dark);
  line-height: 1.35;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.content-heading::after,
.page-content-inner h2::after {
  content: '';
  display: block;
  width: 35px;
  height: 2px;
  background: var(--wwm-brass);
  margin-top: 0.65rem;
}

/* Lead paragraph */
.lead { font-size: 1.05rem !important; line-height: 1.85 !important; color: var(--wwm-text) !important; }

/* Epigraph */
.epigraph {
  border-left: 3px solid var(--wwm-brass);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-bottom: 1.5rem;
}
.epigraph p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--wwm-text-light);
}
.epigraph cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--wwm-brass);
  margin-top: 0.35rem;
}

/* Pull quote */
.pull-quote {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--wwm-border);
  border-bottom: 1px solid var(--wwm-border);
}
.pull-quote p {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  line-height: 1.55 !important;
  color: var(--wwm-green-dark) !important;
  text-align: center;
  max-width: 560px;
  margin: 0 auto !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-outline {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--wwm-green);
  border: 1.5px solid var(--wwm-green);
  border-radius: 3px;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--wwm-green); color: var(--wwm-white); }

.btn-brass {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--wwm-brass);
  color: var(--wwm-white);
  border-radius: 3px;
  transition: background 0.2s;
}
.btn-brass:hover { background: var(--wwm-brass-soft); }

/* ============================================
   FEATURE ROW (homepage sections)
   ============================================ */
.section { padding: var(--section-pad) 1.5rem; }
.section-inner { max-width: var(--content-max); margin: 0 auto; }
.section-alt { background: var(--wwm-off-white); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.feature-row.reverse .feature-image { order: 2; }
.feature-row.reverse .feature-text { order: 1; }
.feature-image { border-radius: 4px; overflow: hidden; }
.feature-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--wwm-green-dark);
}
.feature-text h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--wwm-brass);
  margin-top: 0.75rem;
}
.feature-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--wwm-text-light);
  max-width: 480px;
  margin-bottom: 1.5rem;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--wwm-green);
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--wwm-white);
  margin-bottom: 0.5rem;
}
.cta-banner p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
}

/* ============================================
   MISSION BOX
   ============================================ */
.mission-box {
  background: var(--wwm-off-white);
  padding: var(--section-pad) 1.5rem;
}
.mission-box-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
}
.mission-box h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--wwm-green-dark);
  margin-bottom: 1rem;
}
.mission-box h2::after {
  content: '';
  display: block;
  width: 35px;
  height: 2px;
  background: var(--wwm-brass);
  margin-top: 0.65rem;
}
.mission-box p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--wwm-text-light);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--wwm-green-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner { max-width: var(--content-max); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand .logo-text { color: var(--wwm-white); font-size: 1rem; }
.footer-brand .logo-text span { color: var(--wwm-brass-soft); }
.footer-contact { font-size: 0.85rem; line-height: 1.8; }
.footer-contact a { color: var(--wwm-brass-soft); transition: color 0.15s; }
.footer-contact a:hover { color: var(--wwm-white); }
.footer-nav ul { list-style: none; columns: 2; }
.footer-nav li { break-inside: avoid; margin-bottom: 0.35rem; }
.footer-nav a { font-size: 0.8rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-nav a:hover { color: var(--wwm-white); }
.footer-legal {
  padding-top: 1.5rem;
  font-size: 0.7rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 680px;
}
.footer-legal p + p { margin-top: 0.75rem; }
.footer-copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  justify-content: space-between;
}
.footer-copyright a { color: rgba(255,255,255,0.5); }
.footer-copyright a:hover { color: var(--wwm-white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-row.reverse .feature-image { order: 0; }
  .feature-row.reverse .feature-text { order: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .site-nav ul { display: none; }
  .nav-toggle { display: block; }
  .footer-copyright { flex-direction: column; gap: 0.5rem; text-align: center; }
}