/*
Theme Name: Greenlead
Theme URI: https://greenlead.com
Author: Greenlead Team
Author URI: https://greenlead.com
Description: A modern, SEO-optimized WordPress theme for performance marketing agencies focused on local lead generation and conversions.
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: greenlead
Tags: business, marketing, lead-generation, seo-friendly, responsive, custom-header

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ================================
   CSS Reset & Base Styles
   ================================ */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #111827;
  background-color: #F8FAFC;
  overflow-x: hidden;
}

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

a {
  color: #0B1F3B;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #F97316;
}

/* ================================
   Typography
   ================================ */

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* ================================
   Layout Container
   ================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================
   Header & Navigation
   ================================ */

.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-branding h1 {
  margin: 0;
  font-size: 1.75rem;
}

.site-title a {
  color: #0B1F3B;
  font-weight: 800;
}

.site-title a:hover {
  color: #F97316;
}

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

.main-navigation a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #F97316;
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0B1F3B;
}

/* ================================
   Hero Section (Homepage)
   ================================ */

.hero-section {
  background: linear-gradient(135deg, #0B1F3B 0%, #1a3a5c 100%);
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #e5e7eb;
}

.cta-button {
  display: inline-block;
  background-color: #F97316;
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #ea580c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

/* ================================
   Services Section
   ================================ */

.services-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: #6B7280;
  max-width: 700px;
  margin: 0 auto;
}

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

.service-card {
  background-color: #F8FAFC;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #F97316;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: #F97316;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* ================================
   Lead Form Section
   ================================ */

.lead-form-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0B1F3B 0%, #1a3a5c 100%);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #0B1F3B;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #111827;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #F97316;
}

.form-submit {
  width: 100%;
  background-color: #F97316;
  color: #ffffff;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: #d1fae5;
  color: #065f46;
  display: block;
}

.form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  display: block;
}

/* ================================
   Testimonials Section
   ================================ */

.testimonials-section {
  padding: 5rem 0;
  background-color: #F8FAFC;
}

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

.testimonial-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-style: italic;
  color: #6B7280;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: #0B1F3B;
}

.testimonial-company {
  font-size: 0.875rem;
  color: #6B7280;
}

/* ================================
   Content Area (Posts & Pages)
   ================================ */

.content-wrapper {
  padding: 3rem 0;
}

.content-area {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.entry-meta {
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.entry-meta span {
  margin-right: 1rem;
}

.featured-image {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
}

.entry-content {
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* ================================
   Post Navigation
   ================================ */

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
  gap: 2rem;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

.post-navigation a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #F8FAFC;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.post-navigation a:hover {
  background-color: #F97316;
  color: #ffffff;
  border-color: #F97316;
}

/* ================================
   Sidebar
   ================================ */

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.sidebar {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #F97316;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar a {
  display: block;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: #F97316;
}

/* ================================
   Category Archive
   ================================ */

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 0;
  background-color: #ffffff;
  border-radius: 8px;
}

.archive-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.archive-description {
  color: #6B7280;
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.post-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.post-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #e5e7eb;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: #0B1F3B;
}

.post-card-excerpt {
  color: #6B7280;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  color: #F97316;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  gap: 0.75rem;
}

/* ================================
   Footer
   ================================ */

.site-footer {
  background-color: #0B1F3B;
  color: #e5e7eb;
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: #e5e7eb;
  line-height: 1.8;
}

.footer-section a:hover {
  color: #F97316;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #9ca3af;
}

/* ================================
   Responsive Design
   ================================ */

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

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    display: block;
    padding: 1rem 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .post-navigation {
    flex-direction: column;
  }

  .nav-next {
    text-align: left;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .form-container {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

  .form-container {
    padding: 1.5rem;
  }
}

/* ================================
   Utility Classes
   ================================ */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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