@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

/* Root styling */
:root {
    font-size: 16px;
    --primary-blue: #344279;
    --hover-blue: #29345b;
}

/* Default fonts & sizes */
body {
    font-family: 'Merriweather', Arial, sans-serif;
}

h1, .h1 { font-size: 2.3rem !important; }
h2, .h2 { font-size: 2rem !important; }
h3, .h3 { font-size: 1.7rem !important; }
h4, .h4 { font-size: 1.5rem !important; }
h5, .h5 { font-size: 1.3rem !important; }
h6, .h6 { font-size: 1.1rem !important; }

hr {
    border: 1px solid #747474;
    opacity: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Responsive font sizes */
@media (max-width: 575px) {
    p, a, li, table { font-size: 0.9rem !important; }

    h1, .h1 { font-size: 2.2rem !important; }
    h2, .h2 { font-size: 1.8rem !important; }
    h3, .h3 { font-size: 1.6rem !important; }
    h4, .h4 { font-size: 1.4rem !important; }
    h5, .h5 { font-size: 1.2rem !important; }
    h6, .h6 { font-size: 1rem !important; }
}

/* Custom font & size classes */
.p { font-size: 1rem !important; }
.text-small { font-size: 0.85rem !important; }
.text-extra-small { font-size: 0.75rem !important; }

.text-light, .text-white {
    font-weight: 300 !important;
    color: inherit !important;
}

.text-white { color: #fff !important; }
.text-blue { color: var(--primary-blue) !important; }
.text-shadow { text-shadow: 2px 2px 3px #000; }

.hr-blue, .hr-white {
    border: 1px solid !important;
    opacity: 1;
    width: 5.5rem;
}

.hr-blue { border-color: var(--primary-blue) !important; }
.hr-white { border-color: #fff !important; }
.hr-thin { border-bottom: 0.7px !important; }

/* Utilities */
@media (min-width: 576px) { .w-sm-75 { width: 75%; } }
@media (min-width: 768px) { .w-md-100 { width: 100%; } }
@media (min-width: 992px) { .w-lg-75 { width: 75%; } }

.main-content { flex: 1; }
.centered-list-container { display: flex; justify-content: center; }
.centered-list {
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

.mt-45 { margin-top: 2.2rem !important; }

.mb-45 { margin-bottom: 2.2rem !important; }

.card {
    --bs-card-border-width: none;
    --bs-card-inner-border-radius: none;
}

/* Section fade in on scroll styling */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Full screen loading overlay for every page */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #293352;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999999999;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.loader-icon { text-align: center; }

.loading-icon {
    height: auto;
    animation: expand-contract 1.4s infinite;
}

@keyframes expand-contract {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Buttons */
.btn-primary, .btn-outline-primary-white, .btn-outline-primary-blue {
    --bs-btn-color: #fff;
    --bs-btn-border-color: none;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
}

.btn-primary {
    --bs-btn-bg: var(--primary-blue);
    --bs-btn-hover-bg: var(--hover-blue);
    --bs-btn-active-bg: var(--hover-blue);
    --bs-btn-disabled-bg: var(--hover-blue);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-outline-primary-white {
    --bs-btn-border-color: #fff;
    --bs-btn-hover-bg: var(--primary-blue);
    --bs-btn-hover-border-color: var(--primary-blue);
    --bs-btn-active-bg: var(--primary-blue);
    --bs-btn-active-border-color: var(--primary-blue);
    --bs-btn-disabled-bg: transparent;
}

.btn-outline-primary-blue {
    --bs-btn-color: var(--primary-blue);
    --bs-btn-border-color: var(--primary-blue);
    --bs-btn-hover-bg: var(--primary-blue);
    --bs-btn-active-border-color: var(--primary-blue);
    --bs-btn-disabled-color: var(--primary-blue);
    --bs-btn-disabled-bg: transparent;
}

/* Cookie Bar Styles */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 15px;
    text-align: left;
    z-index: 999999999999;
    transition: all 0.3s ease;
}

.cookie-bar a {
    transition: color 0.2s ease-in;
}

.cookie-bar a:hover {
    color: #c1c1c1;
}

.cookie-bar .cookie-consent__accept {
    background-color: #fff; 
    color: var(--primary-blue);
    border: 1px solid white;
    border-radius: 0.375rem;
    padding: 10px 15px; 
    margin: 0 5px;
    cursor: pointer;
}

.cookie-bar .cookie-consent__decline {
    background-color: transparent; 
    color: #fff;
    border: 1px solid white;
    border-radius: 0.375rem;
    padding: 10px 15px; 
    margin: 0 5px;
    cursor: pointer;
}

/* Desktop Navigation */

.top-nav-desktop {
    background: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/bluesmokemain1.webp') center / cover no-repeat;
    height: 6.8rem;
    color: #fff;
}

.main-logo {
    width: 16rem;
    height: auto;
}

@media (max-width: 875px) {
    .main-logo {
        width: 13rem;
    }
}

.desktop-main-menu {
    background-color: #fafafa;
}

.round-div {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
    overflow: hidden;
}

.round-div img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.text-container {
    height: 2.7rem;
    margin-left: 0.75rem;
}

.search-container {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    border: 1.5px solid #fff;
    border-radius: 0.375rem;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background-color: transparent;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
    width: 200px;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: rgb(201, 201, 201);
}

@media (min-width: 992px) {
    .search-input {
        width: 250px;
    }
}

.search-button {
    background: transparent;
    border: none;
    position: absolute;
    right: 0.8rem;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    z-index: 1;
}

.search-button i {
    color: #fff;
    font-size: 1rem;
}

/* Initializes hover affect for mega menu's on large screens */
@media (min-width: 768px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.navbar a {
    color: #232323;
    font-size: 0.85rem;
    line-height: 1.6rem;
}

.navbar a::after, .navbar li a i::before {
    color: var(--primary-blue);
}

@media (max-width: 767px) {
    .navbar a::after, .navbar li a i::before {
        color: #fff;
    }
}

@media (min-width: 767px) and (max-width: 802px) {
    .navbar a {
        font-size: 0.79rem;
    }
}

@media (min-width: 1200px) {
    .navbar a {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .navbar a {
        color: #fff;
        line-height: 1.7rem;
    }
}

.dropdown-toggle::after {
    font-size: 1.1rem;
    vertical-align: middle;
}

.nav-item.dropdown.dropdown-mega {
    position: static;
}

.nav-item.dropdown.dropdown-mega .dropdown-menu {
    width: 95%;
    max-width: 1200px;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    margin: 0;
}

.mega-menu-overlay {
    content: "";
    position: absolute; /* Change from fixed to absolute */
    top: 221.4px; /* Replace 60px with the actual height of your navbar */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: none;
}

/* Ensure the mega menu is above the overlay */
.dropdown-mega:hover {
    z-index: 2;
}

.dropdown-mega:hover::before {
    display: block;
}

.mega-menu-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    min-height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    z-index: 2;
    cursor: pointer;
    color: #fff !important;
}

.mega-menu-suits-to-hire-img {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/suitstohiremegamenuimage.webp');
}

.mega-menu-suits-to-buy-img {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/sewingalterationpromocard.webp');
}

.mega-menu-tuxedos-to-hire-img {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/tuxedostohiremegamenuimage.webp');
}

.mega-menu-tuxedos-to-buy-img {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/tuxedostobuymegamenuimage.webp');
}

.mega-menu-kilts-to-hire-img {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/kiltstohiremegamenuimage1.webp');
}

.mega-menu-kilts-to-buy-img {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/kiltstobuymegamenuimage.webp');
}

.mega-menu-kilts-to-buy-offer-img {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/kiltstobuyoffermegamenuimage.webp');
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgb(45, 57, 105, 1) 5%, rgba(45, 57, 105, 0.8) 25%, rgba(45, 57, 105, 0.6) 40%, rgba(45, 57, 105, 0.4) 50%, rgba(45, 57, 105, 0) 100%);
    z-index: 1;
}

.mega-menu-img p,
.mega-menu-img hr {
    position: relative;
    z-index: 2;
}

.mega-menu-img p {
    margin: 0 0;
}

.mega-menu-img hr {
    margin: 0.5rem 0;
}

.mega-menu-links-wrapper {
    margin-bottom: 1.2rem;
}

.dropdown-menu {
    border-radius: 0;
}

/* Mobile Navbar */

/* Push all content below fixed mobile nav */
@media (max-width: 767px) {
    main {
        margin-top: 66.85px;
    }
}

.custom-navbar {
    background: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/bluesmokemain1.webp') no-repeat center center;
    background-size: cover;
}

.navbar-toggler {
    border: none;
    padding: 0.23rem 0.5rem 0.2rem 0.5rem;
}

.navbar-toggler i {
    color: #ececec;
    font-size: 1.7rem;
}

#main-logo-mobile {
    width: 10rem;
    height: auto;
}

.navbar-icons {
    display: flex;
    gap: 8px;
}

.navbar-icons .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #fff;
    border-radius: 50%;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
}

.navbar-icons .social-icon i {
    font-size: 14px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 375px) {
    .navbar-icons .mobile-facebook-icon {
        display: none;
    }
}

@media (max-width: 345px) {
    .navbar-icons .mobile-instagram-icon {
        display: none;
    }
}

.offcanvas {
    background-color: #293352;
    z-index: 9999 !important;
}

.offcanvas.offcanvas-start {
    border-right: none !important;
}

.offcanvas-header {
    padding-bottom: 0;
}

.offcanvas-body {
    padding: 0;
}

.offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.offcanvas .btn-close:focus {
    box-shadow: none;
}

.mobile-fh-logo {
    width: 45px;
    height: auto;
}

.mobile-menu-hr {
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    margin: 0 0;
}

@media (max-width: 767px) {
    .navbar {
        --bs-navbar-padding-y: 0.2rem;
    }

    .dropdown-menu {
        --bs-dropdown-border-width: none;
        --bs-dropdown-divider-bg: none;
        padding-top: 0.2rem;
    }

    .dropdown-open {
        background-color: #242b43; /* Change this to your desired color for the <li> */
    }
    
    .dropdown-open .dropdown-menu {
        background-color: #242b43; /* Change this to your desired color for the dropdown menu */
    }
    
    /* Optional: To ensure the anchor element does not get a background color */
    .dropdown-open > .nav-link {
        background: transparent; /* Ensure the anchor background is transparent */
    }

    .nav-link:focus,
    .nav-link:hover,
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link.show {
        color: white;
    }

    .nav-link {
        margin: 0 1rem !important;
        font-size: 1rem !important;
        padding: 0.3rem 0;
    }

    .dropdown-toggle::after {
        display: none;
    }

    .dropdown-toggle .fa-angle-down {
        transition: transform 0.3s;
    }

    .dropdown-toggle[aria-expanded="true"] .fa-angle-down {
        transform: rotate(180deg);
    }

    .mobile-search-container {
        width: 100%;
    }

    .search-form {
        display: flex;
        align-items: center;
        position: relative;
        width: 100%;
    }

    .search-input {
        border: 1px solid rgba(255, 255, 255, 1);
        border-radius: 0.375rem;
        padding: 0.5rem 2.5rem 0.5rem 1rem;
        padding-right: 2.5rem;
        background-color: #242b43;
        color: #fff;
        font-size: 0.9rem;
        outline: none;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none; /* Disable native search input styling */
        height: 2.4rem;
    }

    .search-input::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
    }

    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
    }

    .search-button {
        background: transparent;
        border: none;
        position: absolute;
        right: 0.8rem;
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0;
        cursor: pointer;
        z-index: 1;
    }

    .search-button i {
        color: rgba(255, 255, 255, 1);
        font-size: 1.2rem;
    }

    .offcanvas-header {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 330px) {
    .main-menu-heading-mobile {
        display: none;
    }
}

/* Footer */

footer {
    background: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/bluesmokemain1.webp') center/cover no-repeat;
    height: auto;
    padding-bottom: 2rem;
    color: #fff;
}

.footer-link {
    transition: color 0.2s ease-in !important;
}

.footer-link:hover {
    color: #c1c1c1 !important;
}

.footer-google-map {
    padding-bottom: 50%;
    position: relative;
}

.footer-google-map iframe {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.social-icons {
    display: flex;
    gap: 0.6rem;
}

.social-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: white;
    color: var(--primary-blue);
}

.whatsapp-icon-footer {
    width: 17px;
    height: auto;
}

/* Brochure flipbook */
.EgKGV {
    /* Controls brochure flip book container height */
    height: 500px !important;
    max-height: 500px !important;
}

.fWBaHv {
    /* Stops flipbook/brochure loading widget appearing above dropdown hover lists */
    z-index: 1 !important;
}

/* Video header, shown on multiple pages */
.header-video-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

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

.header-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.header-video-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 100%;
}

.header-video-heading {
    font-size: 2.8rem !important;
}

.header-video-heading {
    @media (max-width: 575px) {
        font-size: 1.8rem !important;
    }
}

.header-video-container {
    @media (min-width: 300px) {
        height: 325px;
    }
    @media (min-width: 576px) {
        height: 375px;
    }
    @media (min-width: 768px) {
        height: 425px;
    }
    @media (min-width: 992px) {
        height: 500px;
    }
}

/* Wedding fayre carousel shown when wedding fayres are present */
.carousel-item {
    height: 375px;
    background: center / cover no-repeat;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: grayscale(100%);
    z-index: 0;
}

.carousel-inner .container {
    height: 100%;
    position: relative;
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    padding: 0;
    z-index: 2;
    bottom: inherit;
}

.grey-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(35, 35, 35, 1) 1%, rgba(35, 35, 35, 0.95) 10%, rgba(35, 35, 35, 0.7) 40%, transparent 80%);
    z-index: 1;
}

@media (max-width: 767px) {
    .carousel-caption {
        text-align: center;
    }

    .carousel-item {
        height: 440px;
    }

    .wedding-fayre-heading {
        font-size: 1.3rem !important;
    }

    .wedding-fayre-title {
        font-size: 1.8rem !important;
    }

    .wedding-fayre-date {
        font-size: 1.1rem !important;
    }

    .grey-gradient-overlay {
        background: linear-gradient(to right, rgba(35, 35, 35, 1) 1%, rgba(35, 35, 35, 0.9) 30%, rgba(35, 35, 35, 0.6) 70%, transparent 100%);
    }
}

/* Home Service page styling */
.home-service-table {
    --bs-table-bg: none !important;
    --bs-table-color: none !important;
}

.table-blue-background {
    background-color: var(--primary-blue);
}

.home-hire-widget-background {
    background-color: #f3f3f3;
    margin-bottom: -3rem !important;
}

/* Main page header styling */
.page-header-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-header-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 20px;
    width: 100%;
    max-width: 900px;
}

.page-header-image-heading {
    font-size: 2.8rem;
    margin: 0;
}

@media (max-width: 575px) {
    .page-header-image-container {
        height: 350px;
    }

    .page-header-image-heading {
        font-size: 1.8rem;
    }
}

@media (min-width: 576px) {
    .page-header-image-container {
        height: 400px;
    }
}

@media (min-width: 768px) {
    .page-header-image-container {
        height: 450px;
    }
}

@media (min-width: 992px) {
    .page-header-image-container {
        height: 475px;
    }
}

.contact-page-header-image-container {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/contactusheaderimage2.webp');
}

.about-us-page-header-image-container {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/aboutusheaderimage.webp');
}

.about-us-store-image {
    width: 100%;
    background: bottom / cover no-repeat;
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/newshop1.webp');
}

@media (max-width: 575px) {
    .about-us-store-image {
        height: 300px;
    }
}

@media (min-width: 576px) {
    .about-us-store-image {
        height: 400px;
    }
}

@media (min-width: 768px) {
    .about-us-store-image {
        height: 500px;
    }
}

@media (min-width: 992px) {
    .about-us-store-image {
        height: 550px;
    }
}

@media (min-width: 1400px) {
    .about-us-store-image {
        height: 650px;
    }
}

/* Wedding fayre list page */
.wedding-fayres-page-header-image-container {
    background-image: url('https://formal-hire.lon1.digitaloceanspaces.com/formal-hire/media/weddingfayreslistheaderimage.webp');
}

.wedding-fayre-image-container {
    width: 100%;
    padding-top: 100%; /* Creates a square aspect ratio */
    position: relative;
    overflow: hidden;
}

.wedding-fayre-image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

/* Place WhatsApp button underneath loading overlay */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #344279;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 9998 !important;
}

.whatsapp-button:hover {
    background-color: #4c488e;
}