:root {
    --page-padding: 64px;
    --menu-left: 95px;
    --menu-top-base: 20px;
    --menu-top: calc(var(--menu-top-base) + var(--app-safe-top-offset, 0px));
    --menu-dropdown-offset: 40px;
    --app-safe-top-offset: 0px;
    --app-safe-bottom-offset: 0px;
    --link-top-base: 20px;
    --social-top-base: 16px;
    --logo-top-base: 8px;
    --logout-top-base: 58px;
    --header-spacer-base: 90px;
    --site-header-spacer-base: 110px;
    --content-top-base: 120px;
    --logo-width: 75px;
    --social-icon-size: 24px;
    --social-gap: 16px;
    --menu-font-size: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: "Open Sans", sans-serif;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    padding-bottom: var(--app-safe-bottom-offset);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Italic.ttf') format('ttf');
    font-weight: 300;
    font-style: normal;
}

p {
    color: #5252529e;
}

.wave {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: -1;
    height: 260px;
    width: 100%;
    max-width: 100%;
    transform: none;
    object-fit: cover;
    object-position: bottom;
}

.navbar {
    position: absolute;
    top: 50px;
    left: 16px;
    padding: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

a {
    margin-right: 16px;
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}


.wave-bottom {
    position: fixed !important;
    bottom: var(--app-safe-bottom-offset);
    left: 0;
    right: 0;
    z-index: -1;
    pointer-events: none;
}

.footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0099ff;
    height: 50px;
    color: black;
    z-index: 1;
    flex-shrink: 0;
    width: fit-content;
    padding: 0 20px;
    margin: 20px auto calc(12px + var(--app-safe-bottom-offset)) auto;
    border-radius: 8px;
}

.main {
    padding: 40px 40px 40px 50px;
    flex-direction: column;
    width: fit-content;
    min-width: 140px;
    z-index: 1000;
    flex: 1 0 auto;
    padding-bottom: 30px !important;
}

.input-card {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
    background-color: rgb(248, 248, 248);
}

.input-card:focus {
    border-color: #007bff;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px;
    border: 2px solid gray;
    border-radius: 16px;
}

.button-card {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #0099ff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.1s ease-in-out;
}

.button-card:hover {
    background-color: #0056b3;
}

.button-card:active {
    transform: scale(0.98);
}

input[type="text"] {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
}

input[type="submit"] {
    padding: 9px 16px;
    border-radius: 6px;
    border: none;
    background: #feb62f;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
}

@media (min-width: 850px) {
    h1 {
        margin-top: 200px;
    }

    .wave {
        height: 340px;
    }

}

@media (min-width: 1200px) {
    body {
        padding-left: 180px;
        padding-right: 180px;
    }

    .wave-bottom {
        bottom: 0;
    }

    .wave {
        height: 320px;
        object-position: bottom;
    }

    a {
        margin-right: 16px;
    }
}

main {
    position: relative;
    z-index: 5;
    flex: 1 0 auto;
    padding-bottom: 30px !important;
}

.home-help-panel {
    margin-top: 28px;
}

.home-help-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 620px;
    padding: 24px 24px 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 250, 255, 0.98) 48%, rgba(255, 245, 236, 0.98) 100%);
    box-shadow: 0 20px 40px rgba(21, 35, 54, 0.12);
    border: 1px solid rgba(0, 153, 255, 0.14);
}

.home-help-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 153, 255, 0.1);
    color: #0d6db0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-help-card h2 {
    margin: 0;
    color: #17344c;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.home-help-card p {
    margin: 0;
    color: rgba(36, 54, 72, 0.82);
    line-height: 1.6;
}

.home-help-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-help-button {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0099ff 0%, #1b6dd1 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 89, 179, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.home-help-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 28px rgba(0, 89, 179, 0.24);
}

.home-help-button:focus {
    outline: 3px solid rgba(0, 153, 255, 0.22);
    outline-offset: 3px;
}

.home-help-button.is-emergency {
    background: linear-gradient(135deg, #ff6a3d 0%, #d93025 100%);
    box-shadow: 0 12px 24px rgba(184, 41, 28, 0.24);
}

@media (max-width: 700px) {
    .home-help-card {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .home-help-buttons {
        flex-direction: column;
    }

    .home-help-button {
        width: 100%;
    }
}

.wave,
.wave-bottom {
    pointer-events: none;
}