/*
Theme Name: Full Service Dental Lab
Theme URI: https://dentecdentallab.com
Author: Dentec
Author URI: https://dentecdentallab.com
Description: Custom WordPress theme for Dentec Dental Lab - full-service dental laboratory specializing in fixed and removable dental restoration products.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dentec
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================
   Dentec Dental Lab - Award-Worthy Design
   Premium visual experience
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1c58d5;
  --primary-dark: #03246b;
  --primary-light: #3a6fdf;
  --primary-glow: rgba(28, 88, 213, 0.25);
  --accent: #1c58d5;
  --accent-hover: #1548b5;
  --dark: #03246b;
  --dark-2: #081633;
  --dark-3: #0C1F45;
  --dark-4: #0E2550;
  --light-bg: #EFF5FF;
  --section-bg: #f1f4fa;
  --text-dark: #0A1B3F;
  --text-body: #3A4A6B;
  --text-muted: #6B7FA0;
  --white: #ffffff;
  --border-color: #D7E2F0;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-xs: 0 1px 3px rgba(28, 88, 213, 0.04);
  --shadow-sm: 0 2px 16px rgba(28, 88, 213, 0.06);
  --shadow-md: 0 8px 30px rgba(28, 88, 213, 0.08);
  --shadow-lg: 0 16px 50px rgba(28, 88, 213, 0.2);
  --shadow-glow: 0 0 40px rgba(28, 88, 213, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-body);
  line-height: 1.8;
  overflow-x: hidden;
  font-size: 16px;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
}

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

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 100px 0;
  position: relative;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Keyframe Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(28, 88, 213, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(28, 88, 213, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dropdownReveal {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand img {
  height: 48px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
  height: 40px;
}

.navbar .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 18px !important;
  font-size: 15px;
  position: relative;
  letter-spacing: 0.3px;
}

.navbar .nav-link::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.navbar .nav-link:hover::before,
.navbar .nav-link.active::before {
  transform: scaleX(1);
}

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

/* Remove the old active indicator */
.navbar .nav-link.active::after {
  display: none;
}

/* Dropdown caret */
.navbar .nav-link.dropdown-toggle::after {
  content: '+';
  border: none;
  vertical-align: middle;
  margin-left: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 14px 0;
  margin-top: 0;
  top: 100%;
  min-width: 250px;
  animation: dropdownReveal 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Invisible bridge to prevent hover gap */
@media (min-width: 992px) {
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
  }
}

.dropdown-item {
  padding: 11px 26px;
  font-size: 15px;
  color: var(--text-body);
  transition: var(--transition-fast);
  font-weight: 400;
  position: relative;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.dropdown-item:hover {
  background: var(--light-bg);
  color: var(--text-dark);
  padding-left: 30px;
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

/* Navbar phone */
.navbar-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 24px;
  text-decoration: none;
  color: var(--text-dark);
  padding: 6px 0;
}

.navbar-phone .phone-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
  animation: pulse-glow 3s infinite;
}

.navbar-phone:hover .phone-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(28, 88, 213, 0.4);
}

.navbar-phone .phone-text {
  line-height: 1.2;
}

.navbar-phone .phone-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.navbar-phone .phone-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* ---------- Hero Carousel Section ---------- */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel > .row {
  min-height: 600px;
}

.hero-carousel .carousel {
  height: 100%;
}

.hero-carousel .carousel-inner {
  height: 100%;
}

.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel .col-lg-6:first-child {
  padding-left: calc((100vw - 1140px) / 2);
  background: #eff5ff;
  position: relative;
}

/* Decorative dots on hero */
.hero-carousel .col-lg-6:first-child::before {
  content: '';
  position: absolute;
  top: 40px;
  right: 30px;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(circle, var(--primary) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.12;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

/* Decorative ring */
.hero-carousel .col-lg-6:first-child::after {
  content: '';
  position: absolute;
  bottom: 80px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  opacity: 0.08;
  z-index: 1;
  animation: float 8s ease-in-out infinite reverse;
}

@media (min-width: 1400px) {
  .hero-carousel .col-lg-6:first-child {
    padding-left: calc((100vw - 1320px) / 2);
  }
}

.hero-carousel .slide-content {
  background: #eff5ff;
  padding: 70px 55px 100px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-carousel .slide-content .product-thumb {
  max-height: 160px;
  max-width: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 30px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
  transition: transform 0.5s ease;
}

.hero-carousel .slide-content:hover .product-thumb {
  transform: scale(1.03);
}

.hero-carousel .slide-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero-carousel .slide-content p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-carousel .slide-content .btn-view-more {
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 12px 32px 12px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  transition: var(--transition);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.hero-carousel .slide-content .btn-view-more .btn-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.hero-carousel .slide-content .btn-view-more:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(28, 88, 213, 0.35);
  color: var(--white);
}

/* Right static image */
.hero-carousel .slide-image {
  height: 100%;
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

.hero-carousel .slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.hero-carousel .slide-image:hover img {
  transform: scale(1.05);
}

/* Decorative overlay on right image */
.hero-carousel .slide-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 88, 213, 0.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-carousel .slide-image::after {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 35px solid rgba(28, 88, 213, 0.08);
  pointer-events: none;
  z-index: 1;
  animation: rotate 30s linear infinite;
}

/* Carousel controls */
.hero-carousel .carousel-nav {
  display: flex;
  gap: 10px;
  padding: 0 55px 35px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;
}

.hero-carousel .carousel-nav .nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--dark);
  background: transparent;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.hero-carousel .carousel-nav .nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(28, 88, 213, 0.3);
}

/* ---------- Standard Hero (inner pages) ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 27, 63, 0.93) 0%, rgba(28, 88, 213, 0.88) 100%);
  z-index: 1;
}

/* Subtle cyan glow on hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 88, 213, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero .btn-primary-custom {
  margin-right: 12px;
  margin-bottom: 10px;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.hero-features li {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-features li i {
  color: var(--white);
  font-size: 1.2rem;
}

.hero-cta {
  margin-bottom: 24px;
}

.hero-cta.btn-primary-custom {
  background: var(--white);
  color: var(--dark);
}

.hero-cta.btn-primary-custom .btn-icon {
  background: var(--primary);
  color: var(--white);
}

.hero-cta.btn-primary-custom:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Page hero */
.page-hero {
  min-height: 300px;
  padding: 130px 0 60px;
}

.page-hero::before {
  background: linear-gradient(to right, var(--primary-dark) 40%, rgba(3, 36, 107, 0.15) 100%);
}

.page-hero::after {
  display: none;
}

.page-hero h1 {
  font-size: 2.6rem;
}

.breadcrumb-custom {
  background: none;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-custom .breadcrumb-item,
.breadcrumb-custom .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.breadcrumb-custom .breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--primary);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 12px 32px 12px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary-custom .btn-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  color: var(--white);
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(28, 88, 213, 0.35);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  padding: 13px 38px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-primary-nav {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary-nav:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  position: relative;
  padding: 0 20px;
}

.section-header .section-label::before,
.section-header .section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--primary);
}

.section-header .section-label::before { right: 100%; }
.section-header .section-label::after { left: 100%; }

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin: 18px auto 0;
  border-radius: 3px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), transparent, var(--primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-card .card-img-wrapper {
  overflow: hidden;
  height: 220px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.product-card .card-body {
  padding: 26px;
}

.product-card .card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.product-card .card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.product-card .card-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card .card-link i {
  transition: transform 0.3s ease;
}

.product-card .card-link:hover {
  color: var(--primary);
}

.product-card .card-link:hover i {
  transform: translateX(4px);
}

/* ---------- Contact / Appointment Section ---------- */
.contact-bar {
  background: var(--light-bg);
  padding: 100px 0;
  position: relative;
  overflow: visible;
}

.contact-bar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
}

/* Left: Info */
.contact-bar-info {
  padding-right: 20px;
}

.contact-bar-label-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.contact-bar-label-tag i {
  font-size: 1rem;
}

.contact-bar-info h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.25;
}

.contact-bar-info h3 span {
  color: var(--primary);
}

.contact-bar-info > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-bar-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  transition: var(--transition-fast);
}

.contact-bar-item:hover {
  background: transparent;
}

.contact-bar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-bar-icon i {
  font-size: 1.1rem;
  color: var(--white);
}

.contact-bar-item:hover .contact-bar-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(28, 88, 213, 0.3);
}

.contact-bar-item .contact-bar-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.contact-bar-item a {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-bar-item a:hover {
  color: var(--primary);
}

/* Right: Form */
.contact-bar-form-wrapper {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-bar-form-wrapper .form-control,
.contact-bar-form-wrapper .form-select {
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-bar-form-wrapper textarea.form-control {
  border-radius: var(--radius);
}

.contact-bar-form-wrapper .form-control::placeholder {
  color: #9AAAB8;
}

.contact-bar-form-wrapper .form-control:focus,
.contact-bar-form-wrapper .form-select:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 88, 213, 0.1);
  color: var(--text-dark);
}

.btn-submit-bar {
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 12px 32px 12px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.btn-submit-bar .btn-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-submit-bar:hover {
  color: var(--white);
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(28, 88, 213, 0.35);
}

/* ---------- FAQ Image ---------- */
.faq-image {
  position: relative;
}

.faq-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.faq-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(circle, var(--primary) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.12;
  z-index: -1;
  border-radius: 8px;
}

.faq-image::after {
  content: '';
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  opacity: 0.1;
  animation: float 5s ease-in-out infinite;
}

/* ---------- Featured Cases ---------- */
.featured-cases {
  position: relative;
  overflow: hidden;
}

.featured-cases::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover img {
  transform: scale(1.12);
}

.case-card .case-overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  color: var(--white);
  transition: var(--transition);
}

.case-card:hover .case-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(28, 88, 213, 0.15) 50%, rgba(0, 0, 0, 0.85) 100%);
}

.case-card .case-overlay h5 {
  color: var(--white);
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 600;
  transform: translateY(5px);
  transition: transform 0.3s ease;
}

.case-card:hover .case-overlay h5 {
  transform: translateY(0);
}

/* ---------- FAQ Section ---------- */
.faq-section {
  background: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 88, 213, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.faq-section .accordion-item {
  border: 1px solid #e8eef6;
  border-radius: 16px !important;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: none;
  transition: var(--transition);
  background: var(--white);
}

.faq-section .accordion-item:has(.accordion-button:not(.collapsed)) {
  box-shadow: 0 4px 20px rgba(3, 36, 107, 0.08);
  border-color: rgba(28, 88, 213, 0.15);
}

.faq-section .accordion-button {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  padding: 22px 26px;
  background: var(--white);
  gap: 16px;
  transition: var(--transition);
  flex-direction: row;
}

.faq-section .accordion-button::after {
  content: '';
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  flex-shrink: 0;
  transition: var(--transition);
  order: 1;
  margin-left: auto;
}

.faq-section .accordion-button:not(.collapsed)::after {
  background-color: var(--primary);
  transform: rotate(90deg);
}

.faq-section .accordion-button:not(.collapsed) {
  background: var(--white);
  color: var(--dark);
  box-shadow: none;
}

.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.faq-section .accordion-body {
  padding: 0 26px 22px;
  color: var(--text-body);
  line-height: 1.85;
  font-size: 0.95rem;
}

/* ---------- Services Sidebar ---------- */
.sidebar-wrapper {
  position: sticky;
  top: 100px;
}

.services-sidebar {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 4px 24px rgba(3, 36, 107, 0.07);
  border: 1px solid rgba(215, 226, 240, 0.6);
}

.services-sidebar h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.services-sidebar .sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services-sidebar .sidebar-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 50px;
  background: var(--light-bg);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.services-sidebar .sidebar-list li a:hover,
.services-sidebar .sidebar-list li a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(28, 88, 213, 0.25);
}

.services-sidebar .sidebar-list li a .sidebar-arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: var(--transition);
}

.services-sidebar .sidebar-list li a:hover .sidebar-arrow,
.services-sidebar .sidebar-list li a.active .sidebar-arrow {
  color: var(--white);
}

/* ---------- Sidebar Contact Box ---------- */
.sidebar-contact {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 28px;
  margin-top: 20px;
  box-shadow: 0 4px 24px rgba(3, 36, 107, 0.07);
  border: 1px solid rgba(215, 226, 240, 0.6);
}

.sidebar-contact h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.sidebar-contact .sidebar-contact-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.sidebar-contact .contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-contact .contact-info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.sidebar-contact .contact-info-list li i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ---------- Floating Tooth Decorations ---------- */
.tooth-float {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  font-size: 80px;
  color: var(--primary);
}

.tooth-float svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.tooth-float-1 {
  top: 15%;
  right: 5%;
  animation: float 7s ease-in-out infinite;
  font-size: 100px;
}

.tooth-float-2 {
  bottom: 20%;
  left: 3%;
  animation: float 9s ease-in-out infinite reverse;
  font-size: 70px;
}

.tooth-float-3 {
  top: 40%;
  left: 8%;
  animation: float 8s ease-in-out infinite 1s;
  font-size: 50px;
  opacity: 0.03;
}

.tooth-float-4 {
  bottom: 10%;
  right: 8%;
  animation: float 6s ease-in-out infinite 0.5s;
  font-size: 60px;
  opacity: 0.035;
}

.tooth-float-5 {
  top: 8%;
  left: 15%;
  animation: float 10s ease-in-out infinite 2s;
  font-size: 45px;
  opacity: 0.03;
}

/* 3D Tooth Decorative Floats */
.tooth-3d {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 200px;
  height: auto;
}

.tooth-3d-1 {
  top: 50%;
  left: -20px;
  width: 550px;
  opacity: 0.1;
  animation: float-tooth-1 3.5s ease-in-out infinite;
}

.tooth-3d-2 {
  top: 10px;
  right: 0;
  width: 500px;
  opacity: 0.1;
  animation: float-tooth-2 3.5s ease-in-out infinite;
}

@keyframes float-tooth-1 {
  0%, 100% { transform: translateY(-50%) rotate(-40deg); }
  50% { transform: translateY(calc(-50% - 14px)) rotate(-35deg); }
}

@keyframes float-tooth-2 {
  0%, 100% { transform: scaleX(-1) rotate(-35deg) translateY(0); }
  50% { transform: scaleX(-1) rotate(-30deg) translateY(-14px); }
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(to bottom, var(--light-bg) 60%, #03246b 60%);
  padding: 60px 0 80px;
  text-align: left;
  position: relative;
  overflow: visible;
  margin-bottom: 0;
  z-index: 2;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  background: #1c58d5;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
}

.cta-section .row {
  align-items: center;
}

.cta-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  min-height: 320px;
  border-radius: 0 24px 24px 0;
  padding: 20px;
}

.cta-section .col-lg-7 {
  padding: 50px 40px 50px 50px;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 0 30px;
  line-height: 1.8;
}

.cta-section .btn-primary-custom {
  background: var(--white);
  color: var(--dark);
  padding: 12px 32px 12px 12px;
  font-size: 0.95rem;
}

.cta-section .btn-primary-custom .btn-icon {
  background: var(--primary);
  color: var(--white);
}

.cta-section .btn-primary-custom:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- Footer ---------- */
.footer {
  background: #03246b;
  color: rgba(255, 255, 255, 0.6);
  padding: 0;
  position: relative;
}

/* Gradient top border - removed for CTA overlap */

.footer .footer-main {
  padding: 40px 0 0;
}

.footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 26px;
  position: relative;
  padding-bottom: 14px;
  font-weight: 600;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.85;
}

.footer .footer-links {
  list-style: none;
  padding: 0;
}

.footer .footer-links li {
  margin-bottom: 12px;
}

.footer .footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.footer .footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer .footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.footer .footer-contact i {
  color: var(--primary);
  margin-top: 4px;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  margin-top: 50px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Contact Page ---------- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(28, 88, 213, 0.1);
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-info-card .icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-info-card:hover .icon-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.contact-info-card .icon-box i {
  font-size: 1.2rem;
  color: var(--primary);
  transition: var(--transition);
}

.contact-info-card:hover .icon-box i {
  color: var(--white);
}

.contact-info-card h6 {
  color: var(--text-dark);
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-info-card p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Product Detail Page ---------- */
.product-overview {
  padding: 80px 0;
}

.product-overview .product-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.product-overview .product-img img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.product-overview .product-img:hover img {
  transform: scale(1.03);
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light-bg);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 4px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-badge:hover {
  border-color: var(--primary);
  background: rgba(28, 88, 213, 0.06);
  color: var(--primary);
}

.feature-badge i {
  color: var(--primary);
}

.product-types {
  background: var(--light-bg);
  padding: 80px 0;
}

.type-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  height: 100%;
  transition: var(--transition);
}

.type-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.type-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.type-card .card-body {
  padding: 26px;
}

.type-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.type-card .card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Spec Table */
.spec-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(3, 36, 107, 0.08);
  border: none;
}

.spec-table table {
  margin-bottom: 0;
}

.spec-table th {
  background: linear-gradient(135deg, var(--primary), #3a6fdf);
  color: var(--white);
  font-weight: 600;
  padding: 18px 28px;
  font-size: 0.95rem;
  border: none;
  letter-spacing: 0.3px;
}

.spec-table th:first-child {
  border-radius: 0;
}

.spec-table th:last-child {
  border-radius: 0;
}

.spec-table td {
  padding: 16px 28px;
  font-size: 0.9rem;
  border-bottom: 1px solid #eef2f8;
  vertical-align: middle;
  transition: background 0.2s ease;
  color: var(--text-dark);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--dark);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background: #f8faff;
}

/* ---------- Category Page ---------- */
.category-intro {
  padding: 60px 0;
  text-align: center;
}

.category-intro p {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.products-grid {
  padding: 0 0 80px;
}

/* ---------- Utility Classes ---------- */
.bg-light-custom {
  background: var(--light-bg);
}

.text-accent {
  color: var(--accent);
}

.text-primary-custom {
  color: var(--primary);
}

/* ---------- Animations ---------- */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
[data-aos="fade-up"].aos-animate:nth-child(1) { transition-delay: 0s; }
[data-aos="fade-up"].aos-animate:nth-child(2) { transition-delay: 0.1s; }
[data-aos="fade-up"].aos-animate:nth-child(3) { transition-delay: 0.2s; }
[data-aos="fade-up"].aos-animate:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .services-sidebar .sidebar-list li a {
    padding: 12px 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 991.98px) {
  .sidebar-wrapper {
    position: static;
  }

  .services-sidebar,
  .sidebar-contact {
    margin-bottom: 16px;
  }
  .hero {
    min-height: 450px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 70px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .dropdown-menu {
    box-shadow: none;
    border: none;
    padding-left: 16px;
    animation: none;
  }

  .dropdown-item::before {
    display: none;
  }

  .navbar-phone {
    margin-left: 0;
    margin-top: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
  }

  .navbar .nav-link::before {
    display: none;
  }

  /* Hero carousel responsive */
  .hero-carousel > .row {
    min-height: auto;
  }

  .hero-carousel .col-lg-6:first-child {
    padding-left: 0;
  }

  .hero-carousel .col-lg-6:first-child::before,
  .hero-carousel .col-lg-6:first-child::after {
    display: none;
  }

  .hero-carousel .slide-content {
    padding: 48px 32px 80px;
    min-height: auto;
    text-align: center;
    align-items: center;
  }

  .hero-carousel .slide-content .product-thumb {
    max-height: 150px;
    max-width: 240px;
    margin-bottom: 24px;
  }

  .hero-carousel .slide-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
  }

  .hero-carousel .slide-content .btn-view-more {
    margin-top: 4px;
  }

  .hero-carousel .carousel-nav {
    padding: 0;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
  }

  .hero-carousel .carousel-nav .nav-btn {
    width: 40px;
    height: 40px;
  }

  .hero-carousel .slide-content h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  /* Contact bar responsive */
  .contact-bar {
    padding: 60px 0;
    margin-top: -20px;
  }

  .contact-bar-card {
    padding: 30px;
  }

  .contact-bar-info {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .contact-bar-form-wrapper {
    padding: 24px;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand img {
    height: 36px;
  }

  .navbar.scrolled .navbar-brand img {
    height: 32px;
  }

  .hero {
    min-height: 350px;
    padding: 80px 0 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-hero {
    min-height: 180px;
    padding: 70px 0 30px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  section {
    padding: 60px 0;
  }

  .stat-item .stat-number {
    font-size: 2.2rem;
  }

  .contact-form {
    padding: 24px;
  }

  .footer .footer-main {
    padding: 40px 16px 0;
  }

  .cta-section .container {
    padding: 0;
    border-radius: 18px;
  }

  .cta-section {
    padding: 40px 0 60px;
  }

  .cta-image {
    border-radius: 0 0 18px 18px;
    min-height: 220px;
  }

  .cta-section .col-lg-7 {
    padding: 30px 25px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .sidebar-wrapper {
    position: static;
  }

  .services-sidebar {
    margin-bottom: 20px;
  }

  .sidebar-contact {
    margin-bottom: 10px;
  }

  .tooth-float,
  .tooth-3d {
    display: none;
  }

  .product-card .card-img-wrapper {
    height: 180px;
  }

  .hero-carousel .slide-image {
    display: none;
  }

  .hero-carousel .slide-content .product-thumb {
    max-height: 130px;
    max-width: 220px;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .case-card {
    height: 240px;
  }
}

@media (max-width: 575.98px) {
  .btn-primary-custom,
  .btn-outline-custom {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .hero-carousel .slide-content {
    padding: 40px 20px 80px;
  }

  .hero-carousel .slide-content h2 {
    font-size: 1.4rem;
  }

  .hero-carousel .slide-content .product-thumb {
    max-height: 120px;
    max-width: 200px;
  }

  .section-header .section-label::before,
  .section-header .section-label::after {
    display: none;
  }
}
