/* ==========================================================================
   EXCELLENT PLUMBING SERVICES PR - Grounded Trade Design System & Stylesheet
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Tokens - more grounded, less SaaS-like */
  --primary: #123f63;          /* Deep working blue */
  --primary-rgb: 18, 63, 99;
  --secondary: #247b9f;        /* Muted water blue */
  --secondary-rgb: 36, 123, 159;
  --accent: #d75a2b;           /* Service-call orange, less neon */
  --accent-hover: #b94822;
  --accent-rgb: 215, 90, 43;
  
  --dark: #101820;             /* Ink / tool-case dark */
  --dark-light: #263342;       /* Softer dark */
  --gray-muted: #66737f;       /* Utility gray */
  --gray-light: #edf1f3;       /* Concrete gray */
  --bg-light: #f6f3ee;         /* Warm off-white, less sterile */
  --bg-white: #ffffff;
  --border-soft: #dfe5e8;
  
  /* Surfaces */
  --grad-hero: linear-gradient(135deg, rgba(16, 24, 32, 0.92) 0%, rgba(18, 63, 99, 0.9) 58%, rgba(36, 123, 159, 0.82) 100%);
  --grad-accent: linear-gradient(135deg, #d75a2b 0%, #e36a3d 100%);
  --grad-water: linear-gradient(135deg, #d9edf3 0%, #c7e3ec 100%);
  --grad-dark: linear-gradient(135deg, #101820 0%, #1f2d38 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, 0.06);
  --shadow-md: 0 8px 18px rgba(16, 24, 32, 0.08);
  --shadow-lg: 0 16px 36px rgba(16, 24, 32, 0.12);
  --shadow-accent: 0 8px 18px rgba(215, 90, 43, 0.22);
  
  /* Borders & Spacing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.22s ease;
  --container-width: 1200px;
}

/* ==========================================================================
   1. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 19px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--gray-light);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Common Layout Containers */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section-padding {
  padding: 92px 0;
}

.bg-alt {
  background-color: var(--bg-light);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   2. Buttons & Calls to Action
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
  box-shadow: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--accent);
  background-image: none;
  color: var(--bg-white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(215, 90, 43, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(0, 75, 147, 0.1);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(18, 63, 99, 0.16);
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
}

.btn-outline-white:hover {
  background-color: var(--bg-white);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-cta {
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

/* Pulsing CTA Badge */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255, 87, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0); }
}

.pulse-button {
  animation: none; /* Keeps emergency CTA strong without looking gimmicky */
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: none;
  transition: var(--transition);
}

.header.scrolled {
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: #e7f1f4;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-light);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector */
.lang-selector {
  display: flex;
  background-color: var(--gray-light);
  padding: 4px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background-color: var(--primary);
  color: var(--bg-white);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   4. Hero / Hook Section
   ========================================================================== */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--bg-white);
  padding: 156px 0 108px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
}

.hero::after {
  content: '';
  position: absolute;
  width: 55%;
  height: 100%;
  right: 0;
  top: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--bg-white);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: none;
}

.hero-tag span {
  width: 8px;
  height: 8px;
  background-color: #4ade80; /* Green dot indicating active/emergency availability */
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.75rem, 5vw, 3.85rem);
  line-height: 1.15;
  color: var(--bg-white);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 590px;
}


.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Background Video Container and Overlay */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(20, 75, 120, 0.78) 100%);
  z-index: 2;
}

/* Center Layout for Hero with Video Background */
.hero-centered {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-centered .hero-tag {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-centered .hero-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

.hero-centered .hero-ctas {
  justify-content: center;
}


.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-badge-overlay {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--dark);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--accent);
}

.hero-badge-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-badge-text {
  font-size: 0.8rem;
  color: var(--gray-muted);
  font-weight: 500;
}

.hero-svg-illustration {
  width: 100%;
  max-width: 450px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

/* ==========================================================================
   5. Work Projects Section (Proyectos de Trabajo)
   ========================================================================== */
.section-title-wrap {
  margin-bottom: 48px;
}

.section-subtitle {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  color: var(--dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-image-box {
  position: relative;
  height: 240px;
  background-color: var(--gray-light);
  overflow: hidden;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-content {
  padding: 24px;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--gray-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.project-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  background-color: #eef4f6;
  color: var(--dark-light);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Before / After Slider Mockup */
.before-after-card {
  grid-column: span 1;
}

.slider-container {
  position: relative;
  height: 240px;
  background-color: var(--gray-light);
  overflow: hidden;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-after {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: var(--bg-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.slider-label {
  position: absolute;
  top: 16px;
  background-color: rgba(15, 23, 42, 0.75);
  color: var(--bg-white);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 6;
}

.label-before {
  right: 16px;
}

.label-after {
  left: 16px;
}

/* ==========================================================================
   6. Services Section (Summary & Breakdown)
   ========================================================================== */
.services-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-summary-card {
  background: var(--bg-white);
  padding: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  box-shadow: none;
  transition: var(--transition);
}

.service-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(36, 123, 159, 0.32);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #eef4f6;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-summary-card:hover .service-icon-box {
  background-color: var(--primary);
  color: var(--bg-white);
}

.service-summary-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-summary-desc {
  color: var(--gray-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

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

.service-link:hover {
  color: var(--secondary);
}

.service-link::after {
  content: ' →';
  transition: var(--transition);
}

.service-link:hover::after {
  transform: translateX(4px);
}

/* Detailed Services Page Styles */
.services-detail-section {
  padding: 100px 0;
}

.service-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

.service-detail-block:last-child {
  margin-bottom: 0;
}

.service-detail-block.reverse {
  direction: rtl;
}

.service-detail-block.reverse .service-detail-content {
  direction: ltr;
}

.service-detail-content {
  position: relative;
}

.service-detail-title {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.service-detail-desc {
  font-size: 1.05rem;
  color: var(--gray-muted);
  margin-bottom: 28px;
}

.service-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.service-feature-item i {
  color: #4ade80; /* Check icon green */
  font-size: 1.1rem;
}

.service-badge-list {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-tag.emergency {
  background-color: rgba(255, 87, 34, 0.1);
  color: var(--accent);
}

.badge-tag.certified {
  background-color: rgba(0, 75, 147, 0.1);
  color: var(--primary);
}

.service-detail-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.service-detail-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   7. Reviews & Testimonials Section (Google Reviews)
   ========================================================================== */
.reviews-split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-rows: auto auto;
  gap: 32px 40px;
  align-items: start;
  margin-top: 40px;
}

.reviews-summary-card-vertical {
  grid-column: 1;
  grid-row: 1;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.reviews-summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.google-icon-brand {
  font-size: 2.25rem;
  color: #4285F4;
}

.reviews-summary-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--dark);
}

.reviews-summary-score {
  margin-bottom: 32px;
}

.score-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.score-stars {
  color: #ffb300;
  font-size: 1.25rem;
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.reviews-count {
  font-size: 0.9rem;
  color: var(--gray-muted);
}

.reviews-summary-ai {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  border-left: 4px solid var(--primary);
}

.ai-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-bullets li {
  font-size: 0.9rem;
  color: var(--dark-light);
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.ai-bullets li::before {
  content: '•';
  color: var(--secondary);
  font-size: 1.2rem;
  position: absolute;
  left: 4px;
  top: -2px;
}

.reviews-carousel-nav {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
}

.nav-arrow-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  color: var(--dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-arrow-btn:hover {
  background: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.nav-dots {
  display: flex;
  gap: 8px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-soft);
  cursor: pointer;
  transition: var(--transition);
}

.nav-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.reviews-slider-container {
  grid-column: 2;
  grid-row: 1 / span 2;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: stretch;
  height: 100%;
}

.reviews-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-slide-item {
  min-width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.review-card {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  position: relative;
}

.review-card::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 5rem;
  color: rgba(0, 148, 212, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
}

.review-stars {
  color: #ffb300;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--dark-light);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.6;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e7f1f4;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--dark);
}

.review-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--gray-muted);
}

.review-verified i {
  color: #4ade80;
}

.review-tag-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-tag-line {
  font-size: 0.85rem;
  color: var(--gray-muted);
}

.review-tag-line strong {
  color: var(--dark-light);
}

/* ==========================================================================
   8. Coverage Locations Section
   ========================================================================== */
.locations-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.locations-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.location-item {
  background: var(--bg-white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary);
}

.location-item i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.location-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.locations-map-box {
  background-color: var(--gray-light);
  border-radius: var(--radius-lg);
  height: 380px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locations-map-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 5;
}

/* SVG map representation */
.pr-map-svg {
  width: 90%;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 10px 15px rgba(0, 75, 147, 0.15));
}

/* ==========================================================================
   9. Contact Form & Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  background-color: var(--gray-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-info-text h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--gray-muted);
  font-size: 0.95rem;
}

.contact-info-text a {
  font-weight: 600;
  color: var(--primary);
}

.contact-info-text a:hover {
  color: var(--secondary);
}

.form-card {
  background: var(--bg-white);
  padding: 42px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-light);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 75, 147, 0.15);
}

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

/* ==========================================================================
   10. Footer Section
   ========================================================================== */
.footer {
  background-color: var(--dark);
  background-image: var(--grad-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.9fr 1.3fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: var(--bg-white);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-links-title {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-links-list li i {
  margin-right: 10px;
  margin-top: 3px;
  color: var(--secondary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.footer-links-list a {
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-links-list li a[href^="mailto:"],
.footer-links-list li a[href^="tel:"] {
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--bg-white);
}

/* ==========================================================================
   11. Sticky Mobile Call Bar & Widgets
   ========================================================================== */
.sticky-mobile-cta {
  display: none; /* Hidden by default on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--bg-white);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Progressive enhancement: only hide it initially if JavaScript adds this class */
.sticky-mobile-cta.cta-hidden-init {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.sticky-mobile-cta.cta-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--accent);
  background-image: none;
  color: var(--bg-white);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  gap: 10px;
  box-shadow: var(--shadow-accent);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 998;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Hero Section Image Layout */
.hero-img {
  width: 100%;
  max-width: 500px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
  border: 6px solid rgba(255, 255, 255, 0.12);
  filter: none;
}

/* Experience Section Styles */
.experience-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.experience-image-container {
  position: relative;
}

.experience-image-container img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.experience-content h2 {
  font-size: 0.9rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 700;
}

.experience-title {
  font-size: 2.25rem;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.2;
}

.experience-text {
  color: var(--gray-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.experience-signature {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 20px;
  display: block;
}

.experience-cert {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
  display: block;
}

.mobile-only {
  display: none !important;
}

/* ==========================================================================
   12. Responsive Media Queries
   ========================================================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-grid {
    gap: 32px;
  }
  .locations-container, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .reviews-split-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
  }
  .reviews-summary-card-vertical {
    grid-column: 1;
    grid-row: 1;
  }
  .reviews-slider-container {
    grid-column: 1;
    grid-row: 2;
  }
  .reviews-carousel-nav {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
    gap: 24px;
  }
  .service-detail-block {
    gap: 40px;
  }
}

/* Tablets (Portrait) */
@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex !important;
  }
  .section-padding {
    padding: 60px 0;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 32px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-image-container {
    display: none; /* Hide visual on mobile to optimize landing page layout and prioritize the main CTAs */
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 1000;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-actions {
    display: none; /* Handled inside mobile menu or header */
  }
  .hamburger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .service-detail-block, .service-detail-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
  .service-detail-block.reverse .service-detail-content {
    direction: ltr;
  }
  .service-feature-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .experience-image-container {
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Show mobile bottom sticky CTA and offset footer/body spacing */
  body {
    padding-bottom: 72px; /* Prevent content overlap by sticky bar */
  }
  .sticky-mobile-cta {
    display: block;
  }
  .whatsapp-float {
    bottom: 90px; /* Push float button above the sticky bar */
    right: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  /* Google Reviews Carousel Mobile Layout Adjustments */
  .reviews-summary-card-vertical {
    padding: 28px 20px;
  }
  .review-slide-item {
    padding: 28px 20px;
  }
}

/* Small Screens / Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-tag {
    font-size: 0.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .form-card {
    padding: 24px;
  }
  .btn-cta {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}


/* ============================================================================
   13. Art Direction Refinements
   These rules reduce generic AI polish and add a more grounded trade-service feel.
   ============================================================================ */

/* Make large sections breathe and alternate with warmer, more tactile surfaces. */
.section-padding.container:not(.bg-alt) {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* Stronger editorial hierarchy: subtitle becomes a quiet label, not a SaaS badge. */
.section-subtitle {
  color: var(--primary);
  letter-spacing: 1.4px;
  font-size: 0.78rem;
}

.section-title {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-title-wrap:not(.text-center) .section-title {
  margin-left: 0;
  margin-right: 0;
}

/* Give real job photos more authority. */
.project-image-box img,
.service-detail-image img,
.experience-image-container img,
.hero-img {
  filter: saturate(0.94) contrast(1.04);
}

.project-card:first-child {
  border-top: 4px solid var(--accent);
}

/* Break the visual monotony by making trust/experience feel more editorial. */
.experience-content {
  border-left: 4px solid var(--secondary);
  padding-left: 32px;
}

.experience-content h2 {
  color: var(--primary);
}

.experience-signature {
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

/* Locations should feel practical, not decorative. */
.location-item {
  border-radius: var(--radius-sm);
  box-shadow: none;
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--secondary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-left-color 0.3s ease;
}

.location-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  border-left-color: var(--primary);
  background-color: var(--gray-light);
  cursor: pointer;
}

.locations-map-box {
  border: 1px solid var(--border-soft);
}

/* Reviews: calmer, more credible, less template-like. */
.review-text {
  font-style: normal;
  line-height: 1.75;
}

.review-card::before {
  color: rgba(36, 123, 159, 0.065);
}

/* Contact section should feel like the conversion zone. */
.contact-info-card {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.contact-info-card:last-child {
  border-bottom: none;
}

.form-control {
  border-color: var(--border-soft);
  min-height: 48px;
}

/* ==========================================================================
   Plumbing Phase 3 - Custom Styling & Layouts
   ========================================================================== */

/* 1. Hero Tag Plate (Atornillada style) */
.hero-tag-plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: #0c1524; /* Darker navy plate */
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  z-index: 10;
}

.hero-tag-plate .screw {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #94a3b8;
  border-radius: 50%;
  box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3), 1px 1px 1px rgba(0,0,0,0.4);
}

.hero-tag-plate .screw::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #475569;
  transform: translateY(-50%) rotate(45deg);
}

.hero-tag-plate .screw.tl { top: 5px; left: 5px; }
.hero-tag-plate .screw.tr { top: 5px; right: 5px; }
.hero-tag-plate .screw.bl { bottom: 5px; left: 5px; }
.hero-tag-plate .screw.br { bottom: 5px; right: 5px; }

.hero-tag-plate .plate-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
}

.hero-tag-plate .plate-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-tag-plate .plate-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.hero-tag-plate .plate-subtitle {
  color: #4ade80; /* Green Certified text */
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

/* 2. Services Grid (Photo inspired) */
.services-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.services-photo-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.services-photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.services-photo-card .icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--primary); /* Dark navy */
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.services-photo-card .card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.services-photo-card .card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 6th Card - Y mucho más... */
.services-photo-card.more-card {
  background-color: var(--gray-light);
  border-color: var(--border-soft);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.services-photo-card.more-card .card-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* 3. Sleek transitions for sections */
.scroll-section {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
