/* static/css/style.css */
:root {
    --primary-color: #0A3161;
    --secondary-color: #B31942;
    --accent-color: #000000;
    --background-color: #FFFFFF;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.header-top {
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 5px 0;
    font-size: 0.9em;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info span {
    margin-left: 20px;
}

.contact-info i {
        margin-right: 5px;
}

.contact-info a {
    color: var(--background-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}


.top-bar {
    background-color: #ffdb4d;
    color: #333;
    padding: 10px 0;
    text-align: center;
    font-size: 1.3em;
    /* change font to a big readable and spaced out one */
    font-family: 'Arial', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar span {
    margin-right: 20px;
    font-weight: bold;
}

.book-now-btn {
    background-color: #333;
    color: #fff;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.book-now-btn:hover {
    background-color: #555;
}

.close-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    margin-left: 20px;
}


header {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 0;

    position: fixed;
    top: 62px; /* Adjust this value based on the height of your top bar */
    left: 0;
    width: 100%;
    z-index: 999;
    transition: top 0.3s ease-in-out;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    /* padding: 1rem 20px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}
.logo:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

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

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

/* Remove outline for various states */
.logo a:focus,
.logo a:active,
.logo a:hover,
.logo img:focus,
.logo img:active,
.logo img:hover {
    outline: none;
}

/* Optional: Add a custom focus style for accessibility */
.logo a:focus-visible {
    box-shadow: 0 0 0 2px var(--secondary-color);
}

nav {
    flex-grow: 1;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

nav ul li a:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

nav ul li a.active {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    line-height: 1.5;
}

header .cta-button {
    background-color: var(--secondary-color);
}

header .cta-button:hover {
    background-color: gold;
    color: white;
    transform: translateY(-3px);
}

.hero .cta-button:hover,
main .cta-button:hover {
    background-color: gold;
    color: white;
    transform: translateY(-3px);
}

nav ul li a:hover:not(.cta-button):not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

main {
    flex: 1;
    padding: 2rem 0;
    margin-top: 150px; /* Adjust this value to ensure content starts below the fixed header */
}

h1, h2, h3 {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin-right: 20px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--background-color);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-section ul li a {
    color: var(--background-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-section ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.social-icons a {
    color: var(--background-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.footer-section p a {
    color: var(--background-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: var(--secondary-color);
}

.footer-section p i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 1.3em;
    }
    header {
        top: 60px; /* Adjust this value based on the height of your top bar */
    }
    .book-now-btn {
        padding: 3px 10px;
    }
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    .header-top {
        font-size: 0.6em;
    }
    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0.25rem;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    nav ul li a {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }

    .cta-button {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}