/* ================================================
   JPS — Northstar Structure, Dodgers Blue Colorway
   Anderson Plumbing layout, JPS branding
   ================================================ */

:root {
  /* Dodgers Blue palette */
  --navy: #003D68;
  --navy-dark: #002944;
  --dodger-blue: #005A9C;
  --dodger-blue-light: #0072C6;
  --red: #EF3E42;
  --red-dark: #CC292D;
  --white: #FFFFFF;
  --off-white: #F8F8F8;
  --gray-100: #F3F3F3;
  --gray-200: #E8E8E8;
  --gray-300: #DDDDDD;
  --gray-600: #525252;
  --gray-700: #343D4D;
  --gradient-primary: linear-gradient(135deg, var(--navy) 0%, var(--dodger-blue) 100%);
  --gradient-accent: linear-gradient(237deg, #9C0857 0%, var(--red) 100%);
  --gradient-hero: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, #004E87 100%);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-condensed: 'Open Sans Condensed', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-600); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--dodger-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }
ul { list-style: none; }

/* UTILITY */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.25s ease; text-decoration: none;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-primary { background: var(--dodger-blue); color: var(--white); border-color: var(--dodger-blue); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.btn-schedule { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-schedule:hover { background: var(--off-white); }

.btn-phone { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-phone:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn-outline { background: transparent; color: var(--dodger-blue); border-color: var(--dodger-blue); }
.btn-outline:hover { background: var(--dodger-blue); color: var(--white); }

.btn-ai { background: linear-gradient(135deg, #6B21A8 0%, #9333EA 100%); color: var(--white); border-color: #9333EA; }
.btn-ai:hover { background: linear-gradient(135deg, #5B1FA0 0%, #7E22CE 100%); color: var(--white); }

/* TOP BAR */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-tag a { color: var(--red); font-weight: 700; }
.top-nav { display: flex; gap: 1.25rem; }
.top-nav a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.top-nav a:hover { color: var(--white); }

/* HEADER */
.site-header {
  background: var(--navy);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.logo { display: flex; align-items: baseline; gap: 0.5rem; color: var(--white); }
.logo-jps {
  font-family: var(--font-heading); font-weight: 900; font-size: 2.2rem;
  letter-spacing: -1px; line-height: 1;
}
.logo-sub {
  font-family: var(--font-condensed); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 2px; opacity: 0.8;
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.emergency-badge {
  display: flex; flex-direction: column; align-items: center;
  color: var(--white); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 1px; line-height: 1.3;
}

/* MAIN NAV */
.main-nav {
  background: var(--dodger-blue);
  padding: 0;
  overflow-x: auto;
  position: relative;
}
.main-nav .container {
  display: flex; gap: 0;
}
.main-nav a {
  flex: 1; text-align: center;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.main-nav a:last-child { border-right: none; }
.main-nav a:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* HERO */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(0,90,156,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; gap: 2rem; }
.hero-since {
  display: inline-block;
  font-family: var(--font-condensed); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-accent { color: var(--red); }
.hero p { max-width: 580px; font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-rating { text-align: center; flex-shrink: 0; }
.rating-badge {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
}
.rating-num { font-family: var(--font-heading); font-weight: 900; font-size: 3rem; color: var(--white); }
.rating-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.rating-source { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }

/* SERVICE CATEGORIES BAR */
.service-categories {
  background: var(--off-white);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--gray-200);
}
.categories-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.25rem 0.75rem;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); transition: all 0.25s;
  text-decoration: none; color: var(--gray-600);
}
.cat-card:hover { border-color: var(--dodger-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--dodger-blue); }
.cat-card h3 { font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem; color: var(--navy); }
.cat-card p { font-size: 0.75rem; color: var(--gray-600); margin-top: 0.25rem; }
.cat-accent { border-color: #9333EA; background: linear-gradient(135deg, rgba(107,33,168,0.05), rgba(147,51,234,0.08)); }
.cat-accent h3 { color: #7E22CE; }

/* SPECIALS */
.specials {
  background: var(--gradient-accent);
  padding: var(--space-xl) 0;
  color: var(--white);
}
.specials h2 {
  font-family: var(--font-heading); font-weight: 900;
  font-size: 2rem; margin-bottom: var(--space-lg);
  text-align: center;
}
.offers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-bottom: var(--space-md);
}
.offer-card {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md); padding: 2rem 1.5rem;
  text-align: center; transition: transform 0.2s;
}
.offer-card:hover { transform: translateY(-3px); }
.offer-price {
  display: block; font-family: var(--font-heading); font-weight: 900;
  font-size: 2.8rem; color: var(--white); margin-bottom: 0.75rem;
}
.offer-detail strong { display: block; font-size: 1.1rem; margin-bottom: 0.5rem; }
.offer-fine { font-size: 0.8rem; color: rgba(255,255,255,0.75); display: block; margin-bottom: 1rem; line-height: 1.4; }
.offer-card .btn-schedule { background: var(--white); color: var(--red); border-color: var(--white); margin-top: 0.5rem; }
.offer-card .btn-schedule:hover { background: var(--off-white); }
.offer-card .btn-outline { background: transparent; color: var(--white); border-color: var(--white); margin-top: 0.5rem; }
.offer-card .btn-outline:hover { background: var(--white); color: var(--red); }
.view-all { display: block; text-align: center; color: rgba(255,255,255,0.9); font-weight: 600; margin-top: 1rem; }
.view-all:hover { color: var(--white); }

/* JPS-MP MEMBERSHIP */
.membership {
  background: var(--off-white);
  padding: var(--space-xl) 0;
  text-align: center;
}
.section-tag {
  display: inline-block; font-family: var(--font-heading); font-weight: 900;
  font-size: 1rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--dodger-blue); margin-bottom: 0.75rem;
  padding: 0.35rem 1rem; border: 2px solid var(--dodger-blue); border-radius: 4px;
}
.membership h2 {
  font-family: var(--font-heading); font-weight: 900;
  font-size: 2rem; color: var(--navy); margin-bottom: 1rem;
}
.membership > .container > p { max-width: 700px; margin: 0 auto var(--space-lg); font-size: 1.05rem; }
.member-benefits {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
  margin-bottom: var(--space-lg);
}
.benefit {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem;
  padding: 1.5rem 1rem;
}
.benefit svg { color: var(--dodger-blue); }
.benefit strong { font-family: var(--font-heading); color: var(--navy); font-size: 0.95rem; }
.benefit span { font-size: 0.8rem; color: var(--gray-600); }

/* EXPERIENCE / STATS */
.experience {
  padding: var(--space-xl) 0;
  background: var(--white);
  text-align: center;
}
.experience h2 {
  font-family: var(--font-heading); font-weight: 900; font-size: 2rem; color: var(--navy);
}
.section-sub { display: block; font-size: 1.05rem; color: var(--gray-600); margin: 0.5rem 0 var(--space-md); }
.experience > .container > p { max-width: 700px; margin: 0 auto var(--space-lg); line-height: 1.7; }
.experience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.exp-card {
  padding: 2rem 1rem; background: var(--off-white);
  border-radius: var(--radius-md); border: 1px solid var(--gray-200);
}
.exp-num {
  display: block; font-family: var(--font-heading); font-weight: 900;
  font-size: 2.5rem; color: var(--dodger-blue);
}
.exp-label { font-size: 0.85rem; color: var(--gray-600); margin-top: 0.5rem; display: block; }

/* ABOUT */
.about {
  padding: var(--space-xl) 0;
  background: var(--gradient-primary);
  color: var(--white);
}
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.about-content h2 { font-family: var(--font-heading); font-weight: 900; font-size: 2rem; margin-bottom: 0.5rem; }
.about-content h3 { font-weight: 700; font-size: 1.15rem; margin-bottom: 1.5rem; color: rgba(255,255,255,0.9); }
.about-content p { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.ai-cta-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  text-align: center; color: var(--white); text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.ai-cta-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.15); color: var(--white); }
.ai-cta-icon { opacity: 0.9; }
.ai-cta-card strong { font-family: var(--font-heading); font-size: 1.2rem; }
.ai-cta-card > span { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.ai-cta-link { font-family: var(--font-heading); font-weight: 700; color: #C084FC; margin-top: 0.5rem; }

/* SERVICES */
.services {
  padding: var(--space-xl) 0;
  background: var(--white);
}
.services h2 {
  font-family: var(--font-heading); font-weight: 900; font-size: 2rem;
  color: var(--navy); text-align: center; margin-bottom: var(--space-lg);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
  padding: 2rem; background: var(--off-white);
  border-radius: var(--radius-md); border: 1px solid var(--gray-200);
  transition: all 0.25s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--dodger-blue); }
.service-card-accent { border-color: #9333EA; background: linear-gradient(rgba(107,33,168,0.02), rgba(147,51,234,0.04)); }
.service-icon { color: var(--dodger-blue); margin-bottom: 1rem; }
.service-card-accent .service-icon { color: #9333EA; }
.service-card h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--navy); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.service-card ul { padding-left: 1rem; }
.service-card li { list-style: none; font-size: 0.85rem; padding: 0.35rem 0; position: relative; padding-left: 1.25rem; }
.service-card li::before { content: '✓'; position: absolute; left: 0; color: var(--dodger-blue); font-weight: 700; }
.service-card-accent li::before { color: #9333EA; }

/* SERVICE AREAS */
.service-areas {
  padding: var(--space-xl) 0;
  background: var(--off-white);
  text-align: center;
}
.service-areas h2 { font-family: var(--font-heading); font-weight: 900; font-size: 2rem; color: var(--navy); }
.service-areas > .container > p { max-width: 700px; margin: 1rem auto var(--space-md); line-height: 1.7; }
.areas-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
}
.areas-grid span {
  padding: 0.5rem 1.25rem; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; color: var(--navy);
}

/* REVIEWS */
.reviews {
  padding: var(--space-xl) 0;
  background: var(--white);
  text-align: center;
}
.reviews h2 { font-family: var(--font-heading); font-weight: 900; font-size: 2rem; color: var(--navy); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: var(--space-lg);
}
.review-card {
  padding: 2rem; background: var(--off-white);
  border-radius: var(--radius-md); border: 1px solid var(--gray-200);
  text-align: left;
}
.review-stars { color: #F59E0B; font-size: 1.25rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-card p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.review-author { font-size: 0.85rem; color: var(--gray-600); font-weight: 600; }

/* CONTACT */
.contact {
  padding: var(--space-xl) 0;
  background: var(--off-white);
}
.contact h2 {
  font-family: var(--font-heading); font-weight: 900; font-size: 2rem;
  color: var(--navy); text-align: center;
}
.contact > .container > p { text-align: center; margin: 0.5rem 0 var(--space-lg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item strong { display: block; font-family: var(--font-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); margin-bottom: 0.25rem; }
.contact-item a { font-size: 1.1rem; font-weight: 600; }
.contact-item span { display: block; font-size: 0.95rem; }
.emergency-note { color: var(--red); font-weight: 700; }
.contact-ai { margin-top: 1rem; }

.contact-form {
  background: var(--white); padding: 2rem;
  border-radius: var(--radius-md); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem;
  color: var(--navy); margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem;
  margin-bottom: 1rem; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--dodger-blue); box-shadow: 0 0 0 3px rgba(0,90,156,0.1);
}
.contact-form textarea { resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8rem; margin-bottom: 1.5rem; color: var(--gray-600); }
.consent input { width: auto; margin: 0; flex-shrink: 0; }
.consent a { color: var(--dodger-blue); }

.emergency-bar {
  margin-top: var(--space-lg); padding: 1.5rem;
  background: var(--gradient-accent); border-radius: var(--radius-md);
  color: var(--white); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.emergency-bar span:first-child { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; }
.emergency-bar span:nth-child(2) { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.emergency-bar .btn-phone { margin-top: 0.5rem; }

/* FOOTER */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: var(--space-lg);
}
.footer-brand .logo-jps { font-size: 1.8rem; }
.footer-brand .logo-sub { display: block; font-size: 0.65rem; letter-spacing: 2px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; margin-bottom: 0.35rem; }
.footer-links h4 {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px; color: var(--white);
  margin-bottom: 1rem;
}
.footer-links a, .footer-links span {
  display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; }

/* ===================== PREVENTIVE MAINTENANCE ===================== */
.preventive { padding: 4rem 0; background: #F0F4F8; }
.preventive h2 { text-align: center; margin-bottom: 0.5rem; }
.preventive .section-sub { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; color: #475569; }
.maint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.maint-card { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-top: 4px solid #005A9C; }
.maint-card.maint-urgent { border-top-color: #DC2626; }
.maint-card h3 { margin: 0.75rem 0 1rem; font-size: 1.25rem; color: #003D68; }
.maint-card.maint-urgent h3 { color: #DC2626; }
.maint-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #F0F4F8; border-radius: 50%; }
.maint-card.maint-urgent .maint-icon { background: #FEF2F2; }
.maint-card ul { list-style: none; padding: 0; margin: 0; }
.maint-card li { padding: 0.5rem 0; border-bottom: 1px solid #E2E8F0; font-size: 0.9rem; line-height: 1.55; color: #334155; }
.maint-card li:last-child { border-bottom: none; }
.maint-card li strong { color: #003D68; }
.maint-card.maint-urgent li strong { color: #991B1B; }
.maint-cta { text-align: center; background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.maint-cta p { max-width: 640px; margin: 0 auto 1.5rem; font-size: 1rem; color: #334155; line-height: 1.6; }
.maint-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Botwave footer column */
.footer-botwave { border-left: 3px solid #005A9C; padding-left: 1.25rem; }
.footer-bw-tag { font-size: 0.8rem; color: #94A3B8; margin: 0.25rem 0 0.75rem; }
.footer-bw-built { font-size: 0.75rem; color: #64748B; margin-top: 0.75rem; line-height: 1.4; font-style: italic; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .member-benefits { grid-template-columns: repeat(3, 1fr); }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .top-nav { display: none; }
  .header-inner { justify-content: center; text-align: center; }
  .header-actions { justify-content: center; width: 100%; }
  .main-nav .container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-nav a { white-space: nowrap; font-size: 0.75rem; padding: 0.6rem 0.75rem; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-rating { order: -1; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid { grid-template-columns: 1fr; }
  .member-benefits { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .emergency-bar { padding: 1.25rem; }
  .maint-grid { grid-template-columns: 1fr; }
  .maint-cta-actions { flex-direction: column; align-items: center; }
  .maint-cta-actions .btn { width: 100%; max-width: 320px; }
  .footer-botwave { border-left: none; padding-left: 0; border-top: 1px solid #1E293B; padding-top: 1rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .btn { font-size: 0.8rem; padding: 0.6rem 1rem; }
  .btn-block { width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .offer-price { font-size: 2.2rem; }
  .rating-badge { padding: 1rem 1.5rem; }
  .rating-num { font-size: 2.2rem; }
  .section-tag { font-size: 0.8rem; letter-spacing: 2px; padding: 0.25rem 0.75rem; }
  .top-bar { font-size: 0.75rem; padding: 0.35rem 0; }
  .top-tag { text-align: center; width: 100%; }
}

/* === MOBILE HARDENING === */
/* Prevent iOS zoom on input focus (font-size must be >= 16px) */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }
}
/* Safe area for notched phones (iPhone X+) */
@supports (padding: env(safe-area-inset-bottom)) {
  .chat-with-us {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .site-footer {
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
  }
}
/* Minimum touch target 44x44 (WCAG) */
.main-nav a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.btn { min-height: 44px; }
.cat-card { min-height: 90px; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
/* Horizontal scroll indicators for service categories on mobile */
@media (max-width: 768px) {
  .main-nav .container {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .main-nav .container::-webkit-scrollbar { display: none; }
  .main-nav::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, var(--dodger-blue), transparent);
    pointer-events: none;
  }
}

/* === FLOATING CHAT WITH US BUTTON === */
.chat-with-us {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #003D68 0%, #005A9C 100%);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,61,104,0.4), 0 0 0 0 rgba(0,90,156,0.3);
  transition: all 0.3s ease;
}
.chat-with-us:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,61,104,0.5);
  color: #fff;
}
.chat-with-us svg { flex-shrink: 0; }

/* Pulse animation — the green dot */
.chat-pulse {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
}
.chat-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #22C55E;
  animation: chat-ping 2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes chat-ping {
  0% { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

.chat-label { letter-spacing: 0.5px; }

@media (max-width: 768px) {
  .chat-with-us {
    bottom: 16px;
    right: 16px;
    padding: 12px 18px;
    font-size: 0.8rem;
  }
  .chat-label { display: none; }
  .chat-with-us {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .chat-pulse { top: 6px; left: 6px; }
}