/* ============================================
   WBM DIY STUDIO - DESIGN SYSTEM
   Adapted for WebBorn
============================================ */

:root {
    /* Primary Colors */
    --color-aqua: #00B4D8;
    --color-aqua-light: #90E0EF;
    --color-aqua-dark: #0077B6;
    
    --color-malva: #9370DB;
    --color-malva-light: #B19CD9;
    --color-malva-dark: #7B68EE;
    
    --color-azur: #007EA7;
    --color-azur-light: #48CAE4;
    
    --color-terrakotta: #D2691E;
    --color-terrakotta-light: #E89F71;
    
    --color-ekru: #F5F5DC;
    --color-csau: #696969;
    --color-powder: #FF6B9D;
    --color-kobalt: #0047AB;
    --color-gold: #FFD700;
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-off-white: #FAFAFA;
    --color-light-gray: #F5F5F5;
    --color-gray: #E0E0E0;
    --color-medium-gray: #9E9E9E;
    --color-dark-gray: #424242;
    --color-black: #1A1A1A;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-body);
    color: var(--color-dark-gray);
    background-color: var(--color-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* html { overflow-x: hidden; } - Removed to fix sticky header */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-weight: 700;
}

/* === NAVIGATION === */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-kobalt) !important;
    text-decoration: none;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-kobalt);
    line-height: 1.2;
}

.brand-slogan {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--color-aqua);
    line-height: 1.1;
    margin-top: 2px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-dark-gray) !important;
    margin-left: 1rem;
    transition: color 0.2s ease;
    font-size: 1.2rem; /* slightly larger to match logo visual weight */
}

.nav-link:hover {
    color: var(--color-aqua) !important;
}

/* === BUTTONS === */
.btn {
    border-radius: 0.75rem; /* radius-lg */
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-aqua), var(--color-malva));
    border: none;
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-aqua);
    border: 2px solid var(--color-aqua);
}

.btn-outline-primary:hover {
    background: var(--color-aqua);
    color: var(--color-white);
    border-color: var(--color-aqua);
}

.btn-outline-dark {
    border: 2px solid var(--color-dark-gray);
    color: var(--color-dark-gray);
}

.btn-outline-dark:hover {
    background: var(--color-dark-gray);
    color: var(--color-white);
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, var(--color-kobalt) 0%, var(--color-malva-dark) 100%);
    padding: 100px 0;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3rem; /* text-5xl approx */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === CARDS === */
.card {
    border: none;
    border-radius: 1rem; /* radius-xl */
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    background: var(--color-white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--color-aqua) !important;
}

.text-success {
    color: var(--color-success, #10B981) !important; /* Fallback if not defined */
}

/* === SECTIONS === */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem; /* text-4xl */
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--color-medium-gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem; /* text-lg */
}

.bg-light {
    background-color: var(--color-off-white) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--color-aqua), var(--color-malva)) !important;
    color: var(--color-white);
}

/* Fix for badges with bg-opacity to prevent gradient override */
.badge.bg-primary.bg-opacity-10 {
    background: rgba(0, 180, 216, 0.1) !important; /* Aqua with 10% opacity */
    color: var(--color-aqua) !important;
}

.bg-secondary {
    background-color: var(--color-gray) !important;
    color: var(--color-dark-gray);
}

.text-warning {
    color: var(--color-terrakotta) !important;
}

/* === FOOTER === */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 50px 0 20px;
    margin-top: 0;
}

footer h4, footer h5 {
    color: var(--color-white);
}

footer .text-muted {
    color: var(--color-medium-gray) !important;
}

footer a.text-muted:hover {
    color: var(--color-aqua) !important;
}

footer hr {
    border-color: var(--color-dark-gray);
}

/* === FORMS === */
.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray);
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-aqua);
    box-shadow: 0 0 0 0.25rem rgba(0, 180, 216, 0.25);
}

/* === Responsive tweaks for small screens (hero improvements) === */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
        max-width: 100%;
    }
    /* Stack CTA buttons full-width */
    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-section .d-flex.gap-3 .btn,
    .hero-section .mb-4 .btn {
        width: 100%;
        text-align: center;
    }
    /* Make hero image smaller and remove 3D transform for small screens */
    .hero-section .img-fluid {
        max-width: 85%;
        transform: none !important;
    }
    /* Hide decorative absolute circles to avoid overlap */
    .hero-section .position-absolute.top-0.start-0,
    .hero-section .position-absolute.bottom-0.end-0 {
        display: none !important;
    }
    /* Reduce wave divider height */
    .hero-section > .position-absolute.bottom-0.start-0 svg,
    .hero-section .position-absolute.bottom-0 svg {
        height: 60px !important;
    }
}

/* Homepage bottom CTA: keep buttons compact on small screens */
@media (max-width: 575.98px) {
    .homepage-cta .homepage-cta-buttons .btn {
        width: 100%;
        max-width: 340px;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    /* Generic CTA rows used across service pages */
    .d-inline-flex.gap-2 {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .d-inline-flex.gap-2 .btn {
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        white-space: normal;
    }
}

/* INAKTIVÁLVA - Treasure Hunt (Rejtvény) diamonds */
/*
.treasure-diamond {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.25), rgba(147, 112, 219, 0.25));
    color: var(--color-gold);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.treasure-diamond:hover {
    transform: scale(1.08);
    opacity: 0.95;
}

.treasure-diamond--hidden {
    display: none !important;
}

.treasure-diamond--overlay {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
}
*/

/* Hero Image Animation */
.hero-image-wrapper {
 animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
 transform: perspective(1000px) rotateY(-5deg);
}

@keyframes float {
 0%, 100% { transform: perspective(1000px) rotateY(-5deg) translateY(0px); }
 50% { transform: perspective(1000px) rotateY(-5deg) translateY(-20px); }
}

@keyframes pulse {
 0%, 100% { transform: scale(1); opacity: 0.2; }
 50% { transform: scale(1.1); opacity: 0.3; }
}

/* Disable hero animation on mobile to prevent overflow */
@media (max-width: 991.98px) {
 .hero-image-wrapper {
 animation: none !important;
 }
 .hero-image-wrapper img {
 transform: none !important;
 }
}

/* Global image fix */
img {
 max-width: 100%;
 height: auto;
}


/* INAKTIVÁLVA - Exit Intent Popup */
/*
#exitIntentModal .modal-content {
 border-radius: 1rem;
}

#exitIntentModal .btn-close {
 background-color: rgba(0, 0, 0, 0.1);
 border-radius: 50%;
 padding: 0.75rem;
 transition: all 0.3s ease;
}

#exitIntentModal .btn-close:hover {
 background-color: rgba(0, 0, 0, 0.2);
 transform: rotate(90deg);
}

#exitIntentModal .form-control:focus {
 box-shadow: 0 0 0 0.25rem rgba(0, 180, 216, 0.25);
 background-color: #fff !important;
}
*/

/* INAKTIVÁLVA - Újévi Kedvezmény Popup 2026 */
/*
#newYearModal .modal-content {
 border-radius: 1rem;
}

#newYearModal .btn-close {
 background-color: rgba(0, 0, 0, 0.1);
 border-radius: 50%;
 padding: 0.75rem;
 transition: all 0.3s ease;
}

#newYearModal .btn-close:hover {
 background-color: rgba(0, 0, 0, 0.2);
 transform: rotate(90deg);
}

#newYearModal code {
 user-select: all;
 cursor: pointer;
}

#newYearModal .badge {
 animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
 0%, 100% {
  transform: scale(1);
  opacity: 1;
 }
 50% {
  transform: scale(1.05);
  opacity: 0.9;
 }
}
*/


/* Hero Image Animation */
.hero-image-wrapper {
 animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
 transform: perspective(1000px) rotateY(-5deg);
}

@keyframes float {
 0%, 100% { transform: perspective(1000px) rotateY(-5deg) translateY(0px); }
 50% { transform: perspective(1000px) rotateY(-5deg) translateY(-20px); }
}

@keyframes pulse {
 0%, 100% { transform: scale(1); opacity: 0.2; }
 50% { transform: scale(1.1); opacity: 0.3; }
}

/* Disable hero animation on mobile to prevent overflow */
@media (max-width: 991.98px) {
 .hero-image-wrapper {
 animation: none !important;
 }
 .hero-image-wrapper img {
 transform: none !important;
 }
}

/* Global image fix */
img {
 max-width: 100%;
 height: auto;
}


/* Language Selector */
.dropdown-item.active {
    background-color: var(--color-aqua-light);
    color: var(--color-dark-gray);
    font-weight: 600;
}

.dropdown-item:hover {
    background-color: var(--color-light-gray);
    color: var(--color-aqua-dark);
}

.nav-link.dropdown-toggle {
    transition: color 0.3s ease;
}

.nav-link.dropdown-toggle:hover {
    color: var(--color-aqua);
}
