/*
Theme Name: Dust & Pest Solutions
Theme URI: https://dustnpest.com
Description: Custom WordPress theme matching the main site design for Dust & Pest Solutions
Version: 1.0.0
Author: Dust & Pest Solutions
Author URI: https://dustnpest.com
Tags: blog, cleaning, pest-control, business
Text Domain: dustnpest
*/

/* Root Variables - Matching your design system */
:root {
  /* Base Colors */
  --pure-white: #FFFFFF;
  --deep-navy: hsl(215, 25%, 20%);
  --soft-gray: hsl(210, 10%, 96%);
  --warm-gray: hsl(210, 5%, 45%);
  --light-blue: hsl(200, 100%, 95%);
  
  /* Primary Colors */
  --primary: hsl(210, 70%, 45%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-light: hsl(210, 70%, 55%);
  
  /* Secondary Colors */
  --secondary: hsl(150, 60%, 45%);
  --secondary-light: hsl(150, 60%, 55%);
  --secondary-foreground: hsl(0, 0%, 100%);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(210, 70%, 45%) 0%, hsl(210, 70%, 35%) 100%);
  --gradient-button: linear-gradient(135deg, hsl(210, 70%, 45%) 0%, hsl(210, 70%, 55%) 100%);
  
  /* Shadows */
  --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Text */
  --foreground: hsl(215, 25%, 20%);
  --background: hsl(0, 0%, 100%);
  
  /* Border */
  --border: hsl(210, 10%, 90%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
}

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

/* Header Navigation Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(33, 96, 158, 0.1);
  box-shadow: var(--shadow-medium);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0.5rem 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

.logo-inner {
  display: flex;
  align-items: center;
  background: var(--gradient-button);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.site-logo:hover .logo-inner {
  box-shadow: var(--shadow-large);
}

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

.logo-text .highlight {
  color: var(--secondary-light);
}

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

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--deep-navy);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.phone-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.phone-button:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.phone-icon {
  width: 16px;
  height: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Main Content Area */
.main-content {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
  padding: 4rem 0;
}

/* Blog Styles */
.blog-posts {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.blog-post {
  background: var(--pure-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.blog-post:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
}

.post-thumbnail img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.post-content {
  padding: 2rem;
}

.post-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1rem;
}

.post-title a {
  color: var(--deep-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--primary);
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: var(--warm-gray);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.post-excerpt {
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-button);
  color: var(--primary-foreground);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-2px);
}

/* Single Post Styles */
.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--pure-white);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: var(--shadow-medium);
}

.single-post-content h1 {
  font-size: 2.5rem;
  color: var(--deep-navy);
  margin-bottom: 1.5rem;
}

.single-post-content h2 {
  font-size: 2rem;
  color: var(--deep-navy);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.single-post-content h3 {
  font-size: 1.5rem;
  color: var(--deep-navy);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.single-post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--warm-gray);
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, var(--deep-navy) 0%, hsl(215, 25%, 15%) 100%);
  color: var(--pure-white);
  padding: 4rem 0 0;
}

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

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--pure-white);
}

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

.footer-section ul li {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-light);
}

/* Company Info Section */
.company-info {
  grid-column: span 1;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--secondary-light);
  flex-shrink: 0;
}

.trust-badge span {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--pure-white);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 96, 158, 0.3);
}

.social-button svg {
  width: 20px;
  height: 20px;
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--secondary-light);
}

.contact-item a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.office-hours {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Emergency Contact Box */
.emergency-box {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: center;
}

.emergency-header {
  font-size: 1rem;
  font-weight: 700;
  color: #fecaca;
  margin-bottom: 0.875rem;
}

.emergency-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.emergency-button:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  color: white;
}

.emergency-button svg {
  width: 20px;
  height: 20px;
  animation: ring 2s ease-in-out infinite;
}

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

.emergency-note {
  font-size: 0.8125rem;
  color: rgba(254, 202, 202, 0.9);
  margin-top: 0.625rem;
  font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.9375rem;
}

.footer-badges {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.footer-badge svg {
  width: 16px;
  height: 16px;
  color: var(--secondary-light);
}

/* Social Sharing */
.social-sharing {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--soft-gray);
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
}

.social-sharing h3 {
  font-size: 1.125rem;
  color: var(--deep-navy);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.share-button.facebook {
  background: #1877f2;
}

.share-button.facebook:hover {
  background: #155db2;
}

.share-button.twitter {
  background: #000000;
}

.share-button.twitter:hover {
  background: #333333;
}

.share-button.linkedin {
  background: #0a66c2;
}

.share-button.linkedin:hover {
  background: #084d92;
}

.share-button.whatsapp {
  background: #25d366;
}

.share-button.whatsapp:hover {
  background: #1da851;
}

.share-button.pinterest {
  background: #e60023;
}

.share-button.pinterest:hover {
  background: #ad081b;
}

.share-button.email {
  background: #6b7280;
}

.share-button.email:hover {
  background: #4b5563;
}

.share-button.copy-link {
  background: var(--primary);
}

.share-button.copy-link:hover {
  background: var(--primary-light);
}

.share-button.copy-link.copied {
  background: var(--secondary);
}

/* Post Navigation */
.post-navigation {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.post-navigation a {
  display: block;
  padding: 1.5rem;
  background: var(--soft-gray);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.post-navigation a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.post-navigation .nav-previous a {
  text-align: left;
}

.post-navigation .nav-next a {
  text-align: right;
}

.post-navigation span {
  display: block;
  font-size: 0.875rem;
  color: var(--warm-gray);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-navigation .post-title {
  color: var(--deep-navy);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Comments Section */
.comments-area {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.comments-title {
  font-size: 1.75rem;
  color: var(--deep-navy);
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 2rem;
}

.comment-body {
  background: var(--soft-gray);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
}

.comment-meta {
  margin-bottom: 1rem;
}

.comment-author {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.comment-author img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.comment-author-details {
  flex: 1;
}

.comment-author .fn {
  font-size: 1rem;
  color: var(--deep-navy);
  font-weight: 700;
}

.comment-author a {
  text-decoration: none;
  color: var(--deep-navy);
}

.comment-metadata {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--warm-gray);
}

.comment-metadata time {
  color: var(--warm-gray);
}

.reply-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.reply-link a:hover {
  color: var(--primary-light);
}

.comment-content {
  color: var(--warm-gray);
  line-height: 1.7;
}

.comment-content p {
  margin-bottom: 1rem;
}

.comment-awaiting-moderation {
  display: block;
  padding: 0.75rem;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 0.375rem;
  color: #92400e;
  margin-bottom: 1rem;
}

.comment-list .children {
  list-style: none;
  margin: 1rem 0 0 2rem;
  padding: 0;
}

.comment-navigation {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}

.comment-navigation a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.comment-navigation a:hover {
  color: var(--primary-light);
}

.no-comments {
  color: var(--warm-gray);
  font-style: italic;
  padding: 2rem;
  text-align: center;
  background: var(--soft-gray);
  border-radius: 0.75rem;
}

/* Comment Form */
.comment-respond {
  margin-top: 3rem;
}

.comment-reply-title {
  font-size: 1.5rem;
  color: var(--deep-navy);
  margin-bottom: 1.5rem;
}

.comment-form {
  background: var(--soft-gray);
  padding: 2rem;
  border-radius: 0.75rem;
}

.comment-notes,
.logged-in-as {
  font-size: 0.875rem;
  color: var(--warm-gray);
  margin-bottom: 1rem;
}

.comment-form p {
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: var(--pure-white);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.submit-button,
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--gradient-button);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover,
.comment-form .submit:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-2px);
}

/* WordPress Admin Bar Compatibility */
.admin-bar .site-header {
    top: 32px;
}

.admin-bar .main-content {
    margin-top: 104px; /* 72px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px; /* Mobile admin bar is 46px */
    }
    
    .admin-bar .main-content {
        margin-top: 118px; /* 72px + 46px */
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .main-nav ul {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .phone-button {
    display: none;
  }
  
  .site-header .container {
    height: auto;
    padding: 1rem;
  }
  
  .logo-text {
    font-size: 1.125rem;
  }
  
  .single-post-content {
    padding: 2rem 1.5rem;
  }
  
  .single-post-content h1 {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
