/* =============================================================================
   Prestige Plumbing Services, Inc. — Main Stylesheet
   Mobile-First | Fully Responsive | Core Web Vitals Optimized
   ============================================================================= */

/* =============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================= */
:root {
  --primary:        #1a5c8a;
  --primary-dark:   #0d3a5c;
  --primary-light:  #2980b9;
  --accent:         #e8821e;
  --accent-dark:    #c0691a;
  --gold:           #f0b429;
  --dark:           #0d1b2a;
  --text:           #2c3e50;
  --text-light:     #5a6a7a;
  --bg-light:       #f4f7fa;
  --bg-white:       #ffffff;
  --border:         #dde3ea;
  --success:        #27ae60;
  --danger:         #e74c3c;
  --warning:        #f39c12;
  --shadow-sm:      0 2px 8px rgba(0,0,0,.08);
  --shadow:         0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.18);
  --radius:         8px;
  --radius-lg:      16px;
  --transition:     0.25s ease;
  --max-width:      1200px;
  --header-height:  72px;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* Skip to content (accessibility) */
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--primary);
  color: #fff; padding: .5rem 1rem; z-index: 10000;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin-bottom: 1rem; }

.text-center { text-align: center; }
.text-white  { color: #fff; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

/* =============================================================================
   LAYOUT
   ============================================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.section {
  padding: 5rem 0;
}
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.bg-light   { background: var(--bg-light); }
.bg-dark    { background: var(--dark); }
.bg-primary { background: var(--primary); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,130,30,.4);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-secondary:hover {
  background: #fff;
  color: var(--primary);
}
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }

/* =============================================================================
   EMERGENCY BANNER (top of every page)
   ============================================================================= */
.emergency-bar {
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
}
.emergency-bar a { color: #fff; text-decoration: underline; }
.emergency-bar .pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-right: .5rem;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}

/* =============================================================================
   HEADER & NAVIGATION
   ============================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.site-logo img {
  height: 70px;
  width: auto;
}
.site-logo .logo-text {
  display: none;
}
.main-nav {
  display: none;
}
@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
  }
}
.main-nav a {
  padding: .5rem .875rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--bg-light);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: .5rem .875rem;
  font-size: .875rem;
  border-radius: 4px;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  display: none;
}
@media (min-width: 640px) {
  .header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: .75rem;
    color: var(--text-light);
    font-weight: 600;
  }
  .header-phone a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
  }
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 992px) { .hamburger { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 999;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  flex-direction: column;
  gap: .5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: .875rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu .mobile-cta {
  margin-top: 1.5rem;
}
.mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: #fff;
  font-size: 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/8488035/pexels-photo-8488035.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: .28;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.hero h1 span { color: var(--gold); }
.hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.125rem;
  max-width: 550px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.9);
  font-size: .875rem;
  font-weight: 600;
}
.trust-badge svg { flex-shrink: 0; }

/* Trust bar below hero */
.trust-bar {
  background: var(--primary);
  padding: 1.25rem 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}

/* =============================================================================
   SERVICES SECTION
   ============================================================================= */
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  color: var(--text);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--text);
}
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body {
  padding: 1.5rem;
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}
.service-card h3 { margin-bottom: .5rem; font-size: 1.125rem; }
.service-card p  { color: var(--text-light); font-size: .9rem; margin-bottom: 0; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .875rem;
  margin-top: 1rem;
}

/* =============================================================================
   STATS / NUMBERS
   ============================================================================= */
.stats-section {
  background: var(--primary);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  margin-top: .35rem;
  display: block;
}

/* =============================================================================
   WHY CHOOSE US
   ============================================================================= */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.feature-item h4 { margin-bottom: .25rem; }
.feature-item p  { color: var(--text-light); font-size: .9rem; margin: 0; }

/* =============================================================================
   REVIEWS / TESTIMONIALS
   ============================================================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.review-stars {
  display: flex;
  gap: .2rem;
  margin-bottom: .875rem;
  color: var(--gold);
  font-size: 1.1rem;
}
.review-text {
  color: var(--text);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.review-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: .9rem; }
.review-date { font-size: .78rem; color: var(--text-light); }
.google-badge {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .78rem;
  color: var(--text-light);
  margin-top: .5rem;
}

/* Rating summary */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}
.rating-big {
  font-size: 5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.rating-stars-lg {
  color: var(--gold);
  font-size: 1.75rem;
  display: flex;
  gap: .1rem;
}
.rating-count { color: var(--text-light); font-size: .9rem; }

/* =============================================================================
   PORTFOLIO / GALLERY
   ============================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  text-align: center;
  padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { font-size: .95rem; margin-bottom: .25rem; }
.gallery-overlay p  { font-size: .8rem; opacity: .85; margin: 0; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  background: rgba(0,0,0,.5);
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .9rem;
  max-width: 90vw;
}

/* =============================================================================
   BEFORE / AFTER SLIDER
   ============================================================================= */
.before-after-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: col-resize;
  user-select: none;
  aspect-ratio: 16/9;
}
.before-after-before,
.before-after-after {
  position: absolute;
  inset: 0;
}
.before-after-before img,
.before-after-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.before-after-after {
  clip-path: inset(0 50% 0 0);
}
.before-after-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  cursor: col-resize;
  z-index: 10;
}
.before-after-handle::before,
.before-after-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}
.before-after-handle::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231a5c8a' viewBox='0 0 24 24'%3E%3Cpath d='M8 5l-7 7 7 7M16 5l7 7-7 7'/%3E%3C/svg%3E") center/20px no-repeat, #fff;
}
.ba-label {
  position: absolute;
  top: 1rem;
  padding: .3rem .875rem;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
}
.ba-label.before { left: 1rem; }
.ba-label.after  { right: 1rem; }

/* =============================================================================
   SERVICE AREA MAP
   ============================================================================= */
.map-section { overflow: hidden; }
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.city-tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .35rem .875rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.city-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =============================================================================
   FAQ SECTION
   ============================================================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-white);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-question.open { color: var(--primary); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  color: var(--text-light);
}
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-answer.open { display: block; }

/* =============================================================================
   BLOG CARDS
   ============================================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card-image-link {
  display: block;
  background: linear-gradient(135deg, #f3f8fd 0%, #ffffff 100%);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-image-link img,
.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.blog-card-placeholder {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(232,130,30,.20), transparent 34%),
    linear-gradient(135deg, #123b5e 0%, #1a5c8a 55%, #2e7db1 100%);
  color: #fff;
}
.blog-card-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-content {
  padding: 1.4rem 1.4rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.blog-title {
  font-size: 1.12rem;
  line-height: 1.4;
  margin-bottom: .75rem;
}
.blog-title a {
  color: var(--dark);
}
.blog-title a:hover {
  color: var(--primary);
}
.blog-excerpt {
  color: var(--text-light);
  font-size: .94rem;
  line-height: 1.7;
  margin-bottom: 0;
  flex: 1;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: .625rem; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-light); font-size: .9rem; flex: 1; }
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.read-more {
  font-weight: 700;
  color: var(--primary);
}
.read-more:hover {
  color: var(--primary-dark);
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-image-link img,
  .blog-card img,
  .blog-card-placeholder {
    height: 190px;
    min-height: 190px;
  }
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* =============================================================================
   CONTACT FORM
   ============================================================================= */
.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,138,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; color: var(--text-light); margin-top: .25rem; }
.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid var(--success);
  color: #155724;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.form-error {
  display: none;
  background: #f8d7da;
  border: 1px solid var(--danger);
  color: #721c24;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* =============================================================================
   MOBILE STICKY CALL BAR
   ============================================================================= */
.sticky-call-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
@media (min-width: 768px) { .sticky-call-bar { display: none; } }
.sticky-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  width: 100%;
  padding: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}
.footer-brand img { height: 90px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; margin-bottom: .75rem; }
.footer-nap { font-size: .875rem; }
.footer-nap p { margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.footer-nap a { color: rgba(255,255,255,.85); }
.footer-nap a:hover { color: var(--accent); }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: .875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.footer-license {
  background: rgba(255,255,255,.08);
  padding: .35rem .875rem;
  border-radius: 50px;
  font-size: .78rem;
}

/* =============================================================================
   PAGE HERO (inner pages)
   ============================================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 4rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/1029635/pexels-photo-1029635.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
  opacity: .1;
}
.page-hero-content { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  font-size: .85rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .5; }

/* =============================================================================
   SERVICE PAGE CONTENT
   ============================================================================= */
.service-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 992px) {
  .service-content-grid { grid-template-columns: 2fr 1fr; }
}
.service-content h2 { margin-bottom: 1rem; }
.service-content h3 { margin: 2rem 0 .75rem; }
.service-sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); height: fit-content; }
.sidebar-cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.sidebar-cta h3 { color: #fff; margin-bottom: .5rem; }
.sidebar-cta .phone-big {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  margin: 1rem 0;
  display: block;
}
.sidebar-services {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.sidebar-services h4 { margin-bottom: 1rem; }
.sidebar-services ul { display: flex; flex-direction: column; gap: .5rem; }
.sidebar-services a {
  color: var(--text);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-services a:hover { color: var(--primary); }

.service-area-intro,
.service-area-panel,
.service-area-sidebar-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #d8e4f0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11,43,73,.05);
}

.service-area-intro {
  padding: 2rem;
  margin-bottom: 2rem;
  background:
    radial-gradient(circle at top right, rgba(232,130,30,.10), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.service-area-intro p,
.service-area-panel p {
  color: var(--text-light);
  line-height: 1.75;
}

.service-area-intro p + p,
.service-area-panel-head p {
  margin-top: .75rem;
}

.service-area-intro-nearby {
  font-size: .92rem;
}

.service-area-panel {
  padding: 1.5rem 1.5rem 1.6rem;
  margin-bottom: 2rem;
}

.service-area-panel-accent {
  background:
    radial-gradient(circle at 0% 0%, rgba(26,92,138,.08), transparent 28%),
    linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.service-area-panel-head {
  margin-bottom: 1rem;
}

.service-area-panel-head h3,
.service-area-panel-head h4 {
  margin: 0 0 .5rem;
}

.service-area-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 .75rem;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}

.service-area-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .8rem;
}

.service-area-bullets li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

.service-area-bullets-issues li::before,
.service-area-bullets-checks li::before {
  position: absolute;
  left: 0;
  top: .15rem;
  font-weight: 800;
}

.service-area-bullets-issues li::before {
  content: '\2022';
  color: var(--accent);
  font-size: 1.1rem;
}

.service-area-bullets-checks li::before {
  content: '\2713';
  color: var(--primary);
}

.service-area-services-grid {
  margin-top: .25rem;
}

.service-area-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  height: 350px;
  border: 1px solid #d8e4f0;
}

.service-area-faq-list {
  max-width: 100%;
}

.service-area-nearby-panel h4 {
  margin-bottom: .9rem;
}

.service-area-sidebar-card {
  padding: 1.25rem;
}

.service-area-sidebar-points {
  margin-top: 1.5rem;
  background: #f7fbff;
}

.service-area-sidebar-points h5 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.service-area-sidebar-points p {
  display: flex;
  gap: .55rem;
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: .65rem;
  line-height: 1.6;
}

.service-area-sidebar-points span {
  color: var(--primary);
  font-weight: 700;
}

.sidebar-services li.is-active a {
  color: var(--primary);
  font-weight: 700;
}

.sidebar-services li a::before {
  content: '\2192';
  color: var(--accent);
  margin-right: .45rem;
}

.service-area-view-all a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 767px) {
  .service-area-intro,
  .service-area-panel,
  .service-area-sidebar-card,
  .sidebar-cta,
  .sidebar-services {
    padding: 1.2rem;
  }

  .service-area-map-wrap {
    height: 300px;
  }
}

/* Services landing page */
.services-overview {
  background:
    radial-gradient(circle at 12% 15%, rgba(26,92,138,.07), transparent 34%),
    radial-gradient(circle at 86% 4%, rgba(232,130,30,.08), transparent 30%);
}
.services-grid-pro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .services-grid-pro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}
.service-card-pro {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #d8e4f0;
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(11,43,73,.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
  min-height: 190px;
}
.service-card-pro:hover {
  transform: translateY(-4px);
  border-color: #9fbfe0;
  box-shadow: 0 14px 30px rgba(11,43,73,.12);
  color: var(--text);
}
.service-card-pro-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .7rem;
}
.service-card-pro-code {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a5c8a, #2e7bb4);
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.service-card-pro-title {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.3;
}
.service-card-pro-desc {
  margin: 0;
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.6;
}
.service-card-pro-link {
  margin-top: auto;
  padding-top: .95rem;
  color: var(--primary);
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.service-card-pro-link::after {
  content: '\2192';
  transition: transform .2s ease;
}
.service-card-pro:hover .service-card-pro-link::after {
  transform: translateX(3px);
}
.services-proof-strip {
  margin-top: 1.65rem;
  padding: .95rem 1rem;
  border: 1px solid #d7e4ef;
  border-radius: 12px;
  background: #f6fbff;
  text-align: center;
  color: #4d657b;
  font-size: .92rem;
}
.services-cta-box {
  text-align: center;
  margin-top: 1.7rem;
  padding: 1.8rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef6ff 0%, #f9fcff 100%);
  border: 1px solid #d8e7f4;
}
.services-cta-box h3 {
  margin: 0 0 .45rem 0;
}
.services-cta-box p {
  margin: 0 0 1rem 0;
  color: var(--text-light);
}
.services-cta-actions {
  display: flex;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
}

/* =============================================================================
   ABOUT PAGE
   ============================================================================= */
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .credentials-grid { grid-template-columns: repeat(4, 1fr); }
}
.credential-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.credential-card .cred-icon { font-size: 2rem; margin-bottom: .5rem; }
.credential-card h4 { font-size: .9rem; }
.credential-card p { font-size: .8rem; color: var(--text-light); margin: 0; }

/* =============================================================================
   ADMIN ALERT CARDS
   ============================================================================= */
.alert {
  padding: .875rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .9rem;
}
.alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.alert-danger  { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.alert-info    { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }
.alert-warning { background: #fff3cd; border: 1px solid #ffeeba; color: #856404; }

/* =============================================================================
   BADGES
   ============================================================================= */
.badge {
  display: inline-block;
  padding: .25rem .625rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-success   { background: #d4edda; color: #155724; }
.badge-warning   { background: #fff3cd; color: #856404; }
.badge-danger    { background: #f8d7da; color: #721c24; }
.badge-primary   { background: var(--primary); color: #fff; }
.badge-secondary { background: var(--bg-light); color: var(--text); }

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */
.d-none    { display: none !important; }
.d-flex    { display: flex; }
.d-block   { display: block; }
.flex-col  { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.mt-1   { margin-top: .5rem; }
.mt-2   { margin-top: 1rem; }
.mt-3   { margin-top: 1.5rem; }
.mb-0   { margin-bottom: 0; }
.mb-1   { margin-bottom: .5rem; }
.mb-2   { margin-bottom: 1rem; }
.mb-3   { margin-bottom: 1.5rem; }
.mb-4   { margin-bottom: 2rem; }
.fw-bold { font-weight: 700; }
.fs-sm   { font-size: .875rem; }
.rounded { border-radius: var(--radius); }
.shadow  { box-shadow: var(--shadow); }
.w-full  { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =============================================================================
   RESPONSIVE UTILITIES
   ============================================================================= */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .section { padding: 3.5rem 0; }
  body { padding-bottom: 68px; } /* space for sticky call bar */
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp .6s ease both;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* Scroll-reveal (JS adds .revealed) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */
@media print {
  .site-header, .sticky-call-bar, .mobile-menu, .emergency-bar,
  .cta-section, .site-footer nav { display: none; }
  body { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; }
}
