/**
 * BiMetal - Custom Stylesheet
 * Brand colors and custom styling
 */

/* CSS Variables */
:root {
    --primary-color: #5B58C0;
    --primary-light: #7370d1;
    --primary-dark: #4845a6;
    --secondary-color: #A6D1CC;
    --accent-color: #4CAF50;
    --text-color: #363636;
    --text-light: #7a7a7a;
    --background-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Bulma Overrides */
.is-primary {
    background-color: var(--primary-color) !important;
}

.has-text-primary {
    color: var(--primary-color) !important;
}

.has-text-secondary {
    color: var(--secondary-color) !important;
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: transparent;
}

.button.is-primary:hover {
    background-color: var(--primary-dark);
}

.has-background-primary-light {
    background-color: rgba(91, 88, 192, 0.1) !important;
}

/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

.has-radius {
    border-radius: var(--radius);
}

/* Navbar */
.navbar {
    transition: var(--transition);
}

.navbar.is-fixed-top {
    background-color: var(--white);
}

.navbar-item img {
    max-height: 3rem;
}

.navbar-burger span {
    background-color: var(--primary-color);
    height: 2px;
}

/* Mobile and tablet navbar improvements */
@media screen and (max-width: 1023px) {
    /* Center hamburger button vertically */
    .navbar-brand {
        align-items: center;
        padding: 0 0.5rem;
    }

    /* Center mobile menu links */
    .navbar-menu .navbar-item {
        text-align: center;
        justify-content: center;
    }

    /* Full-width CTA button in mobile menu */
    .navbar-menu .navbar-item .button {
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(91, 88, 192, 0.9) 0%, rgba(69, 69, 166, 0.85) 100%);
}

.hero-section .hero-body {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 120px;
    filter: brightness(0) invert(1);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-stats {
    padding: 2rem 0;
}

.hero-foot {
    position: relative;
    z-index: 1;
}

/* Section Styling */
.section {
    padding: 5rem 1.5rem;
}

@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }

    .button.is-large {
        font-size: 1rem;
        padding: 0.75em 1em;
        white-space: normal;
        height: auto;
        max-width: 100%;
    }
}

/* Service Cards */
.service-card {
    height: 100%;
    transition: var(--transition);
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(91, 88, 192, 0.1);
    border-radius: 50%;
}

/* Pricing Cards */
.pricing-card {
    height: 100%;
    transition: var(--transition);
    border-radius: var(--radius);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(91, 88, 192, 0.1);
    border-radius: 50%;
}

.pricing-amount {
    line-height: 1.2;
}

/* About Section */
.about-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

#about .image img {
    object-fit: cover;
}

/* Contact Section */
.map-container {
    overflow: hidden;
    border-radius: var(--radius);
}

.map-container iframe {
    display: block;
}

.contact-item .icon.is-large {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
}

/* Footer */
.footer {
    padding: 4rem 1.5rem 2rem;
}

.footer-brand img {
    max-height: 50px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    list-style: none;
}

.footer-contact .icon {
    width: 24px;
    margin-right: 8px;
}

/* Floating Call Button */
.floating-call-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: var(--transition);
}

.floating-call-button:hover {
    background-color: #43a047;
    transform: scale(1.1);
    color: var(--white);
}

.floating-call-button .icon {
    font-size: 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2d2d2d;
    color: var(--white);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.has-shadow {
    box-shadow: var(--shadow);
}

.has-shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Button tap targets for mobile */
@media screen and (max-width: 768px) {
    .button {
        min-height: 44px;
        min-width: 44px;
    }

    .navbar-item {
        min-height: 44px;
    }
}

/* Card image styling */
.card-image img {
    object-fit: cover;
}

/* Notification styling */
.notification.is-info.is-light {
    background-color: rgba(166, 209, 204, 0.3);
    border-left: 4px solid var(--secondary-color);
}

/* Loading state */
.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Print styles */
@media print {
    .navbar,
    .floating-call-button,
    .back-to-top,
    .cookie-consent {
        display: none !important;
    }

    body {
        padding-top: 0;
    }
}
