/* ========== SHARED STYLES — Naylor Plumbing ========== */

:root {
  --accent: #0693e3;
  --accent-rgb: 6, 147, 227;
  --accent-dark: #1B2D5B;
  --accent-dark-rgb: 27, 45, 91;
  --accent-red: #E21E26;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --text-primary: #1a1a2e;
  --text-secondary: #5a6578;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(27, 45, 91, 0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--accent); color: #fff; }

html {
  font-family: 'Archivo', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: hidden;
}

body {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

/* ========== NAVBAR ========== */
#navbar {
  position: fixed;
  top: 12px;
  left: 0; right: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}
.nav-cta:hover {
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-1px);
}

/* ========== SHARED TYPOGRAPHY ========== */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--accent-dark);
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ========== PAGE HEADER (for inner pages) ========== */
.page-header {
  padding: 140px 32px 60px;
  text-align: center;
  background: var(--bg-alt);
}
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== SERVICE CARDS GRID (reusable) ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid transparent;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.15);
}
.service-card-reveal {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.service-card:hover .service-card-reveal {
  opacity: 0.12;
}
.service-card h3 {
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.service-card-bar {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 12px;
  border-radius: 2px;
}
.service-card p {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== CTA SECTION ========== */
.cta-section {
  position: relative;
  z-index: 1;
  background: var(--accent-dark);
  padding: 80px 32px;
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 32px;
}
.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}
.btn-cta:hover {
  background: #fff;
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}
.cta-phone {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  transition: color 0.3s ease;
}
.cta-phone:hover { color: #fff; }

/* ========== CONTENT SECTIONS (for landing pages) ========== */
.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 32px;
}
.content-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.content-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-section.alt {
  background: var(--bg-alt);
  max-width: 100%;
}
.content-section.alt .content-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ========== WHY CHOOSE US / TRUST GRID ========== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 32px auto 0;
}
.trust-item {
  text-align: center;
  padding: 24px;
}
.trust-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.trust-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========== TESTIMONIAL CARDS (for landing pages) ========== */
.testimonials-grid-static {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.testimonial-card-static {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
}
.testimonial-card-static .stars {
  color: #f5a623;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonial-card-static .text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-card-static .author {
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

/* ========== CITY/SERVICE AREA TAGS ========== */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 32px auto 0;
}
.area-tag {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}
.area-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
}

/* ========== FAQ SECTION ========== */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 32px;
}
.faq-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-dark);
  text-align: center;
  margin-bottom: 40px;
}
.faq-item {
  border-bottom: 1px solid var(--card-border);
  padding: 24px 0;
}
.faq-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== RELATED SERVICES ========== */
.related-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 32px auto 0;
}
.related-card {
  display: block;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.1);
}
.related-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.related-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== PROCESS STEPS (for service pages) ========== */
.process-steps {
  max-width: 700px;
  margin: 32px auto 0;
}
.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.step-num {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}
.step-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.step-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 1;
  background: var(--accent-dark);
  color: #fff;
  padding: 0;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand img {
  height: 60px;
  width: auto;
  align-self: flex-start;
}
.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}
.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ========== HAMBURGER MENU ========== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-dark);
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .nav-cta {
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 1.1rem;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .service-card { padding: 16px 10px; }
  .service-card h3 { font-size: 0.75rem; margin-bottom: 6px; line-height: 1.2; }
  .service-card-bar { width: 20px; height: 2px; margin: 0 auto 6px; }
  .service-card p { display: none; }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .trust-number { font-size: 1.8rem; }
  .trust-label { font-size: 0.75rem; }

  .testimonials-grid-static {
    grid-template-columns: 1fr;
  }

  .section-title { font-size: 1.4rem; margin-bottom: 10px; }
  .section-subtitle { font-size: 0.9rem; margin-bottom: 24px; }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding: 40px 20px 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .footer-brand img { align-self: center; height: 44px; }
  .footer-tagline { max-width: 100%; text-align: center; font-size: 0.8rem; }
  .footer-social { justify-content: center; }
  .footer-col { text-align: left; }
  .footer-col h4 { font-size: 0.85rem; margin-bottom: 12px; }
  .footer-col a, .footer-col p { font-size: 0.78rem; margin-bottom: 5px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px 20px;
  }
  .footer-copy { font-size: 0.7rem; }
  .footer-bottom-links a { font-size: 0.7rem; }

  .page-header { padding: 100px 24px 40px; }
  .page-header h1 { font-size: 1.6rem; }
  .page-header p { font-size: 0.95rem; }
  .content-section { padding: 50px 20px; }
  .content-section h2 { font-size: 1.3rem; }
  .content-section p { font-size: 0.9rem; }
  .faq-section { padding: 50px 20px; }
  .process-step { flex-direction: column; align-items: center; text-align: center; }

  .cta-section { padding: 50px 20px; }
  .btn-cta { padding: 12px 28px; font-size: 0.95rem; }
  .cta-phone { font-size: 1rem; }

  .area-tags { gap: 8px; }
  .area-tag { padding: 6px 14px; font-size: 0.78rem; }
}
