/*************************************************************************************************/
/* Variables                                                                                */
/*************************************************************************************************/
:root {
    --page-container-padding: 6%;
    --page-container-max-width: 1500px;
    --header-height: 100px;
    --color-oht-red: #ac162c;
    --color-oht-blue-dark: #122C5F;
    --color-oht-blue-light: #254583;
    --color-oht-gray-background-light: #eee;
    --font-oht-serif-1: "Libre Bodoni", serif;
    --font-oht-sans-1: "Open Sans", sans-serif;
    --swiper-navigation-sides-offset: 5%;
    --focus-outline-color: #005fcc;
    /* Heritage matters variables */
    --column-separator-rule: 1px solid #c3c3c3;
    --padding-between-cards: 1.75rem;
}

@media (min-width: 1680px) {
    :root {
        --page-container-max-width: calc(1500px + 15vw);
    }
}

/*************************************************************************************************/
/* HTML element styles                                                                           */
/* Base styles for native HTML tags (not classes or IDs)                                         */
/*************************************************************************************************/
html {
    font-size: 16px;
}

@media (min-width: 1680px) {
    html {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 19.5px;
    }
    h2, h3, h4, h5, h6 {
        letter-spacing: -0.01em;
    }
}

body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: var(--font-oht-sans-1) !important;
    color: #000;
}

h1 {    
    font-family: var(--font-oht-serif-1);
}

@font-face {
    font-family: 'Charman Serif';
    src: url('./fonts/CharmanSerif-Variable-VF.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

a {
    color: black;
    cursor: pointer !important;
}

h1, h2, h3 {
    letter-spacing: -.01em;
}

li {
    margin-top: 1em;
}

dt {
    font-weight: 400 !important;
}

/*************************************************************************************************/
/* Grid element styles                                                                           */
/* Styles that control the overall page grid                                                     */
/*************************************************************************************************/

.page-container {
    padding-top: 3rem;
    padding-left: var(--page-container-padding);
    padding-right: var(--page-container-padding);
    max-width: var(--page-container-max-width);
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--header-height); 
}

.full-width {
    margin-left: calc((var(--page-container-padding)) * -1);
    margin-right: calc((var(--page-container-padding)) * -1);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
    overflow-y: hidden;
}

.full-width-content {
    max-width: var(--page-container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-container-padding);
    padding-right: var(--page-container-padding);
    width: 100%;
}

/* ---------------------------------- */

.page-title h1 {
    font-size: calc(1.75rem + 1.5vw);
    font-style: normal;
    font-weight: 500;
    line-height: 1.1em;
    margin-bottom: .5em;
}
@media (min-width: 1200px) {
    .page-title h1 {
        font-size: 3rem;
    }
}

.lead-text {
    font-size: 1.25rem;
    width: 70%;
}

@media (max-width: 1024px) {
    .lead-text {
        width: 100%;
    }
}

.lead-text-full-width {
    width: 100%;
    font-size: 1.25rem;
}

.oht-red {
    color: var(--color-oht-red);
}

.text-small {
    font-size: 0.8rem !important;
}

.text-big {
    font-size: 1.125rem !important;
}

.text-huge {
    font-size: 1.25rem !important;
}

.more-letter-space {
    letter-spacing: 0.125em;
}

@media (max-width: 1024px) {
    .page-container {
        margin-top: 70px; 
    }
}

.info-link {
    color: var(--color-oht-red) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline !important;
}


article > h2:first-child,
section > h2:first-child,
div > h2:first-child,
h3:first-child {
  margin-top: 0;
}

.border-radius-8 {
    border-radius: 8px;
}

/* -------------------------------------------- */
/* Header Container Styling */
/* -------------------------------------------- */

.back-to-top {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 10px;
    right: -100px; 
    z-index: 1004;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.back-to-top.show {
    right: 0;
    opacity: 1;
    display: flex;
}

.back-to-top-btn {
    font-size: 0.785rem;
    margin-top: 1rem;
    margin-right: 0.5rem;
    background-color: var(--color-oht-red);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
}

@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 50px;
    }
}

.global-header, .global-footer {
    padding-left: var(--page-container-padding);
    padding-right: var(--page-container-padding);
}

.global-footer {
    background-color: #000;
}

.footer-content {
    max-width: 1820px;
    margin-left: auto;
    margin-right: auto;
}

.footer-icon {
    height: 1.5rem;
}

.footer-icon-big {
    height: 2.5rem
}

.footer-icon, .footer-icon-big {
    transition: transform 0.3s ease-in-out;
}

.footer-icon:hover, .footer-icon-big:hover {
    transform: scale(1.3);
}

.seperator-rule {
    height: 1px;
    color: #5a5959;
    width: 100%;
    opacity: 1;
}


.header-container {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    z-index: 1005;
    width: 100%;
    background-color: #fff;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.05);
    height: 100px;
    transition: transform 0.3s ease-in-out;
}

.header-container .dropdown-menu {
    position: fixed;
    top: 100px;
    right: 0 !important;
    left: revert-layer !important;
    width: 450px;
    height: 100vh;
    margin: 0;
    padding: 2rem;
    border-radius: 0;
    border: none;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    background-color: var(--color-oht-gray-background-light);
    z-index: 998;
    transform: translateX(100%);
    visibility: hidden; /* Add this */
    transition: transform 0.4s ease-in-out, visibility 0.4s; /* Add visibility to transition */
}

.dropdown-menu.show {
    transform: translateX(0);
    visibility: visible; /* Add this */
}

.dropdown-menu .nav-link {
    transform: translateX(50px); /* Initial position */
    transition: transform 0.4s ease-in-out;
    opacity: 0;
}

.dropdown-menu.show .nav-link {
    transform: translateX(0);
    opacity: 1;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-visible {
    transform: translateY(0);
}

.menuIcon {
    cursor: pointer;
}

.close-menu-btn {
    cursor: pointer;    
    margin-bottom: 0.5rem;
}

.close-menu-text {
    cursor: pointer;
}

.menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0;
    width: 50px;
    height: 50px;
}

.menu .line {
    fill: none;
    stroke: black;
    stroke-width: 4;  
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu .line1 {
    stroke-dasharray: 60 207;
    stroke-width: 4;
}

.menu .line2 {
    stroke-dasharray: 60 60;
    stroke-width: 4;
}

.menu .line3 {
    stroke-dasharray: 60 207;
    stroke-width: 4;
}

.menu.opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 4;
}

.menu.opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 4;
}

.menu.opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 4;
}

/* Navigation Links */
.nav-link {
    cursor: pointer;
    color: #000;
    line-height: 1.2em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item-container {
    padding-bottom: 0;
}

/* Hover and active states for top-level nav links */
.dropdown-menu > .list-unstyled > li > div > .nav-link:hover,
.dropdown-menu > .list-unstyled > li > div > .nav-link.active {
    color: var(--color-oht-red) !important; /* Red color */
}

/* Ensure child nav links are not bold */
.sub-menu .nav-link {
    font-weight: 200;
}

.toggle-submenu {
    background: none;
    border: none;
    color: #000;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-function-icon {
    width: 12px;
    height: 12px;
}

.logoWrapper a img, .logoWrapper {
    width: 170px;
}

.header-link {
    font-size: 0.875rem;
    text-decoration: none !important;
}

.mobile-nav-link {
    display: none;
    text-decoration: none;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none !important;
}

.mobile-nav-list li::marker {
    display: none;
}

/* Mobile responsive styles for header and dropdown */
@media (max-width: 1024px) {
    .header-container {
        height: 70px; 
    }

    .logoWrapper a img {
        width: 100px;
    }

    .header-container .dropdown-menu {
        width: 100%; 
        top: 70px; 
        padding: 1rem;
        padding-left: 6%;
        padding-bottom: 8rem;
        height: calc(100vh - 70px);         
    }

    .dropdown-menu > .list-unstyled > li > div > .nav-link {
        font-size: 1.15rem;
    }

    .sub-menu .nav-link {
        font-size: 1.1rem;
    }

    .nav-link.active {
        color: var(--color-oht-red) !important;
    }

    .header-link, .header-item svg, .mapIcon, .searchIcon {
        display: none;
    }

    .mobile-nav-link {
        display: block;
        font-size: 1.15rem;
        /* line-height: 20px; */
        text-decoration: none;
        color: #000;
        transition: color 0.3s ease;
    }
    .mobile-nav-list {
        display: block !important;
    }
}

/* -------------------------------------------- */
/* Footer Container Styling */
/* -------------------------------------------- */ 

.footer-content, .footer-content a {
    color: #AAA3A3;
}

.footer-content a {
    text-decoration: underline;
}

.footer-col-2 p{
    width: 85%;
}

.footer-col-3 p {
    color: #AAA3A3 !important;
    font-size: 1.25rem;
    margin-top: -0.5rem;
}

.footer-row span, .footer-row a, .footer-row p {
    color: #AAA3A3 !important;
    font-size: 0.785rem;
    font-style: normal;
    font-weight: var(--font-weight-400, 400);
    line-height: 14px; /* 100% */
    text-decoration: none !important;
    margin: 0.5rem 0;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    cursor: pointer;
}

.footer-link {
    color: #AAA3A3;
    transition: color 0.3s ease;
}

/* Footer responsive styles */
@media (max-width: 768px) {
    .footer-col-1,
    .footer-col-2,
    .footer-col-3 {
        width: 100%;
        margin-bottom: 2rem;
    }

    .footer-row {
        flex-direction: column;
        padding-bottom: 2rem;
    }

    .footer-row span,
    .footer-row a,
    .footer-row p {
        display: block;
        margin: 0.5rem 0;
    }

    .footer-row span.mx-2 {
        display: none;
    }
}

/* ----------------------------------------------- */
/* Call To Action (with and without image) */
/* ----------------------------------------------- */

.image-container a {
    height: 100%;
}
.image-container img {
    object-fit: cover;
}

.cta-wrapper .image-container img {
    min-height: 400px;
    width: 100%;
}

.cta-logo {
    height: 100px;
}

.cta-image .image-container {
    border-radius: 0 !important;
}

@media (max-width: 1024px) {
    .cta-wrapper .image-container img {
        max-height: 650px;
    }
}

@media (max-width: 767.98px) {
    .cta-button {
        margin-bottom: 0 !important;
    }
}

.cta-with-image-text {
    padding: 2rem;
}

/* Call To Action Image Overlay */
.image-container {
    position: relative;
}

.image-container a {
    display: block;
    position: relative;
}

.figcaption-wrapper-with-underlay {
    width: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,  
        rgba(0, 0, 0, 0.5) 50%,  
        rgba(0, 0, 0, 0) 100%    
    );
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
}

.figcaption-wrapper-with-underlay .photo-info {
    position: absolute;
    bottom: 1rem;
    left: 2rem;
    border-color: white;
}

.cta-button,
.subscribe-button,
.global-button-primary,
.global-button-primary {
    padding: 1rem 2.25rem !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    border: 2px solid !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    justify-content: center !important;
    align-items: center !important;
}

.global-button-primary {
    background-color: #000 !important;
    color: #FFF !important;
    border-color: #000 !important;
}

.global-button-primary:hover {
    background-color: transparent !important;
    color: #000 !important;
}

@media (max-width: 1440px) {
    .global-button-primary {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .cta-button {
        padding: 0.75rem 1.25rem !important;
    }
}

.cta-button.dark-bg {
    background-color: #000 !important;
    border: 1px solid #000 !important;
    color: white !important;
}

.subscribe-button {
    color: #000 !important;
    background-color: #FFF;
    border-color: #000;
}

.cta-button.dark-bg:hover, .subscribe-button:hover {
    transform: scale(1.05);
}

