:root {
    --ink: #17323a;
    --muted: #60717a;
    --line: #d8e3e4;
    --brand: #147c7c;
    --brand-dark: #0d5558;
    --accent: #1b8f8a;
    --accent-dark: #116764;
    --paper: #ffffff;
    --soft: #eef6f5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f8fbfb;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
    padding: 12px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    max-width: min(560px, 42vw);
    font-weight: 800;
}

.brand img {
    width: auto;
    max-width: min(430px, 40vw);
    height: 66px;
    object-fit: contain;
}

.brand.has-logo {
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    color: white;
    background: var(--brand);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a,
.nav-parent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-parent::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
}

.main-nav a:hover,
.nav-parent:hover,
.nav-group:focus-within .nav-parent,
.nav-group:hover .nav-parent {
    color: var(--brand-dark);
    background: var(--soft);
}

.nav-group:hover .nav-parent::after,
.nav-group:focus-within .nav-parent::after {
    transform: translateY(2px) rotate(225deg);
}

.nav-group {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.nav-flyout {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: grid;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 45px rgba(15, 44, 52, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

.nav-flyout::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.nav-flyout a {
    display: block;
    padding: 10px 12px;
    white-space: nowrap;
}

.nav-group:hover .nav-flyout,
.nav-group:focus-within .nav-flyout {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    border: 0;
    background: linear-gradient(135deg, var(--brand-dark), var(--accent));
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    font-size: 24px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nav-toggle.is-active {
    background: linear-gradient(135deg, var(--accent-dark), var(--brand));
    box-shadow: 0 12px 28px rgba(20, 83, 86, .24);
    transform: rotate(90deg);
}

.hero-slider {
    position: relative;
    min-height: clamp(480px, 72vh, 760px);
    overflow: hidden;
    background: #12383f;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    padding: 80px clamp(20px, 6vw, 80px) 120px;
    color: white;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .8s ease, transform 1.2s ease;
    pointer-events: none;
    z-index: 0;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 35, 42, .88), rgba(6, 35, 42, .45), rgba(6, 35, 42, .2));
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.hero-content h1 {
    margin: 12px 0;
    font-size: clamp(36px, 7vw, 78px);
    line-height: 1.02;
}

.hero-content p {
    max-width: 620px;
    color: #e7f4f4;
    font-size: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 7px;
    font-weight: 800;
    cursor: pointer;
}

.primary {
    background: linear-gradient(135deg, var(--brand-dark), var(--accent));
    color: white;
    box-shadow: 0 10px 24px rgba(20, 83, 86, .16);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.secondary {
    color: white;
    background: var(--brand);
}

.primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--brand));
    box-shadow: 0 14px 30px rgba(20, 83, 86, .22);
    transform: translateY(-1px);
}

.slider-controls {
    position: absolute;
    right: clamp(20px, 5vw, 70px);
    bottom: 42px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.slider-controls button,
.slider-dots button {
    border: 0;
    cursor: pointer;
}

.slider-controls button {
    width: 46px;
    height: 46px;
    border-radius: 6px;
    color: white;
    background: rgba(255, 255, 255, .18);
    font-size: 32px;
}

.slider-dots {
    position: absolute;
    left: clamp(20px, 6vw, 80px);
    bottom: 58px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.slider-dots button {
    width: 28px;
    height: 4px;
    padding: 0;
    background: rgba(255, 255, 255, .45);
}

.slider-dots button.is-active {
    background: white;
}

.home-band,
.content-strip,
.two-column,
.page-hero {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.home-dynamic-section {
    width: min(1180px, calc(100% - 36px));
    margin: 28px auto 0;
}

.section-column-row {
    display: grid;
    grid-template-columns: repeat(var(--section-columns, 2), minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.home-section-column-row {
    width: min(1180px, calc(100% - 36px));
    margin: 28px auto 0;
}

.section-column-row .dynamic-section {
    width: 100%;
    height: 100%;
    margin-top: 0;
}

.section-column-row .column-section {
    min-height: 300px;
}

.home-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 46px 0;
}

.home-band h2,
.section-title h2,
.page-hero h1 {
    margin: 8px 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
}

.content-strip {
    width: min(1320px, calc(100% - 36px));
    padding: 52px 0 78px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.post-card,
.post-row,
.sidebar,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.post-card {
    min-height: 300px;
    overflow: hidden;
}

.post-card-body {
    padding: 20px;
}

.post-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e8f1f2;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card span,
.post-row span,
.side-link span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.post-card h3 {
    margin: 10px 0;
    font-size: 21px;
    line-height: 1.2;
}

.post-more-action {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.post-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid rgba(20, 124, 124, .22);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    box-shadow: 0 16px 34px rgba(20, 53, 61, .16);
    font-weight: 900;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.post-more-button span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: 22px;
    line-height: 1;
}

.post-more-button:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--brand));
    box-shadow: 0 20px 42px rgba(20, 53, 61, .22);
    transform: translateY(-2px);
}

.page-hero {
    padding: 58px 0 28px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-bottom: 70px;
}

.page-content,
.post-list {
    min-width: 0;
}

.rich-text {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.rich-text strong,
.rich-text b,
.section-rich-text strong,
.section-rich-text b {
    font-weight: 800;
}

.rich-text a,
.section-rich-text a {
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-text ul,
.rich-text ol,
.section-rich-text ul,
.section-rich-text ol {
    padding-left: 22px;
}

.contact-hero p {
    max-width: 780px;
    color: var(--muted);
    font-size: 18px;
}

.contact-page {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 76px;
}

.contact-primary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(20, 124, 124, .18);
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #14353d, #176b6c);
    box-shadow: 0 22px 60px rgba(20, 53, 61, .14);
}

.contact-primary-card h2 {
    margin: 8px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.contact-primary-card p {
    max-width: 720px;
    margin: 0;
    color: #d8ecec;
    font-size: 17px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.ghost-contact-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.contact-info-card {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(20, 53, 61, .07);
}

.contact-info-card.is-wide {
    grid-column: span 2;
}

.contact-info-card.is-link-card {
    grid-column: span 2;
}

.contact-info-card.bank-card {
    grid-column: span 2;
    background: linear-gradient(180deg, #fff, #f6fbfb);
}

.contact-info-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-info-card strong,
.contact-info-card a {
    min-width: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-info-card a {
    color: var(--brand-dark);
    font-size: clamp(16px, 1.35vw, 18px);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-info-card.is-link-card a {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.contact-info-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.contact-info-card code {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--brand-dark);
    background: #eef7f6;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 900;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dynamic-section {
    position: relative;
    min-height: 260px;
    margin-top: 22px;
    padding: 34px;
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.dynamic-section.type-image,
.dynamic-section.type-video {
    color: white;
}

.dynamic-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dynamic-section.type-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.dynamic-section > div {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.dynamic-section.has-cards > div {
    max-width: none;
}

.section-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.type-image .section-button-group .button,
.type-video .section-button-group .button {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.section-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.person-card {
    display: grid;
    gap: 14px;
    overflow: hidden;
    border: 1px solid rgba(20, 53, 61, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 32px rgba(20, 53, 61, .10);
}

.person-card,
.post-card[data-animate-card] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease, box-shadow .25s ease;
    transition-delay: var(--card-delay, 0ms);
}

.person-card.is-visible,
.post-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.person-card:hover,
.post-card:hover {
    box-shadow: 0 18px 38px rgba(20, 53, 61, .16);
}

.type-image .person-card,
.type-video .person-card {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
}

.person-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #e9f1f2;
}

.person-card > div {
    padding: 0 16px 16px;
}

.person-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.person-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    .person-card,
    .post-card[data-animate-card],
    .main-nav,
    .main-nav > a,
    .main-nav > .nav-group,
    .nav-toggle {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.sidebar {
    align-self: start;
    position: sticky;
    top: 96px;
    padding: 18px;
}

.sidebar h2 {
    margin: 6px 0 12px;
    font-size: 18px;
}

.side-link {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.side-group {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.side-group > strong {
    line-height: 1.25;
}

.side-group a {
    display: block;
    padding-left: 12px;
    color: var(--muted);
    font-size: 14px;
}

.side-link strong {
    display: block;
    line-height: 1.25;
}

.side-link time {
    color: var(--muted);
    font-size: 13px;
}

.post-row {
    margin-bottom: 16px;
    padding: 24px;
}

.post-row.has-image {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
}

.post-row-image {
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 6px;
}

.post-row h2 {
    margin: 8px 0;
}

.calendar-hero {
    padding-bottom: 18px;
}

.desk-calendar {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 72px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7fbfb;
    box-shadow: 0 22px 60px rgba(20, 53, 61, .12);
    overflow: hidden;
}

.calendar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    color: #fff;
    background: linear-gradient(135deg, #14353d, #176b6c);
}

.calendar-top h2 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 46px);
}

.calendar-turns {
    display: flex;
    gap: 8px;
}

.calendar-turns button {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 28px;
    cursor: pointer;
}

.calendar-book {
    position: relative;
    min-height: 660px;
    perspective: 1800px;
}

.calendar-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    position: absolute;
    inset: 0;
    padding: 26px;
    background: linear-gradient(90deg, #fff, #fff 72%, #f4f8f8);
    opacity: 0;
    transform: rotateY(-10deg) translateX(34px);
    transform-origin: left center;
    pointer-events: none;
    transition: opacity .35s ease, transform .65s cubic-bezier(.2,.72,.18,1);
}

.calendar-page.is-active {
    opacity: 1;
    transform: rotateY(0) translateX(0);
    pointer-events: auto;
}

.calendar-page.is-leaving {
    opacity: 0;
    transform: rotateY(12deg) translateX(-34px);
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-weekday {
    padding: 10px;
    border-radius: 8px;
    color: var(--muted);
    background: #edf5f5;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 96px;
    padding: 9px;
    border: 1px solid #dbe6e8;
    border-radius: 8px;
    background: #fff;
}

.calendar-day.is-muted {
    border-style: dashed;
    background: #f7fbfb;
}

.calendar-day.has-event {
    border-color: rgba(20, 124, 124, .55);
    background: linear-gradient(180deg, #f3fbfa, #ffffff);
    box-shadow: inset 0 0 0 2px rgba(20, 124, 124, .08), 0 10px 24px rgba(20, 53, 61, .08);
}

.calendar-day.has-event::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(27, 143, 138, .14);
}

.calendar-day.has-event-range::before {
    left: -9px;
    right: -9px;
    border-radius: 0;
}

.calendar-day.has-event-range.is-event-start::before {
    left: 10px;
    border-radius: 999px 0 0 999px;
}

.calendar-day.has-event-range.is-event-end::before {
    right: 10px;
    border-radius: 0 999px 999px 0;
}

.calendar-day.has-event-range.is-event-start.is-event-end::before {
    left: 10px;
    right: 10px;
    border-radius: 999px;
}

.calendar-event-marker {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(27, 143, 138, .2);
}

.calendar-day strong {
    position: relative;
    z-index: 1;
    color: var(--ink);
    font-size: 15px;
}

.calendar-event-pill {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    padding: 6px 7px;
    border-radius: 6px;
    color: #fff;
    background: var(--brand);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-month-events {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7fbfb;
}

.calendar-month-events h3 {
    margin: 0 0 4px;
}

.calendar-note {
    color: var(--muted);
}

.calendar-agenda-item {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.calendar-agenda-item time {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.calendar-agenda-item span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.text-link {
    color: var(--brand-dark);
    font-weight: 800;
}

.cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 18px;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.post-gallery-item {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.post-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .22s ease, filter .22s ease;
}

.post-gallery-item:hover img {
    filter: brightness(.88);
    transform: scale(1.04);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(8, 25, 31, .86);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.gallery-lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox img {
    max-width: min(1120px, 92vw);
    max-height: 82vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    transform: scale(.96);
    transition: transform .22s ease;
}

.gallery-lightbox.is-active img {
    transform: scale(1);
}

.lightbox-button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    font-size: 30px;
    cursor: pointer;
}

.lightbox-button:hover {
    background: rgba(255, 255, 255, .28);
}

.lightbox-close {
    top: 22px;
    right: 22px;
}

.lightbox-prev {
    left: 22px;
}

.lightbox-next {
    right: 22px;
}

.site-footer {
    padding: 46px clamp(18px, 4vw, 56px) 22px;
    color: #e9f5f5;
    background:
        linear-gradient(135deg, rgba(20, 53, 61, .96), rgba(13, 85, 88, .94)),
        #14353d;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .65fr) minmax(250px, .95fr);
    gap: clamp(26px, 5vw, 68px);
    width: min(1220px, 100%);
    margin: 0 auto;
}

.footer-brand-block {
    display: grid;
    align-content: start;
    gap: 18px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(360px, 100%);
    min-height: 104px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(5, 22, 28, .18);
}

.footer-logo img {
    display: block;
    width: 100%;
    max-height: 86px;
    object-fit: contain;
}

.site-footer p,
.footer-rich-text {
    max-width: 540px;
    color: #c9dbdc;
}

.footer-rich-text p {
    margin: 0 0 8px;
}

.footer-rich-text p:last-child {
    margin-bottom: 0;
}

.footer-rich-text ul,
.footer-rich-text ol {
    margin: 0;
    padding-left: 18px;
}

.footer-rich-text a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
}

.footer-links,
.footer-contact {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links h2,
.footer-contact h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 16px;
}

.footer-links a,
.footer-contact address > a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #d9e8e9;
    font-weight: 800;
}

.footer-links a::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.footer-links a:hover,
.footer-contact address > a:hover {
    color: #fff;
}

.site-footer address {
    display: grid;
    gap: 8px;
    font-style: normal;
    color: #c9dbdc;
}

.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.socials:empty {
    display: none;
}

.social-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: #e9f5f5;
    background: rgba(255, 255, 255, .08);
}

.social-icon:hover {
    color: #fff;
    background: var(--brand);
}

.social-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 18px;
    width: min(1220px, 100%);
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #a9c1c3;
    font-size: 13px;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 75px;
        left: 14px;
        right: 14px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        max-height: 0;
        padding: 0 14px;
        overflow: hidden;
        border: 1px solid rgba(216, 227, 228, 0);
        border-radius: 10px;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 24px 60px rgba(20, 53, 61, 0);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px) scale(.98);
        transform-origin: top center;
        backdrop-filter: blur(16px);
        transition:
            max-height .42s cubic-bezier(.2,.72,.18,1),
            padding .26s ease,
            opacity .22s ease,
            transform .34s cubic-bezier(.2,.72,.18,1),
            border-color .22s ease,
            box-shadow .34s ease;
    }

    .main-nav.is-open {
        max-height: calc(100vh - 94px);
        padding: 14px;
        border-color: var(--line);
        box-shadow: 0 24px 60px rgba(20, 53, 61, .16);
        opacity: 1;
        overflow: auto;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .main-nav > a,
    .main-nav > .nav-group {
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity .24s ease, transform .24s ease;
    }

    .main-nav.is-open > a,
    .main-nav.is-open > .nav-group {
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav.is-open > :nth-child(1) {
        transition-delay: .04s;
    }

    .main-nav.is-open > :nth-child(2) {
        transition-delay: .08s;
    }

    .main-nav.is-open > :nth-child(3) {
        transition-delay: .12s;
    }

    .main-nav.is-open > :nth-child(4) {
        transition-delay: .16s;
    }

    .main-nav.is-open > :nth-child(5) {
        transition-delay: .20s;
    }

    .main-nav.is-open > :nth-child(6) {
        transition-delay: .24s;
    }

    .main-nav.is-open > :nth-child(7) {
        transition-delay: .28s;
    }

    .brand {
        max-width: calc(100% - 58px);
    }

    .brand img {
        max-width: min(310px, 68vw);
        height: 54px;
    }

    .nav-group {
        display: grid;
    }

    .nav-parent {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .nav-parent::after {
        transform: translateY(-2px) rotate(45deg);
    }

    .nav-flyout {
        position: static;
        min-width: 0;
        margin-left: 12px;
        padding: 0;
        border: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-flyout::before {
        display: none;
    }

    .nav-flyout a {
        white-space: normal;
    }

    .home-band,
    .two-column,
    .section-column-row,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .home-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-page {
        grid-template-columns: 1fr;
        position: absolute;
        min-height: 0;
    }

    .calendar-book {
        min-height: 980px;
    }

    .calendar-month-events {
        max-height: 280px;
        overflow: auto;
    }

    .post-row.has-image,
    .post-gallery {
        grid-template-columns: 1fr;
    }

    .contact-primary-card,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-primary-card {
        align-items: start;
    }

    .contact-primary-card > div:first-child {
        grid-column: 1 / -1;
    }

    .contact-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .contact-info-card.is-wide,
    .contact-info-card.is-link-card,
    .contact-info-card.bank-card {
        grid-column: span 2;
    }

    .gallery-lightbox {
        padding: 18px;
    }

    .lightbox-button {
        width: 40px;
        height: 40px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding: 62px 20px 120px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .desk-calendar {
        width: min(100% - 20px, 1220px);
    }

    .calendar-top {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .calendar-book {
        min-height: 1040px;
    }

    .calendar-page {
        padding: 14px;
    }

    .calendar-month-grid {
        gap: 5px;
    }

    .calendar-day {
        min-height: 78px;
        padding: 6px;
    }

    .calendar-event-pill {
        padding: 5px;
        font-size: 10px;
    }

    .contact-page {
        width: min(100% - 20px, 1180px);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card.is-wide,
    .contact-info-card.is-link-card,
    .contact-info-card.bank-card {
        grid-column: span 1;
    }

    .contact-info-card.is-link-card a {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .contact-actions .button {
        width: 100%;
    }

    .site-footer {
        padding: 34px 20px 20px;
    }

    .footer-logo {
        width: 100%;
        min-height: 92px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}
