/* ========================= */
/* CSS RESET (Normalize.css) */
/* ========================= */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

body {
    margin: 0;
}

main {
    display: block;
}

hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

button,
input { /* 1 */
    overflow: visible;
}

button,
select { /* 1 */
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] 
{
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/* ========================= */
/* CSS VARIABLES */
/* ========================= */
:root {
    --primary-color: #cc6018;
    --background-color: #fff;
    --text-color: #000;
    --footer-background: #222;
    --footer-text-color: #ddd;
    --preloader-background: #000;
    --box-shadow-color: rgba(0, 0, 0, 0.1);
    --transition-duration: 0.3s;
    --font-family-primary: 'Montserrat', sans-serif;
}

/* ========================= */
/* GENERAL STYLES */
/* ========================= */
body {
    font-family: var(--font-family-primary);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-duration) ease-in-out;
}

a:hover {
    text-decoration: underline;
}

/* ========================= */
/* HEADER STYLING */
/* ========================= */
.site-header {
    width: 100%;
    background-color: #000;
    color: #fff;
    font-family: var(--font-family-primary);
    box-shadow: 0 4px 8px var(--box-shadow-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    font-size: 14px;
    background-color: #222;
}

.top-header p {
    margin: 0;
}

.top-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Main Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #e7e7e7;
}

/* Menu Styling (for desktop) */
.main-navigation {
    display: flex;
    justify-content: flex-start;
    position: relative;
}

.header-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.header-menu li {
    display: inline-block;
    position: relative;
}

.header-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 12px;
    transition: var(--transition-duration) ease-in-out;
    display: block;
}

/* Hover effect */
.header-menu a:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Submenu Styling */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-color);
    list-style: none;
    padding: 10px 0;
    width: 200px;
    box-shadow: 0 4px 6px var(--box-shadow-color);
    border-radius: 4px;
}

.sub-menu li {
    display: block;
}

.sub-menu a {
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: normal;
}

.sub-menu a:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

/* Show submenu on hover */
.header-menu li:hover > .sub-menu {
    display: block;
}

/* Hamburger Icon (for mobile/tablet) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 11;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    border-radius: 5px;
    transition: var(--transition-duration);
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Show hamburger icon */
    .hamburger {
        display: flex;
        justify-content: flex-start !important;
    }

    /* Main Navigation */
    .main-navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        right: 0%;
        background-color: var(--background-color);
        z-index: 10;
        transition: transform var(--transition-duration) ease-in-out;
    }

    /* Show menu when open */
    .main-navigation.open {
        display: flex;
        transform: translateX(0);
    }

    /* Hamburger Icon Animation */
    .hamburger.open .bar:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger.open .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open .bar:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Stack menu items vertically */
    .header-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
        margin: 20px 0;
    }

    /* Mobile Submenu */
    .header-menu li {
        width: 100%;
        text-align: center;
    }

    .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        width: 100%;
        background: #f8f8f8;
        padding: 0;
    }

    .sub-menu li {
        width: 100%;
    }

    .sub-menu a {
        padding: 10px;
        font-size: 14px;
        width: 100%;
        display: block;
    }

    .header-menu li.open .sub-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    .top-header {
        display: block;
        text-align: center;
    }
}

/* ========================= */
/* FOOTER STYLING */
/* ========================= */
.site-footer {
    background: var(--footer-background);
    color: var(--footer-text-color);
    padding: 40px 20px;
    position: relative;
    z-index: 9;
    margin: 40px 0 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    border-right: 1px solid #444; /* Add border between footer sections */
}

.footer-section:last-child {
    border-right: none; /* Remove the border from the last section */
}

.footer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 16px;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: var(--transition-duration);
    font-size: 16px;
}

.footer-menu a::after {
    display: none;
}

.footer-menu a:hover {
    color: var(--background-color);
    text-decoration: underline;
}

.footer-map iframe {
    width: 100%;
    border-radius: 10px;
    max-width: 600px; /* Maximum width for better control */
}
.copyright{
    text-align: center;
}
/* ========================= */
/* FORM & BUTTON STYLING */
/* ========================= */
.form-control {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

button,
.button { /* Added .button class for more flexibility */
    background-color: var(--primary-color);
    color: var(--background-color);
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-duration) ease-in-out;
}

button:hover,
.button:hover {
    background-color: #a84d12; /* Slightly darker on hover */
}

button:disabled,
.button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ========================= */
/* API Request & Loading Spinner */
/* ========================= */
.loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================= */
/* RESPONSIVE FOOTER STYLING */
/* ========================= */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        min-width: 100%;
        border-right: none;
    }
}

/* ========================= */
/* PAGE LOADER */
/* ========================= */
#preloader {
    position: fixed; /* Cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff; /* Or any background color */
    display: flex; /* Center the loading element */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;  /* Smooth fade transition */
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevent interaction */
}

.preloader-car {
    /* Styles for your loading animation */
    width: 200px; /* Adjust size */
    height: auto;
    position: absolute;
    left: -250px; /* Start off-screen */
    animation: carMove 2s ease-in-out forwards;
}

/* Keyframes for Car Movement */
@keyframes carMove {
    0% {
        left: -250px;
    }
    40% {
        left: 50%;
        transform: translateX(-50%) scaleX(0.5);
    }
    45% {
        left: 50%;
        transform: translateX(-50%) scaleX(0.5);
    }
    53% {
        left: 50%;
        transform: translateX(-50%) scaleX(0.5);
    }
    55% {
        left: 50%;
        transform: translateX(-50%) scaleX(0.5);
    }
    57% {
        left: 50%;
        transform: translateX(-50%) scaleX(0.5);
    }
    70% {
        left: 50%;
        transform: translateX(-50%) scaleX(0.6);
    }
    72% {
        left: 50%;
        transform: translateX(-50%) scaleX(0.9);
    }
    75% {
        left: 50%;
        transform: translateX(-50%) scaleX(1);
    }
    100% {
        left: 120%;
        transform: translateX(0) scaleX(1.2);
    }
}