/* ===================================================================
   ESPOFRIO GANDRA - MODERN THEME & INTERACTIVE COMPONENTS
   Multi-Service Contracting & Climate Solutions
   Colors: Royal Blue (#0D47A1), Flame Red (#E53935), Slate Dark (#0F172A)
=================================================================== */

:root {
  --espofrio-blue: #0D47A1;
  --espofrio-blue-dark: #0A3780;
  --espofrio-blue-light: #1976D2;
  --espofrio-blue-subtle: #EBF3FC;
  --espofrio-red: #E53935;
  --espofrio-red-dark: #C62828;
  --espofrio-red-light: #FF5252;
  --espofrio-red-subtle: #FEF2F2;
  --espofrio-dark: #0F172A;
  --espofrio-slate: #334155;
  --espofrio-muted: #64748B;
  --espofrio-border: #E2E8F0;
  --espofrio-bg: #F8FAFC;
  --espofrio-card-bg: #FFFFFF;
  --espofrio-accent-green: #10B981;
  --espofrio-gold: #F59E0B;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* Base Overrides */
body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--espofrio-slate);
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--espofrio-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Top Announcement / Emergency Bar */
.espofrio-topbar {
  background: var(--espofrio-dark);
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.espofrio-topbar a {
  color: #CBD5E1;
  transition: color 0.2s;
  text-decoration: none;
}
.espofrio-topbar a:hover {
  color: #FFFFFF;
}
.espofrio-topbar .badge-emergency {
  background: var(--espofrio-red);
  color: #FFFFFF;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.espofrio-topbar .badge-emergency::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #FFFFFF;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Language Switcher & Select Input */
.lang-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 24px;
  padding: 4px 10px 4px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
.lang-select-wrapper:hover, .lang-select-wrapper:focus-within {
  border-color: var(--espofrio-blue);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}
.lang-select-wrapper .lang-select-globe {
  color: var(--espofrio-blue);
  font-size: 1rem;
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
}
.lang-select-input {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  padding: 2px 20px 2px 2px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 11px;
}
.lang-select-input option {
  font-weight: 600;
  color: #0F172A;
  background: #FFFFFF;
}

/* In Topbar (Dark variant) */
.espofrio-topbar .lang-select-wrapper {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  padding: 2px 8px 2px 10px;
}
.espofrio-topbar .lang-select-wrapper:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
}
.espofrio-topbar .lang-select-wrapper .lang-select-globe {
  color: #60A5FA;
}
.espofrio-topbar .lang-select-input {
  color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.espofrio-topbar .lang-select-input option {
  color: #0F172A;
  background: #FFFFFF;
}

/* Navbar */
.site-navbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  background: #FFFFFF !important;
  transition: all 0.3s ease;
  padding: 12px 0 !important;
  z-index: 1050 !important;
}
.site-logo img {
  height: 52px;
  width: auto;
  max-width: 280px;
}
.site-navbar .site-navigation .site-menu {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-navbar .site-navigation .site-menu > li {
  display: inline-block !important;
  margin: 0 2px !important;
}
.site-navbar .site-navigation .site-menu > li > a {
  color: #0F172A !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 8px 12px !important;
  position: relative !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}
.site-navbar .site-navigation .site-menu > li > a:hover {
  color: var(--espofrio-blue) !important;
  background: #F1F5F9 !important;
}
.site-navbar .site-navigation .site-menu > li.active > a {
  color: var(--espofrio-blue) !important;
  background: #EFF6FF !important;
}
.site-navbar .site-navigation .site-menu > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: linear-gradient(90deg, var(--espofrio-blue) 0%, var(--espofrio-red) 100%);
  border-radius: 2px;
}

/* Buttons */
.btn-espofrio-blue {
  background: var(--espofrio-blue);
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25);
}
.btn-espofrio-blue:hover {
  background: var(--espofrio-blue-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 71, 161, 0.35);
}
.btn-espofrio-red {
  background: var(--espofrio-red);
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}
.btn-espofrio-red:hover {
  background: var(--espofrio-red-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}
.btn-espofrio-outline {
  border: 2px solid var(--espofrio-blue);
  color: var(--espofrio-blue);
  background: transparent;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  transition: all 0.25s ease;
}
.btn-espofrio-outline:hover {
  background: var(--espofrio-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Hero Section */
.espofrio-hero {
  position: relative;
  min-height: 85vh;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(13, 71, 161, 0.8) 100%), url('../images/hero_1.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  padding: 100px 0 80px 0;
}
.espofrio-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #E2E8F0;
  margin-bottom: 20px;
}
.espofrio-hero h1 {
  color: #FFFFFF;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.espofrio-hero h1 span.highlight-red {
  color: #FF5252;
}
.espofrio-hero h1 span.highlight-blue {
  color: #60A5FA;
}
.espofrio-hero p.lead {
  font-size: 1.25rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Hero Quick Audience Switch Cards */
.hero-quick-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 35px;
}
.quick-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: block;
}
.quick-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #60A5FA;
  transform: translateY(-4px);
}
.quick-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-card .card-desc {
  font-size: 0.82rem;
  color: #CBD5E1;
  margin: 0;
}

/* Trust Bar / Stats Banner */
.espofrio-trustbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--espofrio-border);
  padding: 30px 0;
  position: relative;
  z-index: 5;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-icon.blue-bg {
  background: var(--espofrio-blue-subtle);
  color: var(--espofrio-blue);
}
.stat-icon.red-bg {
  background: var(--espofrio-red-subtle);
  color: var(--espofrio-red);
}
.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--espofrio-dark);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--espofrio-muted);
  font-weight: 500;
  margin: 0;
}

/* Service Pillars Grid */
.service-pillar-card {
  background: var(--espofrio-card-bg);
  border: 1px solid var(--espofrio-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--espofrio-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #BFDBFE;
}
.service-pillar-card:hover::before {
  opacity: 1;
}
.service-pillar-card.featured::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--espofrio-red) 0%, var(--espofrio-blue) 100%);
}
.service-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--espofrio-blue-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 12px;
  transition: transform 0.3s;
}
.service-pillar-card:hover .service-icon-box {
  transform: scale(1.08);
}
.service-pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-pillar-card p {
  color: var(--espofrio-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.service-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.service-checklist li {
  font-size: 0.85rem;
  color: var(--espofrio-slate);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-checklist li i {
  color: var(--espofrio-blue);
  font-weight: bold;
}

/* Competitive Advantage ("Young Qualified Team") */
.advantage-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  padding: 90px 0;
}
.advantage-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.advantage-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.advantage-badge.red {
  background: var(--espofrio-red-subtle);
  color: var(--espofrio-red);
}
.advantage-badge.blue {
  background: var(--espofrio-blue-subtle);
  color: var(--espofrio-blue);
}

/* Interactive Before & After Slider */
.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  aspect-ratio: 16 / 10;
  background: #000;
}
.ba-slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-img-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ba-img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 3px solid #FFFFFF;
}
.ba-img-after img {
  width: auto;
  min-width: 900px;
  height: 100%;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 10;
  color: var(--espofrio-dark);
  font-weight: 900;
}
.ba-badge {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.ba-badge.before {
  right: 16px;
  background: rgba(15, 23, 42, 0.75);
}
.ba-badge.after {
  left: 16px;
  background: rgba(13, 71, 161, 0.85);
}

/* Interactive Quote Calculator Widget */
.quote-wizard-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--espofrio-border);
  padding: 40px;
}
.quote-step-indicators {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}
.quote-step-indicators::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #E2E8F0;
  z-index: 1;
}
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--espofrio-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}
.step-dot.active {
  background: var(--espofrio-blue);
  color: #FFFFFF;
  box-shadow: 0 0 0 5px var(--espofrio-blue-subtle);
}
.step-dot.completed {
  background: var(--espofrio-accent-green);
  color: #FFFFFF;
}

.calc-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.calc-option-btn {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--espofrio-slate);
}
.calc-option-btn:hover {
  border-color: var(--espofrio-blue-light);
  background: #F0F7FF;
}
.calc-option-btn.selected {
  border-color: var(--espofrio-blue);
  background: var(--espofrio-blue-subtle);
  color: var(--espofrio-blue-dark);
  box-shadow: var(--shadow-sm);
}

/* Floating Actions (WhatsApp & Emergency) */
.floating-actions-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.btn-float-wa {
  background: #25D366;
  color: #FFFFFF;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  position: relative;
}
.btn-float-wa:hover {
  transform: scale(1.1);
  color: #FFFFFF;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
}
.btn-float-wa .wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--espofrio-dark);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-float-wa:hover .wa-tooltip {
  opacity: 1;
}

/* Footer Overhaul */
.espofrio-footer {
  background: var(--espofrio-dark);
  color: #94A3B8;
  padding: 70px 0 30px 0;
  font-size: 0.92rem;
}
.espofrio-footer h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.espofrio-footer a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}
.espofrio-footer a:hover {
  color: #FFFFFF;
}
.espofrio-footer .contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.espofrio-footer .contact-info-list li {
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding-top: 25px;
}

/* Commercial / HORECA Section */
.horeca-highlight-box {
  background: linear-gradient(135deg, #0A3780 0%, #0F172A 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.horeca-highlight-box h2, .horeca-highlight-box h3 {
  color: #FFFFFF;
}
.horeca-tag {
  background: rgba(229, 57, 53, 0.25);
  color: #FF5252;
  border: 1px solid #FF5252;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .espofrio-hero h1 {
    font-size: 2.3rem;
  }
  .hero-quick-cards {
    grid-template-columns: 1fr;
  }
  .stat-item {
    margin-bottom: 20px;
  }
}

/* Service & Portfolio Image Alignment */
.service-img-card {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  transition: transform 0.3s ease;
}
.service-img-card:hover {
  transform: scale(1.02);
}
.bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-md);
}
@media (max-width: 767px) {
  .service-img-card {
    height: 260px;
  }
}


