/* Mario Tavares Enterprises - Custom CSS Styles */

/* ===== Base Styles ===== */
body{
    font-family: "trade-gothic-next", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h1{
    font-family: erbaum, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2em;
}
h2, h3, h4, h5{

    font-family: erbaum, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
}
.navbar{
    font-family: erbaum, sans-serif;
    font-weight: 200;
    font-style: normal;
}

/* ===== Custom Color Variables ===== */
:root {
    /* Primary brand colors */
    --mte-blue: #324666;
    --mte-dark-blue: #242A33;
    --mte-black: #121212;
    --mte-gray: #666666;
    --mte-light-gray: #B2B2B2;
    --mte-silver: #c0c0c0;
    --mte-white: #B2B2B2;

    /* Accent colors */
    --mte-bluey: #0066cc;
    --mte-yellow: #ffcc00;
}

/* ===== Custom Color Helper Classes ===== */
.navbar-item img{
    max-height: 3em !important;
}
/* Background Colors */
.has-bg-red {
    background-color: var(--mte-blue) !important;
}

.has-bg-dark-red {
    background-color: var(--mte-dark-blue) !important;
}

.has-bg-black {
    background-color: var(--mte-black) !important;
}

.has-bg-gray {
    background-color: var(--mte-gray) !important;
}

.has-bg-light-gray {
    background-color: var(--mte-light-gray) !important;
}

.has-bg-silver {
    background-color: var(--mte-silver) !important;
}

/* Text Colors */
.has-text-red {
    color: var(--mte-blue) !important;
}

.has-text-dark-red {
    color: var(--mte-dark-blue) !important;
}

.has-text-black {
    color: var(--mte-black) !important;
}

.has-text-gray {
    color: var(--mte-gray) !important;
}

.has-text-silver {
    color: var(--mte-silver) !important;
}

/* ===== Bulma Overrides ===== */

/* Navbar */
.navbar {
    background-color: var(--mte-silver);
    flex-direction: column;
    padding: 0;
    /* Removed fixed positioning - will be handled by sticky on second row */
    position: relative;
    width: 100%;
    overflow: visible;
    z-index: 30;
}

.navbar-item, 
.navbar-link {
    color: var(--mte-blue);
}

.navbar-item:hover, 
.navbar-link:hover {
    background-color: var(--mte-gray) !important;
    color: var(--mte-white) !important;
}

/* Two-row navigation */
.navbar > .container:first-child {
    border-bottom: 1px solid var(--mte-gray);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar > .container:last-child {
    padding: 0 1.5rem;
    width: 100%;
    display: flex; /* Ensure proper layout */
}

.navbar-brand.is-flex {
    margin-left: 0;
    width: 100%;
}


.navbar-brand .navbar-item {
    margin: 0 auto;
}

/* Buttons */
.button.is-primary {
    background-color: var(--mte-blue);
}

.button.is-primary:hover {
    background-color: var(--mte-dark-blue);
}

.button.is-primary.is-outlined {
    border-color: var(--mte-blue);
    color: var(--mte-blue);
}

.button.is-primary.is-outlined:hover {
    background-color: var(--mte-blue);
    color: var(--mte-white);
}

.button.is-secondary {
    background-color: var(--mte-gray);
    color: var(--mte-white);
}

.button.is-secondary:hover {
    background-color: var(--mte-black);
}

.button.is-secondary.is-outlined {
    border-color: var(--mte-gray);
    color: var(--mte-gray);
}

.button.is-secondary.is-outlined:hover {
    background-color: var(--mte-gray);
    color: var(--mte-white);
}

/* Hero Section */
.hero.is-primary {
    background: linear-gradient(135deg, var(--mte-black) 0%, var(--mte-blue) 100%);
    position: relative; /* Create a new stacking context */
    z-index: 1; /* Lower than navbar */
}

/* Layered blended image */
.hero.is-primary::before {
    content: "";
    position: absolute;
    inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
    background: url('/img/bg.jpg') center/cover no-repeat;
    mix-blend-mode: multiply; /* or try overlay, screen, soft-light, etc. */
    opacity: 0.2; /* control intensity of the blend */
    z-index: 0; /* keep it below hero content but above gradient */
}

.hero.is-primary .title,
.hero.is-primary .subtitle {
    color: var(--mte-white);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card .card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card .title {
    color: var(--mte-blue);
}

/* Footer */
.footer {
    background-color: var(--mte-black);
}

.footer a {
    color: var(--mte-silver);
}

.footer a:hover {
    color: var(--mte-blue);
}

.social-icons .icon {
    margin-right: 1rem;
    color: var(--mte-silver);
}

.social-icons .icon:hover {
    color: var(--mte-blue);
}

/* ===== Custom Components ===== */

/* Image Placeholders */
.image-placeholder {
    background-color: var(--mte-light-gray);
    border: 2px solid var(--mte-gray);
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    color: var(--mte-gray);
}
.border-rounded-sm{
    border-radius: 5px;
}
/* Equal Height Cards */
.equal-height {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== GSAP Animation Classes ===== */
/* Animation classes modified to show content without animations */
.gsap-fade-in {
    opacity: 1; /* Changed from 0 to make elements visible */
}

.gsap-slide-in {
    opacity: 1; /* Changed from 0 to make elements visible */
    transform: none; /* Removed transform to show elements in their final position */
}

.gsap-card {
    opacity: 1; /* Changed from 0 to make elements visible */
    transform: none; /* Removed transform to show elements in their final position */
}

/* ===== Gallery Tabs ===== */
.gallery-category {
    display: none;
}

.gallery-category.is-active {
    display: block;
}

/* ===== Carousel Styles ===== */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-item {
    display: none;
    width: 100%;
}

.carousel-item.is-active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.carousel-nav .nav-item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--mte-light-gray);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-nav .nav-item.is-active {
    background-color: var(--mte-blue);
}

/* Carousel Navigation Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Hide buttons on small carousels or mobile */
@media screen and (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
    }
}

/* ===== Responsive Adjustments ===== */
@media screen and (max-width: 768px) {
    .navbar-menu {
        background-color: var(--mte-black);
    }

    /* Mobile navigation adjustments */
    .navbar-brand.is-flex {
        justify-content: space-between !important;
    }

    .navbar-brand .navbar-item {
        margin: 0;
    }

    .navbar-burger {
        margin-left: auto;
    }

    .navbar > .container:last-child {
        padding: 0;
        position: -webkit-sticky; /* Ensure sticky works on mobile */
        position: sticky;
    }

    .navbar-menu.is-active {
        position: absolute;
        width: 100%;
        top: 100%;
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        z-index: 30; /* Ensure proper stacking */
    }

    .hero-body {
        padding: 3rem 1.5rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }
}
