/*
Theme Name: Highrise 2.0
Author: MDR Web Team
Author URI: https://mdradvertising.com
Version: 1.0.0
*/

:root {
    /* Brand color aliases — values live in theme.json color palette.
       WordPress generates --wp--preset--color--* tokens automatically. */
    --hr-dark-blue:    var(--wp--preset--color--dark-blue);
    --hr-teal:         var(--wp--preset--color--teal);
    --hr-light-teal:   var(--wp--preset--color--light-teal);
    --hr-grey:         var(--wp--preset--color--grey);
    --hr-navy:         var(--wp--preset--color--navy);
    --hr-turquoise:    var(--wp--preset--color--turquoise);
    --hr-light-green:  var(--wp--preset--color--light-green);
    --hr-bright-green: var(--wp--preset--color--bright-green);
    --hr-dark-grey:    #57595B; /* not in theme.json palette */
    --hr-light-gray:        var(--wp--preset--color--light-gray);
    --hr-bright-light-teal: var(--wp--preset--color--bright-light-teal);

    /* Typography spacing */
    --heading-mb:    15px;
    --heading-mb-sm: 10px;
    --p-mb:          20px;
    --small-copy:    14px;

    /* Mobile page gutter */
    --mobile-gutter: 20px;

    /* Column inner spacing */
    --col-space-xs: 20px;
    --col-space-sm: 25px;
    --col-space-md: 30px;
    --col-space-lg: 35px;
    --col-space-xl: 50px;

    /* Column width constraints (8/12 and 9/12 grid) */
    --hr-width-8col: 66.66%;
    --hr-width-9col: 75%;

    /* Card color palette */
    --card-light-teal-30:  rgba(111, 200, 223, 0.3);
    --card-light-teal-20:  rgba(111, 200, 223, 0.2);
    --card-dark-blue-40:   rgba(0, 78, 152, 0.4);
    --card-dark-blue-50:   rgba(0, 78, 152, 0.5);

    /* Card tokens */
    --card-radius:     10px;
    --card-border:     2px;
    --card-transition: all 0.3s ease;
    
    /* Transition system */
    --hr-ease:              cubic-bezier(0.4, 0, 0.2, 1);
    --hr-duration-micro:    150ms;
    --hr-duration-standard: 240ms;
    --hr-duration-enter:    400ms;
}

:root :where(.is-layout-flex) {
    gap: 0;
}

p, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

li {
    margin-bottom: 3px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hr-dark-blue);
    font-weight: 600;
}

h1, h2      { margin-bottom: 30px; }
h3          { margin-bottom: 25px; }
h4          { margin-bottom: var(--heading-mb-sm); }
p           { margin-bottom: var(--p-mb); }
a           { color:var(--hr-dark-blue); }
a:hover     { text-decoration: none; }

h3:has(+ h4),
.is-layout-flex > h3:has(+ h4),
.is-layout-flow > h3:has(+ h4),
.is-layout-constrained > h3:has(+ h4) { margin-bottom: 0; }

h3 + h4 { line-height: 1.1; }

.is-layout-flex > p,
.is-layout-flow > p,
.is-layout-constrained > p              { margin-bottom: var(--p-mb); }

.is-layout-flex > h1,
.is-layout-flex > h2,
.is-layout-flow > h1,
.is-layout-flow > h2,
.is-layout-constrained > h1,
.is-layout-constrained > h2             { margin-bottom: 15px; }

.is-layout-flex > h3,
.is-layout-flow > h3,
.is-layout-constrained > h3             { margin-bottom: 15px; }

.is-layout-flex > h4,
.is-layout-flow > h4,
.is-layout-constrained > h4             { margin-bottom: var(--heading-mb-sm); }

h1 {
    font-family: "quatro-slab", serif;
    font-size: 33px;
}

h2 {
    font-family: "quatro-slab", serif;
    font-size: 38px;
}

h3 {
    font-family: "Poppins", sans-serif;
    font-size: 30px;
}

h4 {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
}

h5, h6 {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--hr-dark-grey);
}

/* Body Copy Variations */
.hr-lead {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 400;
}

.hr-lead-special {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--hr-dark-blue);
}

.hr-small {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--hr-dark-grey);
}

/* Special Headline Classes */
.hr-hero-1 {
    font-family: "realist", sans-serif;
    font-size: 45px;
    font-weight: 800;
    color: var(--hr-dark-blue);
    text-transform: uppercase;
}

.hr-hero-2 {
    font-family: "realist", sans-serif;
    font-size: 45px;
    font-weight: 800;
    font-style: italic;
    color: var(--hr-teal);
    text-transform:uppercase;
}

@media (max-width: 425px) {
    .hr-hero-1{
      font-size:35px;
    }
    
    .hr-hero-2 {
        font-size: 35px;
    }
    
    h2{
      font-size:33px;
    }
    
    h3{
      font-size:26px;
    }
}

.hr-headline-special {
    font-family: "quatro-slab", serif;
    font-size: 33px;
    font-weight: 600;
    color: var(--hr-dark-blue);
}

.h2-small {
    font-family: "quatro-slab", serif;
    font-size: 33px;
    font-weight: 600;
    line-height: 38px;
    color: var(--hr-dark-blue);
    text-transform: capitalize;
}

.hr-news-headline {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--hr-dark-blue);
}

.hr-heading-tight { margin-bottom: var(--heading-mb-sm) !important; }

.hr-nowrap       { white-space: nowrap; }

.wp-block-group {
    margin-block-start: var(--wp--style--block-gap);
}

.iframe-full-mobile{width:75% !important;}

/* ── Bootstrap breakpoint override — force col-md-* to stack at exactly 768px ── */
@media (max-width: 768px) {
    [class*="col-md-"] {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ── Gutenberg / Bootstrap container alignment ──────────────────────────── */

/* Scenario 1: top-level non-full-width group = Bootstrap container */
.page-content > .wp-block-group:not(.alignfull) {
    max-width: 100%;
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
@media (min-width: 576px)  { .page-content > .wp-block-group:not(.alignfull) { max-width: 540px; } }
@media (min-width: 782px)  { .page-content > .wp-block-group:not(.alignfull) { max-width: 720px; } }
@media (min-width: 992px)  { .page-content > .wp-block-group:not(.alignfull) { max-width: 960px; } }
@media (min-width: 1200px) { .page-content > .wp-block-group:not(.alignfull) { max-width: 1140px; } }
@media (min-width: 1400px) { .page-content > .wp-block-group:not(.alignfull) { max-width: 1320px; } }

/* Scenario 2: top-level full-width group = truly edge to edge */
.page-content > .wp-block-group.alignfull {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

/* Scenario 3: group directly inside a full-width group = Bootstrap container */
.page-content > .wp-block-group.alignfull > .wp-block-group:not(.alignfull) {
    max-width: 100%;
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
@media (min-width: 576px)  { .page-content > .wp-block-group.alignfull > .wp-block-group:not(.alignfull) { max-width: 540px; } }
@media (min-width: 782px)  { .page-content > .wp-block-group.alignfull > .wp-block-group:not(.alignfull) { max-width: 720px; } }
@media (min-width: 992px)  { .page-content > .wp-block-group.alignfull > .wp-block-group:not(.alignfull) { max-width: 960px; } }
@media (min-width: 1200px) { .page-content > .wp-block-group.alignfull > .wp-block-group:not(.alignfull) { max-width: 1140px; } }
@media (min-width: 1400px) { .page-content > .wp-block-group.alignfull > .wp-block-group:not(.alignfull) { max-width: 1320px; } }

/* ── Header adaptive container ───────────────────────────────────────────── */
.container-adaptive {
    width: 100%;
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Target the 'Fixed Width Center Content' pattern specifically */
.page-content > .wp-block-group.is-vertical.is-layout-flex {
    padding-left: var(--mobile-gutter) !important;
    padding-right: var(--mobile-gutter) !important;
}

@media (min-width: 576px)  { .container-adaptive { max-width: 540px; } }
@media (min-width: 768px)  { .container-adaptive { max-width: 720px; } }
@media (min-width: 992px)  { .container-adaptive { max-width: 960px; } }
@media (min-width: 1200px) { .container-adaptive { max-width: 1140px; } }
@media (min-width: 1400px) { .container-adaptive { max-width: 1320px; } }

.top-bar {
    background-color: var(--hr-dark-blue);
    min-height: 50px;
    font-size:14px;
}

.top-bar__nav {
    gap: 30px;
    padding: 14px 0;
    list-style: none;
    margin: 0;
}

.top-bar__inner {
    padding-left: 0;
    padding-right: 0;
}

.top-bar .row {
    --bs-gutter-x: 0;
}

.top-bar__nav a {
    color: #FFF;
    text-decoration: none;
}

.top-bar__nav a:hover {
    color: var(--hr-bright-light-teal);
}

/* ================================
   Mobile Utility Bar
   ================================ */
.mobile-utility-bar {
    background-color: var(--hr-dark-blue);
    position: relative;
}

.mobile-utility-bar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.mobile-utility-bar__translation {
    color: #fff;
    font-size: 14px;
}

.mobile-utility-bar__search-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #fff;
    transition: opacity 0.2s ease;
}

.mobile-utility-bar__search-btn:hover {
    opacity: 0.7;
}

/* Search form — hidden by default, overlays the full bar width when open */
.mobile-utility-bar__search-form {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--hr-dark-blue);
    padding: 10px var(--mobile-gutter);
    z-index: 10;
    align-items: center;
}

.mobile-utility-bar__search-form.is-open {
    display: flex;
}

/* Input — transparent bg, white text on dark blue bar */
.mobile-utility-bar__search-form input[type="search"] {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100%;
}

.mobile-utility-bar__search-form input[type="search"]:focus,
.mobile-utility-bar__search-form input[type="search"]:focus-visible {
    border-bottom-color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

.mobile-utility-bar__search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-utility-bar__search-form input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.mobile-utility-bar__search-form form {
    width: 100%;
}

.mobile-utility-bar__search-close {
    background: none;
    border: none;
    padding: 4px;
    margin-left: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
}


.main-nav__toggler {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: none !important;
}

.main-nav__toggler:focus,
.main-nav__toggler:focus-visible {
    box-shadow: none !important;
    outline: none;
}

/* Below xl (1200px) — mobile/tablet adjustments */
@media (max-width: 1199.98px) {

    .top-bar__nav {
        width: auto;
        gap: 20px;
        padding: 10px 0;
    }

    /* Main nav — reset desktop padding, let toggler control layout */

    .main-nav__header {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .main-nav__logo {
        padding-top: 0;
        padding-bottom: 0;
        max-width: 275px !important;
    }

    .main-nav__logo img {
        height: auto;
    }

    /* Collapsed menu — drops below the header bar as an overlay */
    .main-nav__primary {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 999;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding: 0 24px;
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-nav__menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav__item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .main-nav__link {
        display: block;
        padding: 12px 0;
    }
}

/* ================================
   Main Navigation
   ================================ */
.main-nav {
    padding-top: 0;
    padding-bottom: 0;
}

.main-nav__inner {
    padding-top: 0;
    padding-bottom: 0;
}

.main-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 22px;
    padding-bottom: 22px;
    position: relative;
}

.main-nav__logo {
    padding-top: 25.5px;
    padding-bottom: 25.5px;
}

.main-nav__brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.main-nav__brand img{
    max-width:335px !important;
}

.main-nav__primary {
    padding-left: 24px;
}

@media (min-width: 1200px) {
    .main-nav__primary {
        padding-top: 25px;
        padding-bottom: 25px;
    }
}

.main-nav__menu {
    gap: 45px;
    font-size: 18px;
}

@media (max-width: 1399.98px) {
    .main-nav__menu {
        gap: 30px;
    }
}

.main-nav__link {
    color: var(--hr-dark-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav__link:hover,
.main-nav__link:active,
.main-nav__item.current-menu-item > .main-nav__link,
.main-nav__item.current-menu-ancestor > .main-nav__link,
.main-nav__item--has-mega.is-open > .main-nav__link {
    color: var(--hr-teal);
}

/* ================================
   Weglot Language Switcher
   ================================ */
.weglot-parent-menu-item {
       position: relative;
   }
   
   .weglot-parent-menu-item > a::after {
       content: '';
       display: inline-block;
       margin-left: 6px;
       vertical-align: middle;
       border-left: 4px solid transparent;
       border-right: 4px solid transparent;
       border-top: 5px solid currentColor;
       transition: transform 0.2s ease;
   }
   
   .weglot-parent-menu-item.is-open > a::after {
       transform: rotate(180deg);
   }

.weglot-parent-menu-item .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    min-width: 130px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 200;
}

.weglot-parent-menu-item.is-open .sub-menu {
    display: block;
}

.weglot-parent-menu-item .sub-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--hr-dark-blue) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.weglot-parent-menu-item .sub-menu a:hover {
    color: var(--hr-teal) !important;
}


/*Weglot Widget*/
.country-selector.weglot-dropdown .wgcurrent{
  color:var(--hr-dark-blue);  
}

.country-selector a{
  color:var(--hr-dark-blue);
}

.country-selector.weglot-dropdown .wgcurrent{
  border:none;
}

/* ================================
   Mega Menu
   ================================ */
.main-nav__item--has-mega {
    position: static;
}

.mega-menu {
    display: flex;
    visibility: hidden;
    clip-path: inset(0 0 100% 0 round 0 0 20px 20px);
    will-change: clip-path;
    position: absolute;
    top: 0;
    left: 0;
    width: 920px;
    background: #fff;
    box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    border:2px solid var(--hr-light-gray);
}

/* Slim variant — 2-level menus with no grandchildren */
.mega-menu--simple {
    width: 280px;
}

.mega-menu--simple .mega-menu__sidebar {
    width: 100%;
    border-right: none;
    border-radius: 0 0 20px 20px;
}

.mega-menu--simple .mega-menu__panels {
    display: none;
}

.main-nav__item--has-mega.is-open .mega-menu {
    visibility: visible;
    clip-path: inset(0 0 0% 0 round 0 0 20px 20px);
}

/* Legacy bridge approach — predates the JS hover-intent close delay.
 clip-path on .mega-menu clips this ::before (it sits outside the border box),
 so it is no longer functional. Retained for reference only.
 The 150ms close delay in mega-menu.js is now the gap solution. */
/* Invisible pseudo-element bridges the full gap between the nav link
   and the mega menu. Height must cover (navbar_height - li_height) / 2 ≈ 53px */
.mega-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 60px;
}

/* Sidebar */
.mega-menu__sidebar {
    width: 275px;
    flex-shrink: 0;
    border-right: 2px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 0 20px;
    overflow: hidden;
    opacity: 0;
}

.mega-menu__categories {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mega-menu__category {
    cursor: pointer;
    margin-bottom: 0;
}


.mega-menu__category:hover,
.mega-menu__category.is-active {
    background: #D6EBF5;
}

.mega-menu__category-link {
    display: block;
    padding: 14px 24px 14px 40px;
    color: var(--hr-dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

/* Panels */
.mega-menu__panels {
    display: grid;
    flex: 1;
    padding: 12px 32px 12px 32px;
    opacity: 0;
}


.main-nav__item--has-mega.is-open .mega-menu__sidebar,
.main-nav__item--has-mega.is-open .mega-menu__panels {
    opacity: 1;
}

.mega-menu__panel {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
}

.mega-menu__panel.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mega-menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mega-menu__card {
    display: block;
    text-decoration: none;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 10px;
}

.mega-menu__card:hover {
    border-color: var(--hr-light-teal);
}

.mega-menu__card-title {
    display: inline-block;
    position: relative;
    color: var(--hr-dark-blue);
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 0;
}

.mega-menu__card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hr-dark-blue);
    transform: scaleX(0);
    transform-origin: left;
}

.mega-menu__card:hover .mega-menu__card-title::after {
    transform: scaleX(1);
}

.mega-menu__card-desc {
    color: var(--hr-dark-grey);
    font-size: 16px;
    margin: 0;
}

.mega-menu__card-desc {
    color: var(--hr-dark-grey);
    font-size: 16px;
    margin: 0;
}

/* Compact layout — viewport too narrow for 2-col cards at full 970px width.
   Switches to 1-col cards and reduces sidebar/menu widths to prevent
   horizontal overflow between the 1500px trigger and 1199px mobile breakpoint. */
@media (max-width: 1500px) {
    .mega-menu:not(.mega-menu--simple) {
        width: 600px;
    }
    .mega-menu__sidebar {
        width: 260px;
    }
    .mega-menu__category-link {
        padding-left: 24px;
    }
    .mega-menu__grid {
        grid-template-columns: 1fr;
    }
    .mega-menu__card {
        max-width: 280px;
    }
    
}

/* ================================
   Nav Search
   ================================ */

.main-nav__item--search {
    display: flex;
    align-items: center;
}

.main-nav__search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--hr-dark-blue);
    transition: color 0.2s ease;
    line-height: 1;
}

.main-nav__search-btn:hover,
.main-nav__search-btn[aria-expanded="true"] {
    color: var(--hr-teal);
}

.main-nav__search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 999;
    padding: 24px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.main-nav__search-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── SearchWP overrides ── */

.main-nav__search-panel #searchwp-form-1 .swp-input {
    border-bottom-color: var(--hr-light-gray) !important;
}

.main-nav__search-panel .search-submit.swp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    line-height: 1;
    padding: 10px 23px 12px !important;
    font-size: 16px !important;
    background-color: var(--hr-light-teal) !important;
    border: 2px solid var(--hr-light-teal) !important;
    color: var(--hr-navy) !important;
}

.main-nav__search-panel .search-submit.swp-button:hover {
    background-color: var(--hr-bright-light-teal) !important;
    border-color: var(--hr-bright-light-teal) !important;
    color: var(--hr-navy) !important;
}

/* Hide the secondary search icon inside the input container */
.main-nav__search-panel .searchwp-form-input-container::before,
.main-nav__search-panel .searchwp-form-input-container::after,
.main-nav__search-panel .searchwp-form-input-container svg,
.main-nav__search-panel .searchwp-form-input-container img {
    display: none !important;
}

/* Hide featured image thumbnail */
.searchwp-live-search-result--img {
    display: none !important;
}

.searchwp-live-search-result--title a {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--hr-dark-blue);
    text-decoration: none;
}

.searchwp-live-search-result--title a:hover {
    color: var(--hr-teal);
}

/* ================================
   Mobile Navigation
   ================================ */
.mobile-nav {
    padding: 0 0 16px;
}

.mobile-nav__menu,
.mobile-nav__sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(217, 217, 217, 0.75);
}

.mobile-nav__row--depth-2,
.mobile-nav__row--depth-3 {
    border-bottom: none;
}

.mobile-nav__item--depth-2 {
    border-bottom: 1px solid rgba(217, 217, 217, 0.75);
}

.mobile-nav__row--depth-1 {
    padding: 12px 0;
}

.mobile-nav__row--depth-2 {
    padding: 11px 0 11px 20px;
}

.mobile-nav__row--depth-3 {
    padding: 10px 0 10px 40px;
}

.mobile-nav__link {
    color: var(--hr-dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    flex: 1;
}

.mobile-nav__row--depth-2 .mobile-nav__link {
    font-size: 15px;
}

.mobile-nav__row--depth-3 .mobile-nav__link {
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav__toggle {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--hr-light-teal);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mobile-nav__item--has-children.is-open > .mobile-nav__row > .mobile-nav__toggle {
    transform: rotate(90deg);
}

.mobile-nav__item--has-children.is-open > .mobile-nav__row--depth-2 > .mobile-nav__toggle {
    transform: rotate(180deg);
}

.mobile-nav__arrow {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    color: var(--hr-light-teal);
    flex-shrink: 0;
}

.mobile-nav__row--depth-3 .mobile-nav__arrow,
.mobile-nav__row--depth-3 .mobile-nav__toggle {
    display: none;
}

.mobile-nav__sub-menu {
    background: #fff;
}

/* Quick Navigation — first depth-1 item rendered as a utility bar row */
.mobile-nav__item--quick-nav > .mobile-nav__row {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mobile-nav__item--quick-nav > .mobile-nav__sub-menu {
    display: block;
    background-color: var(--hr-dark-blue);
    padding: 4px 0;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 8px;
}

.mobile-nav__item--quick-nav .mobile-nav__item .mobile-nav__row {
    border-bottom: none;
    padding: 12px var(--mobile-gutter);
}

.mobile-nav__item--quick-nav .mobile-nav__item--depth-2 {
    border-bottom: none;
}

.mobile-nav__item--quick-nav .mobile-nav__link {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    flex: none;
}

.mobile-nav__item--quick-nav .mobile-nav__arrow {
    display: none;
}

/* ================================
   Gravity Forms — global
   ================================ */

   .gform_wrapper.gform-theme {
       padding: var(--col-space-md);
   }
   
   .gform_wrapper.gform-theme .gform_heading {
       display: none;
   }
   
   .gform_wrapper.gform-theme.gform-theme--foundation .gform_fields {
       row-gap: 20px !important;
   }
   
   .gform_wrapper.gform-theme input[type="text"],
   .gform_wrapper.gform-theme input[type="email"],
   .gform_wrapper.gform-theme input[type="tel"],
   .gform_wrapper.gform-theme input[type="url"],
   .gform_wrapper.gform-theme textarea {
       background: #fff;
       border-radius: 8px;
       padding: 12px 16px;
       border: 1px solid var(--hr-light-gray);
       width: 100%;
       box-sizing: border-box;
   }
   
   .gform_wrapper.gform-theme .ginput_container_textarea textarea.textarea {
       height: 40px;
       resize: none;
   }
   
   .gform_wrapper.gform-theme .gform_button,
   .gform_wrapper.gform-theme--orbital .gform_button {
       background-color: var(--hr-light-teal) !important;
       border: 2px solid var(--hr-light-teal) !important;
       color: var(--hr-navy) !important;
       border-radius: 10px !important;
       padding: 9px 23px !important;
       font-family: "Poppins", sans-serif !important;
       font-weight: 500 !important;
       font-size: 16px !important;
       width: auto !important;
       cursor: pointer;
       transition: background-color 0.2s ease, border-color 0.2s ease;
       line-height: 1 !important;
   }
   
   .gform_wrapper.gform-theme .gform_button:hover,
   .gform_wrapper.gform-theme--orbital .gform_button:hover {
       background-color: var(--hr-bright-light-teal) !important;
       border-color: var(--hr-bright-light-teal) !important;
       color: var(--hr-navy) !important;
   }
   
   .gform_wrapper.gform-theme--orbital {
       --gf-ctrl-shadow: none !important;
   }
   
   h3.gsection_title  {font-size: 25px !important; margin: 30px 0 0; }
   .gchoice.gchoice_9_8_3 {
       grid-template-columns: 20px auto !important;
   }

/* ================================
   Footer CTA
   ================================ */
.footer-cta {
    background-image: url('/wp-content/themes/highrise-2.0/imgs/Email_Signup.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-cta__inner {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 60px;
}

.footer-cta__box {
    width: 600px;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.90);
    border-radius: 15px;
    padding: 50px 20px;
    gap: 30px;
}

.footer-cta__header {
    width: 400px;
    max-width: 100%;
}

.footer-cta__subtext {
    color: var(--hr-dark-grey);
    margin-bottom: 0;
}

.footer-cta__form {
    width: 100%;
}

.footer-cta__waves {
    width: 100%;
    line-height: 0;
}

.footer-cta__waves img {
    width: 100%;
    display: block;
}

/* Gravity Forms overrides — footer CTA */
.footer-cta__form .gform_wrapper {
    padding: var(--col-space-md);
}

.footer-cta__form .gform_heading {
    display: none;
}

.footer-cta__form .gform-theme--foundation .gform_fields {
    row-gap: 20px !important;
}

.footer-cta__form .gform_wrapper input[type="text"],
.footer-cta__form .gform_wrapper input[type="email"],
.footer-cta__form .gform_wrapper input[type="tel"],
.footer-cta__form .gform_wrapper input[type="url"],
.footer-cta__form .gform_wrapper textarea {
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid var(--hr-light-gray);
    width: 100%;
    box-sizing: border-box;
}

.footer-cta__form .ginput_container_textarea textarea.textarea {
    height: 40px;
    resize: none;
}

.footer-cta__form .gform-button {
    background-color: var(--hr-light-teal) !important;
    border: 2px solid var(--hr-light-teal) !important;
    color: var(--hr-navy) !important;
    border-radius: 10px !important;
    padding: 9px 23px !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    width: auto !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    line-height: 1 !important;
}

.footer-cta__form .gform-button:hover {
    background-color: var(--hr-bright-light-teal) !important;
    border-color: var(--hr-bright-light-teal) !important;
    color: var(--hr-navy) !important;
}

/* ================================
   Footer Main
   ================================ */
.footer-main {
    background-color: var(--hr-navy);
    font-size:14px;
}

.footer-main__inner {
    padding-top: 60px;
    padding-bottom: 60px;
    gap: 24px;
}

.footer-main__logo img{
    max-width:275px;
}

.footer-main__menu {
    list-style: none;
    padding: 24px 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.footer-main__secondary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-main__menu a,
.footer-main__secondary-menu a {
    color: #fff;
    text-decoration: none;
    transition: color var(--hr-duration-micro) var(--hr-ease);
}

.footer-main__menu a:hover,
.footer-main__secondary-menu a:hover {
    color: var(--hr-bright-light-teal);
}

.footer-main__menu a{
    font-size:18px;
}

.footer-main__social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-main__contact p {
    color: #fff;
    margin: 0;
}

.footer-main__copyright p {
    color: #fff;
    margin: 0;
    font-size: 14px;
}

/* ================================
   Page Hero
   ================================ */
.page-banner {
    background-color: var(--hr-dark-blue);
    position: relative;
    overflow: hidden;
    padding-bottom: 85px;
}

.page-banner__inner {
    position: relative;
    z-index: 1;
    padding-top: 48px;
    padding-bottom: 48px;
}

.page-banner__title {
    color: #fff;
    margin-bottom: 12px;
}

.page-banner__breadcrumbs {
    color: #fff;
    font-size: 14px;
}

.page-banner__breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.page-banner__breadcrumbs a:hover {
    text-decoration: underline;
}

.page-banner__breadcrumb-sep {
    margin: 0 6px;
}

.page-banner__waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}

.page-banner__waves img {
    width: 100%;
    display: block;
}

@media (max-width: 425px) {
    .page-banner {
        overflow: visible;
    }

    .page-banner__waves {
        bottom: -1px;
    }

    .main-nav__logo {
        max-width: 212px;
    }

    .main-nav__logo img {
        width: 100%;
        height: auto;
    }    
}

/* ================================
   Page Content
   ================================ */
.page-content {
    padding-top: 0px;
    padding-bottom: 60px;
}

body.page-id-302 .page-content {
    padding-bottom: 0;
}

/* ================================
   Column Spacing
   ================================ */
.wp-block-columns { gap: 24px; }
.wp-block-column  { padding: 0; }

/* Aligns a group's top spacing with the column stacking gap on mobile */
.hr-col-gap-top { padding-top: 10px; }
@media (max-width: 781px) {
    .hr-col-gap-top { padding-top: 1.5rem; }
}

@media (max-width: 781px) {
    .wp-block-columns {
        row-gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .wp-block-columns.is-reversed {
        flex-direction: column-reverse;
    }
}

.col--standard { padding: var(--col-space-md); }
.col--wide     { padding: var(--col-space-lg); }
.col--card     { padding: var(--col-space-md) var(--col-space-xs); }
.col--asym     { padding: var(--col-space-sm) var(--col-space-xl) var(--col-space-sm) var(--col-space-sm); }

.hr-width-8col.hr-width-8col {
    display: flex;
    width: var(--hr-width-8col);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    overflow-wrap: break-word;
    min-width: 0;
}

.hr-width-8col.hr-width-8col > * {
    min-width: 0;
    overflow-wrap: break-word;
}

.hr-width-9col.hr-width-9col {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--hr-width-9col);
    width: var(--hr-width-9col);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.hr-width-9col.hr-width-9col--left {
    margin-left: 0;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
}
.wp-block-columns > .wp-block-column.hr-width-9col--left {
    display: block;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: var(--hr-width-9col);
    width: var(--hr-width-9col);
}

.wp-block-group.hr-span-8col.hr-span-8col {
    max-width: var(--hr-width-8col) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

.wp-block-group.hr-span-8col.hr-span-8col--left {
    margin-left: 0 !important;
}

@media (max-width: 1024px) {
    .wp-block-group.hr-span-8col.hr-span-8col {
        max-width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    .hr-width-8col.hr-width-8col,
    .hr-width-9col.hr-width-9col {
        flex-basis: 100%;
        width: 100%;
    }
}

/* ================================
   Card System
   ================================ */

.hr-card {
    border-radius: var(--card-radius);
    transition: var(--card-transition);
    overflow: hidden;
}

.card--outline {
    border: var(--card-border) solid var(--card-light-teal-30);
}
.card--outline:hover {
    border-color: var(--hr-light-teal);
}

.card--fill {
    background-color: var(--card-light-teal-20);
    color: var(--hr-dark-blue);
    border: var(--card-border) solid transparent;
}
.card--fill:hover {
    background-color: var(--hr-dark-blue);
    color: #fff;
}
.card--fill:hover h1,
.card--fill:hover h2,
.card--fill:hover h3,
.card--fill:hover h4,
.card--fill:hover h5,
.card--fill:hover h6,
.card--fill:hover p,
.card--fill:hover a {
    color: #fff;
}

/* Industries card — bg image set by Gutenberg inline style;
   pseudo element provides dark blue overlay at 40% opacity.
   Children sit above overlay at z-index 2. Hover fades in light teal border. */
.card--industries {
    position: relative;
    background-size: cover;
    background-position: center;
    color:#FFF;
    transition: var(--card-transition);
}

.card--industries h3{
    color:#FFF;
    padding-bottom:15px;
}
.card--industries::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--card-dark-blue-40);
    z-index: 1;
    transition: var(--card-transition);
}
.card--industries > * {
    position: relative;
    z-index: 2;
}
.card--industries:hover {
    box-shadow: inset 0 0 0 var(--card-border) var(--hr-light-teal);
}

.wp-block-group.industries-card__content {
    padding-top: 125px;
    padding-right: 80px;
}

@media (max-width: 425px) {
    .wp-block-group.industries-card__content {
        padding-top: 0;
        padding-right: 0;
        margin-top:0;
        text-align:center;
        color:#FFF !important;
    }
    .card--industries h3 {
        padding-bottom: 0;
    }
}

.industries-card-crude-oil       { background-image: url('imgs/Industries-Card-Crude-Oil.png'); }
.industries-card-lng-ngl         { background-image: url('imgs/Industries-Card-LNG-NGL.png'); }
.industries-card-ag              { background-image: url('imgs/Industries-Block-Steel-1.jpg'); }
.industries-card-wind-renewables { background-image: url('imgs/Industries-card-wind-renewables.png'); }

.card--news-no-img {
    background-color: var(--card-light-teal-20);
    border: var(--card-border) solid transparent;
}
.card--news-no-img:hover {
    border-color: var(--hr-light-teal);
}

/* News card — with image; bg image set via PHP template inline style;
   pseudo element provides dark blue gradient overlay at 50% opacity.
   Children sit above overlay at z-index 2. Hover fades in light teal border. */
.card--news-img {
       position: relative;
       overflow: hidden;
       background-size: cover;
       background-position: center;
   }
   .card--news-img::before {
       content: '';
       position: absolute;
       inset: 0;
       background-color: var(--card-dark-blue-50);
       z-index: 1;
       transition: var(--card-transition);
   }
   .card--news-img > * {
       position: relative;
       z-index: 2;
   }
   .card--news-img:hover {
       box-shadow: 0 0 0 var(--card-border) var(--hr-light-teal);
   }

/* ================================
   Footer News Bumper
   ================================ */
.footer-news-bumper {
    padding: var(--wp--preset--spacing--fluffy) 0;
    border-top:2px solid var(--hr-light-gray);
}

body.page-id-302 .footer-news-bumper {
    border-top: none;
}

.footer-news-bumper__grid,
.news-landing__section .row {
    --bs-gutter-x: 10px;
}

@media (min-width: 768px) {
    .footer-news-bumper__grid,
    .news-landing__section .row {
        --bs-gutter-y: 10px;
    }

    /* Switch to CSS Grid so all cards share the same height across rows */
    .footer-news-bumper__grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
        gap: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .footer-news-bumper__grid > .col-12 {
        padding-left: 0;
        padding-right: 0;
        width: auto;
        max-width: none;
        flex: none;
    }
}

.footer-news-bumper__headline {
    margin-bottom: var(--col-space-md);
}


.news-card__content {
    padding: var(--col-space-md);
    flex: 1;
}

.news-card__meta {
    gap: 10px;
    margin-bottom: var(--heading-mb);
}

.news-card__category,
.investment-card__type {
    display: inline-block;
    background-color: var(--hr-dark-blue);
    color: #fff;
    font-size: var(--small-copy);
    line-height: 20px;
    border-radius: 5px;
    padding: 0 15px;
    text-decoration: none;
    transition: var(--card-transition);
}

.news-card__category a{
    color:#FFF;
}

.news-card__category:hover {
    background-color: var(--hr-light-teal);
    color: var(--hr-dark-blue);
}

.news-card__date {
    font-size: var(--small-copy);
    color: var(--hr-dark-blue);
}

.news-card__title {
    margin-bottom: var(--heading-mb);
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

.news-card__read-more {
    font-size: 16px;
    text-decoration: underline;
}

/* Image variation — white text throughout */
.card--news-img .news-card__date,
.card--news-img .news-card__title,
.card--news-img .news-card__read-more {
    color: #fff;
}

/* No-image variation — excerpt grey, date dark blue, title/read-more dark blue */
.card--news-no-img .news-card__excerpt {
    color: var(--hr-dark-grey);
}

.card--news-no-img .news-card__date {
    color: var(--hr-dark-blue);
}

.card--news-no-img .news-card__read-more {
    color: var(--hr-dark-blue);
    font-weight:600;
}

.footer-news-bumper__cta {
    margin-top: var(--col-space-md);
}

/* ================================
   Core Block Overrides — Details (Accordion)
   ================================ */
.wp-block-details {
    width: 100%;
    border: 1px solid var(--card-light-teal-30);
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    margin-bottom:10px;
}

.wp-block-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--hr-dark-blue);
    margin-bottom: 0;
}

.wp-block-details summary::-webkit-details-marker,
.wp-block-details summary::marker {
    display: none;
}

.wp-block-details__summary-icon {
    display: none;
}

.wp-block-details summary::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M4 7 L10 13 L16 7' stroke='%23004E98' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.wp-block-details[open] summary::after {
    transform: rotate(180deg);
}

.wp-block-details[open] summary {
    margin-bottom: 20px;
}

/* ================================
   Core Block Overrides — Table
   ================================ */

/* Reset WP defaults and set base */
.wp-block-table {
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.wp-block-table td,
.wp-block-table th {
    border: none;
}

/* Header row */
.wp-block-table thead th {
    background-color: var(--hr-light-teal);
    padding: 10px 20px;
    color: var(--hr-navy);
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    text-align: left;
    border-bottom: none;
}

.wp-block-table thead th:first-child { border-radius: 10px 0 0 0; }
.wp-block-table thead th:last-child  { border-radius: 0 10px 0 0; }
.wp-block-table tbody td {
    padding: 10px 20px;
    border-bottom: 1px solid var(--hr-light-gray);
    color: var(--hr-dark-blue);
}

/* Even row highlight — shared with .hr-resource-rows grid variant */
.wp-block-table tbody tr:nth-child(even),
.hr-resource-rows > *:nth-child(even) {
    background-color: var(--card-light-teal-20);
}

.hr-resource-rows .wp-block-columns {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
    border-bottom: 1px solid var(--hr-light-gray);
    align-items: stretch;
}

.hr-resource-rows .wp-block-column {
    padding: 10px 20px;
}

.hr-resource-rows .wp-block-column p {
    margin-bottom: 0;
    color: var(--hr-dark-blue);
}

.hr-resource-rows .wp-block-columns .wp-block-column:nth-child(n+2) p {
    font-weight: 600;
}

/* Zebra rows — alternating row pattern with inline label + button layout */
.zebra-rows .is-layout-flex > p {
    margin-bottom: 0;
}

.zebra-rows > * {
    padding: 10px 15px;
    color: var(--hr-dark-blue);
    font-weight: 500;
}

.zebra-rows > :nth-child(odd) {
    background-color: rgba(111, 200, 223, 0.2) !important;
}


@media (max-width: 1024px) {
    .wp-block-group.hr-span-8col.zebra-rows {
        max-width: 100% !important;
        width: 100%;
    }
}

@media (max-width: 425px) {
  /* Target the immediate children of .zebra-rows that are flex containers */
  .zebra-rows > .wp-block-group.is-layout-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Adjust alignment of the second group if it contains icons/labels */
  .zebra-rows > .wp-block-group.is-layout-flex > .wp-block-group {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ================================
   Media & Text Block Modifiers
   ================================ */
.media-text--pad .wp-block-media-text__content {
    padding-left: var(--wp--preset--spacing--fluffier);
    padding-right: var(--wp--preset--spacing--fluffier);
}

@media (min-width: 769px) {
    .location-connectivity {
        min-height: 600px;
        overflow: hidden;
    }
    .hr-media-text {
        min-height: 600px;
        overflow: hidden;
    }   
}

/* WordPress stacks media-text at 600px by default. Override to match
   our 768px breakpoint so it stacks in sync with the rest of the layout. */
@media (max-width: 768px) {
    .wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns: 100% !important;
        grid-template-rows: auto;
    }

    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
        grid-column: 1;
        grid-row: 1;
    }

    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
        grid-column: 1;
        grid-row: 2;
        padding-left: var(--mobile-gutter);
        padding-right: var(--mobile-gutter);
        padding-top: var(--col-space-xl);
        padding-bottom: var(--col-space-xl);
    }
}

/* ================================
   Column gap padding utilities
   Adds 25px to a column's inner edge so the total visual space between
   text and image equals 50px (25px gap + 25px padding).
   ================================ */

.hr-col-pad-right { padding-right: 25px; }
.hr-col-pad-left  { padding-left: 25px; }

@media (max-width: 767.98px) {
    .hr-center-mobile {
        text-align: center;
    }
    .hr-center-mobile > * {
        margin-left: auto;
        margin-right: auto;
    }
    .hr-center-mobile .is-layout-flex {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hr-col-pad-right { padding-right: 0; }
    .hr-col-pad-left  { padding-left: 0; }
}

/* Left aligned desktop, center aligned tablet + mobile (≤1024px) */
.hr-left-center-mobile {
    text-align: left !important;
}

.hr-left-center-mobile > * {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.hr-left-center-mobile .is-layout-flex {
    justify-content: flex-start !important;
}

@media (max-width: 1024px) {
    .hr-left-center-mobile {
        text-align: center !important;
    }
    .hr-left-center-mobile > * {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hr-left-center-mobile .is-layout-flex {
        justify-content: center !important;
    }
}

/* ================================
   Stack columns at tablet (≤1292px)
   Apply to a .wp-block-columns block in Gutenberg.
   ================================ */
@media (max-width: 1024px) {
    .hr-center-mobile {
        text-align: center;
    }
    .hr-stack-tablet {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .wp-block-columns:has(> .hr-stack-tablet) {
        flex-wrap: wrap !important;
    }
    .home-stats-intro {
    width: 80%;
    text-align: center;
    margin: 0 auto;
}
}


/* ================================
   Mobile visibility utilities (425px breakpoint)
   ================================ */

/* Hidden on mobile, visible above 425px */
.hr-hide-mobile { display: none !important; }
@media (min-width: 426px) {
    .hr-hide-mobile { display: revert !important; }
}

/* Center element with margin auto on mobile only */
@media (max-width: 425px) {
  .iframe-full-mobile{width:100% !important;}
    .hr-mx-auto-mobile {
        display: block !important;
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ================================
   Industries card — mobile stack
   ================================ */
@media (max-width: 425px) {
    .hr-industries-stack-mobile,
    .hr-industries-stack-mobile.is-layout-flex,
    .hr-industries-stack-mobile.is-content-justification-space-between {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
        gap: 8px !important;
        width:100%;
    }
}


/* ================================
   Landing Page Banner
   ================================ */
.lp-banner {
    position: relative;
    overflow: hidden;
    height: 300px;
    background-color: var(--hr-dark-blue);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lp-banner__inner {
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

.lp-banner__title {
    color: #fff;
}

.lp-banner__waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}

.lp-banner__waves img {
    width: 100%;
    display: block;
}

/* ================================
   Home Hero
   ================================ */
.home-hero {
       min-height: 700px;
       overflow: hidden;
   }
   
.home-hero__video {
       position: absolute;
       inset: 0;
       width: 100%;
       height: 100%;
       object-fit: cover;
       object-position: center;
       z-index: 0;
}

.home-hero .hr-hero-1 {
    color: #fff;
    margin-bottom: 0;
}

.home-hero .hr-hero-2 {
    margin-bottom: 0;
}

/* ================================
   Home Hero Wave
   ================================ */
.home-hero-wave {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 80px;
}

.home-hero-text {
    position: relative;
}

.home-hero-text p {
    font-family: "realist", sans-serif;
    font-size: 95px;
    font-weight: 800;
    line-height: 85px;
    text-transform: uppercase;
    margin-bottom: 0;
    width: fit-content;
}

.home-hero-text p:not(:last-child) {
    color: #fff;
    font-style: normal;
}

.home-hero-text p:last-child {
    color: var(--hr-bright-light-teal);
    font-style: italic;
    position: relative;
}

.home-hero-text p:last-child::after {
    content: '';
    position: absolute;
    left: calc(100% + 20px);
    top: 50%;
    transform: translateY(-50%);
    height: 63px;
    width: 90px;
    background: url('/wp-content/themes/highrise-2.0/imgs/hero-arrow.png') no-repeat left center;
    background-size: contain;
}

.home-hero-wave::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height:187px;
    width: 100%;
    line-height: 0;
    background: url('/wp-content/themes/highrise-2.0/imgs/home-hero-waves.png') no-repeat bottom center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 767.98px) {
    .home-hero-text p {
        font-size: 70px;
        line-height: 63px;
    }

    .home-hero-text p:last-child::after {
        width: 68px;
        height: 48px;
        left: calc(100% + 12px);
    }

    .home-hero-wave::after {
        bottom: -1px;
        background-size:cover;
        background-position:bottom right;
    }
}

@media (max-width: 375px) {
    .home-hero-text p:last-child::after {
        display: none;
    }
}

/* ================================
   Buttons
   ================================ */

.btn {
       display: inline-flex;
       align-items: center;
       gap: 8px;
       font-family: "Poppins", sans-serif;
       font-weight: 500;
       text-decoration: none;
       border: 2px solid transparent;
       border-radius: 10px;
       cursor: pointer;
       position: relative;
       overflow: hidden;
       transition: background-color var(--hr-duration-micro) var(--hr-ease),
                   color var(--hr-duration-micro) var(--hr-ease),
                   border-color var(--hr-duration-micro) var(--hr-ease);
       line-height: 1;
   }
   
.btn::before {
       content: '';
       position: absolute;
       top: 0;
       left: -100%;
       width: 70%;
       height: 100%;
       background: linear-gradient(
           120deg,
           transparent 0%,
           rgba(255, 255, 255, 0.22) 50%,
           transparent 100%
       );
       transform: skewX(-20deg);
   }
   
   .btn:hover::before {
       left: 140%;
       transition: left 600ms var(--hr-ease);
   }

.btn svg { flex-shrink: 0; }

.btn--sm  { padding: 11px 23px 11px; font-size: 14px; }
.btn--md  { padding: 11px 23px 11px; font-size: 16px; }
.btn--lg  { padding: 16px 39px 16px; font-size: 18px; }
.btn--full { display: flex; width: 100%; justify-content: center; }

.btn.btn--teal {
    background-color: var(--hr-light-teal);
    border-color: var(--hr-light-teal);
    color: var(--hr-navy);
}
.btn.btn--teal:hover {
    background-color: var(--hr-bright-light-teal);
    border-color: var(--hr-bright-light-teal);
    color: var(--hr-navy);
}

.btn.btn--blue {
    background-color: var(--hr-dark-blue);
    border-color: var(--hr-dark-blue);
    color: #fff;
}
.btn.btn--blue:hover {
    background-color: var(--hr-navy);
    border-color: var(--hr-navy);
    color: #fff;
}

.btn.btn--outline {
    background-color: transparent;
    border-color: var(--hr-light-teal);
    color: var(--hr-dark-blue);
}


.btn.btn--outline:hover {
    background-color: var(--hr-light-teal);
    color: var(--hr-navy);
}

/* ================================
   Team List — Standard Layout
   (Commissioners, Executive Leadership, Police Dept)
   ================================ */
.team-list--standard .team-card {
    padding: var(--wp--preset--spacing--copy-gap) 0;
    border-bottom: 1px solid var(--hr-light-gray);
}

.team-list--standard .team-card:last-child {
    border-bottom: none;
}

.team-card__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.team-card__meta {
    gap: 0;
}

/* Pipe separator — 15px on each side between meta items */
.team-card__meta-item + .team-card__meta-item::before {
    content: '|';
    padding: 0 15px;
    color: var(--hr-grey);
}

.team-card__meta-item {
    color: var(--hr-grey);
}

a.team-card__meta-item {
    text-decoration: underline;
    color: var(--hr-grey);
}

.team-card__excerpt {
    margin-top: var(--col-space-md);
    margin-bottom: 0;
}

/* ================================
   Single Team Member
   ================================ */
.single-team {
    padding: var(--wp--preset--spacing--fluffy) 0;
}

.team-card__photo img {
    height: 300px;
    object-fit: cover;
    object-position: top;
}

.team-card__bio {
    margin-top: var(--col-space-md);
}

.team-card__cta {
    margin-top: var(--col-space-md);
}

/* ================================
   Team List — Personnel Layout
   ================================ */
.team-list--personnel .team-list__grid {
    row-gap: var(--wp--preset--spacing--copy-gap);
}

@media (max-width: 782px) {
    .team-card__photo {
        padding-bottom: 20px;
    }
    .team-card__photo img {
        height: 450px;
        margin-bottom: 15px;
        object-fit: cover;
    }
    .team-card__meta-item + .team-card__meta-item::before {
        display: none;
    }
}

@media (max-width: 425px) {
    .team-card__photo img {
        height: 350px;
    }
}
/* ================================
   Single Post
   ================================ */
.single-post-page {
    padding: var(--wp--preset--spacing--fluffy) 0;
}

.single-post__row {
    padding-bottom: var(--wp--preset--spacing--copy-gap);
}

.single-post__title {
    margin-bottom: var(--col-space-xs);
}

.single-post__meta {
    color: var(--hr-grey);
    margin-bottom: var(--col-space-xs);
}

.single-post__date,
.single-post__category {
    color: var(--hr-dark-grey);
}

.single-post__utility {
    padding-bottom: var(--col-space-xs);
    margin-bottom: var(--col-space-md);
}

.single-post__read-time {
    font-size: var(--small-copy);
    color: var(--hr-grey);
}

.single-post__share {
    background: none;
    border: none;
    padding: 0;
    font-size: var(--small-copy);
    color: var(--hr-dark-blue);
    text-decoration: underline;
    cursor: pointer;
}

.single-post__featured-img {
    margin-bottom: var(--col-space-md);
}

.single-post__featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post__sidebar {
    padding-left: var(--col-space-md);
    padding-right: var(--col-space-md);
}

@media (max-width: 1024px) {
    .single-post__sidebar {
        padding: 0;
        margin-top: var(--col-space-xl);
    }
}

.single-post__related-heading {
    margin-bottom: var(--col-space-md);
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: var(--col-space-md);
}

.related-post-card,
.post-nav__card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--card-light-teal-20);
    border-radius: var(--card-radius);
    padding: var(--col-space-md);
}

.related-post-card__date {
    font-size: var(--small-copy);
    color: var(--hr-dark-grey);
}

.related-post-card__title {
    margin: 0;
}

.related-post-card__excerpt {
    margin: 0;
    font-size: var(--small-copy);
}

.related-post-card__link {
    color: var(--hr-dark-blue);
    text-decoration: underline;
    font-size: var(--small-copy);
}

/* ================================
   Post Navigation (Prev / Next)
   ================================ */
.post-nav {
    padding: var(--wp--preset--spacing--fluffy) 0;
}

.post-nav__label {
    margin-bottom: 15px;
    color: var(--hr-dark-blue);
}

.post-nav__date {
    font-size: var(--small-copy);
    color: var(--hr--dark-grey);
}

.post-nav__title {
    margin: 0;
}

.post-nav__title a {
    color: var(--hr-dark-blue);
    text-decoration: none;
}

.post-nav__link {
    color: var(--hr-dark-blue);
    text-decoration: underline;
    font-size: var(--small-copy);
}

/* ================================
   Home Stats Section
   ================================ */
p.home-stats-number {
    font-family: "quatro-slab", serif;
    font-size: 25px;
    font-weight: 600;
    font-style: normal;
    line-height: normal;
    color: var(--hr-dark-blue);
    margin-bottom: 0;
}

.home-stats-intro {
    max-width: 488px;
}

@media (max-width: 768px) {
    .home-stats-intro { width: 100%; }
}

/* ================================
   Contact CTA Section
   ================================ */
.contact-cta {
    padding: var(--wp--preset--spacing--fluffy) 0;
    border-top: 1px solid var(--hr-light-gray);
}

.contact-cta .btn {
    margin-bottom: var(--col-space-md);
}

.contact-cta__media-link {
    color: var(--hr-dark-blue);
    text-decoration: underline;
}

/* ================================
   Layout Utilities
   ================================ */

/* Teal wave shape along the bottom of any section */
.has-wave-bottom {
    position: relative;
    overflow: hidden;
}

.has-wave-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 292px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 292' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 26.6578C109.965 -1.50848 243.563 -4.77789 367.804 4.97517C492.044 14.7283 609.919 36.5214 728.334 56.2779C846.749 76.0344 968.791 94.0566 1094.8 95.7232C1220.19 97.3814 1351.57 80.9264 1440 40.3131V291.109H0V26.6578Z' fill='%236FC8DF'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================================
   News Landing Template
   ============================================================================ */

/* Intro */
.news-landing__intro {
    padding: var(--wp--preset--spacing--copy-gap) 0;
}

.news-landing__heading {
    margin-bottom: var(--heading-mb);
}

/* Featured section */
.news-landing__featured {
    background-color: var(--card-light-teal-20);
    padding: var(--wp--preset--spacing--copy-gap) 0;
}

.news-landing__featured-container {
    position: relative;
}

.news-landing__section-title {
    margin-bottom: var(--col-space-md);
}

.news-landing__featured-img {
    overflow: hidden;
    border-radius: 10px;
}

.news-landing__featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-landing__featured-content {
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-landing__featured-arrow {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity:20%;
}

@media (max-width: 767.98px) {
    .news-landing__featured-content {
        padding-left: 0;
        padding-top: 50px;
    }
}

/* Repeater sections */
.news-landing__section {
    border-bottom: 1px solid var(--hr-light-gray);
    padding: var(--wp--preset--spacing--fluffy) 0;
}

.news-landing__section:last-child{
    border-bottom:0 !important;
}

.news-landing__section-cta {
    margin-top: var(--col-space-md);
}

/* ================================
   Archive Template
   ================================ */

.archive-page__inner {
    padding-top: var(--col-space-xl);
    padding-bottom: var(--col-space-xl);
}

@media (min-width: 1025px) {
    .archive-post-col {
        padding-right: var(--wp--preset--spacing--fluffier);
    }
}

/* Post list items */
.archive-post {
    padding-bottom: var(--col-space-xl);
    margin-bottom: var(--col-space-xl);
    border-bottom: 1px solid var(--hr-light-gray);
}

.archive-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.archive-post__title {
    margin-bottom: 0;
}

.archive-post__title a {
    color: inherit;
    text-decoration: none;
}


.archive-post__date {
    font-size: var(--small-copy);
    color: var(--hr-dark-grey);
    margin-bottom: 20px;
}

.archive-post__read-time {
    font-size: var(--small-copy);
    color: var(--hr-dark-grey);
    margin-bottom: 20px;
}

.archive-post__excerpt {
    margin-bottom: 35px;
}

.report-archive-page {
    padding-top: var(--wp--preset--spacing--fluffy);
}

.reports-back-btn{
    padding-top:var(--wp--preset--spacing--copy-gap);
    padding-bottom: var(--wp--preset--spacing--fluffy);
}

/* ================================
   Investment Card Component
   (used by investment-projects block and wave-feature project list)
   ================================ */

.investment-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.investment-card__types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--heading-mb);
}

.investment-card__title {
    font-size: 22px;
    margin-bottom: var(--heading-mb-sm);
}

.investment-card__excerpt {
    flex: 1;
    margin-bottom: var(--heading-mb);
}

/* ================================
   Single Investment Project
   ================================ */

.single-investment-project {
    padding-top: var(--col-space-xl);
    padding-bottom: var(--wp--preset--spacing--fluffy);
}

.investment-project__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--copy-gap);
}

.investment-project__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--card-radius);
}

.investment-project__photo-caption {
    font-size: var(--small-copy);
    color: var(--hr-dark-grey);
    margin-top: 8px;
    margin-bottom: 0;
}

.investment-project__photo a {
    display: block;
    cursor: zoom-in;
}

.investment-project__all-projects-title {
    font-size: 22px;
    margin-bottom: var(--heading-mb);
}

.investment-project__project-link {
    display: block;
    color: var(--hr-dark-blue);
    text-decoration: none;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 0;
    font-size: 16px;
    border-bottom: 1px solid var(--hr-light-gray);
    transition: padding-left 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.investment-project__project-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.investment-project__project-link:first-child:hover {
    padding-left: 8px;
    color: var(--hr-light-teal);
}

.investment-project__project-link:not(:first-child):hover {
    padding-left: 8px;
    color: var(--hr-light-teal);
    background-color: var(--card-light-teal-20);
}

.investment-project__back-btn {
    margin-top: var(--wp--preset--spacing--copy-gap);
}

.investment-project__modal-img {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.investment-project__modal-img img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767.98px) {
    .investment-project__sidebar {
        margin-top: var(--wp--preset--spacing--copy-gap);
    }
}

/* Pagination */
.archive-pagination {
    margin-top: var(--col-space-xl);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--hr-light-gray);
    border-radius: 5px;
    color: var(--hr-dark-blue);
    text-decoration: none;
    font-size: var(--small-copy);
    font-weight: 600;
    transition: var(--card-transition);
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background-color: var(--hr-dark-blue);
    border-color: var(--hr-dark-blue);
    color: #fff;
}

/* Sidebar */
@media (max-width: 1024px) {
    .archive-sidebar {
        margin-top: var(--col-space-xl);
    }
}

.archive-sidebar__heading {
    margin-bottom: var(--heading-mb);
}

.archive-sidebar__cat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--col-space-xl) 0;
}

.archive-sidebar__cat-item {
    margin-bottom: 20px;
}

.archive-sidebar__cat-item:last-child {
    margin-bottom: 0;
}

.archive-sidebar__cat-link {
    color: var(--hr-dark-blue);
    text-decoration: underline;
    font-size: 16px;
    font-weight: 400;
}

.archive-sidebar__recent {
    margin-top: 0;
}

/* ── Global Alert ────────────────────────────────────────────────────────── */

.global-alert {
    background-color: var(--hr-bright-light-teal);
    height: 50px;
    display: flex;
    align-items: center;
    color: var(--hr-navy);
}

.global-alert p{
    margin-bottom: 0 !important;
}

.global-alert__content {
    color: var(--hr-navy);
    font-family: "Poppins", sans-serif;
    margin: 0;
}

/* ================================================================
   Transitions
   All transition declarations live here. Structural show/hide
   states (opacity, visibility, transform) stay with each component.
   ================================================================ */

/* ── Mega Menu ──────────────────────────────────────────────────── */
.mega-menu             { transition: clip-path var(--hr-duration-standard) var(--hr-ease), visibility var(--hr-duration-standard) var(--hr-ease); }
.mega-menu__sidebar,
.mega-menu__panels     { transition: opacity 0.2s ease-in; }
.main-nav__item--has-mega.is-open .mega-menu__sidebar,
.main-nav__item--has-mega.is-open .mega-menu__panels { transition-delay: 80ms; }
.mega-menu__panel      { transition: opacity var(--hr-duration-micro) var(--hr-ease); }
.mega-menu__category   { transition: background-color var(--hr-duration-micro) var(--hr-ease); }
.mega-menu__card                   { transition: border-color var(--hr-duration-micro) var(--hr-ease); }
.mega-menu__card-title::after      { transition: transform var(--hr-duration-micro) var(--hr-ease); transition-delay: 75ms; }

/* ── Reduced Motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    :root {
        --hr-duration-micro:    0ms;
        --hr-duration-standard: 0ms;
        --hr-duration-enter:    0ms;
    }
}

img[src*="doubleclick.net/activity"] {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 9999; /* Ensures it stays above the footer */
  width: 1px;    /* Minimizes footprint */
  height: 1px;
  border: none;
}