/*
Theme Name: PrimeAir Duct Cleaning
Theme URI: https://primeairductcleaning.com
Author: PrimeAir Duct Cleaning
Author URI: https://primeairductcleaning.com
Description: Custom WordPress theme for PrimeAir Duct Cleaning - Professional air duct cleaning services in Richmond, VA.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primeair
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0058a6;
  --primary-dark: #003d73;
  --primary-light: #e8f4fd;
  --accent: #00a651;
  --accent-dark: #008c44;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }

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

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-top a {
  color: var(--white);
}

.header-top a:hover {
  opacity: 0.9;
}

.header-top .phone-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.header-top .address-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-main {
  padding: 12px 0;
}

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

.site-logo img {
  height: 70px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--primary);
  background: var(--primary-light);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,166,81,0.3);
}

.header-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(15deg); }
  20%, 40% { transform: rotate(-15deg); }
  50% { transform: rotate(0); }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #7dd3fc;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,166,81,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-blue {
  background: var(--primary);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,88,166,0.3);
}

.hero-image {
  flex: 0 0 420px;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--gray-50);
  padding: 30px 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--gray-700);
}

.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  flex-shrink: 0;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
  text-align: center;
}

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

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.service-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.service-card:hover .learn-more {
  gap: 10px;
}

/* ===== WHY CHOOSE US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.why-num {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 15px;
  opacity: 0.85;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 14px;
}

.testimonial-card blockquote {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.author-info strong {
  display: block;
  font-size: 15px;
}

.author-info span {
  font-size: 13px;
  color: var(--gray-500);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ABOUT PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 18px;
  font-size: 14px;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--white);
  opacity: 0.7;
}

.breadcrumb a:hover {
  opacity: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.about-text p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.about-feature .check {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.about-image .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.experience-badge strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
}

.experience-badge span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SERVICES PAGE ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--gray-900);
}

.service-detail-content p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-detail-content ul {
  margin-top: 16px;
}

.service-detail-content ul li {
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
  color: var(--gray-700);
  font-size: 15px;
}

.service-detail-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-detail-image img {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.service-detail-image .placeholder-img {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-light), var(--gray-100));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 15px;
  color: var(--gray-500);
}

.contact-info-card a {
  color: var(--primary);
  font-weight: 600;
}

.map-container {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.map-container iframe {
  width: 100%;
  height: 280px;
  border: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 60px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-500);
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--gray-500);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

/* ===== FLOATING CALL BUTTON (Mobile) ===== */
.floating-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,166,81,0.4);
  z-index: 999;
  transition: all var(--transition);
  animation: pulse-call 2s infinite;
}

.floating-call:hover {
  transform: scale(1.1);
  background: var(--accent-dark);
}

.floating-call svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
}

@keyframes pulse-call {
  0% { box-shadow: 0 0 0 0 rgba(0,166,81,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(0,166,81,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,166,81,0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 36px; }
  .hero p { margin: 0 auto 28px; }
  .hero-buttons { justify-content: center; }
  .hero-image { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right var(--transition);
    z-index: 1001;
    align-items: flex-start;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
    font-size: 16px;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item h3 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 30px; }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-section h2 { font-size: 26px; }
}

/* ===== WORDPRESS CORE ===== */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: 13px; color: var(--gray-500); }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
