:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #ecfeff;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --success: #10b981;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

/* --- HEADER --- */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.nav a:hover { color: var(--primary); }

.header-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-cta:hover { background: var(--primary-dark); color: #fff !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.75rem; }
  .nav.active { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a5f 100%);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-dark); color: var(--bg-dark); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { border-color: #fff; color: #fff; }

@media (max-width: 768px) {
  .hero { padding: 2.5rem 1rem; }
  .hero h1 { font-size: 1.75rem; }
}

/* --- SECTIONS --- */
.section { padding: 4rem 1rem; }
.section-light { background: var(--bg-light); }
.container { max-width: var(--max-width); margin: 0 auto; }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CARDS GRID --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }

.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* --- TRUST BADGES --- */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1rem;
  background: var(--primary-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.trust-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* --- REVIEW BADGES --- */
.review-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 2.5rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.review-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.review-badge .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.review-badge .badge-icon.google { background: #4285f4; }
.review-badge .badge-icon.yelp { background: #d32323; }
.review-badge .badge-icon.bbb { background: #005a78; }
.review-badge .badge-icon.angi { background: #ff6153; }
.review-badge .badge-icon.homeadvisor { background: #f68b24; }

.review-badge .badge-stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: -1px;
}

.review-badge .badge-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.review-badge .badge-platform {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

@media (max-width: 600px) {
  .review-badges { gap: 0.75rem; padding: 1.5rem 0.75rem; }
  .review-badge { padding: 0.5rem 0.875rem; font-size: 0.85rem; }
}

/* --- PRICING TABLE --- */
.pricing-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.pricing-table th { background: var(--bg-dark); color: #fff; padding: 0.875rem 1rem; text-align: left; font-weight: 600; }
.pricing-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); }
.pricing-table tr:hover { background: var(--bg-light); }
.pricing-table .price { font-weight: 600; color: var(--primary); white-space: nowrap; }

@media (max-width: 600px) {
  .pricing-table { font-size: 0.9rem; }
  .pricing-table th, .pricing-table td { padding: 0.625rem 0.5rem; }
}

/* --- FAQ --- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.faq-item p { color: var(--text-light); line-height: 1.7; }

/* --- TESTIMONIALS --- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.testimonial .stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial p { font-style: italic; color: var(--text-light); margin-bottom: 0.75rem; }
.testimonial .author { font-weight: 600; font-size: 0.9rem; }

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.cta-banner h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; }
.cta-banner .btn-primary { background: var(--accent); color: var(--bg-dark); }

/* --- CONTACT FORM --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 600px; }
.form-grid .full-width { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

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

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

/* --- FOOTER --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* --- SERVICE AREA --- */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
}
.area-list li {
  padding: 0.5rem 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* --- BLOG --- */
.blog-post { max-width: 800px; margin: 0 auto; }
.blog-post h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.blog-meta { color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; }
.blog-post h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.blog-post h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.blog-post p { margin-bottom: 1rem; }
.blog-post ul, .blog-post ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.blog-post li { margin-bottom: 0.5rem; }

/* --- CARD IMAGES --- */
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1.75rem -1.75rem 1rem -1.75rem;
  width: calc(100% + 3.5rem);
}

/* --- HERO WITH BACKGROUND IMAGE --- */
.hero-img {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(30,58,95,0.8) 100%);
}
.hero-img > * { position: relative; z-index: 1; }

/* --- RESPONSIVE VISIBILITY --- */
/* Mobile-first: hide desktop-only cards by default */
.desktop-only { display: none; }

@media (min-width: 769px) {
  .desktop-only { display: block; }
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.phone-display { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
