:root {
  --primary: #0d6efd;
  --secondary: #1f2937;
  --accent: #f59e0b;
  --light-bg: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
}

.top-bar {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #e5e7eb;
  font-size: 0.9rem;
}

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

.top-bar i {
  color: var(--accent);
}

.top-bar-link {
  color: #e5e7eb;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-link:hover {
  color: #ffffff;
}

.top-quick-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  row-gap: 0.35rem;
  column-gap: 2rem !important;
}

.top-bar-link-text {
  white-space: nowrap;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.site-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.navbar {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.navbar {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.navbar .nav-link {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
}

.navbar .nav-link-appointment {
  color: #dc2626;
}

.navbar .nav-link-appointment:hover,
.navbar .nav-link-appointment.active {
  color: #b91c1c;
}

.hero-carousel .carousel-item {
  height: 78vh;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  background: rgba(15, 23, 42, 0.72);
  border: 2px solid rgba(30, 64, 175, 0.75);
  border-left-width: 6px;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.hero-content .lead {
  margin-bottom: 0;
  white-space: pre-line;
}

.hero-content .btn {
  margin-top: 1rem;
}

.section-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-brand-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
  width: 100%;
}

.about-brand-strip {
  width: 100%;
}

.about-brand-logos-full {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.about-brand-logos-full .about-brand-logo-item {
  flex: 1 0 112px;
  min-width: 112px;
}

.about-brand-logo-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  padding: 0.55rem 0.4rem;
  min-height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.about-brand-logo-image {
  width: 100%;
  max-width: 66px;
  height: 38px;
  object-fit: contain;
}

.about-brand-logo-label {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
}

.about-media-col {
  display: flex;
  justify-content: flex-end;
  align-self: flex-start;
}

.about-media-image {
  width: 100%;
  max-width: 520px;
}

.rich-text-content {
  color: #1e293b;
}

.rich-text-content p:last-child {
  margin-bottom: 0;
}

.rich-text-content p,
.rich-text-content ul,
.rich-text-content ol {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.rich-text-content ul,
.rich-text-content ol {
  padding-left: 1.25rem;
}

.rich-text-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text-content a:hover {
  color: #0b5ed7;
}

.feature-card,
.service-card,
.pricing-card,
.team-card,
.contact-card,
.category-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.service-card:hover,
.pricing-card:hover,
.team-card:hover,
.contact-card:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.service-card img,
.category-card img,
.team-card img {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  height: 200px;
  object-fit: cover;
}

.why-us-list li {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.why-us-list i {
  color: var(--primary);
  margin-top: 4px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.cta-banner {
  background: linear-gradient(120deg, #0f172a, #1d4ed8);
  color: #ffffff;
  border-radius: 1.25rem;
  padding: 2.25rem;
}

.page-hero {
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(29, 78, 216, 0.8)),
    url('https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #ffffff;
  padding: 5rem 0;
}

.pricing-highlight {
  border: 2px solid var(--primary);
}

.floating-contact-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1080;
}

.floating-contact-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.7rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.phone-float {
  background: #0d6efd;
}

.whatsapp-float {
  position: static;
  right: auto;
  bottom: auto;
  background: #25d366;
}

.floating-contact-button:hover {
  color: #ffffff;
  transform: scale(1.05);
}

.map-placeholder {
  border-radius: 1rem;
  min-height: 320px;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(31, 41, 55, 0.75)),
    url('https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1300&q=80') center/cover;
  color: #ffffff;
}

footer {
  background-color: #0f172a;
  color: #cbd5e1;
}

footer a {
  color: #e2e8f0;
}

footer a:hover {
  color: #ffffff;
}

.footer-contact-list li span {
  word-break: break-word;
}

@media (max-width: 991.98px) {
  .hero-carousel .carousel-item {
    height: 65vh;
    min-height: 420px;
  }

  .hero-content {
    padding: 1.2rem 1.25rem;
    border-left-width: 4px;
  }

  .top-bar {
    font-size: 0.8rem;
  }

  .top-bar-content {
    justify-content: center;
    width: 100%;
  }

  .top-quick-links {
    justify-content: center;
    width: auto;
    column-gap: 1.2rem !important;
  }

  .top-bar-link-text {
    display: none;
  }

  .site-logo {
    height: 42px;
    max-width: 160px;
  }

  .about-brand-logos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .about-brand-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
