/*
Theme Name: GrowthPartner
Theme URI: https://example.com/growthpartner
Author: Brand Growth Partner
Author URI: https://example.com
Description: A clean, high-converting, modern custom WordPress theme designed for Brand Growth Partners specializing in business systems. Native light and dark mode support with 100% Beaver Builder canvas compatibility.
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: growthpartner
Tags: full-width-template, dark-mode, custom-menu, page-builder-template, sticky-header, translation-ready
*/

/* ==========================================================================
   1. COLOR SYSTEM & CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Brand Accent Colors */
  --accent-primary: #00A86B;
  --accent-hover: #0F5132;
  --accent-light: rgba(0, 168, 107, 0.1);
  --accent-glow: rgba(0, 168, 107, 0.25);
  
  /* Light Mode Palette (Default) */
  --bg-primary: #F8F9FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EDF2F7;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-primary: #121212;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  
  --border-color: #E2E8F0;
  --border-hover: #CBD5E0;
  
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --navbar-border: rgba(0, 0, 0, 0.06);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition-speed: 0.3s;
  --container-max-width: 1200px;
}

/* Explicit Dark Mode Overrides */
[data-theme="dark"] {
  --bg-primary: #0A0A0A;
  --bg-secondary: #121212;
  --bg-tertiary: #1A1A1A;
  --bg-glass: rgba(10, 10, 10, 0.88);
  
  --text-primary: #F8F9FA;
  --text-secondary: #A0AEC0;
  --text-muted: #718096;
  
  --border-color: #2D3748;
  --border-hover: #4A5568;
  
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --navbar-border: rgba(255, 255, 255, 0.08);
}

/* Fallback for OS Dark Mode if data-theme is unset */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #0A0A0A;
    --bg-secondary: #121212;
    --bg-tertiary: #1A1A1A;
    --bg-glass: rgba(10, 10, 10, 0.88);
    
    --text-primary: #F8F9FA;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;
    
    --border-color: #2D3748;
    --border-hover: #4A5568;
    
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --navbar-border: rgba(255, 255, 255, 0.08);
  }
}

/* ==========================================================================
   2. BASE RESETS & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-center { text-align: center; }
.accent-text { color: var(--accent-primary); }

/* ==========================================================================
   3. LAYOUT & CONTAINER UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.main-content-area {
  flex: 1 0 auto;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* ==========================================================================
   4. HEADER & NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navbar-border);
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.site-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.site-title a span.accent {
  color: var(--accent-primary);
}

.site-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  display: none;
}

@media (min-width: 768px) {
  .site-description { display: block; }
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.main-navigation a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--accent-primary);
}

/* ==========================================================================
   5. BUTTONS & THEME TOGGLE SWITCH
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-primary);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary) !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
  transform: rotate(15deg);
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: inline-block; }

[data-theme="dark"] .theme-icon-sun { display: inline-block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun { display: inline-block; }
  :root:not([data-theme="light"]) .theme-icon-moon { display: none; }
}

/* ==========================================================================
   6. FRONT PAGE / HOME PAGE SECTIONS
   ========================================================================== */

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  background: radial-gradient(circle at 50% 0%, var(--accent-light) 0%, transparent 60%);
}

.hero-container {
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 860px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 168, 107, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 168, 107, 0); }
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Stats Section */
.stats-section {
  padding: 2.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.stat-card {
  padding: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Services / Pillars Section */
.services-section {
  padding: 6rem 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 3.5rem;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

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

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
}

.highlight-card {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-primary);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  background: var(--accent-light);
  color: var(--accent-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-list {
  list-style: none;
  margin-top: 1.25rem;
}

.service-list li {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 800;
}

/* Diagnostic Section */
.diagnostic-section {
  padding: 4rem 0 6rem;
}

.diagnostic-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
}

.diagnostic-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.diagnostic-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .diagnostic-body { grid-template-columns: 1fr; }
}

.diagnostic-questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.diag-option {
  cursor: pointer;
}

.diag-option input[type="radio"] {
  display: none;
}

.option-box {
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.diag-option input:checked + .option-box {
  border-color: var(--accent-primary);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.opt-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.opt-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.diagnostic-result {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.score-circle {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.score-label {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Process Section */
.process-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.timeline-item {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.step-badge {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
}

.cta-box {
  background: linear-gradient(135deg, #0F5132 0%, #0A0A0A 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 20px 40px rgba(0, 168, 107, 0.2);
}

.cta-box h2, .cta-box p {
  color: #FFFFFF !important;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  opacity: 0.9;
}

.cta-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: rgba(0, 168, 107, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
}

.form-group-inline {
  display: flex;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 260px;
  padding: 0.95rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 1rem;
  outline: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.15);
}

.form-subtext {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   7. BEAVER BUILDER FULL-WIDTH TEMPLATE OVERRIDES
   ========================================================================== */
body.page-template-page-builder,
body.page-template-page-builder #page {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

.page-builder-canvas {
  width: 100%;
  margin: 0;
  padding: 0;
}

.page-builder-canvas .fl-builder-content {
  margin: 0;
  padding: 0;
}

.fl-row-full-width {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

/* ==========================================================================
   8. FOOTER STYLING
   ========================================================================== */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: auto;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    text-align: left;
  }
}

.footer-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

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

.footer-navigation a:hover {
  color: var(--accent-primary);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}
