/* =========================================================
   LAYOUT — header, navigation, footer, page structure
   ========================================================= */

/* --- Hero --- */
.hero {
    position: relative;
    margin-top: -93px;
    padding-left: 15px;
    padding-right: 15px;
    background-image: url('../images/welcome_bg.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(-68deg, #00152AE6 0%, #00152AD9 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 643px;
}

/* --- Page banner (inner pages) --- */
.page-banner {
    position: relative;
    margin-top: -93px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 0 0 80px 80px;
    background-image: url('../images/page_banner_bg.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--color-white);
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(-68deg, #00152AE6 0%, #00152AD9 100%);
}

.page-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.page-banner__title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-white);
}

.page-banner__subtitle {
    margin: 12px 0 0 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-white);
}

.hero__eyebrow {
    margin: 0 0 20px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: var(--color-white);
}

.hero__heading {
    margin: 0 0 20px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

.hero__description {
    max-width: 843px;
    margin: 0 0 28px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-white);
}

.hero__actions .btn--pill {
    font-size: 15px;
}

/* --- Header shell --- */
.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background-color: transparent;
}

.header__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 24px;
    padding-bottom: 24px;
}

.header__logo {
    display: inline-flex;
    flex: 0 0 25%;
    max-width: 25%;
}

.header__logo img {
    max-width: 156px;
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    flex: 0 0 75%;
    max-width: 75%;
    display: flex;
    justify-content: flex-end;
}

.navbar__menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.navbar__item {
    position: relative;
    margin-left: 23px;
    margin-right: 23px;
}

.navbar__item:first-child {
    margin-left: 0;
}

.navbar__item:last-child {
    margin-right: 0;
}

.navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-white);
    fill: var(--color-white);
    white-space: nowrap;
}

.navbar__link:hover,
.navbar__link:focus,
.navbar__link.is-active {
    color: var(--color-nav-active);
}

.navbar__caret {
    transition: transform 0.2s ease;
}

.navbar__item--has-dropdown:hover .navbar__caret,
.navbar__item--has-dropdown:focus-within .navbar__caret {
    transform: rotate(180deg);
}

/* --- Dropdown --- */
.navbar__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.navbar__item--has-dropdown:hover .navbar__dropdown,
.navbar__item--has-dropdown:focus-within .navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar__dropdown li:not(:last-child) {
    border-bottom: 1px solid var(--color-blue);
}

.navbar__dropdown-link {
    display: block;
    padding: 10px 6px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-muted);
}

.navbar__dropdown-link:hover,
.navbar__dropdown-link:focus,
.navbar__dropdown-link.is-active {
    background-color: var(--color-muted);
    color: var(--color-nav-active);
}

/* --- Mobile menu toggle --- */
.menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    color: var(--color-white);
}

.menu-toggle svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.menu-toggle__icon-close {
    display: none;
}

.menu-toggle.is-open .menu-toggle__icon-open {
    display: none;
}

.menu-toggle.is-open .menu-toggle__icon-close {
    display: block;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-white);
}

.footer__top {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding-top: 46px;
    padding-bottom: 0;
}

.footer__col--about {
    flex: 1 1 34%;
    max-width: 34%;
    margin-right: 30px;
    min-width: 0;
}

.footer__col--about img {
    margin-bottom: 14px;
}

.footer__col--about p {
    color: var(--color-muted);
}

.footer__col--links {
    flex: 1 1 15%;
    max-width: 15%;
    min-width: 0;
}

.footer__col--links:nth-of-type(2) {
    flex-basis: 25%;
    max-width: 25%;
}

.footer__col--newsletter {
    flex: 1 1 25%;
    max-width: 25%;
    min-width: 0;
}

.footer__heading {
    margin: 0 0 8px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-black);
}

.footer__col--links ul li {
    margin-bottom: 8px;
}

.footer__col--links ul li:last-child {
    margin-bottom: 0;
}

.footer__col--links a {
    color: var(--color-muted);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
}

.footer__col--links a:hover,
.footer__col--links a:focus {
    color: var(--color-purple);
}

.footer__col--newsletter p {
    margin-bottom: 10px;
    color: var(--color-muted);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #808080;
    border-radius: 50px;
    background-color: var(--color-white);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-black);
    box-sizing: border-box;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--color-muted);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-blue);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 18px;
    padding-bottom: 24px;
    border-top: 1px solid #E0E0E0;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-purple);
    border-radius: 50%;
    background-color: var(--color-white);
}

.footer__socials svg {
    width: 20px;
    height: 20px;
    fill: var(--color-purple);
}

.footer__socials a:hover,
.footer__socials a:focus {
    background-color: var(--color-purple);
}

.footer__socials a:hover svg,
.footer__socials a:focus svg {
    fill: var(--color-white);
}

.footer__copyright {
    color: var(--color-muted);
    font-family: 'Nunito Sans', sans-serif;
}
