/**
 * =============================================================================
 * @encoding UTF-8
 * @author [Сетевые бизнес технологии](//netbis.ru)
 * @project [Авиценна - Стоматологическая клиника](//avicenamc.ru)
 * @summary Главный CSS файл - импорт всех модулей стилей
 * @created 2025-01
 * @modified 2025-01
 *
 * @include colors.css, components.css, layout.css
 *
 * @remarks Центральная точка подключения всех стилей сайта
 * ============================================================================
 */

/* Импорт модульных стилей */
@import url('colors.css');
@import url('components.css');
@import url('layout.css');
@import url('banners.css');

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a202c;
  background-color: #ffffff;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #4a5568;
}

a {
  color: var(--dental-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dental-green-hover);
}

/* Утилитарные классы */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

/* Отступы */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Размеры */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-full { max-width: 100%; }

/* Позиционирование */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Видимость */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--dental-green-opacity-20);
  }
  50% {
    box-shadow: 0 0 20px var(--dental-green-glow);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, var(--dental-green-opacity-10), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Тени */
.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

/* Скругления */
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Переходы */
.transition {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

.transition-premium {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-smooth {
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Специальные эффекты */
.backdrop-blur {
  backdrop-filter: blur(10px);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Печать */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* =========================================
   Недостающие Utility Classes (Tailwind-like)
   ========================================= */

/* Layout & Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }

/* Positioning */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Sizing & Objects */
.object-cover { object-fit: cover; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.container { width: 100%; margin-right: auto; margin-left: auto; }

/* Colors & Backgrounds */
.bg-black { background-color: #000000; }
.bg-opacity-40 { opacity: 0.4; }
.text-white { color: #ffffff; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-600 { color: #4b5563; }
.text-gray-900 { color: #111827; }

/* Grid System (Simplified) */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Media Queries for Grid & Layout */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Typography */
.font-playfair { font-family: 'Playfair Display', serif; }
.font-lato { font-family: 'Lato', sans-serif; } /* Fallback if Lato not loaded, but preserves class logic */
.leading-tight { line-height: 1.25; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }

/* Animations */
.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* =========================================
   Styles moved from header.php
   ========================================= */

.nav-link {
  color: #2C2C2C; /* dental-gray */
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.nav-link:hover {
  color: #1A6B4A; /* dental-green */
}
.nav-link.active {
  color: #1A6B4A; /* dental-green */
}

.nav-link-mobile {
  color: #2C2C2C; /* dental-gray */
  font-weight: 500;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  display: block;
  text-decoration: none;
}
.nav-link-mobile:hover,
.nav-link-mobile.active {
  color: #2D5016; /* dental-green */
}

/* Дополнительные стили для мобильного меню */
#mobile-menu {
  position: relative;
  z-index: 40;
  width: 100%;
  background-color: white;
  border-top: 1px solid #F0F4EC;
  margin-top: 1rem;
  padding-bottom: 1rem;
}

#mobile-menu.hidden {
  display: none !important;
}

#mobile-menu:not(.hidden) {
  display: block !important;
}

#mobile-menu a[href="#appointment"] {
  display: block;
  background-color: #1A6B4A; /* dental-green */
  color: white;
  padding: 0.75rem 1.5rem; /* py-3 px-6 */
  border-radius: 0.5rem; /* rounded-lg */
  font-weight: 500; /* font-medium */
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

#mobile-menu a[href="#appointment"]:hover {
  background-color: #145A42; /* dental-green-hover */
}

/* Стили для кнопки мобильного меню */
#mobile-menu-button {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #2C2C2C;
}

#mobile-menu-button:hover {
  color: #2D5016;
}

/* Медиа-запросы для дополнительной совместимости */
@media (max-width: 1023px) {
  #mobile-menu-button {
    display: block !important;
  }
}

@media (min-width: 1024px) {
  #mobile-menu {
    display: none !important;
  }
  #mobile-menu-button {
    display: none !important;
  }
}
