/* Focus Optika - Premium Optik & Gözlük Deneyimi */
/* Custom Stylesheet */

/* Base Typography */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar - Brand Color Aligned */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(39, 44, 102, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #272c66;
}

/* Utility Classes */
.h-22 {
    height: 5.5rem;
}

/* Product Slider Hide Scrollbar */
#productSlider {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#productSlider::-webkit-scrollbar {
    display: none;
}

/* Modal Transitions */
#bookingModal {
    transition: opacity 0.3s ease;
}

#bookingModalContainer {
    transition: transform 0.3s ease;
}

/* Mobile Menu Transitions */
#mobileMenu {
    transition: opacity 0.3s ease;
}

#mobileMenuContainer {
    transition: transform 0.3s ease-out;
}

/* Search Overlay Transitions */
#searchOverlay {
    transition: opacity 0.3s ease;
}

/* Hero Slider Animations */
.hero-slide {
    transition: opacity 1s ease-in-out;
}

.hero-dot {
    transition: all 0.3s ease;
}

/* Newsletter Popup Animation */
#newsletterSuccess {
    transition: all 0.3s ease;
}

/* Product Image Transition */
[id^="productImage"] {
    transition: opacity 0.15s ease;
}

/* Accordion Content */
[id^="accContent"] {
    transition: all 0.3s ease;
}

/* Group Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-\[1\.02\] {
    transform: scale(1.02);
}

.group:hover .group-hover\:text-\[\#272c66\] {
    color: #272c66;
}

.group:hover .group-hover\:bg-\[\#272c66\]\/5 {
    background-color: rgba(39, 44, 102, 0.05);
}

.group:hover .group-hover\:bg-\[\#272c66\]\/10 {
    background-color: rgba(39, 44, 102, 0.1);
}

.group:hover .group-hover\:border-\[\#272c66\]\/30 {
    border-color: rgba(39, 44, 102, 0.3);
}

.group:hover .group-hover\:shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Focus Ring Styles */
.focus\:ring-2:focus {
    outline: none;
    ring: 2px;
}

.focus\:ring-\[\#272c66\]:focus {
    box-shadow: 0 0 0 2px #272c66;
}

/* Animation Utilities */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Active Scale Effect */
.active\:scale-95:active {
    transform: scale(0.95);
}

/* Hover Scale Effects */
.hover\:scale-\[1\.02\]:hover {
    transform: scale(1.02);
}

/* Backdrop Blur Support */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Aspect Ratio Utilities */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

/* Snap Scroll */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-start {
    scroll-snap-align: start;
}

.snap-mandatory {
    scroll-snap-type: x mandatory;
}

/* Custom Shadow */
.shadow-\[\#272c66\]\/10 {
    box-shadow: 0 4px 6px -1px rgba(39, 44, 102, 0.1), 0 2px 4px -1px rgba(39, 44, 102, 0.06);
}

/* Text Size Utilities */
.text-\[10px\] {
    font-size: 10px;
}

/* Width Utilities */
.w-8 {
    width: 2rem;
}

.w-2\.5 {
    width: 0.625rem;
}

/* Selection Color */
::selection {
    background-color: #272c66;
    color: white;
}

/* Custom Max Width */
.max-w-custom {
    max-width: 1400px;
}

/* Toxunma ekranlarında rəng düymələri barmaq üçün kifayət qədər böyük olsun (WCAG 2.5.8: ≥ 24px, tövsiyə 40px+) */
@media (pointer: coarse) {
  .card-color-btn { width: 2rem !important; height: 2rem !important; }
  .color-swatch-btn { width: 2.5rem !important; height: 2.5rem !important; }
}

/* Leaflet xəritəsi (filiallar) menyunun/başlığın üstünə çıxmasın: xəritə öz stacking context-inə alınır */
.leaflet-container { position: relative; z-index: 0; isolation: isolate; }

/* Filial xəritəsi: sadə brend marker + səliqəli popup */
.focus-pin span { display:block; width:28px; height:28px; background:#272c66; border:3px solid #fff; border-radius:50% 50% 50% 0; transform:rotate(-45deg); box-shadow:0 4px 10px rgba(39,44,102,.35); position:relative; }
.focus-pin span::after { content:""; position:absolute; inset:7px; background:#fff; border-radius:50%; }
.leaflet-popup-content-wrapper { border-radius:12px; box-shadow:0 8px 24px rgba(15,23,42,.15); }
.leaflet-popup-content h4 { margin:0 0 2px; font-weight:700; color:#0f172a; font-size:14px; }
.leaflet-popup-content p { margin:0; color:#64748b; font-size:12px; }
.leaflet-control-zoom a { color:#272c66; }
.leaflet-container { background:#f4f5f9; font-family:inherit; }

/* ===== Vahid düymə hover effekti =====
   Rəng "pərdə" kimi aşağıdan yuxarıya maska ilə dolur (rəng sıçrayışı yoxdur).
   Tünd fonlu düymə: pərdə ağ, yazı tünd. Açıq fonlu düymə: pərdə tünd, yazı ağ.
   Sinif: .fx-btn + variant (.fx-to-light | .fx-to-dark). Rənglər dəyişənlərlə: --fx-curtain, --fx-fg, --fx-ring.
   Maqnit effekti yoxdur; hərəkəti azaldan istifadəçilərdə animasiya söndürülür. */
.fx-btn {
    --fx-ease: cubic-bezier(.22, 1, .36, 1);
    --fx-curtain: #fff; --fx-fg: #272c66; --fx-ring: #272c66;
    background-image: linear-gradient(var(--fx-curtain), var(--fx-curtain));
    background-repeat: no-repeat; background-position: bottom center; background-size: 100% 0;
    transition: background-size .5s var(--fx-ease), color .25s ease .05s, box-shadow .4s var(--fx-ease), border-color .3s ease, transform .4s var(--fx-ease), opacity .2s ease;
}
.fx-btn.fx-to-light { --fx-curtain: #fff; --fx-fg: #272c66; --fx-ring: #272c66; }
.fx-btn.fx-to-dark  { --fx-curtain: #272c66; --fx-fg: #fff; --fx-ring: #272c66; }
.fx-btn.fx-ring-white { --fx-ring: #fff; }
.fx-btn:not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
    background-size: 100% 100%; color: var(--fx-fg);
    box-shadow: inset 0 0 0 1.5px var(--fx-ring);
    transition: background-size .55s var(--fx-ease), color .25s ease .18s, box-shadow .4s var(--fx-ease), border-color .3s ease, transform .4s var(--fx-ease), opacity .2s ease;
}
.fx-btn:not(:disabled):is(:hover, :focus-visible) :where(span, i, svg, b, strong, em) { color: inherit; }
.fx-btn:focus-visible { outline: 2px solid #272c66; outline-offset: 3px; }
.fx-btn.fx-ring-white:focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
    .fx-btn, .fx-btn:is(:hover, :focus-visible) { transition: none; }
}

/* Ana səhifənin böyük düymələri (hp-cta): ölçü/düzülüş; rəng effekti yuxarıdakı .fx-btn ilə eynidir */
.hp-cta {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 48px; padding: 0 2rem; border-radius: 999px;
    background-color: #272c66; color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap;
    box-shadow: 0 10px 24px -14px rgba(39, 44, 102, .55), inset 0 0 0 1.5px #272c66;
}
.hp-cta--ghost { background-color: #fff; color: #272c66; min-height: 44px; padding: 0 1.4rem; box-shadow: inset 0 0 0 1.5px #d4d4d8; }
.hp-cta--light { background-color: #fff; color: #272c66; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45), inset 0 0 0 1.5px #fff; }
.hp-cta--line { background-color: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.hp-cta--ghost:is(:hover, :focus-visible) { background-color: #fff; }
.hp-cta--light:is(:hover, :focus-visible) { background-color: #fff; }
.hp-cta--line:is(:hover, :focus-visible) { background-color: transparent; }
.hp-cta__icon { position: relative; display: inline-block; width: 1rem; height: 1rem; overflow: hidden; flex-shrink: 0; }
.hp-cta__icon svg { position: absolute; inset: 0; width: 1rem; height: 1rem; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.hp-cta__icon svg:last-child { transform: translateX(-170%); }
.hp-cta:is(:hover, :focus-visible) .hp-cta__icon svg:first-child { transform: translateX(170%); }
.hp-cta:is(:hover, :focus-visible) .hp-cta__icon svg:last-child { transform: translateX(0); }
.hp-cta:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .hp-cta__icon svg { transition: none; } }

/* ===== Scroll reveal (js/reveal.js) =====
   .rv: başlanğıc vəziyyət (yalnız JS ekranın altındakı elementlərə qoyur); .rv-in: görünən vəziyyət.
   Animasiya bitəndən sonra JS hər iki klası götürür. JS olmasa / hərəkət azaldılıbsa məzmun həmişə görünür. */
.rv { opacity: 0; transform: translate3d(0, 22px, 0); will-change: opacity, transform; }
.rv.rv-in {
    opacity: 1; transform: none;
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* Başlıq scroll edəndə yüngül kölgə alır */
header.sticky { transition: box-shadow .3s ease, background-color .3s ease; }
header.sticky.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .35); }
