/*!
Theme Name: Public Sector Cybersecurity
Theme URI: https://publicsectorcybersecurity.com
Author: Public Sector Cybersecurity
Author URI: https://publicsectorcybersecurity.com
Description: Professional cybersecurity newsletter lead funnel theme for libraries, municipalities, and schools
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: public-sector-cybersecurity
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #2C3E50;
  background-color: #FFFFFF;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: #1B5E20;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2E7D32;
}

button, .button {
  font-family: 'Inter', sans-serif;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

button:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.2);
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 5rem 0;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

/* ========================================
   NAVIGATION
   ======================================== */

.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  min-height: auto;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1B5E20;
  flex-wrap: wrap;
  min-width: 0;
}

.site-branding div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.site-title a {
  color: #1B5E20;
  text-decoration: none;
}

.site-description {
  margin: 0;
  font-size: 0.75rem;
  color: #666;
  font-weight: 400;
}

.site-branding img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .site-nav ul {
    width: auto;
    margin-top: 0;
  }
}

.site-nav a {
  font-weight: 500;
  color: #2C3E50;
}

.site-nav a:hover {
  color: #1B5E20;
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 0.75rem 1rem;
  }
  
  .site-branding {
    font-size: 1rem;
  }
  
  .site-nav ul {
    gap: 1rem;
    font-size: 0.9rem;
    margin-top: 0.75rem;
  }
}

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

.hero {
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.95) 0%, rgba(44, 62, 80, 0.90) 100%), 
              url('../images/threat-detection.webp') center/cover;
  color: #FFFFFF;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

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

.hero-content h1 {
  color: #FFFFFF;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25rem;
  color: #A5D6A7;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-benefits {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #A5D6A7;
}

.lead-form-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  margin: 0;
}

.lead-form-card h2 {
  color: #1B5E20;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
  padding: 0;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.form-group label {
  font-weight: 600;
  color: #2C3E50;
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #E0E0E0;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  display: block;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1B5E20;
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.form-submit {
  background-color: #1B5E20;
  color: #FFFFFF;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.form-submit:hover {
  background-color: #2E7D32;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

.form-privacy {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* reCAPTCHA styling */
.g-recaptcha {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .lead-form-card {
    max-width: 100%;
    padding: 1.5rem;
    margin: 0 auto;
  }
  
  .lead-form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 0.85rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 0.75rem;
  }
  
  .form-submit {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero-benefits {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-benefit {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
}

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .lead-form-card {
    max-width: 100%;
  }
}

/* ========================================
   INDUSTRIES SECTION
   ======================================== */

.industries-section {
  background-color: #F8F9FA;
}

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

.section-header h2 {
  color: #1B5E20;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

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

.industry-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #1B5E20;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.industry-card-icon {
  width: 50px;
  height: 50px;
  background: #E8F5E9;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #1B5E20;
}

.industry-card h3 {
  color: #1B5E20;
  margin-bottom: 1rem;
}

.industry-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.industry-card ul {
  list-style: none;
  padding: 0;
}

.industry-card li {
  padding: 0.5rem 0;
  color: #666;
  border-bottom: 1px solid #E0E0E0;
}

.industry-card li:last-child {
  border-bottom: none;
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.newsletter-content-section {
  background-color: #FFFFFF;
}

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

.content-card {
  text-align: center;
  padding: 2rem;
  background: #F8F9FA;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.content-card:hover {
  background: #E8F5E9;
  transform: translateY(-3px);
}

.content-card-icon {
  width: 60px;
  height: 60px;
  background: #1B5E20;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #FFFFFF;
}

.content-card h3 {
  color: #1B5E20;
  margin-bottom: 1rem;
}

.content-card p {
  color: #666;
  line-height: 1.6;
}

/* ========================================
   COMPLIANCE SECTION
   ======================================== */

.compliance-section {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  color: #FFFFFF;
}

.compliance-section h2 {
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 0.5rem;
}

.compliance-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.compliance-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  min-width: 120px;
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.compliance-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.compliance-badge-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.compliance-badge-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ========================================
   SOCIAL PROOF SECTION
   ======================================== */

.social-proof-section {
  background-color: #F8F9FA;
}

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

.testimonial-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #1B5E20;
}

.testimonial-text {
  color: #666;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: #1B5E20;
  margin-bottom: 0.25rem;
}

.testimonial-title {
  font-size: 0.9rem;
  color: #999;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  color: #FFFFFF;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #A5D6A7;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: #FFFFFF;
  color: #1B5E20;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #A5D6A7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.site-footer {
  background-color: #2C3E50;
  color: #FFFFFF;
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  color: #A5D6A7;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #CCC;
  font-size: 0.95rem;
}

.footer-section a {
  color: #A5D6A7;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

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

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visible {
  animation: slideIn 0.6s ease-out;
}

/* ========================================
   UTILITIES
   ======================================== */

.wp-block-image {
  margin: 1rem 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}
