/* ==========================================================================
   Polish overlay — site-wide visual refinement layer.
   Loaded after main.css on every page. Overrides only, no markup dependency.
   ========================================================================== */

:root {
  --theme-grad: linear-gradient(135deg, #3659ff 0%, #6f00ff 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(39, 52, 139, 0.10);
  --shadow-lg: 0 20px 50px rgba(39, 52, 139, 0.16);
  --shadow-glow: 0 8px 24px rgba(54, 89, 255, 0.28);
}

/* ---------- base typography & rhythm ---------- */
html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { text-align: left; line-height: 1.75; color: #4b5573; }

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

::selection {
  background: #3659ff;
  color: #fff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F3F7FB; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3659ff, #6f00ff);
  border-radius: 10px;
  border: 2px solid #F3F7FB;
}

a:focus-visible,
button:focus-visible,
.theme-btn:focus-visible {
  outline: 2px solid #6f00ff;
  outline-offset: 3px;
}

/* ---------- buttons: more depth, tactile hover ---------- */
.theme-btn {
  background: var(--theme-grad);
  border-radius: 40px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.theme-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(111, 0, 255, 0.34);
}

.theme-btn:active { transform: translateY(-1px); }

/* ---------- header: crisper elevation on scroll ---------- */
.header-2 {
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

#header-sticky.sticky .header-2,
.header-2.sticky {
  box-shadow: var(--shadow-md);
}

/* ---------- hero: richer contrast + slower, calmer overlay ---------- */
.hero-section .slider-image.bg-cover {
  transition: transform 6s var(--ease);
}

.hero-content h1,
.hero-content h2 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88) !important;
  text-align: left;
}

/* ---------- cards: consistent elevation + lift on hover ---------- */
.service-card-items,
.flip-card,
.menu-service-card {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card-items:hover,
.menu-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.flip-card-front,
.flip-card-back {
  box-shadow: var(--shadow-sm);
}

.flip-card:hover .flip-card-inner {
  box-shadow: var(--shadow-md);
}

/* ---------- section rhythm ---------- */
.section-title h2,
.animated-heading {
  position: relative;
}

.section-title p {
  color: #6b7593;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- images: soften hard edges ---------- */
.menu-service-thumb img,
.service-card-items .service-image img {
  border-radius: 14px;
}

/* ---------- footer: subtle depth separation ---------- */
.footer-section {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- accessibility: skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #27348b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 10000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- hero: guaranteed legibility scrim (independent of photo crop) ---------- */
.hero-3 .swiper-slide {
  position: relative;
}

.hero-3 .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(8, 12, 28, 0.82) 0%, rgba(8, 12, 28, 0.66) 32%, rgba(8, 12, 28, 0.32) 58%, rgba(8, 12, 28, 0.06) 78%);
}

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

@media (max-width: 767px) {
  .hero-3 .swiper-slide::after {
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.45) 0%, rgba(8, 12, 28, 0.78) 55%, rgba(8, 12, 28, 0.88) 100%);
  }
}

.hero-content h5 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ---------- hero: slide 2/3 headings (h2) match slide 1 (h1) look exactly ---------- */
.hero-3 .hero-content h2 {
  font-size: 80px;
  line-height: 112%;
  font-weight: 700;
}
@media (max-width: 1399px) {
  .hero-3 .hero-content h2 { font-size: 50px; }
}
@media (max-width: 1199px) {
  .hero-3 .hero-content h2 { font-size: 62px; }
}
@media (max-width: 991px) {
  .hero-3 .hero-content h2 { font-size: 52px; }
}
@media (max-width: 767px) {
  .hero-3 .hero-content h2 { font-size: 42px; }
}
@media (max-width: 575px) {
  .hero-3 .hero-content h2 { font-size: 34px; }
}

.main-menu ul li .submenu {
  box-shadow: var(--shadow-lg);
}

/* ---------- cards: image zoom on hover for a premium feel ---------- */
.service-card-items .service-image,
.menu-service-thumb {
  overflow: hidden;
}

.service-card-items .service-image img,
.menu-service-thumb img {
  transition: transform 0.6s var(--ease);
}

.service-card-items:hover .service-image img,
.menu-service-card:hover .menu-service-thumb img {
  transform: scale(1.06);
}

/* ---------- footer: link hover motion ---------- */
.footer-content ul li a,
.footer-content a {
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-content ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

/* ---------- forms: align focus ring with site theme ---------- */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.contact-form .nice-select:focus,
.contact-form .nice-select.open {
  border-color: #3659ff !important;
  box-shadow: 0 0 0 4px rgba(54, 89, 255, 0.14) !important;
}

/* ---------- reduced motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme-btn,
  .service-card-items,
  .flip-card,
  .menu-service-card,
  .service-card-items .service-image img,
  .menu-service-thumb img,
  .footer-content ul li a,
  .hero-section .slider-image.bg-cover {
    transition: none !important;
  }
}
