/*------------------- Imported Fonts -------------------*/
@font-face {
    font-family: 'Elms-Sans';
    src: url('../../fonts/Elms_Sans/ElmsSans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    overflow-x: hidden;
}

/* Base styles for all devices */
body {
    margin: 0;
    font-family: 'Elms-Sans', sans-serif;
    color: rgb(25, 93, 105);
    background-color: rgb(252, 251, 242);
    overflow-x: hidden;
    background-image: url(../../global-assets/grey-logo-background_mbl.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: auto 100%;
    background-attachment: fixed;
}

/* Desktop-specific override */
@media (min-width: 801px) {
    body {
        background-image: url(../../global-assets/grey-logo-background_mbl.png);
        background-repeat: no-repeat;
        background-position: bottom right;
        background-size: auto 100%;
        background-attachment: fixed;
    }
}

/* Mobile-specific override */
@media (max-width: 801px) {
    body {
        background-image: url(../../global-assets/grey-logo-background_mbl.png);
        background-repeat: no-repeat;
        background-position: bottom right;
        background-attachment: fixed;
        background-size: 100% auto;
    }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* behind content */
}

a {
    font-size: clamp(12px, 2vw, 16px);
    font-family: 'Elms-Sans', sans-serif;
    font-weight: 900;
    text-decoration: none;
    color: rgb(25, 93, 105);
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease-in-out;
}

a:hover {
    color: rgb(204, 191, 146);
    transform: scale(1.1);
}

/*------------------- Header -------------------*/
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: rgb(252, 251, 242);
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-height: 100px;
    min-height: 10px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Desktop Navigation */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(252, 252, 252);
    margin-left: -95px;
    transition: margin-left 0.3s ease-in-out;
    padding: 10px 0 0 0;
}

@media (max-width: 1100px) {
    .nav-container {
        margin-left: 0px;
    }
}

.nav-left,
.nav-right {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    z-index: 1000;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        display: none;
    }

    .header {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 20px;
        background-color: rgb(252, 252, 252);
        position: relative;
    }

    .header .logo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100%;
        background-color: rgb(12, 39, 60);
        padding-top: 40px;
        /* Logo spacing from top */
        padding-left: 20px;
        padding-right: 20px;
        transition: left 0.6s ease;
        z-index: 1000;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu .logo {
        margin-bottom: 40px;
        /* Link spacing below logo */
        text-align: center;
    }

    .mobile-menu nav {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }

    .mobile-menu nav a {
        padding: 10px;
        font-size: 16px;
        color: rgb(252, 252, 252);
    }

    .mobile-menu nav a:hover {
        color: rgb(82, 106, 111);
        font-variation-settings: 'wght' 700;
    }
}

/* Hide mobile header logo on desktop */
@media (min-width: 769px) {
    .header {
        display: none;
    }
}

/* Hide desktop nav logo on mobile */
@media (max-width: 768px) {
    .nav-container .logo {
        display: none;
    }
}



/*------------------- Footer -------------------*/
.site-footer {
    background-image: url('../../global-assets/DSC09230.jpg');
    background-size: cover;
    background-position: center center;
    padding: 100px 20px 40px;
    text-align: center;
    color: rgb(252, 252, 252);
    font-family: 'Inter', sans-serif;
    overflow: visible;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 39, 60, 0.92);
    z-index: 1;
}

.site-footer>* {
    position: relative;
    z-index: 2;
}

/*----- Footer Logo -----*/
.footer-logo {
    position: absolute;
    top: -85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.footer-logo img {
    max-height: 160px;
    min-height: 60px;
    width: auto;
    padding: 10px;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    /* Reduced spacing below logo */
}

.footer-logo img:hover {
    transform: scale(1.1);
}

/*----- Footer Tagline -----*/
.footer-tagline {
    margin: 10px 0;
    font-size: 16px;
    font-weight: 500;
}

/*----- Footer Social Media Icons -----*/
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-bottom: 30px;
    /* Reduced spacing below icons */
}

.footer-social img {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease;
    margin: 10px;
}

.footer-social img:hover {
    transform: scale(1.2);
}

/*----- Footer Information Grid -----*/
.footer-grid-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 30px;
    margin: 30px 0;
    justify-content: left;
}

/* Column Headers */
.footer-column h3,
.footer-header {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
}

/* Paragraph Text */
.footer-column p {
    font-size: 14px;
    margin: 4px 0;
    justify-content: center;
}

/* Left-aligned text override */
.left-align {
    text-align: left;
}

/* Links */
.footer-column a {
    color: rgb(252,252,252);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease-in-out;
}

.footer-column a:hover {
    color: rgb(204, 191, 146);
    transform: scale(1.1);
}

/* Contact Rows */
.contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    column-gap: 20px;
}

/* Icon Cell */
.icon-cell {
    width: 30px;
    text-align: center;
    font-size: 14px;
}

.icon-cell img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.icon-cell img:hover {
    transform: scale(1.2);
}

/* Text Cell */
.text-cell {
    flex: 1;
}

/* Icons (general) */
.icon {
    margin-right: 8px;
}

/* Tighter spacing between contact rows */
.contact-column .contact-row {
    margin-bottom: -30px;
    /* Balanced spacing */
}

/* Fix vertical alignment of first Open Hours row */
.hours-column .hours-row:first-of-type {
    margin-top: -10px;
    /* Pull it up slightly to match other columns */
}

/* Fix vertical alignment of first contact row */
.contact-column .contact-row:first-of-type {
    margin-top: -20px;
    /* Pull it up slightly to match other columns */
}

/* Tighten spacing inside text-cell */
.contact-column .text-cell p {
    margin: 2px 0;
    line-height: 1.3;
}

.open-hours-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Copyright */
.footer-copy {
    font-size: 15px;
    margin-top: 10px;
}