/* ==========================================================================
   APEX TV CARE & REPAIR - MODERN DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  /* Brand Color Palette - Executive Precision Teal & Deep Prussian Navy */
  --primary: #0d1b2a;
  --primary-hover: #1b263b;
  --primary-light: #EAEFF5;
  --primary-glow: rgba(13, 27, 42, 0.22);
  
  --accent: #003049;
  --accent-hover: #002133;
  --accent-light: #E0EDF4;
  --accent-glow: rgba(0, 48, 73, 0.22);
  
  --dark-bg: #0B192C;
  --dark-surface: #12233C;
  --dark-card: #182B46;
  --dark-border: rgba(255, 255, 255, 0.09);
  
  --light-bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-focus: #99F6E4;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;
  
  /* Status Colors */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --info: #0284C7;
  --info-bg: #E0F2FE;
  
  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-primary: 0 8px 20px rgba(13, 27, 42, 0.25);
  --shadow-accent: 0 8px 20px rgba(217, 119, 6, 0.25);
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --container-max: 1240px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

/* Performance & Core Web Vitals: Defer rendering offscreen layout blocks */

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

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.25rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--dark-bg);
  color: var(--text-inverse);
}
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--text-inverse);
}
.section-dark .section-subtitle {
  color: var(--text-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.section-dark .section-tag {
  background-color: rgba(13, 27, 42, 0.2);
  color: #2DD4BF;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-inverse);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.35);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-inverse);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--text-inverse);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background-color: #20BA5A;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-danger {
  background-color: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background-color: #DC2626;
  color: #fff;
}

/* Inner Page Hero (100% Light Mode) */
.page-hero {
  background: radial-gradient(circle at 80% 20%, rgba(13, 27, 42, 0.08) 0%, transparent 60%),
              linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%);
  border-bottom: 1px solid #E2E8F0;
  padding: 2.25rem 0 2.5rem 0;
  text-align: center;
  position: relative;
}

/* Universal Back Navigation */
.page-back-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  justify-content: flex-start;
}
.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 999px;
  color: #0F172A;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
}
.btn-back-link:hover {
  background: #0d1b2a;
  border-color: #0d1b2a;
  color: #FFFFFF;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(13, 27, 42, 0.16);
}
.btn-back-link .back-arrow {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-back-link:hover .back-arrow {
  transform: translateX(-2px);
}
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  color: #64748B;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-back-home:hover {
  background: #EAEFF5;
  color: #0d1b2a;
  border-color: #CBD5E1;
}
.btn-back-header {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  color: #0F172A;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-back-header:hover {
  background: #0d1b2a;
  color: #FFFFFF;
  border-color: #0d1b2a;
  transform: translateX(-2px);
}
.page-hero h1 {
  color: #0F172A;
  font-size: clamp(2.1rem, 3.5vw, 2.85rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: #64748B;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Cards & Components */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

/* Service Grid & Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #BFDBFE;
}
.service-card:hover::before {
  opacity: 1;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.service-card:hover .service-icon-box {
  background-color: var(--primary);
  color: #FFFFFF;
  transition: var(--transition);
}

.service-price-pill {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

/* Why Choose Us Features - Clean Light Mode */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg, 12px);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  color: #0F172A;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-desc {
  color: #64748B;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Gallery Showcase & Lightbox */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 4px 2px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #E2E8F0;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid #E2E8F0;
}

.gallery-pane {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  height: auto;
  min-height: 180px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-card:hover .gallery-pane img {
  transform: scale(1.04);
}

.gallery-label-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.tag-before { background: #EF4444; }
.tag-after { background: #10B981; }

.gallery-info {
  padding: 1.5rem;
  flex-grow: 1;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.gallery-title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.gallery-issue-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 25, 44, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox-modal.active {
  display: flex;
}
.lightbox-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #0F172A;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
}

/* Layout Grids (Contact & About) */
.contact-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
  width: 100%;
}

.about-story-grid > div {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.about-spec-box {
  background: #F8FAFC;
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  box-sizing: border-box;
}

.about-spec-box h4 {
  color: #0B192C;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.about-spec-box ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
  color: #475569;
  font-size: 0.95rem;
}

.about-spec-box li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
  width: 100%;
}

.about-stat-box {
  text-align: center;
  min-width: 0;
}

.about-stat-box h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.about-stat-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.about-contact-card {
  padding: 2.5rem 2rem;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-sizing: border-box;
  width: 100%;
}

.about-contact-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.about-contact-item:last-child {
  margin-bottom: 0;
}

.about-photo-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}

.about-photo-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #1E3A8A;
}

.about-contact-text {
  flex: 1;
  min-width: 0;
}

.about-contact-text h4 {
  color: #0F172A;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.about-contact-text p {
  color: #64748B;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.btn-about-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  gap: 0.2rem;
}

.btn-about-call-main {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.btn-about-call-phone {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.02em;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
  width: 100%;
}

.coverage-card {
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.coverage-card .coverage-icon {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.coverage-card h4 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.coverage-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* Forms & Booking */
.booking-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}
.form-label .required {
  color: var(--danger);
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  border-color: #0d1b2a;
  box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.2);
}

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

.field-error-text {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}
.has-error .field-error-text {
  display: block;
}

.has-error .form-control, .has-error .form-select {
  border-color: var(--danger);
  background-color: #FFF5F5;
}

.file-upload-box {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: var(--transition);
}
.file-upload-box:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Alert Banners */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  position: relative;
}

.alert-success {
  background-color: var(--success-bg);
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.alert-error {
  background-color: var(--danger-bg);
  border: 1px solid #FECACA;
  color: #991B1B;
}
.alert-warning {
  background-color: var(--warning-bg);
  border: 1px solid #FDE68A;
  color: #92400E;
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}
.alert-close:hover {
  opacity: 1;
}

/* Badges */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: capitalize;
}
.badge-warning { background: var(--warning-bg); color: #B45309; }
.badge-info { background: var(--info-bg); color: #0E7490; }
.badge-success { background: var(--success-bg); color: #047857; }
.badge-danger { background: var(--danger-bg); color: #B91C1C; }
.badge-secondary { background: #F1F5F9; color: #475569; }

/* Booking Confirmation Success Card */
.booking-success-box {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  max-width: 680px;
  margin: 2rem auto;
}
.success-check-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin: 0 auto 1.5rem auto;
}
.booking-track-id {
  background: #F1F5F9;
  border: 1px dashed #94A3B8;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-block;
  color: var(--primary);
  margin: 1.25rem 0;
}

/* ==========================================================================
   INTERACTIVE ANIMATION & MOTION SYSTEM (PREMIUM DYNAMIC FEEL)
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.6deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(13, 27, 42, 0.25);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(13, 27, 42, 0);
  }
}

@keyframes pulseWhatsApp {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6), 0 0 0 8px rgba(16, 185, 129, 0.15);
  }
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes shimmerEffect {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(200%) rotate(30deg);
  }
}

@keyframes iconWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

/* Button Shimmer Sheen & Spring Effects */
.btn-teal,
.booking-ribbon-submit {
  position: relative;
  overflow: hidden;
}

.btn-teal::after,
.booking-ribbon-submit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-teal:hover::after,
.booking-ribbon-submit:hover::after {
  opacity: 1;
  animation: shimmerEffect 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-teal:active,
.btn-white-outline:active,
.booking-ribbon-submit:active,
.express-btn:active {
  transform: scale(0.97) translateY(0) !important;
  transition: transform 0.1s ease;
}

/* Express Buttons Pulse & Hover Dynamics */
.express-whatsapp {
  animation: pulseWhatsApp 3.5s infinite;
}

.express-btn:hover .express-icon {
  animation: iconWiggle 0.45s ease;
}

/* Card Hover Elevation & Icon Dynamics */
.feature-box {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.feature-box:hover .feature-icon-circle {
  transform: scale(1.12) rotate(-4deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon-circle {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.stat-card-executive {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

.stat-card-executive:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09) !important;
}

.stat-card-executive:hover .stat-icon-badge {
  transform: scale(1.14) rotate(-5deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-reparo {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.service-card-reparo:hover {
  transform: translateY(-7px) !important;
}

.service-card-reparo:hover .service-card-reparo-icon {
  transform: scale(1.12) rotate(-4deg);
}

.service-card-reparo-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Process Step Interactive Lift */
.process-step {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover {
  transform: translateY(-4px);
}

.process-step:hover .step-badge {
  transform: scale(1.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-badge {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll-Driven Reveal System (Hardware-Accelerated) */
.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   Clean Minimalist Executive Footer
   ========================================================================== */
.ae-footer {
  background: #0B132B !important;
  color: #94A3B8 !important;
  padding: 64px 0 36px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-family: inherit;
}

.ae-footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr !important;
  gap: 48px !important;
  align-items: start;
}

.ae-footer-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none !important;
  margin-bottom: 1.25rem !important;
}

.ae-footer-brand-badge {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  padding: 4px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  margin: 0 !important;
}

.ae-footer-brand-badge img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.ae-footer-brand-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.ae-footer-brand-text strong {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
}

.ae-footer-brand-text strong span {
  color: #38BDF8 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

.ae-footer-brand-text small {
  display: block !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  color: #94A3B8 !important;
  margin-top: 3px !important;
  letter-spacing: 0.02em !important;
}

.ae-footer-desc {
  font-size: 0.86rem;
  color: #8193A8;
  line-height: 1.65;
  margin: 0 0 1.25rem 0;
  max-width: 340px;
}

.ae-footer-loc {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.5;
}

.ae-footer-loc a {
  color: #60A5FA !important;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}

.ae-footer-loc a:hover {
  text-decoration: underline;
}

.ae-footer-col h3 {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #FFFFFF !important;
  margin: 0 0 1.25rem 0 !important;
}

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

.ae-footer-links a {
  color: #8193A8 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  padding: 0 !important;
}

.ae-footer-links a:hover {
  color: #FFFFFF !important;
  transform: translateX(3px);
}

.ae-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ae-footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ae-footer-contact-item span.label {
  font-size: 0.72rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.ae-footer-contact-item a.phone-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF !important;
  text-decoration: none;
  line-height: 1.3;
}

.ae-footer-contact-item a.phone-num:hover {
  color: #60A5FA !important;
}

.ae-footer-contact-item a.phone-alt {
  font-size: 0.88rem;
  color: #8193A8 !important;
  text-decoration: none;
}

.ae-footer-contact-item a.phone-alt:hover {
  color: #FFFFFF !important;
}

.ae-footer-contact-item a.wa-link {
  font-size: 0.88rem;
  color: #34D399 !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ae-footer-contact-item a.wa-link:hover {
  color: #6EE7B7 !important;
  text-decoration: underline;
}

.ae-footer-contact-item p.hours {
  font-size: 0.84rem;
  color: #CBD5E1;
  margin: 0;
  line-height: 1.5;
}

.ae-footer-contact-item p.hours small {
  color: #64748B;
  display: block;
}

.ae-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  margin-top: 48px !important;
  padding-top: 24px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem !important;
  color: #64748B !important;
}

.ae-footer-bottom a {
  color: #64748B !important;
  text-decoration: none;
  margin-left: 18px;
  transition: color 0.2s;
}

.ae-footer-bottom a:hover {
  color: #94A3B8 !important;
}

@media (max-width: 1024px) {
  .ae-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 36px 22px !important;
  }
  .ae-footer-grid > div {
    grid-column: auto !important;
  }
}

@media (max-width: 768px) {
  .ae-footer {
    padding: 38px 0 24px !important;
  }
  .ae-footer-grid {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 28px 18px !important;
  }
  /* 2 in one line: Brand full width, Services & Quick Links side-by-side, Contact full width */
  .ae-footer-col:nth-child(1) {
    grid-column: 1 / -1 !important;
  }
  .ae-footer-col:nth-child(2) {
    grid-column: 1 !important;
  }
  .ae-footer-col:nth-child(3) {
    grid-column: 2 !important;
    padding-left: 8px !important;
  }
  .ae-footer-col:nth-child(4) {
    grid-column: 1 / -1 !important;
  }
  .ae-footer-contact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 20px !important;
  }
  .ae-footer-contact-item:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .ae-footer-contact-item:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .ae-footer-contact-item:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
  }
  .ae-footer-brand {
    gap: 12px !important;
    margin-bottom: 0.75rem !important;
    width: 100% !important;
  }
  .ae-footer-brand-badge {
    width: 46px !important;
    height: 46px !important;
    padding: 3px !important;
  }
  .ae-footer-brand-text strong {
    font-size: 1rem !important;
  }
  .ae-footer-brand-text strong span {
    font-size: 0.72rem !important;
  }
  .ae-footer-brand-text small {
    font-size: 0.7rem !important;
  }
  .ae-footer-desc {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.65rem !important;
    max-width: 100% !important;
  }
  .ae-footer-loc {
    font-size: 0.74rem !important;
    line-height: 1.4 !important;
  }
  .ae-footer-col h3 {
    font-size: 0.85rem !important;
    margin-bottom: 0.65rem !important;
    letter-spacing: 0.04em !important;
  }
  .ae-footer-links a {
    font-size: 0.78rem !important;
    padding: 3px 0 !important;
    line-height: 1.4 !important;
  }
  .ae-footer-contact-item .label {
    font-size: 0.68rem !important;
  }
  .ae-footer-contact-item .phone-num {
    font-size: 0.92rem !important;
  }
  .ae-footer-contact-item .phone-alt {
    font-size: 0.8rem !important;
  }
  .ae-footer-contact-item .hours-time {
    font-size: 0.76rem !important;
  }
  .ae-footer-bottom {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 24px !important;
    padding-top: 16px !important;
    font-size: 0.75rem !important;
  }
  .ae-footer-bottom a {
    margin-left: 0;
  }
}

/* Staggered Entrance for Grids */
.stagger-parent > *:nth-child(1) { transition-delay: 0.04s; }
.stagger-parent > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-parent > *:nth-child(3) { transition-delay: 0.20s; }
.stagger-parent > *:nth-child(4) { transition-delay: 0.28s; }
.stagger-parent > *:nth-child(5) { transition-delay: 0.36s; }
.stagger-parent > *:nth-child(6) { transition-delay: 0.44s; }

/* Header Elevation on Scroll */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-bottom-color: #CBD5E1;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

