/*
 * Site chrome — header, navigation, booking modal and footer.
 * Extracted verbatim from the <style> blocks that header.html and
 * footer.html injected on every page of the static site.
 */

/* ---------- Header / navigation / booking modal ---------- */
.site-header {
    background: transparent;
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    max-height: 120px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    background: #fff;
    padding: 15px 25px 25px;
    /* Larger padding, extending downward */
    border-radius: 0 0 50px 50px;
    /* Snaps to top, wave/tab shape at bottom */
    margin-top: -20px;
    /* Overcomes header top padding to hit edge */
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    display: none;
    /* Hidden on desktop */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: block;
    /* Visible on desktop */
}

nav ul {
    list-style: none;
    padding: 5px 10px;
    margin: 0;
    display: flex;
    flex-direction: row;
    /* Horizontal on desktop */
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav ul li {
    margin: 0 5px;
    border-top: none;
}

nav ul li a {
    color: #333;
    text-shadow: none;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 25px;
}

nav ul li a:hover {
    color: #8cc63f;
    background: rgba(140, 198, 63, 0.1);
}

/* Dropdown Navigation Styles */
nav ul li.has-dropdown {
    position: relative;
}

nav ul li ul.dropdown {
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 10px 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Invisible bridge so mouse doesn't lose hover between items */
nav ul li ul.dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    height: 20px;
}

nav ul li.has-dropdown:hover>ul.dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

nav ul li ul.dropdown li {
    margin: 0;
    border-top: none;
}

nav ul li ul.dropdown li a {
    color: #555;
    text-shadow: none;
    padding: 12px 25px;
    font-weight: 500;
    border-radius: 0;
    background: transparent;
}

nav ul li ul.dropdown li a:hover {
    background: #f5f8f5;
    color: #8cc63f;
}

/* Button Book */
.btn-book {
    color: #8cc63f;
    font-weight: bold;
    border: 2px solid #8cc63f;
    border-radius: 20px;
    padding: 5px 20px;
    margin-left: 10px;
}

.btn-book:hover {
    background: #8cc63f;
    color: #fff;
}

/* Nested Dropdowns */
nav ul li ul.dropdown .has-dropdown {
    position: relative;
}

nav ul li ul.dropdown .nested-dropdown {
    top: -10px;
    left: 100%;
    margin-top: 0;
    margin-left: 10px;
}

/* Mobile Header Styles */
@media screen and (max-width: 768px) {
    .site-header {
        background: #ffffff;
        padding: 10px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        position: relative !important;
    }

    .header-container {
        justify-content: center;
        position: relative;
    }

    .logo {
        max-height: 70px;
        padding: 5px;
        background: transparent;
        border-radius: 0;
        margin-top: 0;
        filter: none;
    }

    .menu-toggle {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
        color: #8cc63f;
        text-shadow: none;
    }

    .nav-menu {
        display: block;
        /* enable transitions */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-15px);
        transition: all 0.3s ease-in-out;
        width: 100%;
        background: #ffffff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        align-items: stretch;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        border-top: 1px solid #eee;
    }

    nav ul li a {
        padding: 15px;
        color: #333;
        text-shadow: none;
        border-radius: 0;
    }

    nav ul li a:hover {
        background: transparent;
    }

    /* Fixed mobile booking btn */
    nav ul li a.btn-book {
        margin: 15px auto 20px;
        padding: 10px 30px;
        display: inline-block;
        width: 80%;
        max-width: 200px;
        border-radius: 30px;
        text-align: center;
        background: #8cc63f;
        color: #fff;
    }

    nav ul li ul.dropdown {
        position: static;
        visibility: hidden;
        opacity: 0;
        display: none;
        transform: translateY(0);
        margin-top: 0;
        box-shadow: none;
        background: #fdfdfd;
        width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    nav ul li.has-dropdown:hover>ul.dropdown {
        visibility: visible;
        opacity: 1;
        display: flex;
    }

    nav ul li ul.dropdown .nested-dropdown {
        margin-left: 0;
        background: #f4f4f4;
    }
}

/* --- Booking Modal Styles --- */
/* --- Booking Modal Styles --- */
.modal-overlay {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    /* Kept as flex to ease centering */
    align-items: center;
    justify-content: center;

    /* Animation Properties */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
    background-color: #fff;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Subtle pop-in scale effect */
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
}

.modal-buttons .btn {
    display: block;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

/* Activated State via JS */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scale up the box smoothly when active */
.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* ---------- Footer ---------- */
/* Footer */
.site-footer {
    background: #0d2f3b;
    /* Dark, deep blue-green */
    color: #fff;
    padding: 60px 20px 40px;
    font-size: 15px;
    line-height: 1.8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #8cc63f;
    /* Highlight color */
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.footer-col p {
    color: #aebbc1;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #8cc63f;
    transform: translateY(-3px);
}

.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aebbc1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a:hover {
    color: #8cc63f;
}

.footer-col ul li a i {
    font-size: 14px;
    color: #8cc63f;
}

.opening-times-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-gap: 10px;
    margin: 0;
}

/* Fix footer bottom visibility */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aebbc1;
    font-size: 14px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
    display: block;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #8cc63f;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background: #7bb531;
    transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul li a {
        justify-content: center;
    }

    .opening-times-grid {
        display: inline-grid;
        text-align: left;
        margin: 0 auto;
    }

    .social-icons svg,
    .social-icons svg path {
        fill: currentColor !important; 
        stroke: currentColor !important;
    }

    /* Maintain your link color properties */
    .social-icons a {
        color: #aebbc1 !important; 
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: color 0.2s ease-in-out;
    }

    /* Hover state interaction */
    .social-icons a:hover {
        color: #ffffff !important; 
    }
}

/* ---------- WordPress conversion overrides ---------- */

/*
 * Header hardening.
 *
 * On the static site the theme was the only CSS on the page. Under WordPress a
 * plugin can ship global rules, and the original .logo declared only a
 * max-height — so a blanket `img { width: … }` had nothing to beat and
 * stretched the logo to the width of its container, which then pushed the nav
 * off the side of the header. These pin what the original left implicit.
 *
 * Selectors are deliberately more specific than a plugin's element or
 * single-class rules, without resorting to !important.
 */
.site-header .header-container .logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 120px;
    min-width: 0;
    object-fit: contain;
    /* Guards against a global `* { box-sizing: border-box }`, which would
       otherwise pull the padding inside the 120px and shrink the mark. */
    box-sizing: content-box;
}

.site-header .header-container > .site-logo-link {
    flex: 0 0 auto;
    display: inline-block;
    line-height: 0;
    max-width: 50%;
}

.site-header .header-container > .nav-menu {
    flex: 0 1 auto;
    min-width: 0;
}

/* Content images were sized by height alone in a few places, same exposure. */
.service-card img,
.snap-photo,
.profile-photo,
.sidebar-img {
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .site-header .header-container .logo {
        max-height: 70px;
    }

    .site-header .header-container > .site-logo-link {
        max-width: 100%;
    }
}

/* The modal close control is a <button> now (it needs to be focusable and
   keyboard-operable); strip the UA button chrome so it looks like the <span>
   the static site used. */
button.close-modal {
    background: none;
    border: 0;
    padding: 0;
    line-height: 1;
    font-family: inherit;
}

/* The menu toggle is hidden inline on desktop in the original markup; that
   inline style is gone, so express it in CSS instead. */
.menu-toggle {
    display: none;
}

/* Skip link for keyboard users — visually hidden until focused. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: #fff;
    color: #0d2f3b;
    font-weight: bold;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* Feedback banners rendered after a form submission. */
.fth-notice {
    max-width: 800px;
    margin: 0 auto 25px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-align: left;
}

.fth-notice-success {
    background: #e8f5e0;
    color: #2c4c3b;
    border-left: 4px solid #8cc63f;
}

.fth-notice-error {
    background: #fdecea;
    color: #7a271a;
    border-left: 4px solid #d64545;
}

/* Honeypot field — hidden from people, visible to naive bots. */
.fth-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
