/*
Theme Name: TidyBuilds Taxi
Author: David Kooijman
Description: Custom theme for Taxi24 Schiphol, built with support for a custom Hotels post type, ACF-powered fields, and optimized templates for overview and single hotel pages.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
Text Domain: tidybuilds-taxi
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --transition: all 0.3s ease;
    --shadow-small: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
}

html {
    margin-top: 0 !important;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Modern Header */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--header-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
    z-index: 10000;
    transition: var(--transition);
}

body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar .site {
    padding-top: 32px;
}

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

/* HEADER LINKS */
.site-header a {
    color: var(--header-link-color);
    text-decoration: none;
}

.site-header li.current-menu-item a,
.site-header a:hover {
    color: var(--header-link-hover-color);
    transition: var(--transition);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

/* Navigation */
.main-navigation {
    display: flex;
    height: 100%;
}

.main-navigation .menu-main-menu-container {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-navigation a {
    color: var(--header-link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 0 5px;
    transition: var(--transition);
    position: relative;
}

.site-header li.current-menu-item a::after,
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--header-link-hover-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.site-header li.current-menu-item a::after,
.main-navigation a:hover::after {
    transform: scaleX(1);
}

/* Modern Footer */
.site-footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--footer-background-color);
    box-shadow: var(--shadow-small);
    z-index: 1000;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* FOOTER LINKS */
.site-footer a {
    color: var(--footer-link-color);
    text-decoration: none;
}

.site-footer .menu li.current-menu-item a,
.site-footer a:hover {
    color: var(--footer-link-hover-color);
}

.site-info {
    font-size: 14px;
    color: var(--footer-text-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #111;
    color: #fff;
}

.footer-menu {
    display: flex;
    gap: 20px;
}

.footer-container .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
.footer-container .menu li a {
    color: var(--footer-text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    font-weight: 500;
}

.footer-container .menu li a:hover {
    color: var(--primary-color);
}

/* Main content area */
.site-content {
    margin: 0 auto;
    min-height: calc(100vh - 140px);
}

.site-content p {
    margin-bottom: 15px;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--header-text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Responsive design */
@media (max-width: 901px) {
    .footer-container {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        text-align: center;
    }

    .site-footer {
        height: auto;
        padding: 15px 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-container .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .footer-container .site-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar .site {
        padding-top: 46px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: var(--header-bg-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-small);
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation li {
        width: 100%; /* Ensure the list items take full width */
    }

    .main-navigation a {
        display: block; /* Make links behave like block elements */
        width: 100%; /* Ensure they take up the full width of the list items */
        padding: 15px 20px; /* Add padding for a touch-friendly area */
        text-align: left; /* Align text properly */
        color: var(--header-text-color); /* Maintain readability */
        text-decoration: none;
    }
}

@media (max-width: 600px){
    body.admin-bar .site-header.scrolled {
        top: 0;
    }
}