/**
 * Global Dental Lab - Shared Styles
 * Include this CSS file in all pages for consistent styling
 */

/* Base Typography - Matching Keating Dental Lab Exactly */
/* Using !important to override Tailwind preflight resets */
body,
html {
  font-family: "Inter", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #001B39;
  /* Navy */
}

/* Force Inter on all elements as base */
body *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.heading-font) {
  font-family: "Inter", sans-serif !important;
}

/* Headings - Albert Sans (Keating style) */
h1,
h2,
h3,
h4,
h5,
h6,
.heading-font {
  font-family: "Albert Sans", sans-serif !important;
  font-weight: 800 !important;
  color: #001B39;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 56px;
  /* Larger, bolder */
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 28px;
}

/* Navigation font */
.nav-link,
nav a,
header a {
  font-family: "Inter", sans-serif !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #001B39;
}

/* Button font & Styles */
.btn-primary,
button,
.button,
a.btn-primary {
  font-family: "Inter", sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px !important;
  /* Keating Rectangular Style */
}

/* Base Button Styles */
.btn-primary {
  background-color: #0083C9;
  color: white;
  transition: all 0.3s ease;
  border: 2px solid #0083C9;
}

.btn-primary:hover {
  background-color: #006BA6;
  border-color: #006BA6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 131, 201, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #001B39;
  border: 2px solid #ffffff;
  /* Typically on image bg */
  border-radius: 3px;
  font-family: "Inter", sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: white;
  color: #001B39;
  transform: translateY(-2px);
}

/* Service card hover (Updated for new solid style) */
.service-card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 4px;
  /* Less rounded */
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card .icon-wrapper {
  transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
  /* Subtle effect */
  transform: scale(1.05);
}

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 {
  transition-delay: 0.1s;
}

.fade-up-delay-2 {
  transition-delay: 0.2s;
}

.fade-up-delay-3 {
  transition-delay: 0.3s;
}

.fade-up-delay-4 {
  transition-delay: 0.4s;
}

.fade-up-delay-5 {
  transition-delay: 0.5s;
}

.fade-up-delay-6 {
  transition-delay: 0.6s;
}

/* Stats counter animation */
.stat-number {
  background: linear-gradient(135deg, #2e95a5, #b0986a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Testimonial quote */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: rgba(46, 149, 165, 0.08);
  line-height: 1;
  pointer-events: none;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero text shadow */
.hero-title {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Certification badges */
.cert-badge {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cert-badge:hover {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.08) 100%);
  transform: translateY(-2px);
}

/* Pattern overlay */
.pattern-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232E95A5' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Product card */
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.product-card img {
  transition: transform 0.5s ease;
}

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

/* Breadcrumb */
.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #2e95a5;
}

/* Feature list checkmarks */
.feature-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-check::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #2e95a5;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
  mask-size: cover;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .slide {
    transition: none;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* --- Premium Additions --- */

/* Glassmorphism Utilities */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(34, 34, 34, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shimmer Effect for Buttons */
@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
}

/* Hover Lift Glow */
.hover-lift-glow {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift-glow:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(46, 149, 165, 0.3);
}

/* Parallax Background Class (JS handled, but base style here) */
.parallax-bg {
  transform: scale(1.1);
  /* Slight Zoom for parallax room */
  transition: transform 0.1s linear;
  /* Smooth update */
  will-change: transform;
}

/* Smooth Text Reveal */
.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1), transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-text-hidden {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
  transform: translateY(20px);
}

/* Magnetic Button Effect (Optional JS hooks) */
.magnetic-btn {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}