/* ==========================================================================
   PIQUETE 24H AVEIRO - MOBILE-FIRST DESIGN SYSTEM & STYLESHEET
   Homem de Piquete: Pichelaria & Eletricidade no Distrito de Aveiro
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-surface: #172033;
  --bg-surface-elevated: #1e293b;
  --bg-glass: rgba(10, 14, 23, 0.92);
  --bg-glass-card: rgba(30, 41, 59, 0.85);

  /* Hydro Brand Colors (Plumbing/Water) */
  --hydro-primary: #00a8ff;
  --hydro-light: #4cd3ff;
  --hydro-dark: #0077b6;
  --hydro-glow: rgba(0, 168, 255, 0.28);
  --hydro-gradient: linear-gradient(135deg, #00d2ff 0%, #0077b6 100%);

  /* Volt Brand Colors (Electricity/Power) */
  --volt-primary: #f59e0b;
  --volt-light: #fbbf24;
  --volt-dark: #d97706;
  --volt-glow: rgba(245, 158, 11, 0.28);
  --volt-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);

  /* Emergency Red */
  --emergency-red: #ef4444;
  --emergency-glow: rgba(239, 68, 68, 0.45);
  --emergency-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  --whatsapp-green: #25d366;
  --whatsapp-hover: #20ba59;

  /* Neutrals & Text */
  --text-white: #ffffff;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(0, 168, 255, 0.5);

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. BASE & MOBILE-FIRST RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 74px; /* Space for mobile bottom floating action bar */
}

body.no-scroll {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

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

.text-success {
  color: #10b981;
}

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

.gradient-text-hydro {
  background: var(--hydro-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-volt {
  background: var(--volt-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges */
.section-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hydro-light);
  background: rgba(0, 168, 255, 0.12);
  border: 1px solid rgba(0, 168, 255, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.section-badge.badge-amber {
  color: var(--volt-light);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-district {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  background: var(--emergency-red);
  color: #ffffff;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

.icon-sm {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.icon-md {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.icon-lg {
  width: 26px;
  height: 26px;
  vertical-align: middle;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--hydro-gradient);
  color: #001220;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--hydro-glow);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-emergency {
  background: var(--emergency-gradient);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 6px 22px var(--emergency-glow);
}

.btn-lg {
  padding: 15px 24px;
  font-size: 1rem;
  min-height: 52px;
  border-radius: var(--radius-md);
}

.btn-xl {
  padding: 16px 28px;
  font-size: 1.08rem;
  min-height: 56px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.pulse-glow {
  animation: pulseGlowEmergency 2.2s infinite;
}

@keyframes pulseGlowEmergency {
  0%, 100% {
    box-shadow: 0 0 12px var(--emergency-glow);
  }
  50% {
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.75);
  }
}

/* ==========================================================================
   2. TOP BAR & NAVBAR (MOBILE FIRST - NEVER COVERED)
   ========================================================================== */
.top-bar {
  background: #080c14;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  padding: 6px 0;
  color: var(--text-secondary);
  position: relative;
  z-index: 990;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--emergency-red);
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseBeacon 1.6s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.top-bar-separator {
  display: none;
}

.top-bar-sub {
  display: none;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.top-bar-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.78rem;
}

.top-bar-phone {
  color: var(--volt-light);
}

.top-bar-whatsapp {
  color: var(--whatsapp-green);
}

/* Main Site Header (Sticky, high z-index) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(10, 14, 23, 0.98);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  background: var(--bg-surface);
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0, 168, 255, 0.15);
  flex-shrink: 0;
}

.logo-water {
  width: 22px;
  height: 22px;
  color: var(--hydro-primary);
}

.logo-bolt {
  position: absolute;
  width: 15px;
  height: 15px;
  color: var(--volt-primary);
  bottom: 4px;
  right: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}

.highlight-volt {
  color: var(--volt-primary);
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* Nav is hidden on mobile */
.main-nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-call-btn {
  display: none; /* Shown in tablet/desktop and mobile bottom bar */
}

/* Hamburger Toggle Button */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:active {
  transform: scale(0.92);
}

.hamburger-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer Modal */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: #0d1320;
  border-left: 1px solid var(--border-subtle);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: #090e18;
}

.drawer-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #ffffff;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
}

.drawer-close-btn:hover {
  color: #ffffff;
}

.mobile-drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.mobile-nav-link:active {
  background: var(--bg-surface-elevated);
  border-color: var(--volt-primary);
}

.mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* ==========================================================================
   3. HERO SECTION (MOBILE FIRST)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 30px 0 50px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, rgba(0, 168, 255, 0.12) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff9b9b;
  margin-bottom: 14px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emergency-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--emergency-red);
}

.hero-title {
  font-size: 1.95rem;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-description {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.hero-feature-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 32, 51, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
}

.tag-icon {
  width: 16px;
  height: 16px;
  color: var(--volt-primary);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatars-group {
  display: flex;
}

.avatar-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-left: -8px;
}

.avatar-pill:first-child {
  margin-left: 0;
}

.proof-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.proof-text .stars {
  color: var(--volt-primary);
  font-weight: 700;
}

.rating-num {
  color: var(--text-white);
  margin-left: 2px;
}

/* Hero Visual Card */
.hero-card-frame {
  position: relative;
  width: 100%;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.hero-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10, 14, 23, 0.88) 100%);
}

.floating-badge {
  display: none; /* Hidden on small mobile to avoid blocking image, shown at 768px+ */
}

/* ==========================================================================
   4. STATS RIBBON (MOBILE FIRST)
   ========================================================================== */
.stats-ribbon {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-unit {
  font-size: 1.1rem;
  color: var(--volt-light);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   5. CONCELHOS DE AVEIRO (MOBILE FIRST)
   ========================================================================== */
.coverage-section {
  padding: 50px 0;
  background: var(--bg-primary);
}

.concelhos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}

.concelho-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.concelho-dot {
  width: 7px;
  height: 7px;
  background-color: var(--volt-primary);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.concelho-card h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
  color: #ffffff;
}

.concelho-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.concelho-time {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--hydro-light);
  background: rgba(0, 168, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ==========================================================================
   6. SERVICES SECTION (MOBILE FIRST)
   ========================================================================== */
.services-section {
  padding: 50px 0;
  background: var(--bg-secondary);
}

.services-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.tab-btn svg {
  width: 20px;
  height: 20px;
}

.tab-btn.active#tab-pichelaria {
  background: rgba(0, 168, 255, 0.15);
  border-color: var(--hydro-primary);
  color: #ffffff;
}

.tab-btn.active#tab-eletricidade {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--volt-primary);
  color: #ffffff;
}

.tab-icon-water {
  color: var(--hydro-primary);
}

.tab-icon-volt {
  color: var(--volt-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 168, 255, 0.12);
  color: var(--hydro-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 168, 255, 0.2);
}

.service-icon-box svg {
  width: 22px;
  height: 22px;
}

.volt-icon-box {
  background: rgba(245, 158, 11, 0.12);
  color: var(--volt-primary);
  border-color: rgba(245, 158, 11, 0.25);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.service-perks {
  margin-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.service-perks li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding-left: 16px;
  position: relative;
}

.service-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hydro-light);
  font-weight: bold;
}

.volt-card .service-perks li::before {
  color: var(--volt-light);
}

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

.volt-link {
  color: var(--volt-light);
}

/* ==========================================================================
   7. CALCULATOR SECTION (MOBILE FIRST)
   ========================================================================== */
.calculator-section {
  padding: 50px 0;
  background: var(--bg-primary);
}

.calc-wrapper {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 16px;
}

.calc-header {
  margin-bottom: 24px;
}

.calc-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.calc-group {
  margin-bottom: 18px;
}

.calc-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-white);
}

.calc-toggle-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.calc-toggle-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  text-align: center;
}

.calc-toggle-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--volt-primary);
  color: #ffffff;
}

.calc-select, .calc-input, .form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
}

.calc-select:focus, .calc-input:focus, .form-control:focus {
  border-color: var(--border-focus);
}

.urgency-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.urgency-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  min-height: 48px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.urgency-card input {
  position: absolute;
  top: 14px;
  right: 14px;
  accent-color: var(--volt-primary);
}

.urgency-card:has(input:checked) {
  border-color: var(--volt-primary);
  background: rgba(245, 158, 11, 0.08);
}

.urgency-alert:has(input:checked) {
  border-color: var(--emergency-red);
  background: rgba(239, 68, 68, 0.12);
}

.urgency-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-white);
}

.urgency-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-left: 6px;
}

/* Result Box */
.calc-result-box {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
}

.calc-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.calc-status-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.estimate-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 6px 0;
}

.estimate-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--volt-primary);
}

.estimate-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
}

.estimate-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.estimate-breakdown {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  margin-bottom: 18px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.calc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   8. EMERGENCY 24H BANNER (MOBILE FIRST)
   ========================================================================== */
.emergency-banner {
  position: relative;
  padding: 50px 0;
  background: linear-gradient(135deg, #1c0a0a 0%, #2a0e0e 50%, #150808 100%);
  border-top: 2px solid var(--emergency-red);
  border-bottom: 2px solid var(--emergency-red);
  text-align: center;
}

.emergency-title {
  font-size: 1.75rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.emergency-subtitle {
  font-size: 0.95rem;
  color: #d1d5db;
  margin: 0 auto 24px;
}

.emergency-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.emergency-callout {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ==========================================================================
   9. SHOWCASE & SOLO TECHNICIAN (MOBILE FIRST)
   ========================================================================== */
.showcase-section {
  padding: 50px 0;
  background: var(--bg-secondary);
}

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.showcase-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-surface);
}

.showcase-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.showcase-overlay-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(10, 14, 23, 0.9);
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.showcase-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perk-item {
  display: flex;
  gap: 14px;
}

.perk-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.perk-text h4 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.perk-text p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   10. TESTIMONIALS (MOBILE FIRST)
   ========================================================================== */
.testimonials-section {
  padding: 50px 0;
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077b6, #00d2ff);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-card:nth-child(2) .testi-avatar {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  color: #111827;
}

.testi-meta h4 {
  font-size: 0.9rem;
}

.testi-meta span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.testi-stars {
  margin-left: auto;
  color: var(--volt-primary);
  font-size: 0.78rem;
}

.testi-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  font-style: italic;
}

.testi-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--volt-light);
  background: rgba(245, 158, 11, 0.08);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
}

/* ==========================================================================
   11. FAQ SECTION (MOBILE FIRST)
   ========================================================================== */
.faq-section {
  padding: 50px 0;
  background: var(--bg-secondary);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 16px;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-white);
  cursor: pointer;
  text-align: left;
}

.faq-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--volt-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 16px 16px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ==========================================================================
   12. CONTACT SECTION & FORM (MOBILE FIRST)
   ========================================================================== */
.contact-section {
  padding: 50px 0;
  background: var(--bg-primary);
}

.contact-card-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-info-col {
  padding: 24px 18px;
  background: linear-gradient(180deg, #131c2e 0%, #0e1524 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.highlight-phone-box {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

.box-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.box-icon svg {
  width: 18px;
  height: 18px;
}

.water-bg {
  background: rgba(239, 68, 68, 0.15);
  color: var(--emergency-red);
}

.whatsapp-bg {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp-green);
}

.volt-bg {
  background: rgba(245, 158, 11, 0.15);
  color: var(--volt-primary);
}

.box-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.box-val {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.payment-methods-box {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.pay-title {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: var(--text-primary);
}

.contact-form-col {
  padding: 24px 18px;
}

.form-title {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.booking-form .form-group {
  margin-bottom: 14px;
}

.booking-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.form-privacy {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ==========================================================================
   13. FOOTER (MOBILE FIRST)
   ========================================================================== */
.site-footer {
  background: #06090e;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 30px;
}

.footer-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 10px 0;
}

.footer-cert {
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 600;
}

.footer-heading {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-phone {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--volt-light);
  display: block;
  margin-bottom: 4px;
}

.footer-hours {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom {
  background: #04060a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

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

/* ==========================================================================
   14. MOBILE BOTTOM STICKY FLOATING QUICK-BAR
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(10, 14, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 990;
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr;
  padding: 6px 10px;
  gap: 8px;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
}

.bottom-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 6px;
  color: #ffffff;
  text-align: center;
  transition: transform 0.15s ease;
}

.bottom-action-btn:active {
  transform: scale(0.94);
}

.bottom-action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bottom-btn-call {
  background: var(--emergency-gradient);
  box-shadow: 0 2px 10px var(--emergency-glow);
}

.bottom-btn-wa {
  background-color: var(--whatsapp-green);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.bottom-btn-calc {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
}

/* ==========================================================================
   15. TOAST NOTIFICATION (SAFELY POSITIONED - NEVER COVERS NAVBAR)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 80px; /* Above the mobile bottom bar */
  left: 16px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  background: #1e293b;
  border: 1px solid var(--volt-primary);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUpToast 0.3s ease forwards;
}

@keyframes slideUpToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   16. PROGRESSIVE ENHANCEMENT (TABLETS & DESKTOPS)
   ========================================================================== */

/* --- Tablet (min-width: 640px) --- */
@media (min-width: 640px) {
  .top-bar-separator {
    display: inline;
  }

  .top-bar-sub {
    display: inline;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .concelhos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-toggle-group {
    grid-template-columns: repeat(3, 1fr);
  }

  .urgency-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Desktop Small (min-width: 768px) --- */
@media (min-width: 768px) {
  body {
    padding-bottom: 0; /* Remove bottom bar padding on desktop */
  }

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-content {
    height: 74px;
  }

  .header-call-btn {
    display: inline-flex;
  }

  .mobile-bottom-bar {
    display: none; /* Hide bottom quick-bar on desktop */
  }

  .toast-container {
    bottom: 24px;
    right: 24px;
    left: auto;
    max-width: 380px;
  }

  .hero-section {
    padding: 60px 0 80px;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-img {
    height: 420px;
  }

  .hero-feature-tags {
    flex-direction: row;
  }

  .hero-cta-group {
    flex-direction: row;
  }

  .floating-badge {
    position: absolute;
    background: var(--bg-glass-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    z-index: 10;
  }

  .badge-top-right {
    top: -12px;
    right: -12px;
  }

  .badge-bottom-left {
    bottom: -15px;
    left: -15px;
  }

  .badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .badge-icon svg {
    width: 20px;
    height: 20px;
  }

  .badge-icon.water-icon {
    background: rgba(0, 168, 255, 0.15);
    color: var(--hydro-primary);
  }

  .badge-icon.volt-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--volt-primary);
  }

  .badge-info strong {
    font-size: 0.85rem;
    color: var(--text-white);
    display: block;
  }

  .badge-info span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
  }

  .concelhos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-tabs {
    flex-direction: row;
    justify-content: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .calc-wrapper {
    padding: 36px;
  }

  .calc-body-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .showcase-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
  }

  .showcase-img {
    height: 420px;
  }

  .showcase-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .showcase-overlay-tag {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(10, 14, 23, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
  }

  .tag-star {
    color: var(--volt-primary);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
  }

  .contact-info-col {
    padding: 40px 32px;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }

  .contact-form-col {
    padding: 40px 32px;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --- Desktop Large (min-width: 1024px) --- */
@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
  }

  .nav-link:hover {
    color: #ffffff;
  }

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

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

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-img {
    height: 480px;
  }

  .concelhos-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}
