/*
Theme Name: Growcal v2
Theme URI: https://growcal.com
Author: Growcal
Author URI: https://growcal.com
Description: Growcal v2 — Grow Local. An intelligent AI platform built to help ambitious businesses reach the right customers in their local area. Combines goals with powerful data insights and real industry expertise to pinpoint the most effective advertising channels, formats, and spend levels. Practical, smart, and built for growth. Version 2 with enhanced features and improvements.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: growcal-v2
Tags: ai-powered, local-business, advertising, marketing, custom-template, full-width-template, accessibility-ready
*/

/* ========================================
   BASE STYLES & RESET
   ======================================== */

:root {
  --color-bg: #faf7f2;
  --color-text: #0c2333;
  --color-accent: #07a071;
  --color-muted: #E2E3EA;
  --color-white: #FFFFFF;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --header-height-scrolled: 65px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--color-text);
  opacity: 0.9;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

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

.section {
  padding: 5rem 0;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  box-shadow: 0 2px 20px var(--color-shadow);
  border-bottom-color: var(--color-muted);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-logo:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* Main Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

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

.main-navigation a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

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

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Spacer for fixed header */
.header-spacer {
  height: var(--header-height);
}

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

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(28, 77, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 77, 255, 0.3);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-white);
  opacity: 1;
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.05rem;
}

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

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F8F8FB 0%, #E8E9F3 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(28, 77, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

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

/* ========================================
   SECTIONS
   ======================================== */

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-text);
  opacity: 0.7;
  max-width: 700px;
  margin: -1.5rem auto 3rem;
}

/* How It Works Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.step-card p {
  font-size: 1rem;
  opacity: 0.8;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--color-shadow);
}

.benefit-card h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.benefit-card p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* What You Get Section */
.outputs-section {
  background: var(--color-white);
  border-radius: 16px;
  padding: 3rem;
  margin-top: 3rem;
  box-shadow: 0 4px 20px var(--color-shadow);
}

.outputs-list {
  list-style: none;
  margin-top: 2rem;
}

.outputs-list li {
  padding: 1rem 0 1rem 3rem;
  position: relative;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--color-muted);
}

.outputs-list li:last-child {
  border-bottom: none;
}

.outputs-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Final CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, #0D3ACC 100%);
  color: var(--color-white);
  border-radius: 16px;
  padding: 5rem 2rem;
  margin: 4rem 0;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: var(--color-white);
  opacity: 0.95;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: var(--color-white);
  color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

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

.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-muted);
  padding: 4rem 0 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--color-text);
  opacity: 0.7;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid var(--color-muted);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

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

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: var(--transition);
  }

  .main-navigation.active {
    transform: translateX(0);
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .main-navigation a {
    font-size: 1.5rem;
  }

  .hero {
    min-height: 80vh;
    padding-top: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Accessibility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
