/*
Theme Name: Pool Cleaner Pro
Theme URI: https://wp-flashtest.tawsila.shop
Author: SerpZenith
Author URI: https://serpzenith.com
Description: Professional pool cleaning authority site theme for Dallas, TX
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: pool-cleaner-pro
*/

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

:root {
  --primary:    #3498DB;
  --secondary:  #1ABC9C;
  --accent:     #F39C12;
  --bg:         #FFFFFF;
  --text:       #1F2937;
  --muted:      #6B7280;
  --light:      #F3F4F6;
  --border:     #E5E7EB;
  --radius:     8px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--text); color: #fff; }
.section-primary { background: var(--primary); color: #fff; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: #2980b9;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52,152,219,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--light);
  color: var(--primary);
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #e67e22;
  color: #fff;
  text-decoration: none;
}

.btn-lg { padding: 18px 40px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ── HEADER ──────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  line-height: 1.1;
}

.logo-text span { color: var(--primary); }

.logo-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  display: block;
}

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

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-link:hover { color: var(--primary); text-decoration: none; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: block; }
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #e8f4fc 0%, #ffffff 60%, #e8faf5 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,152,219,0.08) 0%, transparent 70%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52,152,219,0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 span { color: var(--primary); }

.hero-desc {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.trust-check { color: var(--secondary); font-size: 16px; }

.hero-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.hero-card-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Raleway', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { display: none; }
}

/* ── STATS BAR ───────────────────────────────────── */
.stats-bar {
  background: var(--primary);
  padding: 32px 0;
}

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

.stat-item { color: #fff; }
.stat-num {
  font-family: 'Raleway', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.stat-label { font-size: 13px; opacity: 0.85; margin-top: 4px; }

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── SERVICES GRID ───────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.service-card:hover::before { opacity: 1; }

.service-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.service-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── SECTION HEADERS ─────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-header p { color: var(--muted); font-size: 17px; }

/* ── WHY CHOOSE US ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  text-align: center;
}

.feature-icon {
  font-size: 44px;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* ── LOCATION AREAS ──────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.area-pill {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 12px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.area-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ── CTA SECTION ─────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #2471a3 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }

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

/* ── REVIEWS ─────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.review-stars { color: var(--accent); font-size: 18px; margin-bottom: 12px; }
.review-text { color: var(--muted); font-size: 15px; margin-bottom: 16px; line-height: 1.6; }
.review-author { font-weight: 700; font-size: 14px; }
.review-location { font-size: 13px; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 48px auto 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 20px 0;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after { content: '+'; font-size: 22px; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── BREADCRUMB ──────────────────────────────────── */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #e8f4fc 0%, #ffffff 100%);
  padding: 64px 0 56px;
}

.page-hero h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 16px; }
.page-hero .lead { font-size: 18px; color: var(--muted); max-width: 600px; }

/* ── CHECKLIST ───────────────────────────────────── */
.check-list { margin: 20px 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.check-list li:last-child { border-bottom: none; }
.check-list .check { color: var(--secondary); font-size: 18px; flex-shrink: 0; }

/* ── CONTACT FORM ────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s;
  background: #fff;
}

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

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

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

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(52,152,219,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-info-text h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info-text p { color: var(--muted); font-size: 14px; }

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

/* ── FOOTER ──────────────────────────────────────── */
#site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 16px 0 20px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

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

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── ABOUT PAGE ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card p { color: var(--muted); font-size: 14px; }

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

/* ── 404 ─────────────────────────────────────────── */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.not-found-num {
  font-family: 'Raleway', sans-serif;
  font-size: 140px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -20px;
}

.not-found h1 { font-size: 36px; margin-bottom: 16px; }
.not-found p { color: var(--muted); margin-bottom: 32px; }

/* ── UTILITY ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: #fff; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.gap-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── INNER PAGE TWO-COL ──────────────────────────── */
.page-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-card.cta-card {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-align: center;
}

.sidebar-card.cta-card h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.sidebar-card.cta-card p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 20px; }

.sidebar-card h4 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}
.sidebar-links a:hover { background: var(--light); color: var(--primary); }

@media (max-width: 900px) {
  .page-content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ── SERVICE AREAS PAGE ──────────────────────────── */
.areas-map-placeholder {
  background: linear-gradient(135deg, #e8f4fc, #e8faf5);
  border-radius: 12px;
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 48px;
  border: 2px solid var(--border);
}

.areas-table {
  width: 100%;
  border-collapse: collapse;
}

.areas-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
}

.areas-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.areas-table tr:hover td { background: var(--light); }
.areas-table a { font-weight: 600; }
