/*
 * CTMeetings Housing theme ( ctmeetings_new site spec )
 *
 * Design language of ctmeetings.org : orange two tier header, full bleed photography with
 * left aligned white type, orange headings, tiles with a floating caption panel,
 * photo / text split sections, blue action buttons and a blue photo footer. Arial throughout.
 *
 * Loaded after housing_base/assets/css/housing-base.css ( forms , tables , checkout , account ... ).
 */

/* ======================================================================== tokens */
:root {
    --hs-orange: #F27124;
    --hs-orange-dark: #D45E15;
    --hs-orange-soft: #FDF0E7;
    --hs-blue: #3371E7;
    --hs-blue-dark: #2558C0;
    --hs-blue-soft: #EAF1FD;
    --hs-teal: #007095;
    --hs-red: #B32317;
    --hs-ink: #222222;
    --hs-ink-2: #494949;
    --hs-muted: #707174;
    --hs-line: #E0E0E0;
    --hs-paper: #F5F5F5;
    --hs-white: #FFFFFF;

    --hs-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
    --hs-radius: 4px;
    --hs-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    --hs-shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.16);
    --hs-max: 1240px;

    /* tokens of the shared housing styles */
    --hs-accent: var(--hs-orange);
    --hs-accent-dark: var(--hs-orange-dark);
    --hs-accent-soft: var(--hs-orange-soft);
    --hs-accent-rgb: 242, 113, 36;
    --hs-brand: var(--hs-blue);
    --hs-brand-dark: var(--hs-blue-dark);
    --hs-brand-soft: var(--hs-blue-soft);
    --hs-brand-rgb: 51, 113, 231;
}

/* ======================================================================== header */
.hs-header {
    background: var(--hs-orange);
    color: var(--hs-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    z-index: 1030;
}
.hs-header-inner {
    max-width: var(--hs-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
}
.hs-logo {
    display: flex;
    align-items: center;
    padding: 12px 28px 12px 0;
    margin-right: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.hs-logo img {
    height: 40px;
    width: auto;
    /* two colour logo shown in white on the orange bar, like ctmeetings.org */
    filter: brightness(0) invert(1);
}
.hs-header-right { flex: 1; display: flex; flex-direction: column; }
.hs-utility {
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 13px;
}
.hs-utility > * + * { border-left: 1px solid rgba(255, 255, 255, 0.35); padding-left: 12px; margin-left: 6px; }
.hs-header a { color: var(--hs-white); }
.hs-header a:hover { color: var(--hs-white); }
.hs-social a { display: inline-block; padding: 4px 6px; font-size: 14px; opacity: .95; }
.hs-social a:hover { opacity: 1; transform: translateY(-1px); }
.hs-utility-link { white-space: nowrap; }
.hs-utility-link:hover { text-decoration: underline; }
.hs-groupcode {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.hs-groupcode > i { opacity: .9; }
.hs-groupcode input {
    border: 0;
    border-radius: 3px;
    height: 26px;
    width: 150px;
    padding: 0 8px;
    font-size: 12px;
    color: var(--hs-ink);
    text-transform: uppercase;
}
.hs-groupcode input::placeholder { color: var(--hs-muted); }
.hs-groupcode button {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: var(--hs-white);
    height: 26px;
    width: 30px;
    border-radius: 3px;
    cursor: pointer;
}
.hs-groupcode button:hover { background: var(--hs-white); color: var(--hs-orange); }
.hs-nav { flex: 1; }
.hs-nav .navbar-nav .nav-link {
    color: var(--hs-white) !important;
    font-size: 16px;
    padding: 14px 13px !important;
    position: relative;
}
.hs-nav .navbar-nav .nav-link::after {
    content: "";
    position: absolute; left: 13px; right: 13px; bottom: 8px;
    height: 2px; background: var(--hs-white);
    transform: scaleX(0); transform-origin: left;
    transition: transform .2s ease;
}
.hs-nav .navbar-nav .nav-link:hover::after, .hs-nav .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.hs-nav .dropdown-menu { border: 0; border-top: 3px solid var(--hs-ink); border-radius: 0 0 var(--hs-radius) var(--hs-radius); box-shadow: var(--hs-shadow); }
.hs-nav .dropdown-item { color: var(--hs-ink) !important; padding: 8px 18px; }
.hs-nav .dropdown-item:hover { background: var(--hs-orange-soft); color: var(--hs-orange-dark) !important; }
.hs-nav .navbar-toggler { color: var(--hs-white); border: 0; font-size: 24px; padding: 10px 0 10px 14px; margin-left: auto; }

@media (max-width: 991px) {
    .hs-header-inner { flex-wrap: wrap; }
    .hs-logo { border-right: 0; padding-right: 0; }
    .hs-header-right { flex-direction: row; justify-content: flex-end; }
    .hs-nav { position: static; }
    .hs-nav .navbar-collapse { position: absolute; left: 0; right: 0; top: 100%; background: var(--hs-orange); padding: 6px 20px 16px; box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18); }
    .hs-nav .navbar-nav .nav-link { padding: 10px 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
    .hs-nav .navbar-nav .nav-link::after { display: none; }
    .hs-groupcode-mobile { margin-top: 14px; }
    .hs-groupcode-mobile input { flex: 1; height: 38px; font-size: 14px; }
    .hs-groupcode-mobile button { height: 38px; width: 42px; }
    .hs-nav .dropdown-menu { background: transparent; box-shadow: none; border: 0; }
    .hs-nav .dropdown-item { color: var(--hs-white) !important; }
}

/* ======================================================================== buttons & links */
.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    border-radius: var(--hs-radius);
    padding: 12px 28px;
    font-family: var(--hs-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.hs-btn:active { transform: translateY(1px); }
.hs-btn[disabled] { opacity: .55; cursor: not-allowed; }
.hs-btn-primary { background: var(--hs-orange); color: var(--hs-white) !important; }
.hs-btn-primary:hover { background: var(--hs-orange-dark); color: var(--hs-white) !important; }
.hs-btn-secondary { background: var(--hs-blue); color: var(--hs-white) !important; }
.hs-btn-secondary:hover { background: var(--hs-blue-dark); color: var(--hs-white) !important; }
.hs-btn-ghost { background: transparent; border-color: var(--hs-blue); color: var(--hs-blue) !important; }
.hs-btn-ghost:hover { background: var(--hs-blue); color: var(--hs-white) !important; }
.hs-btn-block { display: flex; width: 100%; }
.hs-link { background: none; border: 0; padding: 0; color: var(--hs-blue); font-weight: 700; cursor: pointer; }
.hs-link:hover { color: var(--hs-blue-dark); text-decoration: underline; }
.hs-more { color: var(--hs-ink) !important; font-size: 15px; white-space: nowrap; }
.hs-more i { color: var(--hs-orange); transition: transform .15s ease; }
.hs-more:hover { text-decoration: none; }
.hs-more:hover i, a:hover > .hs-more i { transform: translateX(3px); }
/* bootstrap buttons used by shared components */
.hs-body .btn.btn-primary { background: var(--hs-blue); border-color: var(--hs-blue); border-radius: var(--hs-radius); }
.hs-body .btn.btn-primary:hover { background: var(--hs-blue-dark); border-color: var(--hs-blue-dark); }

/* ======================================================================== hero */
.hs-hero {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--hs-white);
    background: #2d2d2d url("../img/ctmeetingsback.jpg") center 60% / cover no-repeat;
    min-height: 300px;
    padding: 70px 0;
}
.hs-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.78) 0%, rgba(18, 18, 18, 0.45) 50%, rgba(18, 18, 18, 0.12) 100%);
}
.hs-hero > .hs-wrap { position: relative; }
.hs-hero-lg { min-height: 620px; align-items: flex-end; padding-bottom: 120px; }
.hs-hero-md { min-height: 420px; padding-bottom: 110px; }
.hs-hero-sm { min-height: 320px; }
.hs-hero-xs { min-height: 220px; padding: 50px 0; }
.hs-hero-copy { max-width: 720px; }
.hs-hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 14px;
    color: var(--hs-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hs-hero-lg h1 { font-size: 72px; text-transform: uppercase; }
.hs-hero p { font-size: 18px; max-width: 560px; margin-bottom: 0; color: rgba(255, 255, 255, 0.95); }
.hs-hero-lead { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; margin-bottom: 8px !important; }
.hs-hero-meta { font-size: 16px !important; }
.hs-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 34px;
    position: relative;
}
.hs-kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 3px; background: var(--hs-orange); }
.hs-back { display: inline-block; color: var(--hs-white) !important; font-size: 14px; margin-bottom: 14px; opacity: .9; }
.hs-back:hover { opacity: 1; text-decoration: none; }
.hs-back + .hs-kicker { display: block; width: max-content; }
.hs-hero-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 28px; }
.hs-underline-link {
    color: var(--hs-white) !important;
    font-weight: 700;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--hs-orange);
}
.hs-underline-link:hover { text-decoration: none; border-color: var(--hs-white); }

/* ======================================================================== search bar */
.hs-searchbar {
    position: relative;
    z-index: 2;
    margin-top: -64px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    background: var(--hs-white);
    border-top: 4px solid var(--hs-orange);
    border-radius: 0 0 var(--hs-radius) var(--hs-radius);
    box-shadow: var(--hs-shadow-lg);
    padding: 22px 24px 24px;
    max-width: calc(var(--hs-max) - 40px);
}
.hs-searchbar .hs-field { flex: 1 1 180px; }
.hs-searchbar .hs-field-grow { flex: 3 1 300px; }
.hs-searchbar-btn { flex: 0 0 auto; min-height: 46px; }

/* ======================================================================== tiles ( photo + floating caption panel ) */
.hs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.hs-tiles-2 { grid-template-columns: repeat(2, 1fr); }
.hs-tile { display: flex; flex-direction: column; }
.hs-tile-media {
    position: relative;
    display: block;
    height: 230px;
    background: #DDD center / cover no-repeat;
    border-radius: var(--hs-radius) var(--hs-radius) 0 0;
    overflow: hidden;
}
.hs-tile-media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .2s ease; }
.hs-tile:hover .hs-tile-media::after { background: rgba(0, 0, 0, 0.12); }
.hs-datebadge {
    position: absolute; z-index: 1;
    top: 14px; left: 14px;
    background: var(--hs-orange);
    color: var(--hs-white);
    text-align: center;
    width: 58px;
    padding: 6px 0 7px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--hs-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.hs-datebadge b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.hs-tile-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: -46px 16px 0;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    box-shadow: var(--hs-shadow);
    padding: 18px 20px 18px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.hs-tile:hover .hs-tile-panel { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14); transform: translateY(-3px); }
.hs-tile-panel h3 { font-size: 21px; font-weight: 600; line-height: 1.25; margin: 0 0 10px; }
.hs-tile-panel h3 a { color: var(--hs-orange); }
.hs-tile-panel h3 a:hover { color: var(--hs-orange-dark); text-decoration: none; }
.hs-tile-panel .hs-more { margin-top: auto; padding-top: 8px; }
.hs-tile-panel-center { text-align: center; }
.hs-tile-panel-center p { font-size: 14px; color: var(--hs-ink-2); }
.hs-meta { list-style: none; padding: 0; margin: 0 0 6px; font-size: 14px; color: var(--hs-ink-2); }
.hs-meta li { margin-bottom: 4px; display: flex; gap: 8px; }
.hs-meta i { color: var(--hs-orange); width: 14px; text-align: center; margin-top: 3px; }
.hs-choice {
    display: block;
    border: 1px solid var(--hs-line);
    border-top: 4px solid var(--hs-orange);
    border-radius: var(--hs-radius);
    padding: 34px 30px;
    color: var(--hs-ink) !important;
    box-shadow: var(--hs-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hs-choice:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14); }
.hs-choice > i { font-size: 34px; color: var(--hs-orange); margin-bottom: 14px; }
.hs-choice h3 { font-size: 26px; font-weight: 700; color: var(--hs-orange); }

/* ======================================================================== logo stage ( events list tiles )
 * Event images are logos of any shape : the whole logo sits in a white frame , over a blurred and
 * softened copy of itself so every tile still gets a full , colourful header. No logo ( or a missing
 * upload ) : the tile keeps the CT photo behind it. */
.hs-tile-media { background-image: url("../img/ctmeetingsback.jpg"); }
.hs-logo-stage { background: var(--hs-paper); }
.hs-logo-backdrop {
    position: absolute;
    inset: -30px;
    background: center / cover no-repeat;
    filter: blur(22px) saturate(1.3);
    opacity: .55;
    transform: scale(1.1);
}
.hs-logo-stage::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 100%);
}
.hs-logo-frame {
    /* left gutter keeps the date badge ( 14px + 58px wide ) clear of the logo , the bottom clears the caption panel overlap */
    position: absolute;
    top: 14px; bottom: 60px; left: 86px; right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--hs-white);
    border-radius: 6px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    z-index: 1;
    transition: transform .25s ease;
}
.hs-logo-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.hs-tile:hover .hs-logo-frame { transform: scale(1.03); }
.hs-tile-media:not(.hs-logo-stage) .hs-logo-backdrop, .hs-tile-media:not(.hs-logo-stage) .hs-logo-frame { display: none; }
.hs-datebadge { z-index: 2; }
.hs-logo-stage::after { display: none; }

/* ======================================================================== home + content pages */
.hs-feature-row { position: relative; z-index: 2; margin-top: -80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hs-feature {
    display: block;
    background: var(--hs-white);
    color: var(--hs-ink) !important;
    padding: 28px 26px 24px;
    border-radius: var(--hs-radius);
    box-shadow: var(--hs-shadow-lg);
    transition: transform .2s ease;
}
.hs-feature:hover { transform: translateY(-4px); text-decoration: none; }
.hs-feature h3 { color: var(--hs-orange); font-size: 23px; font-weight: 700; margin: 0 0 8px; }
.hs-feature p { color: var(--hs-ink-2); font-size: 15px; }
.hs-feature-icon { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 50%; background: var(--hs-orange-soft); color: var(--hs-orange); font-size: 22px; margin-bottom: 14px; }
.hs-feature-orange { background: var(--hs-orange); color: var(--hs-white) !important; }
.hs-feature-orange h3, .hs-feature-orange p, .hs-feature-orange .hs-more, .hs-feature-orange .hs-more i { color: var(--hs-white) !important; }
.hs-feature-orange .hs-feature-icon { background: rgba(255, 255, 255, 0.2); color: var(--hs-white); }
.hs-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 70px; background: var(--hs-paper); }
.hs-split-img { min-height: 440px; background: center / cover no-repeat; }
.hs-split-body { padding: 70px 60px; align-self: center; max-width: 640px; }
.hs-split-body h2 { color: var(--hs-orange); font-size: 44px; font-weight: 700; margin-bottom: 14px; }
.hs-lead { color: var(--hs-blue); font-size: 20px; }
.hs-split-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hs-numbered { counter-reset: ct; list-style: none; padding: 0; margin: 0 0 26px; }
.hs-numbered li { counter-increment: ct; position: relative; padding: 10px 0 10px 50px; border-bottom: 1px solid var(--hs-line); }
.hs-numbered li::before {
    content: counter(ct);
    position: absolute; left: 0; top: 8px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--hs-orange); color: var(--hs-white);
    font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hs-timeline { list-style: none; padding: 0 0 0 18px; margin: 0 0 16px; border-left: 2px solid var(--hs-orange); }
.hs-timeline li { position: relative; padding: 0 0 16px 18px; color: var(--hs-ink-2); }
.hs-timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--hs-white); border: 3px solid var(--hs-orange); }
.hs-timeline strong { display: block; color: var(--hs-ink); }

/* ======================================================================== footer */
.hs-footer { position: relative; margin-top: 90px; color: var(--hs-white); background: var(--hs-blue); overflow: hidden; }
.hs-footer::before {
    /* the CT photo washed in CT blue, like the ctmeetings.org footer */
    content: "";
    position: absolute; inset: 0;
    background: url("../img/lighthouse.jpg") center 40% / cover no-repeat;
    opacity: 0.16;
    mix-blend-mode: luminosity;
}
.hs-footer > * { position: relative; }
.hs-footer a { color: var(--hs-white) !important; }
.hs-footer-top { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.hs-footer-row { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; }
.hs-footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; padding: 26px 0; }
.hs-footer-logo img { height: 46px; width: auto; filter: brightness(0) invert(1); }
.hs-footer .hs-social a { font-size: 18px; margin-right: 8px; }
.hs-footer-cta { display: flex; align-items: center; gap: 14px; padding: 20px 0 20px 34px; border-left: 1px solid rgba(255, 255, 255, 0.3); text-align: right; font-size: 22px; font-weight: 700; line-height: 1.15; }
.hs-footer-cta small { display: block; font-size: 15px; font-weight: 400; opacity: .9; }
.hs-footer-cta i { font-size: 34px; }
.hs-footer-cta:hover { text-decoration: none; }
.hs-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 10px; font-size: 14px; }
.hs-footer-bottom address { margin: 0; line-height: 1.6; }
.hs-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; max-width: 520px; align-content: flex-start; }
.hs-copy { padding-top: 14px; padding-bottom: 28px; font-size: 12px; opacity: .85; }

/* ======================================================================== responsive */
@media (max-width: 1100px) {
    .hs-hotel-side > .hs-btn { width: auto; }
}
@media (max-width: 991px) {
    .hs-tiles { grid-template-columns: repeat(2, 1fr); }
    .hs-split-grid { grid-template-columns: 1fr; }
    .hs-feature-row { grid-template-columns: 1fr; margin-top: -60px; }
    .hs-split { grid-template-columns: 1fr; }
    .hs-split-img { min-height: 280px; }
    .hs-split-body { padding: 40px 24px; }
    .hs-footer-cta { border-left: 0; padding-left: 0; text-align: left; }
    .hs-footer-links { justify-content: flex-start; }
}
@media (max-width: 767px) {
    .hs-hero { min-height: 260px; padding: 50px 0; }
    .hs-hero-lg { min-height: 520px; padding-bottom: 100px; }
    .hs-hero-md { padding-bottom: 90px; }
    .hs-hero h1 { font-size: 36px; }
    .hs-hero-lg h1 { font-size: 46px; }
    .hs-tiles, .hs-tiles-2 { grid-template-columns: 1fr; }
    .hs-searchbar { margin-left: 16px; margin-right: 16px; width: auto; padding: 18px 16px; }
    .hs-searchbar .hs-field, .hs-searchbar-btn { flex: 1 1 100%; }
}

/* ======================================================================== photos of the shared views */
.hs-auth-visual { background-image: url("../img/ctmeetingsback.jpg"); }
