/* ===== JUST SMILEZ DENTAL - PREMIUM CUSTOM STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

/* White display headings on teal/cyan gradients — improves thin-serif legibility */
h1.font-display.text-white,
h2.font-display.text-white {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

:root {
  --brand-primary: #6ec1e4;
  --brand-secondary: #00bcd1;
  --brand-accent: #ffa71a;
  --brand-dark: #1E293B;
  --brand-light: #F8FAFC;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* Navbar */
.navbar {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Buttons */
.btn-primary-brand {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #0891b2 100%);
  transition: all 0.3s ease;
}

.btn-primary-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.35);
}

.btn-accent-brand {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #e88900 100%);
  transition: all 0.3s ease;
}

.btn-accent-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 167, 26, 0.3);
}

.btn-pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 167, 26, 0.4);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(255, 167, 26, 0);
  }
}

/* Cards */
.card-lift {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

/* Team Cards */
.team-card img {
  transition: transform 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateX(0) !important;
  pointer-events: auto;
}

.mobile-overlay {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block !important;
  opacity: 1;
}

.hamburger span {
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Header breakpoint override: show hamburger at 1150px and below */
@media (max-width: 1150px) {

  .top-bar-desktop,
  .desktop-nav,
  .desktop-cta {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* Counter Animation */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

/* Floating Buttons */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  animation: float 3s ease-in-out infinite;
}

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  transition: all 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-mobile-cta.visible {
  transform: translateY(0);
}

/* Form Styles */
.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.form-input:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 4px rgba(0, 188, 209, 0.15);
  outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--brand-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-secondary);
}

/* Mobile Dropdown */
.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown-content.open {
  max-height: 500px;
}

.mobile-dropdown-toggle svg {
  transition: transform 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-toggle svg {
  transform: rotate(180deg);
}

/* Hero Background */
.hero-bg {
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Hero sits just below fixed header and follows image ratio */
.hero-section {
  margin-top: 3rem;
  aspect-ratio: 1600 / 550;
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: 5rem;
  }

  .hero-bg {
    background-attachment: scroll;
  }
}

/* Print */
@media print {
  .no-print {
    display: none !important;
  }

  .navbar,
  .floating-cta,
  .floating-whatsapp,
  .sticky-mobile-cta {
    display: none !important;
  }
}