/* Font face declarations with fallback metrics */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
         url('../fonts/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    ascent-override: 92%;
    descent-override: 22%;
    line-gap-override: 7%;
}

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Regular.woff2') format('woff2'),
         url('../fonts/Raleway-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    ascent-override: 90%;
    descent-override: 18%;
    line-gap-override: 8%;
}

* {
    font-family: "Raleway", Arial, sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: #E1D0B3;
    background-size: 180% 180%;
    font-family: 'Raleway-fallback', 'Raleway', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    margin-top: 0;
    padding-top: 90px;
    font-display: swap;
    overflow-x: hidden;
}

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

html.fonts-loading body {
  visibility: hidden; /* prevents FOUT flash */
}
html.fonts-loaded body {
  visibility: visible;
}

body, h1, h2, h3, h4, h5 {
  font-size-adjust: 0.52;
}

.fonts-loaded body {
    font-family: 'Raleway', sans-serif;
}

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

p, h1, h2, h3, .nav-link {
    line-height: 1.5;
}

/* Ensure container-fluid spans full width */
.container-fluid {
    overflow-x: hidden;
    max-width: 100%;
    /*padding: 5px 0; /* Consistent with container */
    margin: 0; /* Remove any default margins */
}

.container {
    padding: 10px 0;
}

a {
    color: #2F4F4F;
}

a:visited {
    color: #2f464f;
}

p {
    margin: 0px;
}

h1 {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 400;
    color: #2a4861;
}

h2 {
    font-family: "Raleway", Arial, sans-serif;
    font-weight: 100;
    color: #2a4861;
}

h3 {
    font-family: "Raleway", Arial, sans-serif;
    font-style: 100;
    color: #2a4861;
}

h4 {
    font-family: "Raleway", Arial, sans-serif;
    color: #703B3B;
}

h5 {
    font-family: "Raleway", Arial, sans-serif;
    display: inline-block;
    padding: 10px;
    background: #e7dbdb;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

img {
    max-width: 100%;
    height: auto;
    /*aspect-ratio: attr(width) / attr(height);*/
}

.parallax-section {
    min-height: 350px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
    opacity: 0.98;
}

.parallax-section.bg-loaded {
    opacity: 1;
}

.navbar-collapse {
  background-color: #ffffff;
  padding: 15px;
}

.navbar-toggler {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

@media only screen and (max-device-width: 1366px) {
    .parallax-section {
        background-attachment: scroll;
    }
    .nav-heading {
        left: 10px;
    }
    
    .navbar-contact {
        right: 5px;
    }
}


.navbar-contact {
    position: static;
    align-items: center;
    top: 5px;
    right: 5px;
}


.nav-heading {
    position: relative;
    font-family: "Raleway", Arial, sans-serif;
    font-style: 100;
    left: 0px;
    top: 0px;
    color: #F5EFE7;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    height: 90px;
    opacity: 1;
    z-index: 1000;
    transform: none !important;
    transition: none !important;
}

.navbar-nav {
    position: relative;
    align-items: center;
    top: 0;
    padding: 0px;
    background-color: #ffffff;
}

.navbar.visible {
    background-color: #ffffff;
    height: 100px;
    opacity: 0.95;
    transform: none !important;
}

.hero-picture {
    background-color: #E1D0B3;
    border-color: #141414;
    color: #2a4861;
    align-content: center;
}

.display {
    background-color: #F5EFE7;
    border-color: #141414;
    color: #2a4861;
}

.nav-link {
    position: relative;
    font-family: "Raleway", Arial, sans-serif;
    font-style: 100;
    color: #F5EFE7;
}

.nav-link:hover {
    color: #000000;
}
/* Ensure dropdown appears above all content */
.dropdown-menu {
    z-index: 1100 !important;
}

.contact {
    position: relative;
    align-items: center;
    top: 5px;
    right: 10px;
    height: 65px;
    opacity: 90%;
    z-index: 1005;
}
.contact-link {
    filter: invert(24%) sepia(8%) saturate(3460%) hue-rotate(314deg) brightness(96%) contrast(81%);
}
.contact-link:hover {
    transform: scale(1.055);
    filter: invert(19%) sepia(70%) saturate(1857%) hue-rotate(336deg) brightness(89%) contrast(90%);
}

.emailbtn2 {
    filter: invert(17%) sepia(36%) saturate(1002%) hue-rotate(178deg) brightness(90%) contrast(89%);
    display: inline-block;
    vertical-align: middle;
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
}

.emailbtn2:hover {
    transform: scale(1.055);
    filter: invert(29%) sepia(59%) saturate(402%) hue-rotate(174deg) brightness(92%) contrast(85%);
}

#carousel {
    width: 100vw;
    height: 600px;
    contain: layout style paint;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 600px;
    contain: layout style paint;
}

.carousel-item {
    height: 600px;
    contain: layout style paint;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 600px;
    aspect-ratio: 1500/600;
    display: block;
}

.navbar-brand img#banner {
  height: 90px;
  max-height: 90px;
  width: auto;
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
        margin: 0;
    }
    .main {
        min-height: 500px;
        contain: layout style;
    }
    
    .navbar {
        height: 90px;
    }
    .navbar-contact {
        top: 35px;
    }
    .contact {
        top: 15px;
        height: 50px;
    }
    .hours-operation {
        margin: 0 auto 20px auto;
        min-height: 320px !important;
        height: 320px !important;
        max-width: 100%;
        min-width: 200px;
        width: 100%;
        contain: layout style paint;
    }
    .commercial-lighting-container {
        margin: 0 auto;
        max-width: 100%;
        min-height: 240px !important;
        height: 240px !important; /* Fixed height for mobile */
        width: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        padding: 20px !important;
    }
    .col-md-3, .col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .container {
        padding: 5px 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto; /* Ensure centered, no bleed */
    }
    .container-fluid {
        padding: 5px 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    #carousel {
        height: 320px;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        contain: layout style paint;
    }
    .carousel-inner {
        height: 320px;
        width: 100%;
        contain: layout style paint;
    }
    
    .carousel-item {
        height: 320px;
        width: 100%;
        contain: layout style paint;
    }
    
    .carousel-item img {
        height: 320px;
        width: 100%;
        object-fit: cover;
    }
    .lcp-optimized-image {
        max-width: 154px !important; /* Match actual image width */
        height: 204px !important; /* Fixed height for mobile */
        aspect-ratio: 154/204 !important;
        background-color: #f8f9fa;
        object-fit: cover;
        display: block;
        margin: 0 auto;
    }
    .btn-warning {
        padding: 10px 20px; /* Increase padding for larger size */
        font-size: 16px; /* Ensure readable text */
        min-width: 100px; /* Prevent text overflow */
        line-height: 1.5; /* Match other elements */
        text-align: center;
        white-space: nowrap; /* Prevent text wrapping */
    }
    .nav-link {
        min-width: 60px; /* Prevent navbar link reflow */
        line-height: 1.5;
    }
    .nav-heading {
        min-width: 100px; /* Prevent logo text shift */
        line-height: 1.5;
    }
    p, h2, h3, h4, h5 {
        min-width: 100%; /* Ensure full container width */
        min-height: 1.5em; /* Reserve space for 1 line */
    }
}

@media (max-width: 480px) {
    #carousel {
        height: 160px;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }
    .carousel-inner {
        height: 160px;
        width: 100%;
    }
    .carousel-item {
        height: 160px;
        width: 100%;
    }
    .carousel-item img {
        height: 160px;
        width: 100%;
    }
}

.carousel-caption {
    font-size: large;
}

.left-column-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
    contain: layout style;
    position: relative;
}

.hours-operation {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    font-family: Montserrat, Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
    min-height: 320px;
    height: 320px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    contain: layout style paint;
    position: relative;
}

.lcp-optimized-image {
    width: 100%;
    max-width: 154px; /* Match your actual image width */
    height: 204px; /* Fixed height to match aspect ratio */
    display: block;
    object-fit: cover; /* This will crop if needed but maintain aspect ratio */
    margin: 0 auto;
    aspect-ratio: 154/204; /* Match your actual image ratio */
    background-color: #f8f9fa; /* Light placeholder color */
    contain: layout style paint;
}

.commercial-lighting-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    min-height: 400px;
    height: auto;
    box-sizing: border-box;
    contain: layout;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.commercial-lighting-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(110deg, #f8f9fa 40%, #e9ecef 50%, #f8f9fa 60%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.commercial-lighting-container.loading::before {
    opacity: 1;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
        margin: 0;
    }
    .main {
        min-height: 400px;
    }

    .navbar {
        height: 90px;
    }
    .navbar-contact {
        top: 35px;
    }
    .contact {
        top: 15px;
        height: 50px;
    }
    
    /* FIXED: Hours operation for mobile */
    .hours-operation {
        margin: 0 auto 20px auto;
        min-height: 320px !important;
        height: 320px !important;
        max-width: 100%;
        min-width: 200px;
        width: 100%;
        contain: layout;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* FIXED: Commercial lighting for mobile */
    .commercial-lighting-container {
        margin: 0 auto;
        max-width: 100%;
        min-height: 240px !important;
        height: 240px !important;
        width: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .col-md-3, .col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .container {
        padding: 5px 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    .container-fluid {
        padding: 5px 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    #carousel {
        height: 320px;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }
    .carousel-inner {
        height: 320px;
        width: 100%;
    }
    .carousel-item {
        height: 320px;
        width: 100%;
    }
    .carousel-item img {
        height: 320px;
        width: 100%;
    }
    
    /* FIXED: LCP image for mobile */
    .lcp-optimized-image {
        max-width: 154px !important;
        height: 204px !important;
        aspect-ratio: 154/204 !important;
        background-color: #f8f9fa;
        object-fit: cover;
        display: block;
        margin: 0 auto;
    }
    
    .btn-warning {
        padding: 10px 20px;
        font-size: 16px;
        min-width: 100px;
        line-height: 1.5;
        text-align: center;
        white-space: nowrap;
    }
    
    .nav-link {
        min-width: 60px;
        line-height: 1.5;
    }
    .nav-heading {
        min-width: 100px;
        line-height: 1.5;
    }
    p, h2, h3, h4, h5 {
        min-width: 100%;
        min-height: 1.5em;
    }
}


@media (min-width: 769px) {
    .lcp-mobile-only {
        display: none !important;
    }
    .lcp-desktop-only {
        display: block !important;
    }
    .hours-operation {
        min-height: 320px;
        min-width: 200px;
        contain: layout;
    }
    .left-column-container {
        min-height: 500px;
    }
    .commercial-lighting-container {
        min-height: 300px;
        min-width: 200px;
    }
}




.commercial-lighting-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    filter: invert(91%) sepia(2%) saturate(1094%) hue-rotate(333deg) brightness(108%) contrast(92%);
    transition: transform 0.3s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
}

.hover-underline-animation.center::after {
    transform-origin: bottom center;
}

.hover-underline-animation.center:hover::after {
    transform-origin: bottom center;
}

.example {
    color: #2a4861;
}

.btn-warning,
.btn-warning:focus,
.btn-warning:active {
    background-color: #ff9400 !important;
    color: #ffffff !important;
    border-color: #ff5e00 !important;
}

.btn-warning:hover {
    background-color: #ffc400 !important;
    transform: scale(1.025);
}

.pendant {
    border-radius: 50%;
    width: 170px;
    height: 170px;
}

.full-screen {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer {
    color: #000000;
}

ul {
    margin-left: 30px;
}

.album {
    background-color: #F0F0F0;
    color: #1A2F44; /* Darker text for contrast */
}

.album a {
    color: #1A3C3C; /* Darker link color */
}

.album a:visited {
    color: #2C2557; /* Darker visited link color */
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.row > * {
    padding-left: 5px;
    padding-right: 5px;
}

.hours-operation .btn-primary {
    color: #ffffff; /* light text for contrast */
    background-color: #0D6EFD; /* Keep Bootstrap blue */
    border-color: #0D6EFD;
    min-height: 50px; /* Fixed button height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hours-operation .btn-primary:hover,
.hours-operation .btn-primary:focus {
    color: #fbff00; /* Yellow on hover/focus for visibility */
    background-color: #0051CC; /* Darker blue */
    border-color: #0051CC;
}
.hours-operation b {
    color: #ffffff; /* Ensure high contrast on white background */
}

.hours-operation p {
    margin: 0;
    line-height: 1.6;
    min-height: 4.8em; /* Approximate height for 3 lines */
}

/* Stabilize hours operation layout */
.hours-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    contain: layout;
}

.hours-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    contain: layout;
}

.hours-contact {
    min-height: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    contain: layout;
}

.hours-operation h3 {
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    contain: layout;
}

/* Fix for the flex column container */
.col.d-flex.flex-column {
    min-height: 320px; /* Match hours-operation height */
    contain: layout;
}
/* Fix main container layout shift */
.main {
    min-height: 500px; /* Reserve consistent space */
    contain: layout style; /* Prevent layout shifts */
}

/* DROPDOWN FIX - Add this to your style.css file */
.navbar-nav .dropdown-menu {
    z-index: 1100 !important;
    position: absolute !important;
}

/* Ensure no content sections create stacking contexts that interfere */
.hero-picture,
.example,
.album,
.service-section {
    position: relative;
    /* z-index: 1; REMOVE THIS LINE if it exists */
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
}

.hover-lift {
  transition: all 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.hover-bg-primary, .hover-bg-warning {
  transition: all 0.3s ease;
}
.hover-bg-primary:hover {
  background-color: #cfe2ff !important;
  border-color: #0d6efd;
  transform: scale(1.05);
}
.hover-bg-warning:hover {
  background-color: #fff3cd !important;
  border-color: #ffc107;
  transform: scale(1.05);
}
.section-gap {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

footer {
  margin-top: 1.5rem !important;
}

.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.gallery-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.gallery-card .card-body {
    padding: 1rem;
    background-color: #fff;
}

.gallery-card .card-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}
.gallery-section {
    margin-bottom: 0.5 rem;
}

.community-support {
    font-size: 1rem;
    line-height: 1.4;
}
.community-support .row {
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

.community-support .card {
    max-width: 100%;
}



/* Fix for mobile dropdown */
@media (max-width: 768px) {
    .navbar-collapse {
        position: relative;
        z-index: 1029;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        z-index: 1100 !important;
    }
}

/* DROPDOWN FIX - OVERRIDE ALL PREVIOUS Z-INDEX VALUES */
.navbar {
    z-index: 1030 !important;
}

.navbar .dropdown-menu {
    z-index: 1100 !important;
}

.navbar-nav .dropdown-menu {
    z-index: 1100 !important;
}

/* Remove any z-index from content sections */
.hero-picture,
.example,
.album,
.service-section {
    z-index: auto !important;
}