/* =====================================================================
   HEADER & FOOTER STYLES  (header-footer.css)
   ---------------------------------------------------------------------
   Load this file BEFORE main.css
   (CSS variables, font and global base styles are in main.css)

   1. Desktop navbar
   2. Mobile navbar
   3. Contact popup
   4. Footer
   ===================================================================== */


/* =====================================================================
   1. DESKTOP NAVBAR
   ===================================================================== */

section.custom-navbar {
    width: 100%;
    margin-bottom: 5em;
}

section.custom-navbar .upper,
section.custom-navbar .lower {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}


/* ---------- 1.1 Upper bar (address, phone, mail, social) ---------- */

section.custom-navbar .upper {
    background-color: var(--site-main-theme);
    color: #fff;
    padding: 1em;
}

section.custom-navbar .left-container {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1em;
    align-content: center;
    justify-content: start;
}

section.custom-navbar .right-container {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 1em;
    align-content: center;
    align-items: center;
    justify-content: end;
}

.container-item {
    font-size: .7em;
}

.left-container .container-item:first-child,
.right-container .container-item:first-child,
.right-container .container-item:nth-child(2) {
    border-right: 1px solid #fff;
    padding-right: 2em;
}

.upper i.fa-map-marker,
.upper i.fa-phone,
.upper i.fa-envelope-o,
.upper i.fa-calendar-check-o {
    font-size: 2em;
}

.upper i.fa-map-marker      { margin-right: 4px; }
.upper i.fa-phone           { margin-right: 5px; }
.upper i.fa-envelope-o      { margin-right: 4px; }
.upper i.fa-calendar-check-o { margin-left: 4px; }

section.custom-navbar .upper a {
    color: #fff;
    font-size: 1.6em;
    font-weight: 500;
    letter-spacing: .5px;
}

section.custom-navbar .upper a:hover {
    text-decoration: underline;
}

/* social icons (upper bar) */
section.custom-navbar .navbar-social-media-container {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 10px;
}

.navbar-social-media-container a.social-links {
    background-color: transparent;
    padding: 6px;
    border-radius: 2px;
    transition: .25s;
}

.navbar-social-media-container a.social-links i {
    font-size: 1.5em;
}

a.social-links:hover {
    background-color: var(--dark-theme);
    color: var(--site-main-theme);
}


/* ---------- 1.2 Lower bar (logo + menu) ---------- */

section.custom-navbar .lower {
    position: fixed;
    z-index: 100;
    width: 100%;
    padding: 1em;
    border: none;
    border-radius: 0;
    background: transparent;
}

.lower .left-nav-items,
.lower .right-nav-items {
    display: grid;
    grid-template-columns: auto auto;
}

.lower .left-nav-items {
    justify-content: start;
    gap: 2em;
    margin-left: 1em;
}

.lower .right-nav-items {
    justify-content: end;
    gap: 2em;
    margin-right: 1em;
}

.lower .center-nav-items {
    display: grid;
    justify-content: center;
}

.lower .nav-link-wrapper {
    position: relative;
    top: 8px;
}

.lower a.nav--links {
    position: relative;
    padding: 10px 0;
    color: #fff;
    font-size: 1.6em;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
}

/* underline animation on hover */
a.nav--links::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: var(--site-main-theme);
    border-radius: 4px;
    transition: .3s ease-in-out;
    z-index: 10;
}

a.nav--links:hover::after {
    width: 1em;
}

a.ortiz-logo-wrapper.nav--links::after {
    display: none;
}

/* logo */
img.ortiz-logo {
    position: relative;
    bottom: 1.5em;
    width: 12em;
    transition: .4s ease-in-out;
}

/* ---------- 1.3 Dropdown menu (Rental + Venues button on banner) ---------- */

ul.custom-dropdown-menu {
    display: none;
    position: relative;
    top: 1em;
    margin: 0;
    padding: 0;
    background: #fff;
    font-size: 1.3em;
}

ul.custom-dropdown-menu li {
    width: 100%;
    padding: 0 !important;
    list-style: none;
    border-bottom: 1px dotted var(--dark-theme);
    transition: .3s ease-in-out;
}

ul.custom-dropdown-menu li a {
    display: inline-block;
    width: 100%;
    padding: 0 1rem;
    color: #000;
    line-height: 2;
    letter-spacing: .8px;
    text-decoration: none;
}

ul.custom-dropdown-menu li:hover {
    background-color: var(--site-main-theme);
    color: #fff !important;
}

ul.custom-dropdown-menu li:hover a {
    color: #fff;
}

/* items slide in one after another */
ul.custom-dropdown-menu li.dropdown_item-1 { animation: .3s ease-in-out  60ms forwards translateX; }
ul.custom-dropdown-menu li.dropdown_item-2 { animation: .3s ease-in-out 120ms forwards translateX; }
ul.custom-dropdown-menu li.dropdown_item-3 { animation: .3s ease-in-out 180ms forwards translateX; }
ul.custom-dropdown-menu li.dropdown_item-4 { animation: .3s ease-in-out 240ms forwards translateX; }

@keyframes translateX {
    0%   { opacity: 0; transform: translateX(60px); }
    80%  { transform: translateX(-5px); }
    100% { opacity: 1; transform: translateX(0); }
}

div#rentalLink:hover > ul#rentalDropdown {
    display: block;
}


/* ---------- 1.4 Navbar states added by JS on scroll ---------- */

.compress {
    position: fixed !important;
    top: 0;
    bottom: unset !important;
    width: 3.5em !important;
    transition: .4s ease-in-out;
}

.shifted-down {
    top: 0;
    height: 5.5em;
    background: var(--dark-theme) !important;
}

.when-scrolled-down {
    top: 1em !important;
}


/* ---------- 1.5 Navbar responsive ---------- */

@media (min-width: 1921px) {
    img.ortiz-logo {
        width: 15em;
    }

    .compress {
        width: 2.9em !important;
    }

    .container-item {
        font-size: unset;
    }

    section.custom-navbar .upper {
        padding: 1.5em;
    }

    section.custom-navbar .upper a {
        font-size: 1.5em;
    }

    section.custom-navbar .left-container {
        align-items: center;
    }

    .upper i.fa-map-marker,
    .upper i.fa-phone {
        margin-right: 15px;
    }

    .lower a.nav--links {
        font-size: 2em;
    }

    ul.custom-dropdown-menu li a {
        font-size: 1.6em;
    }
}

@media (max-width: 1300px) {
    .container-item {
        font-size: unset;
    }

    section.custom-navbar .upper {
        padding: 1rem;
    }

    section.custom-navbar .upper a {
        font-size: 1.1rem;
    }

    section.custom-navbar .left-container {
        align-items: center;
    }

    .upper i.fa-map-marker,
    .upper i.fa-phone,
    .upper i.fa-envelope-o,
    .upper i.fa-calendar-check-o {
        margin-right: 1px;
        font-size: 1.1rem;
    }

    .lower .nav-link-wrapper {
        top: 0;
    }

    .lower a.nav--links {
        font-size: 1em;
    }

    .shifted-down {
        height: 3.6em;
    }

    ul.custom-dropdown-menu li a {
        font-size: 1.25rem;
    }

    a.social-links i {
        font-size: 1.2em !important;
    }
}

@media (max-width: 976px) {
    .lower a.nav--links {
        font-size: .7em !important;
    }

    .lower .left-nav-items,
    .lower .right-nav-items {
        gap: 1em;
    }
}

@media (max-width: 940px) {
    section.custom-navbar .upper {
        padding: .5em;
    }

    section.custom-navbar .left-container,
    section.custom-navbar .right-container {
        gap: .5em;
    }

    .left-container .container-item:first-child,
    .right-container .container-item:first-child,
    .right-container .container-item:nth-child(2) {
        padding-right: 1em;
    }

    .upper i {
        margin-right: 2px !important;
    }

    .upper i.fa-calendar-check-o {
        margin-right: 0 !important;
    }

    .navbar-social-media-container a.social-links {
        padding: 4px;
    }

    section.custom-navbar .navbar-social-media-container {
        gap: 3px;
    }
}


/* =====================================================================
   2. MOBILE NAVBAR  (hidden on desktop, shown at 768px and below)
   ===================================================================== */

section.mobile-view-nav {
    display: none;
}

section.mobile-view-nav .hamburger {
    display: block;
    position: relative;
    float: right;
    width: 2.5em;
    margin: 1.5em 1.5em 0 0;
    background: transparent;
    border: none;
    outline: 0;
    appearance: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger .bar,
.hamburger:before,
.hamburger:after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background-color: #fff;
    transition: .4s;
}

.hamburger.is-active:before { transform: rotate(-45deg) translate(-10px, 6px); }
.hamburger.is-active:after  { transform: rotate(45deg) translate(-5px, -1px); }
.hamburger.is-active .bar   { opacity: 0; }

section.mobile-view-nav nav.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    min-height: 34em;
    padding-top: 2em;
    background-color: #12002f;
    transition: .4s;
    z-index: 10;
}

section.mobile-view-nav nav.mobile-menu.open-menu {
    left: 0;
}

nav.mobile-menu a {
    display: block;
    width: 100%;
    max-width: 16em;
    margin: 0 auto 1em;
    padding: .5em 1em;
    background-color: #1f103f;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: .3s ease-in-out;
}

nav.mobile-menu a:hover {
    background-color: #24104f;
}

@media (max-width: 768px) {
    section.custom-navbar {
        display: none;
    }

    section.mobile-view-nav {
        display: block;
        position: relative;
        height: 5.4em;
        margin-bottom: -8.5em;
        background: transparent;
    }

    /* page wrappers of the CMS template (kept from the original file) */
    #content {
        position: relative;
        top: -1.5em;
        margin: 0;
        padding: 0;
    }

    .content-wrapper {
        position: relative;
        top: -2em;
    }
}

@media (max-width: 525px) {
    section.mobile-view-nav .hamburger {
        top: 1em;
        right: 1em;
        width: 3em;
        height: 3em;
        margin: 0;
    }
}


/* =====================================================================
   3. CONTACT POPUP  ("Book event" / "Book a meeting")
   ===================================================================== */

/* ---------- overlay & box ---------- */
#eventContactOverlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, .62);
    box-sizing: border-box;
    z-index: 999999;
}

#eventContactPopup {
    position: relative;
    width: 500px;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);   /* whole popup stays inside the viewport */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    box-sizing: border-box;
    overflow: hidden;
}

/* ---------- header ---------- */
.event-contact-header {
    position: relative;
    padding: 22px 42px 18px;
    border-bottom: 1px solid #eee;
}

.event-contact-header h2 {
    margin: 0 55px 6px 0;
    color: #111;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.event-contact-header p {
    margin: 0;
    color: #777;
    font-size: 16px;
    line-height: 1.5;
}

/* ---------- close button ---------- */
#eventContactClose {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 50% !important;
    color: #555 !important;
    font-family: Arial, sans-serif !important;
    font-size: 27px !important;
    font-weight: 300 !important;
    line-height: 44px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    cursor: pointer;
    transition: all .2s ease;
    z-index: 10;
}

#eventContactClose:hover {
    background: #eee !important;
    color: #222 !important;
}

/* ---------- form ---------- */
#eventContactForm {
    padding: 20px 42px 22px;
    box-sizing: border-box;
}

.event-contact-field {
    margin-bottom: 13px;
}

.event-contact-field label {
    display: block;
    margin-bottom: 8px;
    color: #111;
    font-size: 16px;
    line-height: 1.3;
}

.event-contact-required {
    color: #c62828;
}

.event-contact-field input,
.event-contact-field textarea {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 9px;
    color: #222;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.event-contact-field input {
    height: 50px;
    padding: 0 17px;
}

.event-contact-field textarea {
    height: 85px;
    padding: 12px 17px;
    resize: none;
}

.event-contact-field input::placeholder,
.event-contact-field textarea::placeholder {
    color: #8a8a8a;
}

.event-contact-field input:focus,
.event-contact-field textarea:focus {
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.event-contact-error {
    display: none;
    margin-top: 6px;
    color: #c62828;
    font-size: 13px;
}

/* ---------- submit button ---------- */
#eventContactSubmit {
    width: 100%;
    height: 48px;
    margin-top: 2px;
    background: #202020;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

#eventContactSubmit:hover    { background: #000; }
#eventContactSubmit:active   { transform: translateY(1px); }
#eventContactSubmit:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
    #eventContactOverlay {
        padding: 10px;
        overflow: hidden;
    }

    #eventContactPopup {
        width: 100%;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin: 0;
        border-radius: 13px;
    }

    .event-contact-header {
        padding: 24px 22px 20px;
    }

    .event-contact-header h2 {
        margin-right: 45px;
        font-size: 25px;
    }

    .event-contact-header p {
        font-size: 14px;
    }

    #eventContactClose {
        top: 17px;
        right: 17px;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 24px !important;
        line-height: 40px !important;
    }

    #eventContactForm {
        padding: 18px 22px 20px;
    }

    .event-contact-field input    { height: 48px; }
    .event-contact-field textarea { height: 80px; }
    #eventContactSubmit           { height: 50px; }
}


/* =====================================================================
   4. FOOTER
   ===================================================================== */

footer.custom-footer {
    padding: 5em 0 1rem;
    background: #fff;
    color: var(--dark-theme);
}

footer.custom-footer h4.footer-sub-header {
    margin-bottom: 1.5em;
    font-size: 5em;
}

/* ---------- 4.1 Column 1: contact info + social ---------- */
footer.custom-footer .first-column {
    display: grid;
    grid-auto-flow: row;
    grid-auto-rows: minmax(0, 1fr);
    align-items: center;
    align-content: center;
}

footer.custom-footer .footer-contact-item i {
    margin-right: 4%;
    color: var(--site-main-theme);
    font-size: 2em;
    position: relative;
}

footer.custom-footer .footer-contact-item:first-child i {
    font-size: 2.3em;
}

footer.custom-footer .footer-contact-item a {
    color: var(--dark-theme);
    font-size: 1.45em;
}

footer.custom-footer .footer-contact-item p.footer-contact-text {
    position: relative;
    left: 2em;
    bottom: 1.5em;
    margin: 0;
    color: var(--dark-theme);
    font-size: 1.5em;
    line-height: 1.5;
}

footer.custom-footer .first-column .footer-social-icon-container {
    display: grid;
    position: relative;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: 65%;
}

.footer-social-icon-container a.social-links {
    display: grid;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 4em;
    height: 4em;
    padding: 14%;
    background-color: #fff;
    border-radius: 4px;
    color: var(--site-main-theme);
    transition: .2s ease-in-out;
}

.footer-social-icon-container a.social-links i {
    font-size: 2em;
}

.footer-social-icon-container a.social-links:hover {
    background-color: var(--dark-theme);
    color: #fff;
}

/* ---------- 4.2 Column 2: page links ---------- */
footer.custom-footer ul.footer-website-page-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.footer-website-page-links li {
    line-height: 2;
    transition: .25s ease-in-out;
}

ul.footer-website-page-links li:hover {
    padding-left: .25em;
}

ul.footer-website-page-links li i {
    margin-right: 8px;
    color: var(--site-main-theme);
    font-size: 1em;
    font-weight: 600;
}

ul.footer-website-page-links li a {
    color: #140230;
    font-size: 2rem;
}

footer.custom-footer .footer-contact-item a:hover,
footer.custom-footer a.copyright-text:hover,
ul.footer-website-page-links li a:hover {
    text-decoration: underline;
}

/* ---------- 4.3 Bottom row (copyright + "Powered by") ---------- */
footer.custom-footer .last-row {
    margin-top: 2em;
    margin-bottom: 1rem;
    padding-top: 2em;
    border-top: 1px dotted var(--dark-theme);
}

footer.custom-footer a.copyright-text {
    color: var(--dark-theme);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .5px;
}

a.link-with-giffy-icon {
    position: relative;
}

.last-row img.giffy-footer-logo {
    display: inline;
    position: relative;
    bottom: 2px;
    left: 1px;
    width: 5%;
}

@media (min-width: 721px) {
    #switchBootstrapClass {
        text-align: right;
    }
}


/* ---------- 4.4 Footer responsive ---------- */

@media (min-width: 1921px) {
    footer.custom-footer .footer-contact-item:first-child i {
        font-size: 2.5em;
    }

    footer.custom-footer .footer-contact-item a,
    footer.custom-footer .footer-contact-item p.footer-contact-text {
        font-size: 2em;
    }

    ul.footer-website-page-links li a,
    ul.footer-website-page-links li i {
        font-size: 2em;
    }

    footer.custom-footer a.copyright-text {
        font-size: 1.75em;
    }
}

@media (max-width: 1921px) {
    footer.custom-footer h4.footer-sub-header {
        font-size: 3.5em;
    }
}

@media (max-width: 1600px) {
    footer.custom-footer h4.footer-sub-header {
        font-size: 3em;
    }

    footer.custom-footer .footer-contact-item i {
        font-size: 1.3em;
    }

    footer.custom-footer .footer-contact-item:first-child i {
        top: 7px;
        font-size: 1.8em;
    }

    footer.custom-footer .footer-contact-item a,
    footer.custom-footer .footer-contact-item p.footer-contact-text {
        font-size: 1.2em;
    }

    .footer-social-icon-container a.social-links {
        width: 3em;
        height: 3em;
    }

    .footer-social-icon-container a.social-links i {
        font-size: 1em !important;
    }

    ul.footer-website-page-links li a,
    ul.footer-website-page-links li i {
        font-size: 1.2em;
    }
}

@media (max-width: 1300px) {
    footer.custom-footer h4.footer-sub-header {
        font-size: 2.5em;
    }

    footer.custom-footer .footer-contact-item:first-child {
        height: 4em;
    }

    footer.custom-footer .footer-contact-item a,
    footer.custom-footer .footer-contact-item p.footer-contact-text {
        font-size: 1em;
    }

    ul.footer-website-page-links li a,
    ul.footer-website-page-links li i {
        font-size: 1em;
    }

    footer.custom-footer a.copyright-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 1100px) {
    footer.custom-footer .footer-contact-item i {
        font-size: 1em;
    }

    footer.custom-footer .footer-contact-item:first-child i {
        font-size: 1.3em;
    }

    footer.custom-footer .footer-contact-item a,
    footer.custom-footer .footer-contact-item p.footer-contact-text {
        font-size: .85em;
    }
}

@media (max-width: 992px) {
    footer.custom-footer .footer-contact-item i {
        margin-right: 1%;
    }

    footer.custom-footer .first-column .footer-social-icon-container {
        width: 20%;
    }

    img.footer-company-logo {
        width: 30%;
    }
}

@media (max-width: 768px) {
    footer.custom-footer {
        padding: 2em 1em;
    }

    footer.custom-footer h4.footer-sub-header {
        margin: 1em 0;
        font-size: 2em;
    }

    footer.custom-footer .first-column {
        row-gap: .5em;
    }

    footer.custom-footer .first-column div:first-child {
        height: 3em;
    }

    footer.custom-footer .footer-contact-item i,
    .footer-social-icon-container a.social-links i.fa-facebook,
    .footer-social-icon-container a.social-links i.fa-instagram,
    .footer-social-icon-container a.social-links i.fa-youtube-play {
        font-size: 1em !important;
    }

    footer.custom-footer .footer-contact-item a,
    footer.custom-footer .footer-contact-item p.footer-contact-text {
        font-size: .8em;
    }

    footer.custom-footer .first-column .footer-social-icon-container {
        left: -1em;
        width: 35%;
    }

    img.footer-company-logo {
        width: 25%;
    }
}

@media (max-width: 720px) {
    footer.custom-footer .last-row {
        margin: 0;
        padding-top: 1em;
    }

    #tabViewSwitchColumn {
        padding: 0;
    }

    #switchBootstrapClass {
        margin-top: .5em;
        padding: 0;
    }

    .last-row img.giffy-footer-logo {
        width: 3%;
    }
}

@media (max-width: 525px) {
    footer.custom-footer h4.footer-sub-header {
        margin: 0;
    }

    footer.custom-footer .first-column {
        position: relative;
        left: -2em;
        margin: 2em 0;
        padding-left: 2em;
        row-gap: 1em;
    }

    .first-column div:first-child {
        height: 2.5em !important;
    }

    footer.custom-footer .footer-contact-item:first-child i {
        top: 6px;
    }

    footer.custom-footer .first-column .footer-social-icon-container {
        left: 0;
        column-gap: 1rem;
    }

    footer.custom-footer .second-column {
        margin-top: 1.5em;
    }

    .footer-company-logo-wrapper {
        margin: 1em 0 1.5em;
    }

    footer.custom-footer .last-row {
        margin: 0;
        padding-top: 1em;
        padding-bottom: 1em;
    }

    .last-row a.copyright-text {
        margin: 0;
        font-weight: 400;
        letter-spacing: .3px;
        line-height: 1.5;
    }

    .last-row a.link-with-giffy-icon {
        position: relative;
        top: 1em;
    }

    .last-row img.giffy-footer-logo {
        top: 0;
        left: 5px;
        width: 7%;
    }
}
