:root {
    --color-primary: #1f7a8c;
    --color-secondary: #E7ECEF;
    --color-third: #F5F749;
    --color-accent: #e76f51;
    --color-soft: #ffffff;
    
    --color-text: #1d1d1f;
    --color-muted: #596275;
    --top-bar-height: 6rem;
    --content-pad: 1rem;
    --content-pad-x: clamp(1rem, 3vw, 3rem);
    --content-bottom-pad: clamp(3rem, 6vw, 6rem);
    --layout-gap-xl: clamp(4rem, 10vw, 12rem);
    --layout-gap-lg: clamp(2rem, 6vw, 4rem);
    --layout-card-pad: clamp(1.5rem, 4vw, 3rem);
    --viewport-height: 100vh;
    --footer-height: 4.5rem;
    --home-section-card-size: 320px;
}

@supports (height: 100svh) {
    :root {
        --viewport-height: 100svh;
    }
}

@media (min-width: 900px) {
    :root {
        --home-section-card-size: 360px;
    }
}

@media (min-width: 1200px) {
    :root {
        --home-section-card-size: 420px;
    }
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--mud-typography-default-family);
    background: var(--color-soft);
    color: var(--color-text);
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

body::-webkit-scrollbar {
    display: none;
}

.home-stack {
    width: 100%;
    min-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
    display: flex;
    flex-direction: column;
    gap: var(--layout-gap-xl);
    margin: 0;
    padding: 0;
}

.info-stack {
    position: relative;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-bottom: calc(var(--content-bottom-pad) + 1rem);
}

.info-stack .mud-typography-body1 {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.info-feature-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.info-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(31, 122, 140, 0.18);
}

.info-paragraph {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.6rem;
}

.info-paragraph-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-inline: clamp(2rem, 8vw, 6rem);
    padding-block: 0.5rem;
}

.info-paragraph-icon {
    color: var(--color-primary);
    margin-top: 0.15rem;
}

.info-anim-1,
.info-anim-2 {
    opacity: 0;
    transform: translateY(10px);
    animation: info-fade-up 900ms ease forwards;
}

.info-anim-2 {
    animation-delay: 180ms;
}

@keyframes info-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-hero {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 70vh, 560px);
    max-width: none;
    padding: 0;
    padding-inline: 0;
    margin: 0;
}

.contact-stack {
    position: relative;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.home-carousel {
    width: 100%;
    min-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    height: 100%;
}

.home-carousel .hero {
    margin-bottom: 0;
}

.home-carousel-shell {
    width: 100%;
}

.home-carousel .mud-carousel-item {
    height: 100%;
}

.home-carousel .mud-carousel-item > .hero-transition,
.home-carousel .mud-carousel-item > .home-row {
    height: 100%;
}

.home-second {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    align-items: center;

}


.home-section-icon {
    color: var(--color-accent);
}

.home-sections {
    align-items: center;
    align-self: center;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    column-gap: 0rem;
    row-gap: 0.5rem;
    padding: 0 3rem 3rem;
    justify-items: center;
    
}

.home-sections,
.box-1 {
    position: relative;
    z-index: 1;
}

.home-flow {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--layout-gap-lg);
}

.home-flow-line {
    position: absolute;
    left: 0;
    right: 0;
    top: -6rem;
    bottom: 0;
    width: 100%;
    height: calc(100% + 12rem);
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.home-flow-track {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 40;
    opacity: 0.15;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-flow-trail {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 30;
    opacity: 0;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: var(--flow-length, 1);
    stroke-dashoffset: var(--flow-length, 1);
    transition: opacity 300ms ease;
}

.home-flow-head {
    opacity: 0;
    transition: opacity 300ms ease;
}

.home-flow-head-shape {
    transform-origin: center;
    transform-box: fill-box;
    transform: scale(var(--flow-head-scale-x, 1), 1);
}

.home-flow-head-core {
    fill: var(--color-accent);
}

.home-flow-head-glow {
    fill: var(--color-accent);
    opacity: 0.35;
}

.home-flow.is-visible .home-flow-head {
    opacity: 0.45;
}

.home-flow.is-visible .home-flow-trail {
    opacity: 0.65;
}

.home-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(16px);
    justify-content: center;
    padding: 0.5rem 0;

}

.home-container .home-second-title {
    max-width: 18ch;
    margin-inline: auto;
    text-wrap: balance;
}

.home-container .home-second-body {
    max-width: 32ch;
    margin-inline: auto;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.home-container.is-visible {
    animation: home-section-rise 1400ms ease forwards;
}

@keyframes home-section-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .home-sections {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        column-gap: 0;
    }

    .home-sections .home-container {
        width: 100%;
        max-width: min(var(--home-section-card-size), 100%);
        padding: 0;
        align-items: center;
    }

    .home-sections .box-1-card {
        width: min(var(--home-section-card-size), 100%);
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
}

@media (max-width: 1200px) {
    .home-flow-extra-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-flow-extra-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-flow-extra-grid {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: 1fr;
        overflow-x: visible;
        scroll-snap-type: none;
        scroll-padding-inline: 0;
        padding-inline: 0;
        margin-inline: 0;
        gap: 1.75rem;
        scrollbar-width: auto;
        -ms-overflow-style: auto;
    }

    .home-flow-extra-card {
        scroll-snap-align: none;
        min-height: 260px;
    }
}

.home-second-title {
    color: var(--color-primary);
    line-height: 1.3;
    padding-bottom: 1rem;
    text-align: center;
    text-decoration-line: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 0.25em;
    font-size: clamp(1.2rem, 1.2vw + 0.95rem, 1.9rem);
}

.home-second-body {
    color: var(--color-muted);
    font-weight: 700;
    font-size: clamp(0.95rem, 0.55vw + 0.85rem, 1.1rem);
    line-height: 1.65;
    margin-top: 1rem;
    text-align: center;

}

.box-1 {
    background: var(--color-secondary);
    border-radius: 0;
    min-height: 100px;
    align-self: center;
    display: block;
    width: 100%;
    margin: 0;
    padding: var(--layout-card-pad);
    opacity: 0;
    transform: translateY(16px);
}

.box-1.is-visible {
    animation: box-1-rise 1400ms ease forwards;
}

.home-flow-extra {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 5rem;
    padding: var(--layout-card-pad) var(--content-pad-x) 0;
}

.home-flow-header {
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0 var(--content-pad-x) 0;
    margin-bottom: 12rem;
    opacity: 0;
    transform: none;
}

.home-flow-header.home-container.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
}

.home-flow-longform {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--content-pad) var(--content-pad-x) 0;
    text-align: center;
}

.home-flow-longform-title {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    max-width: 920px;
    margin: 0 auto;
}

.home-flow-longform .home-flow-longform-title {
    margin-bottom: 3rem;
}

.home-flow-longform-body {
    color: var(--color-muted);
    font-weight: 700;
    line-height: 1.75;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.home-flow-longform-body + .home-flow-longform-body {
    margin-top: 1.5rem;
}

.home-flow-extra-title {
    color: var(--color-primary);
    text-align: center;
}

.home-flow-extra-body {
    color: var(--color-muted);
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    max-width: 720px;
}

.home-flow-extra-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.home-flow-extra-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.home-flow-extra-link:focus-visible .home-flow-extra-card {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 28px rgba(31, 122, 140, 0.18);
    border-color: rgba(31, 122, 140, 0.22);
    background-color: rgba(255, 255, 255, 0.95);
}

.home-flow-extra-card {
    width: 100%;
    min-height: clamp(200px, 22vw, 260px);
    padding: clamp(1rem, 1.2vw, 1.35rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.75rem, 1vw, 1rem);
    background-color: rgba(255, 255, 255, 1);
    position: relative;
    top: 16px;
    transform: none;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
    will-change: transform;
}

.home-flow-extra-card.is-visible {
    animation: home-flow-extra-rise 1400ms ease forwards;
    opacity: 1;
    top: 0;
}

.home-flow-extra-card:hover,
.home-flow-extra-card:focus-within {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 28px rgba(31, 122, 140, 0.18);
    border-color: rgba(31, 122, 140, 0.22);
    background-color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

@keyframes home-flow-extra-rise {
    from {
        opacity: 0;
        top: 16px;
    }
    to {
        opacity: 1;
        top: 0;
    }
}

.home-flow-extra-card-title {
    color: var(--color-primary);
    font-weight: 700;
}

.home-flow-extra-card-body {
    color: var(--color-muted);
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .home-flow-extra-card {
        min-height: clamp(180px, 28vw, 220px);
    }

    .home-flow-extra-card:hover,
    .home-flow-extra-card:focus-within,
    .home-flow-extra-link:focus-visible .home-flow-extra-card {
        transform: translateY(-2px) scale(1.01);
    }
}

@media (hover: none) {
    .home-flow-extra-card:hover,
    .home-flow-extra-card:focus-within,
    .home-flow-extra-link:focus-visible .home-flow-extra-card {
        transform: none;
    }
}

.box-1-grid {
    align-items: center;
    row-gap: 2rem;
}

.box-1-left {
    text-align: left;
}

.box-1-title {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.box-1-subtitle {
    color: var(--color-muted);
    line-height: 1.6;
    text-align: center;

}

.box-1-cards {
    width: 100%;
}

.box-1-cards .mud-grid-item-md-4 {
    background: var(--color-secondary);
}

.box-1-card {
    height: 100%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 700;
    padding: 1.5rem 1.25rem;
    padding-top: 1rem;
    margin: 0;
    display: flex;
    gap: 0.65rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-sections .box-1-card {
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 6px rgba(31, 122, 140, 0.45), inset 0 0 0 12px rgba(31, 122, 140, 0.22);
    width: min(var(--home-section-card-size), 100%);
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    align-self: center;
    justify-self: center;
}

.box-1-card-icon {
    color: var(--color-accent);
    font-size: 2rem;
}

.box-1-card-title {
    font-weight: 700;
    color: var(--color-text);
}

.box-1-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.box-1-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .box-1-left {
        text-align: center;
    }
}

@keyframes box-1-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-transition {
    opacity: 0;
    transition: opacity 1.2s ease;

}

.hero-transition.is-visible {
    opacity: 1;
}

.hero-transition.is-visible .hero-reveal,
.hero-transition.is-visible .hero-reveal-item {
    animation: hero-fade-up 0.8s ease both;
    animation-delay: var(--reveal-delay, 0ms);
}

.home-hero {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.home-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero-text {
    position: absolute;
    width: 70%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
    text-align: center;
}

.home-hero-paragraph {
    font-family: "Roboto Slab", "Montserrat", var(--mud-typography-default-family);
    font-weight: 800;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    opacity: 1;
    color: whitesmoke;
    letter-spacing: 0.08em;
    white-space: normal;
    text-align: center;
    padding: 0.75rem 1.5rem;
    width: 100%;
    border-radius: 10px;
    -webkit-text-stroke: 1px #000000;
    text-shadow:
        1px 1px 0 #000000,
        -1px 1px 0 #000000,
        1px -1px 0 #000000,
        -1px -1px 0 #000000;
    opacity: 0;
    animation: home-hero-text-fade 2s ease forwards;
    animation-delay: 0.8s;
}

.home-hero-paragraph {
    overflow-wrap: anywhere;
}

.home-hero-paragraph-first {
    font-size: clamp(1.1rem, 1.2vw + 0.9rem, 1.8rem);
    padding: 0rem;
}

.home-hero-paragraph-second {
    animation-delay: 2s;
    letter-spacing: 0.08em;
    padding: 0rem;
}
.home-hero-paragraph-third {
    animation-delay: 2.5s;
    font-size: clamp(1.05rem, 1vw + 0.85rem, 1.6rem);
    padding: 0rem;
}

.home-hero-paragraph-delayed {
    opacity: 0;
    display: inline-block;
    animation: home-hero-text-fade 2s ease forwards;
    animation-delay: 3.5s;
    font-size: inherit;
}
@keyframes home-hero-text-fade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero-ticks {
    position: absolute;
    right: 2.5rem;
    bottom: 1.5rem;
    display: flex;
    gap: 0.4rem;
    color: white;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
}

.home-hero-ticks .mud-icon-root {
    font-size: 1.25rem;
}


@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-bar {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding-left: calc(var(--content-pad-x) + env(safe-area-inset-left));
    padding-right: calc(var(--content-pad-x) + env(safe-area-inset-right));
    padding-top: calc(1rem + env(safe-area-inset-top));
    padding-bottom: 1rem;
}

.brand-text {
    letter-spacing: 0.04rem;
    font-weight: 700;
    color: var(--color-primary);
}

.brand-text-short {
    display: none;
}

.brand-link {
    text-decoration: none;
}

.brand-link:hover,
.brand-link:focus-visible {
    text-decoration: none;
}

.brand-stack {
    gap: 0rem;
}

.brand-logo {
    width: clamp(2rem, 1.3vw + 1.6rem, 2.6rem);
    height: clamp(2rem, 1.3vw + 1.6rem, 2.6rem);
    object-fit: cover;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
    margin-right: 0.55rem;
}

.nav-links .mud-nav-link {
    text-transform: none;
    font-weight: 600;
    color: var(--color-muted);
    padding: 0.4rem 0.8rem;
    text-align: center;
}

.nav-links .mud-nav-link-active {
    color: var(--color-accent);
}

.nav-links-mobile {
    display: none;
}

.mobile-drawer {
    padding-top: 10%;
    width: 35vw;
    max-width: 360px;
    min-width: 240px;
}

.mobile-drawer .mud-drawer-paper {
    width: 100%;
    padding: 2.25rem 1.75rem 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-drawer .mud-nav-link {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.55rem 0.4rem;
    border-radius: 10px;
    justify-content: flex-start;
    text-align: left;
}

.mobile-drawer .mud-nav-link:hover,
.mobile-drawer .mud-nav-link:focus-visible {
    background: rgba(31, 122, 140, 0.12);
}

.nav-menu-section {
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.95;
    color: var(--color-text);
    cursor: default;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    justify-content: flex-start;
    text-align: left;
    padding-left: 1.1rem;
}

.nav-menu-subitem {
    padding-left: 2.25rem;
    font-size: 0.2rem;
}

.nav-links {
    gap: 1.25rem;
}


.app-main {
    margin-top: var(--top-bar-height);
    padding-top: env(safe-area-inset-top);
    padding-left: calc(var(--content-pad-x) + env(safe-area-inset-left));
    padding-right: calc(var(--content-pad-x) + env(safe-area-inset-right));
    padding-bottom: calc(var(--content-bottom-pad) + env(safe-area-inset-bottom));
    margin-bottom: 1rem;

}

.not-found {
    min-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--footer-height) - var(--content-bottom-pad));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
}


.home-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
    min-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.home-row-card {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.home-row.is-visible .home-row-card {
    opacity: 1;
}

.home-carousel .home-row-card {
    opacity: 1;
}

.home-carousel .home-bullets {
    background-color: var(--color-accent);
    opacity: 0.1;
    width: 8px;
    height: 8px;
    margin-bottom: 0.5rem;
    transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    transform: scale(1);
    cursor: pointer;
    margin-inline: 0.4rem;
}

.home-carousel .home-bullets:hover {
    opacity: 0.6;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.2);
}

.home-carousel .mud-carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    padding-bottom: 0;
}

.home-row-grid {
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

.home-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    height: 100%;
    row-gap: 1rem;
}

.home-row.reverse .home-row-grid {
    flex-direction: row-reverse;
}

.home-row-grid .mud-grid-item {
    padding: 0;
    height: 100%;
}

.home-visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    padding: 0;
}

.home-body {
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.home-row-card .mud-typography-h5 {
    color: var(--color-text);
}

.home-row-card .info-button {
    background: var(--color-primary);
    color: white;
}

.home-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.home-visual .mud-image,
.home-visual .mud-image img,
.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-button {
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    text-transform: none;
    font-weight: 700;
}

.info-page {
    width: 80;
    border-radius: 0;
    padding: var(--content-pad) var(--content-pad-x);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    margin: clamp(4rem, 10vw, 9rem) auto 0;
    position: relative;
    text-align: center;
    z-index: 1;
    background: transparent;
}

.info-page .mud-typography-h4 {
    display: inline-block;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1.4rem;
}

.contact-page {
    width: 100%;
    opacity: 0.95;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    position: relative;
    min-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad) + 6rem);
    max-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-page::-webkit-scrollbar {
    display: none;
}

.contact-title {
    letter-spacing: 0.08rem;
    font-weight: 700;
    padding: 0rem, 1rem;
}

.contact-hero {
    width: 100%;
    background: var(--color-secondary);
    border-radius: 0;
    overflow: hidden;
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    z-index: 0;
    height: calc(var(--viewport-height) - var(--top-bar-height));
    min-height: calc(var(--viewport-height) - var(--top-bar-height));
    max-height: 80%;
}

.info-stack .contact-hero {
    height: min(calc(var(--viewport-height) - var(--top-bar-height)), 560px);
    min-height: 0;
    max-height: 560px;
}

.contact-hero .mud-image {
    width: 100%;
    height: 100%;
}

.contact-hero img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.info-stack .contact-hero .mud-image,
.info-stack .contact-hero img {
    max-height: clamp(320px, 70vh, 560px);
}

.contact-fade-title {
    color: var(--color-text);
    opacity: 0;
    padding: 1rem;
    animation-delay: 0.5;
    animation: contact-fade-title 1.5s ease forwards;
}

.contact-slide-up {
    width: 100%;
    opacity: 0;
    animation-delay: 1.5;
    animation: contact-slide-up 1.5s ease forwards;
    padding: 0rem;
    size-adjust:inherit;
}

.elevator-reveal {
    width: 100%;
    opacity: 0;
    transform: translateY(24px);
}

.elevator-reveal.is-visible {
    animation: contact-slide-up 1.5s ease forwards;
}

.contact-slide-down {
    padding: 1rem;
    opacity: 0;
    animation: contact-slide-down 1s ease forwards;
    animation-delay: 0.6s;
    
}



.contact-content {
    position: relative;
    z-index: 2;
    padding: var(--content-pad) var(--content-pad-x);
    background: rgba(255, 255, 255, 0.75);
    align-self: center;
    margin-top: clamp(-6rem, -10vw, -4rem);
}


@keyframes contact-fade-title {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes contact-slide-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contact-slide-down {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-subtitle {
    color: var(--color-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    padding: 0 1rem 1rem;
}

.contact-grid {
    row-gap: 1.5rem;
}

.contact-card {
    background: var(--color-soft);
    opacity: 0.95;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 8px;

}

.contact-card-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.75rem;
}

.contact-card-details .contact-section-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.contact-card-details-body {
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-card-details .contact-detail {
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
}

.contact-section-title {
    font-weight: 700;
    letter-spacing: 0.06rem;
    margin-bottom: 1rem;
    text-align: center  ;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.contact-detail-icon {
    color: var(--color-primary);
    font-size: 1.4rem;
    flex: 0 0 auto;
}

.contact-detail .mud-link {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-field .mud-input-control {
    background: white;
    border-radius: 8px;
}

.contact-field .mud-input-control .mud-input-root,
.contact-field .mud-input-control .mud-input-slot,
.contact-field .mud-input-control .mud-input,
.contact-field .mud-input-control .mud-input-input,
.contact-field .mud-input-control input,
.contact-field .mud-input-control textarea {
    background-color: #ffffff !important;
}

.contact-submit {
    margin-top: 0.75rem;
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    text-transform: none;
    font-weight: 700;
}

.hero {
    width: 100%;
    height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
    min-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
    margin: 0 auto;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.page-hero {
    position: relative;
    overflow: hidden;
    height: calc(var(--viewport-height) - var(--top-bar-height) - var(--footer-height) - var(--content-pad) - var(--content-bottom-pad));
    min-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--footer-height) - var(--content-pad) - var(--content-bottom-pad));
}

.page-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero .hero-card {
    position: relative;
    z-index: 1;
}

.hero-card {
    background: var(--color-secondary);
    padding: 5rem 4rem;
    border-radius: 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    width: 90%;
    height: 85%;
    max-height: none;
    position: relative;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
}

.summary {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.highlights {
    display: grid;
    gap: 1rem;
}

.highlights .mud-list-item {
    padding: 1rem 1.25rem;
    background: var(--color-soft);
    border-left: 4px solid var(--color-accent);
    border-radius: 12px;
    font-weight: 600;
}

.app-footer {
    padding: 1.5rem 3rem;
    text-align: center;
    color: var(--color-soft);
    background: var(--color-accent);
    opacity: 0.95;
    position: relative;
    border-top: none;
    overflow: visible;
}

.app-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.footer-scroll-button {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    text-transform: none;
    font-weight: 700;
    background: var(--color-primary);
    color: white;
    box-shadow: none;
    z-index: 2;
}

.footer-scroll-button:hover,
.footer-scroll-button:focus-visible {
    background: #1a6b7a;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--color-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem auto 2.5rem;
    max-width: 900px;
    width: 100%;
}

.footer-meta {
    margin-top: 1.25rem;
    color: var(--color-text);
    font-size: 1.1rem;
    -webkit-text-stroke: 0.4px rgba(31, 122, 140, 0.4);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    max-width: 360px;
    margin: 0 auto;
    color: var(--color-text);
}

.footer-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.1rem;
}

.footer-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

.footer-list li {
    margin: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .brand-text-full {
        display: none;
    }

    .brand-text-short {
        display: inline;
    }

    .app-bar {
        position: relative;
        justify-content: center;
        padding-left: calc(0.75rem + env(safe-area-inset-left));
        padding-right: calc(0.75rem + env(safe-area-inset-right));
    }

    .app-bar .nav-links-mobile {
        position: absolute;
        left: calc(0.75rem + env(safe-area-inset-left));
        top: 50%;
        transform: translateY(-50%);
    }

    .app-bar .mud-spacer {
        display: none;
    }

    .app-bar .brand-link {
        position: absolute;
        right: calc(0.75rem + env(safe-area-inset-right));
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links-desktop {
        display: none !important;
    }

    .nav-links-mobile {
        display: inline-flex !important;
    }

    .home-row {
        height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
        min-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
    }

    .home-row-card {
        position: relative;
        height: 100%;
    }

    .home-row-grid {
        position: relative;
        flex-direction: column;
        align-items: stretch;
    }

    .home-row-grid .mud-grid-item {
        flex-basis: 100%;
        max-width: 100%;
    }

    .home-carousel .home-row .home-visual {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .home-carousel .home-row .home-visual .mud-image,
    .home-carousel .home-row .home-visual .mud-image img,
    .home-carousel .home-row .home-image {
        height: 100%;
    }

    .home-carousel .home-row .home-copy {
        position: relative;
        z-index: 1;
        padding: 2rem 1.5rem;
        background: rgba(255, 255, 255, 0.78);
    }

    .home-copy .mud-typography-h5 {
        font-size: clamp(1.1rem, 2.2vw + 0.7rem, 1.5rem);
    }

    .home-copy .mud-typography-body1 {
        font-size: clamp(0.9rem, 1.2vw + 0.6rem, 1.05rem);
    }

    .contact-stack {
        gap: var(--layout-gap-lg);
        align-items: stretch;
    }

    .contact-hero {
        position: relative;
        inset: auto;
        width: 100%;
        margin-inline: 0;
        height: min(38vh, 300px);
    }

    .contact-content {
        align-self: stretch;
        width: 100%;
        padding: var(--content-pad) var(--content-pad-x);
        background: rgba(255, 255, 255, 0.88);
        margin-top: clamp(-3.5rem, -6vw, -2rem);
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 720px) {
    .home-sections {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
        overflow-x: visible;
        scroll-snap-type: none;
        scroll-padding-inline: 0;
        padding-inline: 0;
        margin-inline: 0;
        scrollbar-width: none;
        -ms-overflow-style: auto;
    }

    .home-sections .home-container {
        flex: 0 0 auto;
        scroll-snap-align: none;
        width: 100%;
        max-width: min(var(--home-section-card-size), 100%);
    }

    .home-sections .home-second-title {
        font-size: clamp(1.1rem, 2.6vw + 0.6rem, 1.6rem);
        line-height: 1.5;
        padding-bottom: 1.25rem;
    }

    .home-sections .home-second-body {
        font-size: clamp(0.9rem, 2vw + 0.5rem, 1.05rem);
        line-height: 1.55;
        margin-top: 0.75rem;
    }

    .info-hero {
        min-height: clamp(220px, 50vh, 360px);
    }

    .info-stack .contact-hero {
        height: min(38vh, 280px);
    }

    .info-stack .contact-hero .mud-image,
    .info-stack .contact-hero img {
        max-height: min(38vh, 280px);
    }

    .contact-hero {
        height: min(32vh, 240px);
    }

    .home-hero {
        height: calc(var(--viewport-height) - var(--top-bar-height));
        min-height: calc(var(--viewport-height) - var(--top-bar-height));
    }

    .home-row {
        height: calc(var(--viewport-height) - var(--top-bar-height));
        min-height: calc(var(--viewport-height) - var(--top-bar-height));
    }

    .home-hero-image,
    .home-hero-image img {
        min-height: 70vh;
    }

    .home-hero-image img {
        object-position: 50% center;
        height: 100%;
    }

    .hero {
        height: auto;
        min-height: calc(var(--viewport-height) - var(--top-bar-height));
    }

    .home-carousel .hero {
        height: calc(var(--viewport-height) - var(--top-bar-height));
        min-height: calc(var(--viewport-height) - var(--top-bar-height));
    }

    .hero-card {
        padding: 2rem;
        height: 100%;
        max-height: none;
        overflow: visible;
    }

    .home-row {
        min-height: auto;
    }

    .home-row-card {
        width: 100%;
        padding: 0;
    }

    .home-row-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: 100%;
    }

    .home-row-grid .mud-grid-item {
        flex-basis: 100%;
        max-width: 100%;
    }

    .home-flow-extra-grid {
        grid-template-columns: 1fr;
    }

    .info-page {
        padding: var(--content-pad) var(--content-pad-x);
    }

    .contact-page {
        padding: 0rem;
        max-height: calc(var(--viewport-height) - var(--top-bar-height) - var(--content-pad) - var(--content-bottom-pad));
        overflow-y: auto;
    }

}

@media (max-width: 520px) {
    .home-row-grid {
        gap: 0;
    }

    .home-row-card {
        padding: 0;
    }

    .home-body {
        margin-bottom: 1rem;
    }

    .info-button {
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }

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

    .contact-hero {
        height: min(28vh, 200px);
    }
}
