/* ABC Professional Plumbers - Main Stylesheet */
/* Design Theme: Professional Blue & Red */

:root {
  --primary: #1a3a52;
  --secondary: #f5f7fa;
  --accent: #e63946;
  --text: #2b2d42;
  --text-light: #6c757d;
  --border: #dee2e6;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--secondary);
}

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

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.header-top a {
  color: var(--white);
  text-decoration: none;
  margin-left: 20px;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--accent);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a4d6a 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--accent);
  opacity: 0.1;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero .accent-text {
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: #d62839;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

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

.btn-secondary:hover {
  background: var(--secondary);
}

/* Star Rating */
.star-rating {
  margin: 30px 0;
  text-align: center;
}

.stars {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rating-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.rating-source {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  display: block;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b7a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Section Styles */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary);
}

section .section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Reviews Section */
.reviews-section {
  background: var(--white);
  padding: 60px 0;
  text-align: center;
}

.reviews-section h2 {
  margin-top: 20px;
  margin-bottom: 30px;
}

.reviews-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin: 40px 0;
}

.step {
  text-align: center;
}

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

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.step p {
  color: var(--text-light);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-search {
  margin-bottom: 30px;
}

.faq-search input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.faq-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.faq-category {
  margin-bottom: 40px;
}

.faq-category h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--secondary);
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--accent);
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 20px 20px;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

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

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

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 20px;
}

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

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

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

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

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* Chatbot */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
  transition: var(--transition);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
}

.chatbot-window.active {
  display: flex;
}

.chatbot-header {
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.chatbot-message {
  margin-bottom: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  max-width: 80%;
}

.chatbot-message.bot {
  background: var(--secondary);
  color: var(--text);
}

.chatbot-message.user {
  background: var(--accent);
  color: var(--white);
  margin-left: auto;
}

.chatbot-input-area {
  padding: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.chatbot-input {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

.chatbot-send,
.chatbot-voice {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-send:hover,
.chatbot-voice:hover {
  background: #d62839;
}

/* PWA Promo Banner */
.pwa-promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2a2a4e 100%);
  color: var(--secondary);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.pwa-promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: var(--accent);
  opacity: 0.08;
  border-radius: 50%;
}

.pwa-promo-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.pwa-promo-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.pwa-promo-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.pwa-promo-content h3 .discount-highlight {
  color: var(--accent);
}

.pwa-promo-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

.pwa-instructions {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.pwa-instruction-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  flex: 1;
}

.pwa-instruction-item .device-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.pwa-instruction-item .device-steps {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.pwa-promo-dismiss {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.pwa-promo-dismiss:hover {
  color: rgba(255,255,255,0.8);
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.guide-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: var(--transition);
}

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

.guide-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b7a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  margin: 0 auto 20px;
}

.guide-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.guide-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-main nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .services-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .pwa-promo-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .pwa-instructions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .chatbot-window {
    width: calc(100vw - 40px);
    right: 20px;
  }
}
