/* --------------------------------------------------
   GLOBAL RESETS
-------------------------------------------------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* --------------------------------------------------
   TOP CONTACT BAR
-------------------------------------------------- */
.top-contact {
    background: #f05527;
    color: #fff;
    padding: 6px 20px;
    text-align: right;
    font-size: 14px;
}
.top-contact a {
    color: #fff;
    text-decoration: none;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.main-header {
    width: 100%;
    max-width: 1800px;
    height: 200px;
    margin: 0 auto;
    background: url('../images/bridge-n-pass-header.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-bottom: 2px solid #f05527;
}

.main-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0);
    z-index: -1;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    height: 100%;
    padding: 0 20px;
}

/* Desktop header grid override */
@media screen and (min-width: 769px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .logo {
        justify-self: start;
    }

    .desktop-nav {
        justify-self: center;
    }

    .hamburger {
        justify-self: end;
    }
}

/* --------------------------------------------------
   LOGO
-------------------------------------------------- */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 60%;
}
.logo img {
    height: 80px;
    background-color: #fff;
    border: 1px solid #25b7b7;
    border-radius: 30%;
    box-shadow: 2px 2px 5px #000;
}

.logo-text {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    font-weight: bold;
    /*
    text-shadow: 2px 2px 4px rgba(240, 85, 39, 0.9);
    */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.page-title-text {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: bold;
    /*
    text-shadow: 2px 2px 4px rgba(240, 85, 39, 0.9);
    */
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    color: #25b7b7;
}

/* --------------------------------------------------
   DESKTOP NAVIGATION
-------------------------------------------------- */
.desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 50px;
}
.desktop-nav a {
    text-decoration: none;
    background: #00a7ba;
    padding: 8px 16px;
    border: 1px solid #000;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
}
.desktop-nav a:hover {
    background: #2acccc;
}

/* --------------------------------------------------
   HAMBURGER (mobile only)
-------------------------------------------------- */
.hamburger {
    display: none;
    font-size: 32px;
    color: #000;
    cursor: pointer;
    position: relative;
    z-index: 9999;
}

/* --------------------------------------------------
   MOBILE DRAWER NAVIGATION
-------------------------------------------------- */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100%;
    background: #000;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99999;
    pointer-events: none;
}

.drawer.open {
    transform: translateX(0);
    pointer-events: auto;
}

.drawer-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.close-btn {
    font-size: 36px;
    cursor: pointer;
    color: #fff;
}

.mobile-nav {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer.open .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    background: #00a7ba;
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

/* --------------------------------------------------
   DRAWER OVERLAY
-------------------------------------------------- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 9999;
}
.drawer-overlay.show {
    display: block;
}

/* --------------------------------------------------
   MAIN LAYOUT (NEW FLEX SYSTEM)
-------------------------------------------------- */
.layout {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    gap: 20px;
}

.content {
    flex: 1;
    min-width: 60%;
    border: 1px solid #000;
    border-radius: 2px;
    padding: 15px;
    box-shadow: 2px 2px 4px #000;
}

.sidebar {
    flex: 0 0 25%;
    max-width: 300px;
    min-width: 200px;
    border: 1px solid #000;
    border-radius: 2px;
    padding: 15px;
    box-shadow: 2px 2px 4px #000;
}

/* --------------------------------------------------
   MOBILE RESPONSIVE RULES
-------------------------------------------------- */
@media screen and (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .logo {
        max-width: 60%;
    }

    .layout {
        flex-direction: column;
        padding: 0 20px;
    }

    .content,
    .sidebar {
        min-width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {

    .main-header {
        height: 150px;
    }

    .logo img {
        height: 60px;
    }

    .top-contact {
        text-align: center;
        font-size: 13px;
    }

    .content {
        width: 90% !important;
        margin: 0;
    }
}

/* --------------------------------------------------
   DESKTOP-ONLY RULES
-------------------------------------------------- */
@media screen and (min-width: 769px) {

    .desktop-nav {
        display: block !important;
    }

    .desktop-nav ul {
        display: flex !important;
    }

    .mobile-nav,
    #mobile-drawer,
    #drawer-overlay {
        display: none !important;
    }
}

.right-img {
    float: right;
    max-width: 40%;      /* responsive scaling */
    height: auto;
    margin: 0 0 10px 20px; /* space between text and image */
    box-shadow: 2px 2px 6px rgba(0,0,0,0.35);
    border-radius: 6px;
}
@media screen and (max-width: 600px) {
    .right-img {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 90%;
    }
}
