/* Suomen Bitumikate Oy - Custom Styles */

:root {
    --brand-orange: #E85A24;
    --brand-dark: #191c24;
    --brand-light: #fafafa;
}

html {
    font-size: 15px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-dark);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Glass Navbar */
.nav-glass {
    background: rgba(25, 28, 36, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .nav-glass {
        padding-top: 1.25rem; /* py-5 */
        padding-bottom: 1.25rem;
    }
}

.nav-glass.scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-hidden {
    transform: translateY(-100%);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--brand-dark);
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 0.875rem;
}

.dropdown-content a:hover {
    background-color: var(--brand-light);
    color: var(--brand-orange);
}

/* Floating Action Buttons Container */
#floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#floating-container.show {
    opacity: 1;
    visibility: visible;
}

/* Floating Buttons (Shared Styles) */
.floating-btn {
    width: 50px;
    height: 50px;
    background-color: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(232, 90, 36, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-3px);
    background-color: #d14d1d;
    color: white;
}

/* Mobile adjustments: Secondary icons are smaller and layout is horizontal */
@media (max-width: 768px) {
    #floating-container {
        flex-direction: row;
        align-items: flex-end;
    }

    .floating-btn.secondary {
        width: 40px;
        height: 40px;
    }
}

/* Back to Top Button specific (inherits .floating-btn) */
#backToTop {
    /* No extra styles needed if it uses .floating-btn class */
}

/* Custom Bullet Points */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card Depth */
.card-depth {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-depth:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.translate-y-full {
    transform: translateY(100%);
}

/* Improved Global CTA */
.cta-banner {
    background-image: url('../media/bitumikaton saneeraus.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 28, 36, 0.8) 0%, rgba(42, 42, 42, 0.8) 100%);
    z-index: 1;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 90, 36, 0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}

/* Subtle Graphical Elements */
.bg-pattern {
    background-image: radial-gradient(var(--brand-orange) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.03;
}

.floating-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    filter: blur(40px);
}

/* Parallax Effect */
.parallax {
    will-change: transform;
}

/* FAQ Accordion */
.faq-content {
    transition: all 0.3s ease-in-out;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 120px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Image Overlay */
.image-overlay-container {
    position: relative;
    /* overflow: hidden; */ /* Already added in HTML, but good to keep in mind */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(224, 18%, 12%, 0.158); /* Brand dark with 15% opacity */
    transition: background-color 0.3s ease;
}

.image-overlay-container:hover .image-overlay {
    background-color: rgba(232, 90, 36, 0); /* Fully transparent on hover */
}

.image-overlay-container img {
    /* transition: transform 0.3s ease; */ /* Already added in HTML, but good to keep in mind */
}

.image-overlay-container:hover img {
    /* transform: scale(1); */ /* No zoom effect on hover, ensure this is default */
}

/* Subtle Background Animation */
.bg-animate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 90, 36, 0.03) 0%, transparent 70%);
    filter: blur(60px);
}
