/*
 Theme Name:   21 Light Accounting
 Theme URI:    https://21lightstreet.com
 Description:  Custom child theme for 21 Light Accounting - Fractional Nonprofit CFO Services
 Author:       Joshua Gonzales
 Author URI:   https://21lightstreet.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  21light-child
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Brand Colors */
  --navy: #1B2A4A;
  --navy-dark: #141F38;
  --navy-light: #2A3D66;
  --gold: #C8A85C;
  --gold-light: #E8D5A0;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --light-gray: #F0F1F4;
  --mid-gray: #6B7280;
  --dark-gray: #374151;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --border-color: #E5E7EB;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1140px;
  --card-radius: 12px;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
}

/* ==========================================================================
   GOOGLE FONTS IMPORT
   ========================================================================== */

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

/* ==========================================================================
   BASE STYLES & RESETS
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

/* Main header - dark navy bar */
.site-header {
  background-color: var(--navy) !important;
  border-bottom: none !important;
  padding: 0 !important;
}

.site-header .inside-header {
  padding: 16px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Site title / logo */
.site-header .site-title {
  font-family: var(--font-serif) !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

.site-header .site-title a {
  color: var(--white) !important;
  text-decoration: none !important;
}

/* Navigation links */
.main-navigation .main-nav > ul > li > a {
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.85) !important;
  padding: 10px 18px !important;
  transition: color 0.2s ease !important;
  letter-spacing: 0.01em;
}

.main-navigation .main-nav > ul > li > a:hover {
  color: var(--white) !important;
}

/* CTA button in navigation - "Book Discovery Call" */
.main-navigation .main-nav > ul > li.menu-item-cta > a,
.main-navigation .main-nav > ul > li:last-child > a {
  background-color: var(--white) !important;
  color: var(--navy) !important;
  border-radius: 6px !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.main-navigation .main-nav > ul > li.menu-item-cta > a:hover,
.main-navigation .main-nav > ul > li:last-child > a:hover {
  background-color: var(--off-white) !important;
  color: var(--navy) !important;
}

/* Sticky header */
.site-header.is-sticky {
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* Mobile menu */
.menu-toggle {
  color: var(--white) !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  background-color: var(--off-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section .hero-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background-color: rgba(27, 42, 74, 0.08);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.hero-section h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-section .hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--navy);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background-color: transparent;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--navy);
  background-color: rgba(27, 42, 74, 0.03);
}

/* Large CTA button (for section CTAs) */
.btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--navy);
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-cta-large:hover {
  background-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.3);
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

.section {
  padding: var(--section-padding);
}

.section-white {
  background-color: var(--white);
}

.section-light {
  background-color: var(--off-white);
}

.section-navy {
  background-color: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy p {
  color: var(--white);
}

.section-navy p {
  color: rgba(255,255,255,0.8);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CARD COMPONENTS
   ========================================================================== */

/* Feature / benefit cards (What You Get) */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
  transform: translateY(-2px);
}

.feature-card .card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: var(--navy);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   CHALLENGE SECTION (Two-column with callout)
   ========================================================================== */

.challenge-section {
  padding: var(--section-padding);
}

.challenge-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 24px;
}

.challenge-callout {
  background-color: var(--navy);
  color: var(--white);
  border-radius: var(--card-radius);
  padding: 48px 40px;
}

.challenge-callout h3 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.challenge-callout p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   PROCESS SECTION (How We Work Together - numbered steps)
   ========================================================================== */

.process-section {
  padding: var(--section-padding);
}

.process-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 48px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px 32px;
  flex: 1;
}

.step-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Timeline connector */
.process-timeline {
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background-color: var(--border-color);
}

/* ==========================================================================
   PRICING SECTION - Service Tiers
   ========================================================================== */

.pricing-section {
  padding: var(--section-padding);
  background-color: var(--off-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 40px 32px;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* Featured / Most Popular tier */
.pricing-card.featured {
  border: 2px solid var(--navy);
  transform: scale(1.02);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 4px;
  white-space: nowrap;
}

.pricing-card .tier-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-card .tier-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-card .tier-price .period {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card .tier-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-card .tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card .tier-features li {
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.pricing-card .tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

.pricing-card .tier-features li.included-all {
  font-weight: 600;
}

/* Gold accent for featured tier */
.pricing-card.featured .tier-price {
  color: var(--gold);
}

/* ==========================================================================
   PROJECT SERVICES SECTION
   ========================================================================== */

.project-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: all 0.25s ease;
}

.project-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.project-card .project-icon {
  width: 44px;
  height: 44px;
  background-color: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.project-card .project-price {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.project-card .project-price .timeline {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 8px;
}

.project-card .project-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   DIFFERENTIATOR SECTION (What Makes This Different - navy bg)
   ========================================================================== */

.differentiator-section {
  background-color: var(--navy);
  color: var(--white);
  padding: var(--section-padding);
  border-radius: var(--card-radius);
  margin: 0 20px;
}

.differentiator-section h2 {
  font-family: var(--font-serif);
  color: var(--white);
  font-style: italic;
}

.differentiator-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================================================
   CTA SECTION (Ready for Strategic Financial Leadership?)
   ========================================================================== */

.cta-section {
  padding: 100px 0;
  text-align: center;
  background-color: var(--white);
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-style: italic;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--white) !important;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
}

.footer-info {
  text-align: center;
}

.footer-info .footer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-info .footer-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-info .footer-contact {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-info .footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-info .footer-contact a:hover {
  color: var(--navy);
}

/* ==========================================================================
   BLOG STYLES
   ========================================================================== */

/* Blog listing */
.blog .post,
.archive .post {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 32px;
  margin-bottom: 24px;
  transition: all 0.25s ease;
}

.blog .post:hover,
.archive .post:hover {
  box-shadow: var(--card-shadow-hover);
}

.blog .entry-title a,
.archive .entry-title a {
  font-family: var(--font-serif);
  color: var(--text-primary);
  text-decoration: none;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover {
  color: var(--navy);
}

/* Single post */
.single .entry-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.single .entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.single .entry-content h2 {
  font-family: var(--font-serif);
  margin-top: 48px;
}

.single .entry-content h3 {
  font-family: var(--font-serif);
  margin-top: 36px;
}

/* ==========================================================================
   WORDPRESS BLOCK EDITOR ALIGNMENT
   ========================================================================== */

/* Ensure blocks inside the editor match the theme */
.wp-block-group {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.wp-block-columns {
  gap: 32px;
}

/* Full-width blocks */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .project-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero-section {
    padding: 60px 0;
  }

  .site-header .inside-header {
    padding: 12px 20px;
  }

  .challenge-callout {
    padding: 32px 24px;
  }

  .differentiator-section {
    margin: 0 10px;
    padding: 48px 24px;
  }

  .process-step {
    flex-direction: column;
    gap: 12px;
  }

  .process-timeline::before {
    display: none;
  }
}
