/* ===== Warba Smile Landing Page ===== */

:root {
  --purple: #6c2e91;
  --purple-dark: #551f75;
  --purple-light: #8b4db5;
  --silver: #848489;
  --green: #4fc8a6;
  --green-dark: #3da88a;
  --hero-green: #24966f;
  --hero-green-dark: #1a7556;
  --black: #1a1a1a;
  --gray-light: #f5f5f7;
  --gray-border: #e8e8ea;
  --white: #ffffff;

  /* Theme surfaces */
  --bg-page: #ffffff;
  --bg-muted: #f5f5f7;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.95);
  --bg-header-scrolled: rgba(255, 255, 255, 0.97);
  --text-primary: #1a1a1a;
  --text-muted: #848489;
  --border-theme: #e8e8ea;
  --img-border: #ffffff;
  --shadow-soft: rgba(0, 0, 0, 0.06);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --floating-bar-bg: #ffffff;
}

[data-theme="dark"] {
  --black: #f0ecf5;
  --silver: #a8a1b8;
  --gray-light: #181420;
  --gray-border: #342d45;
  --bg-page: #110e17;
  --bg-muted: #181420;
  --bg-card: #211b2d;
  --bg-header: rgba(17, 14, 23, 0.94);
  --bg-header-scrolled: rgba(17, 14, 23, 0.98);
  --text-primary: #f0ecf5;
  --text-muted: #a8a1b8;
  --border-theme: #342d45;
  --img-border: #2a2438;
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --shadow-medium: rgba(0, 0, 0, 0.45);
  --floating-bar-bg: #211b2d;
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

* {
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

body,
.site-body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-x: hidden;
  max-width: 100vw;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background: rgba(108, 46, 145, 0.22);
  color: #111111;
}

::-moz-selection {
  background: rgba(108, 46, 145, 0.22);
  color: #111111;
}

/* ===== Header ===== */
.site-header {
  background: var(--bg-header) !important;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .site-header {
  border-bottom-color: var(--border-theme);
}

.header-scrolled {
  background: var(--bg-header-scrolled) !important;
  box-shadow: 0 4px 24px rgba(108, 46, 145, 0.1);
}

[data-theme="dark"] .header-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav-link {
  position: relative;
  color: var(--text-primary);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--purple);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 46, 145, 0.35);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  transition: all 0.3s;
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 200, 166, 0.4);
}

.btn-outline-purple {
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
  transition: all 0.3s;
}

.btn-outline-purple:hover {
  background: var(--purple);
  color: var(--white);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 420px;
  max-height: 520px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 580px;
    max-height: 680px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .hero-bg {
    background-position: center center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to left,
    rgba(108, 46, 145, 0.75) 0%,
    rgba(108, 46, 145, 0.55) 35%,
    rgba(26, 26, 26, 0.35) 60%,
    rgba(26, 26, 26, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 20;
  isolation: isolate;
}

.hero-section .text-green {
  color: var(--hero-green);
}

.hero-section .hero-badge {
  background-color: var(--hero-green) !important;
}

.hero-section .geo-square-2 {
  background: var(--hero-green);
}

.hero-section .btn-green {
  background: var(--hero-green);
}

.hero-section .btn-green:hover {
  background: var(--hero-green-dark);
}

.hero-text-wrap {
  max-width: 42rem;
}

.hero-mobile-book-wrap {
  display: none;
}

@media (min-width: 1024px) {
  .hero-text-wrap {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
}

@media (max-width: 639px) {
  .hero-section {
    justify-content: center;
  }

  .hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .hero-text-wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0.25rem;
  }

  .hero-text-wrap .hero-badge {
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .hero-text-wrap h1 {
    font-size: 1.65rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
  }

  .hero-text-wrap p.max-w-lg {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.6;
    text-align: center;
    width: 100%;
  }

  .hero-actions {
    margin-top: 110px;
    justify-content: center;
    width: 100%;
  }

  .hero-btn-book {
    display: none !important;
  }

  .hero-mobile-book-wrap {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    margin-top: -1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 30;
  }

  .hero-mobile-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 20rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    background: var(--hero-green);
    box-shadow: 0 10px 28px rgba(36, 150, 111, 0.35);
  }

  .hero-mobile-book-btn:hover {
    background: var(--hero-green-dark);
  }

  .hero-bg {
    background-position: center 22%;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(108, 46, 145, 0.82) 0%,
      rgba(108, 46, 145, 0.45) 35%,
      rgba(26, 26, 26, 0.15) 55%,
      rgba(26, 26, 26, 0.4) 100%
    );
  }
}

/* Geometric Decoration — spread on hero edges */
.hero-geo-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.geo-square {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  animation: floatGeo 5s ease-in-out infinite;
}

/* Top-right cluster */
.geo-square-1 {
  width: 70px;
  height: 70px;
  background: var(--white);
  top: 4%;
  right: 0;
  opacity: 1;
  animation-delay: 0s;
}

.geo-square-2 {
  width: 50px;
  height: 50px;
  background: var(--green);
  top: 16%;
  right: 4%;
  opacity: 1;
  animation-delay: 0.8s;
}

/* Top-left cluster */
.geo-square-3 {
  width: 55px;
  height: 55px;
  background: var(--purple-light);
  top: 8%;
  left: 2%;
  opacity: 0.8;
  animation-delay: 1.2s;
}

/* Bottom-right */
.geo-square-4 {
  width: 60px;
  height: 60px;
  background: #d4d4d8;
  bottom: 15%;
  right: 5%;
  opacity: 0.75;
  animation-delay: 0.4s;
}

/* Bottom-left cluster */
.geo-square-5 {
  width: 45px;
  height: 45px;
  background: var(--white);
  bottom: 20%;
  left: 4%;
  opacity: 0.7;
  animation-delay: 1.6s;
}

.geo-square-6 {
  width: 55px;
  height: 55px;
  background: var(--green);
  bottom: 8%;
  left: 10%;
  opacity: 0.8;
  animation-delay: 2s;
}

@media (min-width: 768px) {
  .geo-square-1 { width: 100px; height: 100px; top: 3%; right: 0; }
  .geo-square-2 { width: 70px; height: 70px; top: 14%; right: 3%; }
  .geo-square-3 { width: 80px; height: 80px; top: 6%; left: 3%; }
  .geo-square-4 { width: 90px; height: 90px; bottom: 12%; right: 6%; }
  .geo-square-5 { width: 60px; height: 60px; bottom: 18%; left: 5%; }
  .geo-square-6 { width: 75px; height: 75px; bottom: 6%; left: 12%; }
}

@media (min-width: 1024px) {
  .geo-square-1 { width: 110px; height: 110px; }
  .geo-square-2 { width: 80px; height: 80px; }
  .geo-square-3 { width: 90px; height: 90px; }
  .geo-square-4 { width: 100px; height: 100px; }
  .geo-square-5 { width: 65px; height: 65px; }
  .geo-square-6 { width: 85px; height: 85px; }
}

/* Mobile: squares behind text, smaller & softer */
@media (max-width: 639px) {
  .hero-text-wrap {
    position: relative;
    z-index: 2;
  }

  .geo-square {
    box-shadow: none;
  }

  .geo-square-1 {
    width: 32px;
    height: 32px;
    top: 3%;
    right: 0;
    bottom: auto;
    opacity: 0.18;
  }

  .geo-square-2 {
    width: 22px;
    height: 22px;
    top: 14%;
    right: 5%;
    bottom: auto;
    opacity: 0.14;
  }

  .geo-square-3 { opacity: 0.22; }
  .geo-square-4 { opacity: 0.2; }
  .geo-square-5 { opacity: 0.18; }
  .geo-square-6 { opacity: 0.2; }
}

@keyframes floatGeo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* ===== Section Styles ===== */
.section-badge {
  display: inline-block;
  background: rgba(108, 46, 145, 0.1);
  color: var(--purple);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.3;
}

.section-subtitle {
  color: var(--text-muted);
  line-height: 1.8;
}

.section-muted {
  background: var(--bg-muted);
  transition: background-color 0.3s ease;
}

.theme-card {
  background: var(--bg-card);
  border: 1px solid var(--border-theme);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.border-theme {
  border-color: var(--border-theme) !important;
}

.mobile-nav-link {
  color: var(--text-primary);
}

.site-mobile-menu {
  background: var(--bg-page);
  transition: background-color 0.3s ease;
}

/* ===== About Section ===== */
.about-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.about-images {
  position: relative;
  min-height: 420px;
}

.about-main-img {
  width: 85%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(108, 46, 145, 0.15);
}

.about-overlay-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  border: 5px solid var(--img-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.about-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--green);
  border-radius: 20px;
  opacity: 0.15;
  z-index: -1;
}

.about-features-grid {
  width: 100%;
  padding-bottom: 80px;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .about-actions {
    gap: 2rem;
    margin-top: 1.25rem;
    justify-content: center;
  }

  .about-actions a {
    padding: 1rem 2.75rem;
    font-size: 1.125rem;
    width: auto;
    max-width: none;
  }
}

/* ===== Services ===== */
.service-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  border: 1px solid var(--border-theme);
  display: flex;
  flex-direction: column;
}

.service-card .p-5 {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.btn-service-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  margin-top: auto;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.3s;
  text-align: center;
}

.btn-service-book:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 200, 166, 0.4);
}

.btn-service-book i {
  font-size: 1.1rem;
}

.wa-icon-pulse {
  display: inline-block;
  animation: waIconPulse 1.4s ease-in-out infinite;
}

.btn-service-book:hover .wa-icon-pulse {
  animation: waIconShake 0.5s ease;
}

@keyframes waIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

@keyframes waIconShake {
  0%, 100% { transform: rotate(0deg) scale(1.2); }
  25% { transform: rotate(-12deg) scale(1.2); }
  75% { transform: rotate(12deg) scale(1.2); }
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(108, 46, 145, 0.15);
  border-color: rgba(108, 46, 145, 0.2);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover img {
  transform: scale(1.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Testimonials (Static) ===== */
.testimonials-more-wrap {
  margin-top: 3.5rem;
  padding-top: 0.5rem;
}

.testimonials-summary {
  text-align: center;
  margin-bottom: 2.5rem;
}

.summary-stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.summary-stars i {
  margin: 0 2px;
}

.summary-text {
  color: var(--silver);
  font-size: 0.95rem;
}

.summary-text strong {
  color: var(--purple);
  font-size: 1.1rem;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 30px var(--shadow-soft);
  border: 1px solid var(--border-theme);
  transition: all 0.3s, background-color 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(108, 46, 145, 0.12);
}

.avatar-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
}

.avatar-purple {
  background: var(--purple);
}

.avatar-green {
  background: var(--green);
}

.avatar-silver {
  background: var(--silver);
}

.star-rating {
  color: #fbbf24;
}

.quote-icon {
  color: var(--purple);
  opacity: 0.2;
  font-size: 2.5rem;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(79, 200, 166, 0.15);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* ===== Map Section ===== */
.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  min-height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 30px var(--shadow-soft);
  border-right: 4px solid var(--purple);
  transition: background-color 0.3s ease;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-theme);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(108, 46, 145, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-dark) 55%, #3d1860 100%);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 360px;
  height: 360px;
  background: rgba(79, 200, 166, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--green);
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 10px 18px;
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.footer-logo {
  max-height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-col {
  text-align: center;
}

@media (min-width: 640px) {
  .footer-col {
    text-align: start;
  }
}

.footer-col .social-icons-wrap {
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-col .social-icons-wrap {
    justify-content: flex-start;
  }
}

.hours-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-days {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}

.hours-time {
  display: block;
  color: var(--green);
  font-weight: 600;
}

/* Footer copyright */
.footer-copyright .footer-license {
  margin-bottom: 6px;
  color: var(--green);
  font-weight: 600;
}

@media (min-width: 640px) {
  .footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .footer-copyright .footer-license {
    margin-bottom: 0;
  }

  .footer-copyright .footer-license::after {
    content: '|';
    margin-right: 0.35rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
  }
}

/* Mobile — services & about */
@media (max-width: 639px) {
  .services-section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .services-section-header .section-badge,
  .services-section-header .section-title,
  .services-section-header .section-subtitle {
    text-align: center;
    width: 100%;
  }

  .about-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-content .about-features-grid,
  .about-content .section-subtitle {
    width: 100%;
    align-self: stretch;
  }

  .about-content .section-badge {
    display: inline-block;
    text-align: center;
  }

  .about-content .section-title {
    text-align: center;
    width: 100%;
  }

  .about-content .section-subtitle {
    text-align: center;
  }

  .about-actions {
    width: 100%;
    align-items: center;
  }

  .about-actions a {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }

  .btn-services-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .testimonials-grid {
    gap: 16px;
  }

  .testimonials-grid .testimonial-card p {
    font-size: 0.85rem;
  }

  .service-card .p-5 {
    padding: 10px;
  }

  .service-card h3 {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .service-card .p-5 > .w-10 {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }

  .service-card .p-5 > .w-10 i {
    font-size: 0.75rem;
  }

  .service-card p.text-silver {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-card img {
    height: 100px;
  }

  .btn-service-book {
    padding: 8px 10px;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  .btn-service-book .wa-icon-pulse {
    font-size: 0.9rem;
  }
}

.social-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--green);
  transform: translateY(-3px);
}

/* ===== Floating Contact Bar (auto open/close) ===== */
.floating-contact-bar {
  position: fixed;
  bottom: 100px;
  right: 20px;
  left: auto;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: var(--floating-bar-bg);
  padding: 6px;
  border-radius: 28px;
  box-shadow: 0 8px 32px var(--shadow-medium);
  border: 1px solid var(--border-theme);
  transition: padding 0.5s ease, gap 0.5s ease, box-shadow 0.5s ease, background-color 0.3s ease;
  overflow: hidden;
}

.floating-contact-bar.is-open {
  padding: 8px;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(108, 46, 145, 0.2);
}

.floating-contact-bar.is-open .floating-contact-trigger {
  margin-bottom: 3px;
}

.floating-contact-bar.is-open .floating-contact-icons {
  padding-top: 2px;
}

.floating-contact-trigger {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.floating-contact-trigger:hover {
  transform: scale(1.08);
}

.floating-contact-trigger .icon-open {
  display: none;
}

.floating-contact-bar.is-open .floating-contact-trigger .icon-closed {
  display: none;
}

.floating-contact-bar.is-open .floating-contact-trigger .icon-open {
  display: block;
}

.floating-contact-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease,
              gap 0.5s ease;
}

.floating-contact-bar.is-open .floating-contact-icons {
  max-height: 280px;
  opacity: 1;
  gap: 8px;
}

.floating-contact-icons a {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-contact-bar.is-open .floating-contact-icons a {
  opacity: 1;
  transform: scale(1);
  animation: contactBounce 2s ease-in-out infinite;
}

.floating-contact-bar.is-open .floating-contact-icons a:nth-child(1) { transition-delay: 0.05s; animation-delay: 0s; }
.floating-contact-bar.is-open .floating-contact-icons a:nth-child(2) { transition-delay: 0.1s; animation-delay: 0.2s; }
.floating-contact-bar.is-open .floating-contact-icons a:nth-child(3) { transition-delay: 0.15s; animation-delay: 0.4s; }
.floating-contact-bar.is-open .floating-contact-icons a:nth-child(4) { transition-delay: 0.2s; animation-delay: 0.6s; }
.floating-contact-bar.is-open .floating-contact-icons a:nth-child(5) { transition-delay: 0.25s; animation-delay: 0.8s; }

.floating-contact-bar:not(.is-open) .floating-contact-icons a {
  transition-delay: 0s;
}

.floating-contact-icons a:hover {
  transform: scale(1.12);
  animation: none;
}

.fcb-whatsapp { background: #25d366; }
.fcb-phone { background: var(--purple); }
.fcb-email { background: #ea4335; }
.fcb-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.fcb-map { background: #4285f4; }

@keyframes contactBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1) translateY(-2px); }
}

@media (min-width: 641px) {
  .floating-contact-bar.is-open {
    flex-direction: column;
  }

  .floating-contact-bar.is-open .floating-contact-icons {
    flex-direction: column;
  }
}

/* ===== Floating WhatsApp Button ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 20px;
  left: auto;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transition: all 0.3s;
  animation: pulseWhatsApp 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWhatsApp {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.85); }
}

@media (max-width: 640px) {
  .floating-contact-bar {
    right: 12px;
    bottom: 96px;
  }

  .floating-contact-bar.is-open {
    gap: 10px;
    padding-bottom: 8px;
  }

  .floating-contact-bar.is-open .floating-contact-icons {
    gap: 8px;
    padding-top: 2px;
  }

  .floating-contact-trigger {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }

  .floating-contact-icons a {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.85rem;
  }

  .floating-whatsapp {
    right: 12px;
    left: auto;
    bottom: 20px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

/* ===== Animations on Scroll ===== */
.fade-in,
.fade-in-left,
.fade-in-right,
.scale-in {
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
  transform: translateY(24px);
}

#services-grid .fade-in {
  transform: translateY(14px);
  transition-duration: 0.32s;
}

.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-right {
  transform: translateX(50px);
}

.scale-in {
  transform: scale(0.92);
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.scale-in.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 380px;
    max-height: 450px;
  }

  .about-main-img {
    width: 100%;
    height: 280px;
  }

  .about-overlay-img {
    width: 50%;
    height: 150px;
  }
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-theme);
  background: var(--bg-card);
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--purple);
  transform: scale(1.06);
}

.theme-toggle .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-light {
  display: block;
  color: var(--purple-light);
}

/* Dark mode — Tailwind utility overrides */
[data-theme="dark"] .text-silver {
  color: var(--text-muted) !important;
}

[data-theme="dark"] #services,
[data-theme="dark"] #location {
  background: var(--bg-page);
}

[data-theme="dark"] .service-card h3,
[data-theme="dark"] .testimonial-card h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .quote-icon {
  color: rgba(139, 77, 181, 0.35);
}

[data-theme="dark"] .section-badge {
  background: rgba(139, 77, 181, 0.2);
  color: #c9a8e0;
}

[data-theme="dark"] .btn-outline-purple {
  border-color: #9b6bc4;
  color: #d4b8eb;
}

[data-theme="dark"] .btn-outline-purple:hover {
  background: var(--purple);
  color: var(--white);
}

[data-theme="dark"] .map-container {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
