/* ==========================================================================
   Ace Carpet Cleaners Dublin — 2026 Modern Sovereign Edition
   Palette: Crimson Red (#d22228), Crisp White (#ffffff), Deep Slate (#0f172a)
   ========================================================================== */

:root {
  --ace-red: #d22228;
  --ace-red-dark: #b91c1c;
  --ace-red-light: #fee2e2;
  --ace-red-glow: rgba(210, 34, 40, 0.25);
  --ace-dark: #0f172a;
  --ace-slate: #1e293b;
  --ace-muted: #64748b;
  --ace-light-bg: #f8fafc;
  --ace-white: #ffffff;
  --ace-gold: #f59e0b;
  --ace-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ace-heading-font: 'Space Grotesk', var(--ace-font);
}

body {
  font-family: var(--ace-font);
  color: var(--ace-slate);
  background-color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 60px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ace-heading-font);
  color: var(--ace-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Announcement Top Bar */
.top-bar {
  background: var(--ace-dark);
  color: #cbd5e1;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: var(--ace-red);
}

/* Header & Navbar */
.navbar-brand img {
  height: 50px !important;
  max-height: 52px !important;
  width: auto !important;
  display: block;
}

.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--ace-dark) !important;
  padding: 8px 16px !important;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--ace-red) !important;
}

.btn-ace-red {
  background: linear-gradient(135deg, #d22228 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 22px;
  border: none;
  box-shadow: 0 4px 14px var(--ace-red-glow);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-ace-red:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(210, 34, 40, 0.35);
}

.btn-ace-outline {
  background: transparent;
  color: var(--ace-red) !important;
  border: 2px solid var(--ace-red);
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-ace-outline:hover {
  background: var(--ace-red);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 90% 10%, rgba(210, 34, 40, 0.06) 0%, transparent 50%), linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 60px 0 70px;
  border-bottom: 1px solid #e2e8f0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ace-red-light);
  color: var(--ace-red);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ace-dark);
  margin-bottom: 18px;
}

.hero-title span.text-highlight {
  color: var(--ace-red);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ace-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Quick Estimate Card */
.quote-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  position: relative;
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 4px;
  background: linear-gradient(90deg, #d22228, #f59e0b);
  border-radius: 4px 4px 0 0;
}

/* Trust Bar */
.trust-bar {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 24px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 46px;
  height: 46px;
  background: var(--ace-red-light);
  color: var(--ace-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Service Card */
.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(210, 34, 40, 0.3);
}

.service-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

.service-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Before & After Cards */
.before-after-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.ba-split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.ba-pane {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.ba-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ba-label.before {
  left: 8px;
  background: #0f172a;
  color: #f8fafc;
}

.ba-label.after {
  right: 8px;
  background: #d22228;
  color: #ffffff;
}

/* Review Card */
.review-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #f59e0b;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.review-author {
  font-weight: 700;
  color: var(--ace-dark);
  font-size: 0.95rem;
}

.review-source {
  font-size: 0.75rem;
  color: var(--ace-muted);
}

/* Story / Quality section */
.story-section {
  background: var(--ace-dark);
  color: #ffffff;
  padding: 70px 0;
}

.story-section h2, .story-section h3 {
  color: #ffffff;
}

.story-highlight {
  border-left: 3px solid var(--ace-red);
  padding-left: 18px;
  font-style: italic;
  color: #cbd5e1;
}

/* Mobile Sticky Bar */
.mobile-sticky-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-top: 1px solid #e2e8f0;
}

@media (min-width: 992px) {
  .mobile-sticky-cta {
    display: none;
  }
}

.mobile-cta-btn {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-cta-btn.call {
  background: var(--ace-red);
  color: #ffffff;
}

.mobile-cta-btn.whatsapp {
  background: #25d366;
  color: #ffffff;
}

/* Footer */
footer {
  background: #090d16;
  color: #94a3b8;
  padding: 60px 0 25px;
  font-size: 0.92rem;
}

footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--ace-red);
}

footer ul.list-unstyled li {
  margin-bottom: 9px;
}

/* ==========================================================================
   Logo & Brand Styling (Fix Aspect Ratio & Container)
   ========================================================================== */
.navbar-brand img {
  height: 52px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain !important;
  display: inline-block;
}

.footer-logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.25rem;
}

.footer-logo-wrapper img,
img.footer-logo {
  height: 52px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain !important;
  display: block;
}

/* ==========================================================================
   2026 Ultra-Modern Rotator Preloader (Ace Carpet Cleaners Sovereign Edition)
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, #131b2e 0%, #080c14 65%, #020408 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

/* Ambient cyber glow & grid */
#preloader::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(210, 34, 40, 0.12) 0%, rgba(6, 182, 212, 0.06) 35%, transparent 70%);
  animation: preloaderPulseAmbient 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes preloaderPulseAmbient {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1; }
}

.ace-rotator-system {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Ring 1: Outer Neon Crimson Precision Tracker */
.rotator-ring-outer {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 2px dashed rgba(210, 34, 40, 0.45);
  border-top: 3px solid #d22228;
  border-right: 3px solid #f87171;
  filter: drop-shadow(0 0 14px rgba(210, 34, 40, 0.8));
  animation: aceSpinClockwise 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Ring 2: Segmented Gyroscopic Cyan Orbit */
.rotator-ring-middle {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-left: 3px solid #06b6d4;
  border-bottom: 3px solid #22d3ee;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.75));
  animation: aceSpinCounter 2.4s linear infinite;
}

/* Ring 3: Hydro-Ultrasonic Vortex Turbine */
.rotator-ring-inner {
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 2px dotted rgba(255, 255, 255, 0.4);
  border-top: 2.5px solid #ffffff;
  border-bottom: 2.5px solid #d22228;
  animation: aceSpinClockwise 1.6s linear infinite;
}

/* Orbiting Optical Nodes */
.rotator-satellite {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: aceSpinCounter 3.6s linear infinite;
  pointer-events: none;
}
.rotator-satellite::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d22228;
  box-shadow: 0 0 16px #d22228, 0 0 30px #ef4444;
}
.rotator-satellite::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  margin-left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 16px #06b6d4, 0 0 28px #22d3ee;
}

/* Ultrasonic Extraction Wave Pulse */
.rotator-pulse-wave {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 34, 40, 0.35) 0%, rgba(6, 182, 212, 0.15) 60%, transparent 80%);
  animation: acePulseWave 1.8s ease-out infinite;
}

@keyframes acePulseWave {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Core Emblem Portal */
.rotator-core-badge {
  position: relative;
  z-index: 10;
  width: 88px;
  height: 88px;
  background: rgba(15, 23, 42, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(210, 34, 40, 0.35);
  backdrop-filter: blur(10px);
  padding: 8px;
  animation: aceCoreFloat 2.8s ease-in-out infinite alternate;
}

.rotator-core-badge img {
  max-width: 68px;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

@keyframes aceSpinClockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes aceSpinCounter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes aceCoreFloat {
  0% { transform: scale(0.96); box-shadow: 0 0 20px rgba(210, 34, 40, 0.3); }
  100% { transform: scale(1.04); box-shadow: 0 0 35px rgba(6, 182, 212, 0.5); }
}

/* Rotator HUD Text & Metrics */
.rotator-hud {
  margin-top: 32px;
  text-align: center;
  z-index: 10;
}

.rotator-brand-title {
  font-family: var(--ace-heading-font);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.rotator-brand-title span {
  color: #d22228;
}

.rotator-status-text {
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rotator-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: preloaderDotBlink 0.9s infinite alternate;
}

@keyframes preloaderDotBlink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* High-Tech Progress Track */
.rotator-progress-wrapper {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.rotator-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d22228 0%, #06b6d4 50%, #22c55e 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.8);
  transition: width 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

