/*
Theme Name: Kaizen Child Theme
Author: Forge Creation
Author URI: http://forgecreationdigital.com
Description: A Child Theme 
Version: 1.0.0
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* General Styles */
body {
    font-family: "Lato", sans-serif;
    margin: 0;
    padding: 0;
    font-size: 22px;
	letter-spacing: 0.5px;
    transition: background-color 0.6s ease; /* Smooth transition for background color */
    font-weight: 300;
}

/* Remove top margin */
html {
    margin-top: 0 !important;
    overflow-x: hidden;
}

p {
	line-height: 1.5em;
	letter-spacing: 0.5px;
}

/* Title Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #000;
	margin-top:10px;
	margin-bottom:10px;
	letter-spacing: 2px;
}

/* Regular links inside body text and headlines */
body a,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color:#ff0000;
    text-decoration: none;
}

/* Hover state for links inside body text and headlines */
body a:hover,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color:#333;
    text-decoration: none;
}
h1 {
    font-size: 7em;
}

h2 {
    font-size: 4em;
}

h3 {
    font-size: 3em;
}

h4 {
    font-size: 2.5em;
}

h5 {
    font-size: 1.5em;
}

h6 {
    font-size: 1.2em;
}

/*
.inline-dash {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('images/favicon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin: 0 5px;
}
*/

.inline-dash {
    display: inline-block;
    vertical-align: baseline;
    margin: 0 5px;
}

.inline-dash::before {
    content: "•"; /* Simple period/bullet */
    font-size: .4em;
    color:#ff0000; /* Uses the same color as surrounding text */
}

/* Video Hero Styles */
.video-hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
    opacity: 0; /* Start at 0 opacity */
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.video-hero.show {
    opacity: 1; /* Fade to full opacity */
}

.video-hero iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* Video Overlay Styles */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% opacity black overlay */
    z-index: 2;
    opacity: 1; /* Start at full opacity */
    transition: opacity 1s ease-in-out;
}

.video-overlay.close {
    opacity: 0.7; /* Fade to 30% opacity */
}

/* Video Logo Styles */
.video-logo {
    z-index: 3;
    opacity: 1; /* Start at full opacity */
    transition: opacity 0.2s ease-in-out; /* Smooth transition on scroll */
}

.video-logo.show {
    opacity: 1; /* Fade to full opacity */
}

.video-logo img {
    max-width: 100%;
    height: auto;
}



/* Title Container Styles */
.title-container {
    height: 30px;
    display: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 1;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.video-background iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    z-index: 1;
}

/* =================================
   VIDEO HERO - HOMEPAGE SPECIFIC STYLES
   ================================= */

/* Video Logo - Upper Left Positioning */
.video-logo {
    position: absolute;
    top: 50px;
    left: 20px;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    max-width: 700px;
}

.video-logo.show {
    opacity: 1;
    visibility: visible;
}

.video-logo a {
    display: block;
    text-decoration: none;
}

.video-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Video Footer Content - Lower Positioning */
.video-footer-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.video-footer-content.show {
    opacity: 1;
    visibility: visible;
}

/* Video Social Icons Section */
.video-social-section {
    margin-bottom: 20px;
}

.video-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

.video-social-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: width 0.1s, fill 0.1s, transform 0.2s ease;
    position: relative;
}

.video-social-icon:hover {
    fill: #ff0000;
    width: 22px;
    transform: translateY(-2px);
}

/* Custom tooltip styling for video social icons */
.video-social-icon::before {
    content: attr(title);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: "Montserrat", sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.video-social-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

.video-social-icon::after {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.video-social-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Video Footer Info Section */
.video-footer-info {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
    font-size: 14px;
    text-transform: uppercase;
}

/* Video Footer Navigation */
.video-footer-navigation {
    margin-bottom: 15px;
}

.video-footer-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.video-footer-navigation ul li {
    position: relative;
}

.video-footer-navigation ul li:before {
    content: "|";
    color: #ff0000;
    position: absolute;
    left: -10px;
    top: 0;
}

.video-footer-navigation ul li:first-child:before {
    display: none;
}

.video-footer-navigation ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 100;
    transition: color 0.3s ease;
    font-size: 12px;
}

.video-footer-navigation ul li a:hover {
    color: #ff0000;
}

/* Video Copyright Section */
.video-copyright p {
    margin: 5px 0;
    font-size: 12px;
    font-weight: 100;
    color: #fff;
}

.video-credit {
    font-size: 10px !important;
}

.video-credit a {
    color: #fff;
    text-decoration: none;
    font-weight: 200;
    transition: color 0.3s ease;
}

.video-credit a:hover {
    color: #ff0000;
}

/* Mobile Responsive for Video Hero Elements */
@media screen and (max-width: 768px) {
    .video-logo {
        top: 15px;
        left: 15px;
        max-width: 180px;
    }

    .video-footer-content {
        bottom: 15px;
        width: 95%;
        padding: 0 10px;
    }

    .video-social-icons {
        gap: 20px;
        margin-bottom: 10px;
    }

    .video-social-icon {
        width: 18px;
        height: 18px;
    }

    .video-social-icon:hover {
        width: 20px;
    }

    .video-footer-navigation ul {
        flex-direction: column;
        gap: 8px;
    }

    .video-footer-navigation ul li:before {
        display: none;
    }

    .video-footer-navigation ul li a {
        font-size: 11px;
    }

    .video-copyright p {
        font-size: 10px;
        margin: 3px 0;
    }

    .video-credit {
        font-size: 9px !important;
    }
}

/* Very small mobile adjustments */
@media screen and (max-width: 480px) {
    .video-logo {
        max-width: 150px;
        top: 10px;
        left: 10px;
    }

    .video-footer-content {
        bottom: 10px;
    }

    .video-social-icons {
        gap: 15px;
    }

    .video-footer-navigation ul li a {
        font-size: 10px;
    }

    .video-copyright p {
        font-size: 9px;
    }

    .video-credit {
        font-size: 8px !important;
    }
}

/* Title Video Overlay */
.title-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Hide the old title content */
.title-content {
    display: none;
}

/* Title Logo Styles */
.title-logo {
    display: none;
}

/* Page Title & Divider Styles */
.page-title-container {
    display: none;
}

.favicon-divider {
    display: none;
}

.page-title {
    display: none;
}

/* Traditional Navigation Bar */
.traditional-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background-color: #fff;
	/*
    border-bottom: 1px solid #eee;
	*/
}

.traditional-nav .nav-logo {
    margin-right: 40px;
}

.traditional-nav .nav-logo img {
    height: 60px;
    width: auto;
}

.traditional-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.traditional-nav .nav-menu li {
    margin: 0 20px;
    position: relative; /* Required for dropdown positioning */
}

.traditional-nav .nav-menu li a {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.traditional-nav .nav-menu li a:hover {
    color: #ff0000;
}

/* WordPress Dropdown container */
.traditional-nav .nav-menu li .sub-menu,
.traditional-nav .nav-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

/* Show dropdown on hover - WordPress classes */
.traditional-nav .nav-menu li:hover .sub-menu,
.traditional-nav .nav-menu li:hover ul,
.traditional-nav .nav-menu .menu-item-has-children:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown menu items */
.traditional-nav .nav-menu .sub-menu li,
.traditional-nav .nav-menu ul li {
    margin: 0;
    width: 100%;
}

.traditional-nav .nav-menu .sub-menu li a,
.traditional-nav .nav-menu ul li a {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.traditional-nav .nav-menu .sub-menu li a:hover,
.traditional-nav .nav-menu ul li a:hover {
    color: #ff0000;
    background-color: #f9f9f9;
    border-left-color: #ff0000;
    padding-left: 25px;
}

/* Dropdown arrow indicator - WordPress classes *
.traditional-nav .nav-menu li.has-dropdown > a::after,
.traditional-nav .nav-menu .menu-item-has-children > a::after {
    content: "▼";
    font-size: 8px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.traditional-nav .nav-menu li.has-dropdown:hover > a::after,
.traditional-nav .nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}
*/

.traditional-page-title {
    text-align: center;
    padding: 0 20px 00px 20px; /* Removes top padding, keeps sides and bottom */
    background-color: #fff;
}

.traditional-page-title h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 4.5rem;
    font-weight: 100;
    color: #000;
    text-transform: uppercase;
    margin: 0;
}

/* Hide hamburger menu on desktop with traditional nav 
@media (min-width: 769px) {
    body:not(.page-template-template-home-dynamic) .hamburger-menu {
        display: none;
    }
}
*/

/* Responsive Adjustments */
@media screen and (max-width: 900px) {
    .traditional-nav {
        display: none;
    }
    
    .traditional-page-title {
        padding: 20px;
    }
    
    .traditional-page-title h1 {
        font-size: 2.5rem;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 70px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    z-index: 4003;
}

.hamburger-menu .bar {
    width: 70px;
    height: 3px;
    background-color: #ff0000;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.hamburger-menu:hover .bar {
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
    .hamburger-menu {
        width: 40px; /* Smaller on mobile */
        right: 5px; /* Closer to edge but not over */
    }
    
    .hamburger-menu .bar {
        width: 40px; /* Match container width */
    }
}


/* Button Container Styles */
.button-container {
    display: flex;
    align-items: center;
    width: auto !important;
    left: 20px !important;
    right: auto !important;
    justify-content: flex-start !important;
    position: fixed;
    bottom: 20px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 2000;
}

/* Button Base Styles */
.home-appt-button,
.services-button,
.products-button,
.team-button {
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, transform 0.3s ease-in-out;
    width: 300px;
    min-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    /*
    transform: translateY(-5px);
	*/
}

/* Button Hover Styles */
.home-appt-button:hover,
.services-button:hover,
.products-button:hover,
.team-button:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
    transform: translateY(-5px);
}

/* Animation for zooming in (appearing) */
@keyframes team-zoom-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation for zooming out (disappearing) */
@keyframes team-zoom-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Apply animations to team members */
.team-member.team-fade-in {
    animation: team-zoom-in 0.5s ease forwards;
}

.team-member.team-fade-out {
    animation: team-zoom-out 0.5s ease forwards;
    pointer-events: none; /* Ensure non-interaction while fading out */
}


/* Animation to reveal buttons after 5s */
@keyframes revealButtons {
    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.home-appt-button,
.services-button,
.products-button,
.team-button {
    animation: revealButtons 1s ease-in-out forwards;
    animation-delay: 5s;
}

/* Mobile Styles */
@media screen and (max-width: 900px) {
    .services-button,
    .products-button,
    .team-button {
        display: none;
    }

    .home-appt-button {
        width: 100%;
    }

    .button-container {
        justify-content: center;
    }
}

/* Global Button Styles */
.global-button {
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, transform 0.3s ease-in-out;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    min-width: 200px; /* ADD THIS LINE */
}

/* Global Button Hover Styles */
.global-button:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
	/*
    transform: translateY(-5px);
	*/
}

/* Mobile Styles for Global Button */
@media screen and (max-width: 900px) {
    .global-button {
        width: 90%; /* Set width to 40% for smaller screens */
        margin: 0 auto; /* Center the button */
        display: block; /* Ensure the button is treated as a block-level element */
    }
}

/* Overlay Menu Styles */
.overlay-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 90% opacity white background */
    backdrop-filter: blur(10px); /* Adjust the blur radius as needed */
    -webkit-backdrop-filter: blur(10px); /* Add the blur for WebKit browsers */
    z-index: 4002;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
}

.overlay-menu.show {
    display: flex;
    opacity: 1;
    justify-content: flex-start;
    align-items: flex-end;
    flex-direction: row;
    padding: 40px;
    box-sizing: border-box;
}

.overlay-menu .menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 1;
    text-align: left;
    font-size: 1.7em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* Overlay menu items fade in up */
.overlay-menu.show .menu-items li {
    margin: 20px 0;
    transform: translateY(50px);
    opacity: 0;
    animation: overlayMenuFadeInUp 0.5s forwards;
    animation-delay: calc(0.1s * var(--i)); /* Delay for sequential fade in */
}

/* Overlay menu items fade out down */
.overlay-menu.hide .menu-items li {
    animation: overlayMenuFadeOutDown 0.5s forwards;
    transform: translateY(0);
    opacity: 1;
}

/* Hover state for menu items */
.overlay-menu .menu-items li a {
    color: #ff0000;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.overlay-menu .menu-items li a:hover {
    color: #000;
}

/* Sub-menu styling - same as main items */
.overlay-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1em; /* Same size as parent */
    text-transform: uppercase; /* Same as parent */
}

/* Sub-menu items - same styling as main items */
.overlay-menu .sub-menu li {
    margin: 20px 0; /* Same margin as parent items */
}

/* Sub-menu links - same styling as main items */
.overlay-menu .sub-menu li a {
    color: #ff0000; /* Same gold as parent */
    font-weight: 600; /* Same weight as parent */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.overlay-menu .sub-menu li a:hover {
    color: #000; /* Same hover as parent */
}

/* Keyframes for animations */
@keyframes overlayMenuFadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes overlayMenuFadeOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(50px);
        opacity: 0;
    }
}

.overlay-menu.hide .menu-items li {
    animation: fadeOutRight 0.2s forwards;
}

/* Close Overlay Icon */
.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    z-index: 4003;
    font-size: 1.5em;
}

/* Location Modal Styles */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
	  backdrop-filter: blur(10px); /* Adjust the blur radius as needed */
    -webkit-backdrop-filter: blur(10px); /* Add the blur for WebKit browsers */
    z-index: 5001;
    display: none;
    justify-content: center;
    align-items: center;
}

.location-modal.show {
    display: flex;
}

/* Modal Content Styles */
.location-modal-content {
    background-color: #000;
    padding: 50px;
    border-radius: 8px;
    border: 1px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* CTA Styles */
.cta-container h3 {
    font-family: "Lato", sans-serif;
    font-size: 1.8em;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cta-container p {
    font-family: "Lato", sans-serif;
    font-size: 1.2em;
    font-weight: 100;
    color: #fff;
}

/* Location Button Styles */
.location-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.location-button {
    background-color: transparent;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
    text-transform: uppercase;
    border: 1px solid #fff;
    padding: 10px 20px;
    margin-bottom: 30px;
    cursor: pointer;
    width: 250px;
	min-width: 200px;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.location-button:hover {
    color: #000;
    background-color: #fff;
}

/* Close Button (X with Circle) */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    color: #ff0000;
    cursor: pointer;
    z-index: 5000;
    font-size: 1.5em;
}

/* Animation */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-modal.show .location-modal-content {
    animation: fadeSlideUp 0.8s ease;
}


/* Site Logo Styles (to replace site-header styles) */
.site-logo {
    position: fixed;
    left: 0;
    top: -100px; /* Start off-screen */
    padding-left: 20px; /* Add padding if you want some spacing from the edge */
    transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
}

.site-logo.show {
    top: 0; /* Reveal the logo */
    opacity: 1;
    visibility: visible;
}

.site-logo.hide {
    top: -100px; /* Move off-screen */
    opacity: 0;
    visibility: hidden; /* Hide the logo after the transition */
}

/* Site Logo Image Styles */
.site-logo img {
    max-width: 250px; /* Adjust this size as needed */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Block-level ensures the image fills its container */
}



/* Updated styling for the 'Make an Appointment' Button on all pages except template-home */
.site-appointment-button {
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2000;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, width 0.3s ease;
    border-radius: 4px;
    width: 300px;
    min-width: 250px; /* ADD THIS LINE */
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    text-align: center !important;
}

.site-appointment-button:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

/* Animation to reveal button after 5s */
@keyframes fadeInButton {
    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.site-appointment-button {
    animation: fadeInButton 0.5s ease-in-out forwards;
    animation-delay: 5s;
}

/* Mobile Styles */
@media screen and (max-width: 900px) {
    .site-appointment-button {
        width: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin: 0;
        border-radius: 0px;
        bottom: 0px;
    }
}

/* Footer Animation Styles */
@keyframes fadeInUpFooter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDownFooter {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Ensure elements are hidden initially */
.footer-target {
    opacity: 0;
    transform: translateY(20px);
}

.footer-visible {
    animation: fadeInUpFooter 1s forwards;
}

.footer-hidden {
    animation: fadeOutDownFooter 1s forwards;
}

.site-footer {
    background: #f0f0f0;
    color: #333;
    padding: 0;
    text-align: center;
    font-family: "Lato", sans-serif;
}

.footer-top {
    background: #000;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer-logo {
    max-width: 350px;
    margin-bottom: 10px;
}

.contact-us {
    font-size: 1.5em;
    font-weight: 300;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.contact-us a {
    color: #ff0000;
    text-decoration: none;
}

.contact-us a:hover {
    color: #fff;
    text-decoration: none;
}

/* Footer middle - now only 2 columns for locations */
.footer-middle {
    background: #fff;
    color: #000;
    display: flex;
    justify-content: center; /* Center the two columns */
    gap: 200px; /* Space between the two location columns */
    padding: 40px 20px;
    font-family: "Lato", sans-serif;
}

.footer-middle .footer-column {
    width: auto; /* Let columns size themselves */
    text-align: center; /* Center text within each column */
}

.footer-column h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #000; /* Changed from #fff to #000 for white background */
    font-weight: 500;
}

.footer-column p {
    margin: 0;
}

.footer-column a {
    text-decoration: none;
}

.footer-column a[href*="fuelsalonspahr@gmail.com"] {
    color: #ff0000;
}

.footer-column a[href*="fuelsalonspahr@gmail.com"]:hover {
    color: #555;
}

.footer-column a[href*="fuelsalonspa@gmail.com"] {
    color: #ff0000;
}

.footer-column a[href*="fuelsalonspa@gmail.com"]:hover {
    color: #555;
}

/* Remove individual social icons from columns since they're now centralized */
.footer-middle .social-icons {
    display: none;
}

/* New footer social section - centered social icons */
.footer-social {
    background: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-social .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Space between social icons */
    width: auto;
    margin: 0;
}

/* Social Icons */
/* Add this to your style.css file */

/* Custom tooltip styling for social icons */
.social-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    fill: #000;
    transition: width 0.1s, fill 0.1s, transform 0.2s ease;
    position: relative; /* Required for tooltip positioning */
}

.social-icon:hover {
    fill: #ff0000;
    width: 22px;
    transform: translateY(-2px);
}

/* Custom tooltip */
.social-icon::before {
    content: attr(title); /* Use the title attribute content */
    position: absolute;
    bottom: 130%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: "Montserrat", sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none; /* Prevent tooltip from interfering with hover */
}

/* Show tooltip on hover */
.social-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Optional: Add a small arrow pointing down to the icon */
.social-icon::after {
    content: '';
    position: absolute;
    bottom: 120%; /* Position the arrow */
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000; /* Arrow color matches tooltip */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Show arrow on hover */
.social-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Footer bottom - now includes hours */
.footer-bottom {
    background: #000;
    padding: 40px 20px 20px 20px;
    font-family: "Montserrat", sans-serif;
    color: #ff0000;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 100;
    text-align: center;
}

/* Hours section styling */
.footer-hours { margin-bottom: 20px; } /* tightened a touch */
.footer-hours h3 {
  color: #ff0000;
  font-size: 1.2em;
  margin-bottom: 10px; /* was 15px */
  text-transform: uppercase;
  font-weight: 500;
}
.footer-hours p {
  color: #fff;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
  text-transform: none;
}
/* rows */
.footer-hours .hours-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .45rem .6rem;
  margin: .15rem 0;
}
/* day, time, separators */
.footer-hours .hours-day {
  font-weight: 600;
  min-width: 2.6ch; /* aligns the day column */
  text-align: right;
}
.footer-hours .hours-day--spacer { visibility: hidden; } /* reserves width for 2nd Sat line */
.footer-hours .hours-time { opacity: .9; white-space: nowrap; }
.footer-hours .hours-sep { opacity: .6; }

.footer-hours .loc-pill {
  display: inline-block;
  padding: .12rem .12rem; /* even top/bottom as requested */
  font-size: .8em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.footer-hours .loc-pill--alt { background: #3a3a3a; }
/* tighten Sat pair so it reads as one group */
.footer-hours .hours-row--sat { margin-top: .05rem; margin-bottom: .05rem; }
.footer-hours .hours-row--sat + .hours-row--sat-cont { margin-top: -4px; } /* pull together slightly */

/* Mobile layout */
@media (max-width: 480px) {
  .footer-hours .hours-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the entire row */
    align-items: center;
    gap: .4rem;
    margin: .25rem 0;
  }
}

.footer-navigation {
    margin-bottom: 10px;
    display: none;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-navigation ul li {
    margin: 0 10px;
    position: relative;
}

.footer-navigation ul li:before {
    content: "|";
    color: #f9a86f;
    position: absolute;
    left: -10px;
}

.footer-navigation ul li:first-child:before {
    display: none;
}

.footer-navigation ul li a {
    color: #ff0000;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 100;
}

.footer-navigation ul li a:hover {
    color: #fff;
}

.footer-navigation ul li ul {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-navigation ul li:hover ul {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-middle {
        flex-direction: column;
        gap: 30px; /* Smaller gap for mobile - stacked anyway */
        align-items: center;
    }
    
    .footer-social .social-icons {
        gap: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .footer-middle {
        gap: 100px; /* Medium gap for tablets */
    }
}

/* Mobile Styles */
@media screen and (max-width: 900px) {
    .footer-bottom {
        margin-bottom: 30px;
    }
}

.divider {
    text-align: center;
    margin: 40px 0;
}

.divider img {
    width: 30px;
    height: auto;
}

/* FADE IN ELEMENT */
.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Sticky Element Adjustments */
.sticky-element {
    position: sticky;
    top: 150px;
    z-index: 1000;
    transition: top 0.3s ease, opacity 0.3s ease;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.fade-out-up {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}


/* =================================
   PARALLAX BACKGROUND SYSTEM
   ================================= */

/* Base parallax section styling - FULL WIDTH for background */
.kaizen-section.parallax-bg {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh; /* Full viewport height for dramatic effect */
    max-width: none !important; /* Remove any width constraints */
    margin: 0; /* Remove auto centering margin */
    padding: 0; /* Remove any padding */
    width: 100%; /* Ensure full width */
}

/* Parallax overlay for content readability */
.kaizen-section.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* 50% black overlay */
    z-index: 1;
}

/* White overlay variant for dark images */
.kaizen-section.parallax-bg.light-overlay::before {
    background: rgba(255, 255, 255, 0.3); /* Light overlay for dark text on bright images */
}

/* Container within parallax section - LIMITED WIDTH for content */
.kaizen-section.parallax-bg .kaizen-group {
    max-width: 1500px; /* Limit the grid container to 1500px */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Add side padding */
    position: relative;
    z-index: 2; /* Above overlay */
}

/* Content columns within the container */
.kaizen-section.parallax-bg .kaizen-col {
    position: relative;
    z-index: 2;
    /* Keep existing kaizen-col styling from kaizen-grid.css */
}

/* Specific section parallax backgrounds */
.services-parallax {
    background-image: url('images/home-background-services_1920.webp');
}

.products-parallax {
    background-image: url('images/home-background-products_1920.webp');
}

.team-parallax {
    background-image: url('images/team-background.jpg');
}

.about-parallax {
    background-image: url('images/about-background.jpg');
}

.contact-parallax {
    background-image: url('images/contact-background.jpg');
}

.gallery-parallax {
    background-image: url('images/gallery-background.jpg');
}

/* Alternative parallax method for better performance */
.kaizen-section.parallax-transform {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    max-width: none !important;
    margin: 0;
    padding: 0;
    width: 100%;
}

.parallax-transform::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-attachment: scroll;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform;
    z-index: 0;
}

/* Overlay for transform method */
.parallax-transform::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* 50% black overlay */
    z-index: 1;
}

/* Container within transform parallax section */
.kaizen-section.parallax-transform .kaizen-group {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Content above overlay for transform method */
.parallax-transform .kaizen-col {
    position: relative;
    z-index: 2;
}

/* COMPREHENSIVE MOBILE PARALLAX FIXES */
@media (max-width: 900px) {
    .kaizen-section.parallax-bg {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        /*
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);*/
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        /* Disable any transform effects that might interfere */
        transform: none !important;
        will-change: auto !important;
    }
    
    .parallax-transform::before {
        top: 0;
        bottom: 0;
        transform: none;
    }
    
    .kaizen-section.parallax-bg::before,
    .parallax-transform::after {
        background: rgba(0, 0, 0, 0.7); /* Stronger overlay on mobile for readability */
    }
    
    /* Content container with proper centering */
    .kaizen-section.parallax-bg .kaizen-group,
    .kaizen-section.parallax-transform .kaizen-group {
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        text-align: center;
    }
    
    /* Stack columns vertically on mobile */
    .kaizen-section.parallax-bg .kaizen-grid-2,
    .kaizen-section.parallax-transform .kaizen-grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* iOS DEVICES (iPhone, iPad) */
@supports (-webkit-touch-callout: none) {
    .kaizen-section.parallax-bg {
        background-attachment: scroll !important;
        -webkit-transform: translate3d(0,0,0) !important;
        transform: translate3d(0,0,0) !important;
    }
}

/* ANDROID DEVICES */
@media screen and (-webkit-min-device-pixel-ratio: 1) and (max-width: 900px) {
    .kaizen-section.parallax-bg {
        background-attachment: scroll !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
}

/* WEBKIT BROWSERS (Safari, Chrome on mobile) */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 900px) {
    .kaizen-section.parallax-bg {
        background-attachment: scroll !important;
        -webkit-background-size: cover !important;
        -webkit-transform: translateZ(0) !important;
    }
}

/* SAMSUNG INTERNET & OTHER MOBILE BROWSERS */
@media screen and (max-width: 900px) and (orientation: portrait),
       screen and (max-width: 900px) and (orientation: landscape) {
    .kaizen-section.parallax-bg {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
        /* Force GPU acceleration */
        will-change: transform !important;
        transform: translateZ(0) !important;
    }
}

/* MOBILE VIEWPORT FIXES */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .kaizen-section.parallax-bg {
        width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: none !important;
    }
    
    .kaizen-section.parallax-bg .kaizen-group {
        width: 100% !important;
        padding: 40px 15px !important;
        margin: 0 !important;
    }
    
    .parallax-bg h1, .parallax-bg h2, .parallax-bg h3 {
        font-size: 2em !important;
        text-align: center !important;
    }
    
    .parallax-bg p {
        font-size: 1em !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
}

/* Standard iPads */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .kaizen-section.parallax-bg {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* iPad Pro 11" */
@media screen and (min-width: 834px) and (max-width: 1194px) {
    .kaizen-section.parallax-bg {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

@media (max-width: 600px) {
    .kaizen-section.parallax-bg .kaizen-group,
    .kaizen-section.parallax-transform .kaizen-group {
        padding: 0px;
        width: 100%;
    }
}

/* Text styling for parallax sections */
.parallax-bg h1, .parallax-bg h2, .parallax-bg h3,
.parallax-transform h1, .parallax-transform h2, .parallax-transform h3 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 3em;
}

.parallax-bg p, .parallax-transform p {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Parallax Button Styles - Transparent with heavier font */
.parallax-button {
    font-family: "Montserrat", sans-serif;
    font-weight: 600; /* Heavier than the usual 100 */
    background-color: transparent; /* Transparent background */
    color: #fff;
    border: 2px solid #fff;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 0px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, transform 0.3s ease-in-out;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    min-width: 250px;
}

/* Parallax Button Hover Styles */
.parallax-button:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
  /*
    transform: translateY(-5px);
	*/
}

/* Mobile Styles for Parallax Button */
@media screen and (max-width: 900px) {
    .parallax-button {
        width: 40%;
        margin: 0 auto;
        display: block;
    }
}

/* =================================
   TEAM PAGE STYLES
   ================================= */

/* Container for both location filter and team filter - maintains consistent height */
.filter-container {
    max-width: 1500px;
    width: 90%;
    margin: 40px auto; 
    min-height: 80px;
    position: relative;
}

/* Initial Location Filter - positioned to align with future category filters */
.location-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.location-filter.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.location-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 60px;
}

.location-filter ul li {
    display: inline-block;
}

.location-filter ul li a {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: .7em;
    letter-spacing: 1px;
}

.location-filter ul li a:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-3px);
}

/* Team Filter Section - positioned to overlay location filter */
.team-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-filter.visible {
    opacity: 1;
    visibility: visible;
}

/* Location Title Above Everything */
.current-location {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8em;
    font-weight: 300;
    color: #ff0000;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    text-align: left;
    letter-spacing: 2px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Filter Row Container */
.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 50px;
    margin-bottom: 15px;
}

/* Category Filters - Left Side */
.category-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-start;
    flex: 1;
    height: 100%;
    align-items: center;
    overflow: hidden; /* Prevent overflow on tablet */
}

.category-filters a {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-right: none;
    text-transform: uppercase;
    padding: 12px 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 0.6em;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
    flex-shrink: 1; /* Allow shrinking on smaller screens */
    min-width: 0; /* Allow items to get smaller */
}

.category-filters a:last-child {
    border-right: 1px solid #000;
}

.category-filters a:first-child {
    border-radius: 4px 0 0 4px;
}

.category-filters a:last-child {
    border-radius: 0 4px 4px 0;
}

.category-filters a.active, 
.category-filters a:hover {
    background-color: #000;
    color: #fff;
    z-index: 2;
    border-color: #000;
}

/* Location Switcher - Right Side */
.location-switcher {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.location-switcher a {
    font-family: 'Lato', sans-serif;
    font-size: 0.6em;
    color: #fff;
    background-color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #000;
    padding: 12px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.location-switcher a:hover {
    color: #000;
    background-color: #fff;
    border-color: #000;
    transform: translateY(-2px);
}

/* Animation Classes for Location Transitions */
.filter-content.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.filter-content.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.location-title-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.location-title-transition.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

/* Team Gallery Grid */
.team-gallery {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 90% !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 100px !important;
}

/* Team Member Animations */
@keyframes team-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes team-fade-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

.team-member.team-fade-in {
    animation: team-fade-in 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.team-member.team-fade-out {
    animation: team-fade-out 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Team Member Card */
.team-member {
    position: relative;
    background-size: cover;
    background-position: center;
    width: 100%;
    aspect-ratio: 1;
    display: block;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 10px;
    text-decoration: none;
    margin: 0 !important;
    padding: 0 !important;
    grid-row: auto !important;
    grid-column: auto !important;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.4);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.team-member:hover::before {
    opacity: 1;
}

/* Read More Button */
.read-more-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
}

.team-member:hover .read-more-btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0);
}

.read-more-btn:hover {
    background-color: #fff;
    color: #000;
}

/* Team Member Info */
.team-member-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 0px;
    text-align: left;
    width: 80%;
    z-index: 2;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover .team-member-info {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.team-member-info h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px;
    color: #dba727;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: capitalize;
}

.owner-tag {
    font-style: normal;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: capitalize;
}

.team-member-info .categories {
    font-size: 14px;
    color: #ccc;
}

.team-member-info p {
    font-size: 12px;
    color: #ddd;
    margin: 5px 0 0;
}

.team-member-info a {
    color: #dba727;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.team-member-info a:hover {
    color: #fff;
}

/* Show More Button */
.show-more {
    display: none;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #dba727;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.show-more:hover {
    background-color: #dba727;
}

/* Team Page Responsive Design - CARDS MAINTAIN SIZE, ONLY COLUMNS CHANGE */
@media (max-width: 1200px) {
    .team-gallery {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Tablet/Large Mobile - Stack filters earlier to prevent overflow */
@media (max-width: 900px) {
    .filter-container {
        min-height: 140px; /* Increased height for tablet */
        margin: 20px auto 0px auto; /* More bottom margin for tablet */
        width: 95%;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        height: auto;
        margin-bottom: 30px; /* Extra space for view button on tablet */
    }
    
    .category-filters {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
        overflow: visible;
    }
    
    .category-filters a {
        font-size: 0.5em;
        padding: 8px 12px;
        border-right: 1px solid #000;
        border-radius: 4px;
        margin: 2px;
        flex-shrink: 0;
    }
    
    .current-location {
        text-align: center;
        font-size: 1.5em;
        margin: 0 0 15px 0;
    }
    
    .location-switcher {
        text-align: center;
        width: 100%;
        justify-content: center;
        margin-bottom: 25px; /* More space for locations with many categories */
    }
    
    .location-switcher a {
        width: 80%;
        max-width: 300px;
        display: block;
        text-align: center;
        font-size: 0.5em;
        padding: 10px 15px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        margin: 15px auto 50px auto;
    }
    
    .filter-container {
        min-height: 140px; /* Extra height for mobile */
        margin: 20px auto 35px auto; /* More bottom margin */
        width: 95%;
    }
    
    /* Mobile inherits the stacked layout from 900px breakpoint above */
    .filter-row {
        margin-bottom: 30px; /* Even more space on mobile */
    }
    
    .location-switcher {
        margin-bottom: 25px; /* Extra space for Centennial with more categories */
    }
    
    .location-filter ul {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }
    
    .location-filter ul li {
        width: 100%;
        margin: 5px 0;
    }
    
    .location-filter ul li a {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .team-gallery {
        grid-template-columns: 1fr !important;
        margin: 10px auto 50px auto;
    }
    
    .filter-container {
        min-height: 160px; /* Even more height for small mobile */
        margin: 15px auto 40px auto; /* Extra bottom margin */
    }
    
    .show-more {
        display: block;
    }
    
    .current-location {
        font-size: 1.2em;
        margin: 0 0 12px 0;
    }
    
    .category-filters a {
        font-size: 0.45em;
        padding: 6px 10px;
    }
    
    .location-switcher {
        margin-bottom: 30px; /* Extra margin for very small screens */
    }
    
    .filter-row {
        margin-bottom: 35px; /* Maximum space for smallest screens */
    }
}


/* =================================
  PORTFOLIO PAGE STYLES (grid + items)
  ================================= */

/* FORCE exactly 2 across on desktop */
.portfolio-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* 2 columns */
  gap: 20px;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto 100px;
}

/* keep your item exactly as-is */
.portfolio-item {
  position: relative;
  background-size: cover;
  background-position: center;
  width: 100%;
  aspect-ratio: 1792 / 1024;
  display: block;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
}

.portfolio-item:hover {
   transform: translateY(-10px);
   box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.4);
}

.portfolio-item::before {
   content: '';
   position: absolute;
   inset: 0;
   background-color: rgba(0, 0, 0, 0.5);
   opacity: 0;
   transition: opacity 0.4s ease;
   z-index: 1;
}

.portfolio-item:hover::before {
   opacity: 1;
}

/* --- Flag overlay --- */
.portfolio-item-info {
   position: absolute;
   left: 0;
   bottom: 0;
   z-index: 2;
   background: #fff;
   color: #000;
   padding: 10px 14px;
   display: block; /* stack elements vertically */
   max-width: 88%;
   clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0% 100%);
   box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.portfolio-item-info h4 {
   font-size: 16px;
   font-weight: 700;
   margin: 0 0 6px;
   color: #000;
   text-transform: capitalize;
   line-height: 1.2;
   display: block;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
   max-width: 100%;
}

.portfolio-item-info .categories {
   font-size: 13px;
   color: #666;
   margin: 0;
   display: block;
}

/* don’t fade flag out on hover */
.portfolio-item:hover .portfolio-item-info {
   opacity: 1;
   transform: none;
}

/* kill View Project inside the overlay if present */
.portfolio-item-info .project-link {
   display: none !important;
}

/* Read more button */
.portfolio-item .read-more-btn {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%) translateY(20px);
   background-color: transparent;
   color: #fff;
   border: 2px solid #fff;
   padding: 12px 24px;
   border-radius: 4px;
   font-family: 'Lato', sans-serif;
   font-weight: 300;
   font-size: 14px;
   text-transform: uppercase;
   letter-spacing: 1px;
   opacity: 0;
   visibility: hidden;
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   z-index: 3;
   pointer-events: none;
}

.portfolio-item:hover .read-more-btn {
   opacity: 1;
   visibility: visible;
   transform: translate(-50%, -50%) translateY(0);
}

.read-more-btn:hover {
   background-color: #fff;
   color: #000;
}

/* Featured badge */
.featured-badge {
   position: absolute;
   top: 10px;
   right: 10px;
   background-color: rgba(218, 167, 39, 0.9);
   color: #fff;
   font-family: "Montserrat", sans-serif;
   font-weight: 300;
   font-size: 0.8em;
   text-transform: uppercase;
   padding: 6px 12px;
   border-radius: 4px;
   z-index: 3;
}

/* Status tags */
.status-tag {
   background-color: rgba(255, 0, 0, 0.8);
   color: #fff;
   font-size: 12px;
   padding: 2px 8px;
   border-radius: 3px;
   margin-right: 8px;
   text-transform: uppercase;
   font-weight: bold;
}

/* Show More Button */
.show-more {
   display: none;
   margin: 20px auto;
   padding: 10px 20px;
   background-color: #dba727;
   color: #fff;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   text-align: center;
   transition: background-color 0.3s ease;
}

.show-more:hover {
   background-color: #b68e20;
}

/* Responsive tweaks */
@media (max-width: 1200px) {
   .portfolio-gallery {
       grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 768px) {
  .portfolio-gallery {
    grid-template-columns: 1fr !important; /* 1 column on tablets/phones */
    margin: 15px auto 50px auto;
  }
}

@media (max-width: 576px) {
  .portfolio-gallery {
    grid-template-columns: 1fr !important; /* still 1 column */
    margin: 10px auto 50px auto;
  }
  .show-more { display: block; }
  .portfolio-item-info { max-width: 94%; padding: 10px 12px; }
  .portfolio-item-info h4 { font-size: 15px; }
  .portfolio-item-info .categories { font-size: 12.5px; }
}



/* =================================
   VIDEO TITLE SECTION STYLES
   ================================= */

/* Video Title Section - video as background of traditional-page-title */
.traditional-page-title.video-title-section {
    position: relative;
    text-align: center;
    background-color: #000; /* Fallback background */
    overflow: hidden;

    /* Full width breakout */
    width: auto;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 30px 20px;
    z-index: 1;
}

/* Updated Video background iframe for traditional page title section */
.traditional-page-title.video-title-section > iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
    border: 0;
}

/* Video overlay */
.traditional-page-title.video-title-section .page-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Title content over video */
.traditional-page-title.video-title-section .video-title-content {
    position: relative;
    z-index: 3;
}

.traditional-page-title.video-title-section .video-title-content h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 4.5rem;
    font-weight: 100;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Mobile responsive */
@media screen and (max-width: 900px) {
    .traditional-page-title.video-title-section {
        padding: 40px 20px;
    }
    
    .traditional-page-title.video-title-section .video-title-content h1 {
        font-size: 2.5rem;
    }
    
    .traditional-page-title.video-title-section .page-video-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
}



/* =================================
   SINGLE PORTFOLIO STYLES
   ================================= */

/* Hide theme page title on portfolio singles */
body.single-portfolio .traditional-page-title { display: none; }

/* Page colors for portfolio single */
body.single-portfolio .page-container {
  background-color: #fff !important;
  color: #000 !important;
}

/* Content links inside the writeup */
body.single-portfolio .single-portfolio-content a {
  color: #ff0000 !important;
  text-decoration: none;
}
body.single-portfolio .single-portfolio-content a:hover {
  color: #555 !important;
  text-decoration: none;
}

/* ---------- Header hero video ---------- */
body.single-portfolio .single-portfolio-hero-video {
  position: relative;
  width: 100%;
  height: 30vh;
  overflow: hidden;
  background: #000;
}
body.single-portfolio .single-portfolio-hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* Hero overlay */
.single-portfolio-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.70);
  padding: 0 20px;
}

.single-portfolio-hero-inner {
  width: 100%;
  max-width: 900px;
  text-align: center;
  color: #fff;
}

.single-portfolio-hero-inner .single-portfolio-title h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 300;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

/* Logo sizing - consolidated */
.single-portfolio-title-logo img,
.single-portfolio-hero-inner .single-portfolio-title-logo img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 50%;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

/* ---------- Layout container ---------- */
.single-portfolio-container {
  max-width: 1500px;
  margin: 80px auto 50px;
  padding: 0 40px;
}

/* Title or logo centered above both columns */
.single-portfolio-titlewrap {
  text-align: center;
  margin-bottom: 30px;
}
.single-portfolio-titlewrap .single-portfolio-title h1 {
  margin: 0;
  font-size: 2em;
  font-weight: 200;
  text-transform: uppercase;
}

/* Two-column area */
.single-portfolio-header {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  text-align: left;
}

/* Left media column (video + buttons) */
.single-portfolio-image {
  width: 500px;
  max-width: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.single-portfolio-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main video in body */
.single-portfolio-main-video {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0;
  padding: 0;
}

.single-portfolio-main-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

/* Featured flag */
.single-featured-flag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: .9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 15px;
  border: 1px solid #fff;
}

/* Right info column */
.single-portfolio-info { 
  flex: 1; 
  width: 100%; 
}

.single-portfolio-title h1 {
  margin: 0 0 20px 0;
  font-size: 2.5em;
  font-weight: 200;
  color: #000;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
}

.single-portfolio-meta {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: .7em;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-align: center;
}

.single-status-highlight { 
  color: #ff0000; 
}

.single-portfolio-date {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: .9em;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.single-portfolio-content {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 40px;
  font-weight: 300;
  text-align: left;
}

/* Actions row: centered */
.single-portfolio-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: center;
}

.single-portfolio-actions .single-back-button {
  margin: 0;
}

/* Button styles */
.project-link-btn,
.single-back-button {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 100;
  text-transform: uppercase;
  padding: 10px 20px;
  text-decoration: none;
  transition: all .3s ease;
}

.project-link-btn {
  background-color: #ff0000;
  color: #fff;
  border: 1px solid #ff0000;
}
.project-link-btn:hover {
  background: #fff;
  color: #ff0000;
  transform: translateY(-2px);
}

/* Contact button styling - matches View Live Project button */
.contact-link-btn {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 100; /* Match the font weight */
    text-transform: uppercase;
    padding: 10px 20px;
    text-decoration: none;
    transition: all .3s ease;
    background-color: #fff; /* White background */
    color: #ff0000; /* Red text */
    border: 1px solid #ff0000; /* Red border */
    line-height: 1; /* Fix vertical centering */
    vertical-align: middle; /* Additional vertical centering */
}

.contact-link-btn:hover {
    background-color: #ff0000; /* Red background on hover */
    color: #fff; /* White text on hover */
    border-color: #ff0000; /* Keep red border */
    transform: translateY(-2px); /* Slight lift effect */
}

.single-back-button {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  margin: 0;
}
.single-back-button:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

/* Video actions row */
.single-portfolio-video-actions {
  margin-top: 15px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-self: center;
}

.single-portfolio-video-actions .project-link-btn {
  background: #ff0000;
  color: #fff;
  border: 1px solid #ff0000;
}
.single-portfolio-video-actions .project-link-btn:hover {
  background: #fff;
  color: #ff0000;
  transform: translateY(-2px);
}

/* Ensure specificity for single portfolio pages */
.single-portfolio-video-actions .contact-link-btn {
    background-color: #fff !important;
    color: #ff0000 !important;
    border: 1px solid #ff0000 !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 100 !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}

.single-portfolio-video-actions .contact-link-btn:hover {
    background-color: #ff0000 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Tags */
.single-portfolio-tags {
  margin-top: 15px;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 0.7em;
  color: #ff0000;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-align: center;
}
.single-portfolio-tags a { 
  color: inherit; 
  text-decoration: none; 
}
.single-portfolio-tags a:hover { 
  color: #000; 
}

/* ======================
   TABLET AND DOWN
   ====================== */
@media (max-width: 1199px) {
  body.single-portfolio .single-portfolio-hero-video { 
    height: 35vh; 
  }
  .single-portfolio-container { 
    margin: 60px auto 40px; 
    padding: 0 30px; 
  }
  .single-portfolio-header { 
    flex-direction: column; 
    gap: 25px; 
    align-items: center; 
    text-align: center; 
  }
  .single-portfolio-image { 
    width: 70%; 
    max-width: 450px; 
    align-items: center; 
    margin: 0 auto; 
  }
  .single-featured-flag { 
    bottom: 18px; 
    right: 18px; 
    font-size: .85em; 
    padding: 7px 14px; 
  }
  .single-portfolio-meta { 
    font-size: 1em; 
    margin-bottom: 28px; 
  }
  .single-portfolio-content { 
    font-size: 17px; 
    margin-bottom: 35px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
  }
  .single-back-button { 
    padding: 11px 22px; 
    font-size: .95em; 
  }
  .single-portfolio-title-logo img,
  .single-portfolio-hero-inner .single-portfolio-title-logo img { 
    max-width: 45%; 
  }
  .single-portfolio-hero-inner .single-portfolio-title h1 { 
    font-size: 2.4rem; 
  }
}

/* ======================
   MOBILE
   ====================== */
@media (max-width: 767px) {
  body.single-portfolio .single-portfolio-hero-video { 
    height: 40vh; 
  }
  .single-portfolio-image { 
    width: 90%; 
    max-width: 800px; 
  }
  .single-portfolio-hero-inner .single-portfolio-title h1 { 
    font-size: 1.8rem; 
  }
  .single-portfolio-title-logo img,
  .single-portfolio-hero-inner .single-portfolio-title-logo img { 
    max-width: 70%; 
  }
  
  /* Mobile button stacking */
  .single-portfolio-actions,
  .single-portfolio-video-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }
  
  .single-portfolio-actions .single-back-button,
  .single-portfolio-actions .project-link-btn,
  .single-portfolio-actions .contact-link-btn,
  .single-portfolio-video-actions .project-link-btn,
  .single-portfolio-video-actions .contact-link-btn {
    width: 80% !important;
    max-width: 300px !important;
    text-align: center !important;
    margin: 0 !important;
  }
}

/* ======================
   LARGE DESKTOP
   ====================== */
@media (min-width: 1400px) {
  .single-portfolio-container { 
    padding: 0 60px; 
  }
  .single-portfolio-header { 
    gap: 80px; 
  }
  .single-portfolio-image { 
    width: 700px; 
  }
  .single-portfolio-content { 
    font-size: 19px; 
  }
  .single-portfolio-title-logo img,
  .single-portfolio-hero-inner .single-portfolio-title-logo img { 
    max-width: 50%; 
  }
}

/* ================================
   PORTFOLIO TAG ARCHIVE (matches main grid)
   ================================ */

/* Container */
.portfolio-archive-container {
  max-width: 1500px;          /* match main page */
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
.portfolio-archive-header {
  text-align: center;
  margin-bottom: 28px;
}
.portfolio-archive-header .archive-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 300;
  text-transform: uppercase;
}
.portfolio-archive-header .archive-description {
  max-width: 800px;
  margin: 0 auto;
  color: #666;
  font-size: 15px;
}

/* Grid (2 → 1 → 1) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* desktop: 2 across */
  gap: 20px;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto 100px;
}
@media (max-width: 1200px) {
  .portfolio-grid { grid-template-columns: 1fr; } /* tablet: 1 */
}
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;                /* mobile: 1 */
    margin: 15px auto 50px auto;
  }
}
@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;                /* stays 1 */
    margin: 10px auto 50px auto;
  }
}

/* Card = image tile (match main) */
.portfolio-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000; /* fallback behind image */
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,.4);
}

/* Link wrapper + hover overlay (like main .portfolio-item::before) */
.portfolio-card-link {
  position: relative;
  display: block;
}
.portfolio-card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 1;
}
.portfolio-card:hover .portfolio-card-link::before {
  opacity: 1;
}

/* Thumb keeps the 1792:1024 aspect, image covers */
.portfolio-thumb {
  position: relative;
  aspect-ratio: 1792 / 1024;   /* same ratio as main grid */
  width: 100%;
}
.portfolio-thumb img,
.portfolio-thumb-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0; /* parent already handles radius */
}

/* Title as white "flag" overlay in bottom-left (same style as main) */
.portfolio-card-title {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;                 /* above overlay */
  background: #fff;
  color: #000;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  max-width: 88%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0% 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  margin: 0;                  /* reset h2 defaults */
}

/* Pagination */
.portfolio-archive-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* Hide theme’s default page title on tag archives */
body.tax-portfolio_tag .traditional-page-title,
body.tax-portfolio_tag .page-title,
body.tax-portfolio_tag .entry-title {
  display: none !important;
}

/* =================================
   GLOBAL FLUENT FORMS BUTTON STYLES
   ================================= */

/* Set global variables for Fluent Forms buttons */
:root {
  --fluentform-primary: #ff0000;           /* gold */
  --fluentform-primary-hover: #b68e20;     /* darker gold on hover */
  --fluentform-primary-text: #ffffff;      /* white button text */
}

/* Base style for all Fluent Forms submit buttons */
.ff-btn-submit:not(.ff_btn_no_style) {
  background-color: var(--fluentform-primary);
  color: var(--fluentform-primary-text);
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  text-transform: uppercase;
  transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* Hover state */
.ff-btn-submit:not(.ff_btn_no_style):hover {
  background-color: var(--fluentform-primary-hover);
  color: var(--fluentform-primary-text);
  cursor: pointer;
}

/* Focus state */
.ff-btn-submit:not(.ff_btn_no_style):focus {
  background-color: var(--fluentform-primary-hover);
  outline: 2px solid var(--fluentform-primary);
  outline-offset: 2px;
}

/* Active (pressed) state */
.ff-btn-submit:not(.ff_btn_no_style):active {
  background-color: #333333;
  transform: translateY(1px);
}


/* =================================
   CONTACT FORM WRAPPER
   ================================= */
/* Default button style */
.forminator-ui.forminator-custom-form[data-design=default] .forminator-button {
    background: #ff0000 !important; /* your accent gold */
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Hover style */
.forminator-ui.forminator-custom-form[data-design=default] .forminator-button:hover {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .6) !important;
}

.forminator-ui#forminator-module-370.forminator-design--default select.forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] .select2-selection__rendered {
    font-size: 16px;
    line-height: 22px;
    font-weight: 300;
    background: white;
}
.contact-form-wrapper {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 21px;
  font-weight: 300;
}


/* =================================
   SCROLL HINT SYSTEM
   ================================= */
.scroll-hint-system {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.scroll-hint-text {
    color: rgba(255, 255, 255, 0.9);
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    animation: fadeInOut 3s ease-in-out infinite;
}

.scroll-hint-visual {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    position: relative;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.scroll-hint-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes scrollDrop {
    0% { 
        top: 8px; 
        opacity: 1; 
    }
    100% { 
        top: 32px; 
        opacity: 0; 
    }
}

/* Hide scroll hint on mobile and tablet */
@media screen and (max-width: 768px) {
    .scroll-hint-system {
        display: none !important;
    }
}

.contact-paragraph {
    font-size: 0.7em;
    margin: 1em 0;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}
        
.stylelink {
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
        
.stylelink:hover {
    color: #555;
    text-decoration: underline;
}
        
.stylelink:focus {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}
        
.stylelink:active {
    color: #333;
}

/* Featured podcasts (reuse portfolio style) */
.podcast-item {
  position: relative;
  display: block;
  aspect-ratio: 1792 / 1024;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.podcast-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.podcast-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.podcast-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 12px 16px;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
}
.podcast-item-info h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}
.podcast-item-info p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* Other appearances list */
.podcast-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.podcast-list li {
  margin-bottom: 12px;
}
.podcast-list a {
  font-weight: 300;
  text-decoration: none;
}
.podcast-list a:hover {
  color: inherit; /* fallback to theme’s default link hover */
}

/* ===== About: New Hero (image panel + better buttons) ===== */
.about-hero {
  --pad: clamp(20px, 4vw, 40px);
  background: #0a0a0a;
  color: #fff;
  padding: calc(var(--pad) * 1.25) var(--pad);
}

.about-hero .hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* copy wider than media */
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero .hero-eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .7;
  margin: 0 0 10px 0;
}

.about-hero .hero-title {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.1;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.about-hero .hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: #ddd;
  margin: 0 0 22px 0;
}

.about-hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons: square, crisp, strong hover */
.about-hero .btn {
  display: inline-block;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff;
  border-radius: 0;              /* <- no rounded corners */
  color: #0a0a0a;
  background: #fff;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.about-hero .btn.outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.about-hero .btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.about-hero .btn.outline:hover {
  background: #fff;
  color: #0a0a0a;
}

/* Image panel (replaces iframe) */
.about-hero .media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  min-height: 320px;             /* ensures presence if image is slow */
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Cover image with dark overlay for legibility */
.about-hero .media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
}
.about-hero .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
}

/* Optional PARALLAX modifier */
.about-hero .media.parallax::before {
  will-change: background-position;
}

/* Stack on small screens */
@media (max-width: 980px) {
  .about-hero .hero-wrap { grid-template-columns: 1fr; }
  .about-hero .media { order: -1; min-height: 46vw; }
}

/* START Button - Homepage Only - More Specific Selectors */
.video-hero .start-button {
    position: absolute !important;
    bottom: 25% !important;  /* Top of bottom third */
    left: 50% !important;
    transform: translateX(-50%) translateY(20px) !important;
    z-index: 4 !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 300 !important;
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
    display: inline-block !important;
    width: auto !important;
    min-width: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.video-hero .start-button.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.video-hero .start-button:hover {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .video-hero .start-button {
        bottom: 50% !important; /* Move to vertical center instead of 22% */
        padding: 10px 20px !important;
        font-size: 0.8rem !important;
    }
}


/* Hide footer navigation on mobile */
@media screen and (max-width: 768px) {
    .footer-navigation {
        display: none !important;
    }
}

/* Single Portfolio - Mobile button stacking */
@media (max-width: 767px) {
    .single-portfolio-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .single-portfolio-video-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .single-portfolio-actions .single-back-button,
    .single-portfolio-actions .project-link-btn,
    .single-portfolio-actions .contact-link-btn,
    .single-portfolio-video-actions .project-link-btn,
    .single-portfolio-video-actions .contact-link-btn {
        width: 80% !important;
        max-width: 300px !important;
        text-align: center !important;
        margin: 0 !important;
    }
}

/* Pre-hide ONLY on the portfolio template to prevent the flash */
body.page-template-template-portfolio .portfolio-grid > *,
body.page-template-template-portfolio .portfolio-items > *,
body.page-template-template-portfolio .portfolio-list > *,
body.page-template-template-portfolio .portfolio .item,
body.page-template-template-portfolio .portfolio-item {
  opacity: 0;
  transform: translateY(18px);
}

/* Portfolio fade-in-up */
@keyframes pfFadeUp { 
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pf-item { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }
.pf-item.pf-in { animation: pfFadeUp .6s ease-out forwards; }

/* Safety: if someone prefers reduced motion, just show them */
@media (prefers-reduced-motion: reduce) {
  .pf-item, .pf-item.pf-in {
    animation: none; opacity: 1; transform: none;
  }
}