/* ==========================================================================
   Newtone Beauty Hair - Unified Stylesheet
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */

:root {
    --accent: #996d3e;
    --accent-2: #c4a052;
    --accent-3: #ddc175;
    --text-muted: #4a3f32;
    --border: #e8e2d9;
    --brown: #3d2e1c;
    --brown-dark: #2a1f12;
    --surface: #ffffff;
    --surface-warm: #faf8f5;
}

/* ==========================================================================
   2. Base Styles
   ========================================================================== */

body {
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

.text-gradient-gold {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   4. Navigation Styles
   ========================================================================== */

.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown menu styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    padding: 8px 0;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.nav-dropdown-content a:hover {
    background: linear-gradient(90deg, rgba(196, 160, 82, 0.1), transparent);
    color: var(--accent);
}

.nav-dropdown-content a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-dropdown-content a i {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* ==========================================================================
   5. Card Styles
   ========================================================================== */

/* Premium Card - Default (White) */
.premium-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 50%, #faf8f5 100%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-2), var(--accent));
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(153, 109, 62, 0.15);
}

/* Premium Card - Brown Variant (used in strihy-styling.html) */
.premium-card-brown {
    background: linear-gradient(135deg, #4a3728 0%, #3d2e22 50%, #2f231a 100%);
    border: 1px solid rgba(196, 160, 82, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card-brown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-2), var(--accent));
}

.premium-card-brown:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 55, 40, 0.4);
}

.premium-card-brown h3 {
    color: #fff !important;
}

.premium-card-brown p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Premium Card - Chocolate Variant with shimmer (used in services.html) */
.premium-card-chocolate {
    background: linear-gradient(135deg, #4a3728 0%, #3d2e22 50%, #2f231a 100%);
    border: 1px solid rgba(196, 160, 82, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card-chocolate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-2), var(--accent));
    background-size: 200% 100%;
    animation: shimmer-border 3s ease-in-out infinite;
}

.premium-card-chocolate::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.6s ease;
}

.premium-card-chocolate:hover::after {
    left: 100%;
}

.premium-card-chocolate:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 55, 40, 0.4);
}

.premium-card-chocolate h3 {
    color: #fff;
}

.premium-card-chocolate p {
    color: rgba(255, 255, 255, 0.8);
}

/* Gold Card */
.gold-card {
    background: linear-gradient(135deg, #ddc175 0%, #c4a052 50%, #b8934d 100%);
    border: 1px solid rgba(153, 109, 62, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(196, 160, 82, 0.2);
}

.gold-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2a1f12, #4a3728, #2a1f12);
}

.gold-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.gold-card:hover::after {
    left: 100%;
}

.gold-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(196, 160, 82, 0.35);
}

.gold-card h3 {
    color: #2a1f12 !important;
}

.gold-card p,
.gold-card span {
    color: rgba(42, 31, 18, 0.85) !important;
}

.gold-card strong,
.gold-card .font-semibold {
    color: #2a1f12;
}

.gold-card .icon-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

.gold-card .icon-box svg,
.gold-card i {
    color: #2a1f12;
}

.gold-card .bg-surface-warm {
    background: rgba(255, 255, 255, 0.25);
}

/* Brown Card (used in slavnostni-ucesy.html) */
.brown-card {
    background: linear-gradient(135deg, #4a3728 0%, #3d2e22 50%, #2f231a 100%);
    border: 1px solid rgba(196, 160, 82, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-2), var(--accent));
}

.brown-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 55, 40, 0.4);
}

.brown-card h3 {
    color: #fff !important;
}

.brown-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.brown-card .bg-surface-warm {
    background: linear-gradient(135deg, rgba(196, 160, 82, 0.3) 0%, rgba(221, 193, 117, 0.2) 100%);
    border: 1px solid rgba(196, 160, 82, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-gold 2s ease-in-out infinite;
}

.brown-card i {
    color: #ddc175;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brown-card:hover .bg-surface-warm {
    background: linear-gradient(135deg, rgba(221, 193, 117, 0.4) 0%, rgba(196, 160, 82, 0.3) 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(196, 160, 82, 0.3);
}

.brown-card:hover i {
    color: #fff;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(221, 193, 117, 0.6));
}

/* Brand Card (used in poradenstvi.html) */
.brand-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 50%, #faf8f5 100%);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-card:hover {
    border-color: var(--accent-2);
    box-shadow: 0 15px 50px rgba(153, 109, 62, 0.12);
    transform: translateY(-4px);
}

/* Tip Card (used in poradenstvi.html) */
.tip-card {
    background: linear-gradient(135deg, #4a3728 0%, #3d2e22 50%, #2f231a 100%);
    border: 1px solid rgba(196, 160, 82, 0.3);
}

.tip-card h3,
.tip-card strong {
    color: #fff;
}

.tip-card p,
.tip-card span,
.tip-card li {
    color: #fff;
}

.tip-card .icon-box {
    background: linear-gradient(145deg, rgba(196, 160, 82, 0.2) 0%, rgba(153, 109, 62, 0.3) 100%);
    border: 1px solid rgba(196, 160, 82, 0.4);
}

.tip-card .icon-box svg {
    color: #ddc175;
}

/* ==========================================================================
   6. Icon Box Styles
   ========================================================================== */

.icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8f6f2 0%, #f0ece5 100%);
    border: 1px solid var(--border);
}

.icon-box svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.icon-box-sm {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f6f2 0%, #f0ece5 100%);
    border: 1px solid var(--border);
}

.icon-box-sm svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.icon-box-lg {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8f6f2 0%, #f0ece5 100%);
    border: 1px solid var(--border);
}

.icon-box-lg svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

/* ==========================================================================
   7. Decorative Elements
   ========================================================================== */

.accent-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}

.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}

.gold-tips-box {
    background: linear-gradient(135deg, #ddc175 0%, #c4a052 50%, #b8934d 100%);
    border: 1px solid rgba(153, 109, 62, 0.3);
    box-shadow: 0 10px 40px rgba(196, 160, 82, 0.2);
}

/* ==========================================================================
   8. Animations
   ========================================================================== */

@keyframes shimmer-border {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(196, 160, 82, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(196, 160, 82, 0);
    }
}

.fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

/* ==========================================================================
   9. Utility Classes
   ========================================================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.bg-warm-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(196, 160, 82, 0.08) 0%, transparent 70%);
}

/* ==========================================================================
   10. Homepage Specific Styles (index.html)
   ========================================================================== */

.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
}

.pulse-ring {
    animation: pulse-ring 2s ease-in-out infinite;
}

/* ==========================================================================
   11. Services Page Specific Styles (services.html)
   ========================================================================== */

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .carousel-slide {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        width: 33.333%;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: fit-content;
}

.brand-logo {
    flex-shrink: 0;
    padding: 0 40px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
}

/* ==========================================================================
   12. Price List Page Specific Styles (cenik.html)
   ========================================================================== */

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-row .service-name {
    flex-shrink: 0;
}

.price-row .dotted-leader {
    flex-grow: 1;
    border-bottom: 2px dotted var(--border);
    min-width: 20px;
    margin-bottom: 4px;
}

.price-row .service-price {
    flex-shrink: 0;
    font-weight: 600;
}

/* ==========================================================================
   13. Contact Page Specific Styles (contact.html)
   ========================================================================== */

.social-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface-warm);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    border-color: var(--accent-2);
    transform: translateX(4px);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(153, 109, 62, 0.1);
}

/* Map container */
#map {
    height: 300px;
    border-radius: 16px;
}

/* ==========================================================================
   14. Barveni-Melirovani Page Specific Styles
   ========================================================================== */

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   15. Hloubkova-Pece Page Specific Styles
   ========================================================================== */

.treatment-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* ==========================================================================
   16. Poradenstvi Page Specific Styles
   ========================================================================== */

.img-placeholder {
    background: linear-gradient(135deg, #f5f2ed 0%, #e8e2d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* ==========================================================================
   17. Slavnostni-Ucesy Page Specific Styles
   ========================================================================== */

.occasion-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.occasion-wedding {
    background: #fef3e7;
    color: #996d3e;
}

.occasion-prom {
    background: #f3e8ff;
    color: #7c3aed;
}

.occasion-gala {
    background: #e8f4fd;
    color: #0369a1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(45, 36, 24, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 31, 18, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ==========================================================================
   18. Homepage Specific Styles (index.html) - Extended
   ========================================================================== */

/* Hero Text Shadow */
.hero-text-shadow {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 4px 40px rgba(0, 0, 0, 0.3);
}

/* Hero Banner Background */
.hero-banner {
    background-image: url('img/me/baner1mobile.jpeg');
    background-size: cover;
    background-position: center;
}

@media (min-width: 640px) {
    .hero-banner {
        background-image: url('img/me/baner1.jpeg');
    }
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Glow Variant */
.card-glow {
    background: linear-gradient(145deg, #ffffff 0%, #fffdf9 40%, #fef9f0 100%);
    box-shadow: 0 4px 20px rgba(196, 160, 82, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-glow:hover {
    box-shadow: 0 12px 40px rgba(153, 109, 62, 0.2), 0 24px 80px rgba(196, 160, 82, 0.15), 0 0 60px rgba(221, 193, 117, 0.1);
}

/* Icon Box Variants */
.icon-box-solid {
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 100%);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(153, 109, 62, 0.25);
}

.icon-box-solid svg {
    color: white;
}

/* Group Hover Effects for Icon Box */
.group:hover .icon-box {
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 100%);
    border-color: var(--accent-2);
    box-shadow: 0 8px 24px rgba(153, 109, 62, 0.35), 0 0 20px rgba(196, 160, 82, 0.2);
    transform: scale(1.05);
}

.group:hover .icon-box svg {
    color: white;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.group:hover .icon-box span {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
.btn-primary {
    background: var(--accent);
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #8a7035;
    box-shadow: 0 4px 12px rgba(153, 109, 62, 0.25);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Gold Glow Text */
.gold-glow-text {
    text-shadow: 0 0 30px rgba(196, 160, 82, 0.3);
}

/* Typography Utilities */
.text-muted-base {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Premium Card with Shimmer Animation (for index.html) */
.premium-card-shimmer {
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 50%, #faf8f5 100%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-2), var(--accent));
    background-size: 200% 100%;
    animation: shimmer-border 3s ease-in-out infinite;
}

.premium-card-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 160, 82, 0.08), transparent);
    transition: left 0.6s ease;
}

.premium-card-shimmer:hover::after {
    left: 100%;
}

.premium-card-shimmer:hover {
    border-color: var(--accent-2);
    box-shadow: 0 8px 32px rgba(153, 109, 62, 0.15), 0 20px 60px rgba(196, 160, 82, 0.12), 0 0 0 1px rgba(196, 160, 82, 0.1);
    transform: translateY(-4px);
}
