/* ===================================================
   FONTS
   =================================================== */
@font-face {
    font-display: swap;
    font-family: "All Round Gothic";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/all-round-gothic-bold.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Proxima Nova";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/proxima-nova-regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Proxima Nova";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/proxima-nova-bold.woff2") format("woff2");
}

/* ===================================================
   BASE & LAYOUT
   =================================================== */
:root {
    --color-primary: #063439;
    --color-secondary: #115d79;
    --color-accent: #135d7a;
    --color-bg: #E2EEF2;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    min-height: 100vh;
    background: var(--color-bg);
    margin: 0;
    font-family: "Proxima Nova", Arial, sans-serif;
}

.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 20px 24px;
    box-sizing: border-box;
}

@media (min-width: 600px) {
    .page-wrapper {
        padding: 0 12px 50px;
    }
}

/* ===================================================
   HEADER
   =================================================== */
.r-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .r-header {
        margin-bottom: 20px;
        margin-top: 0;
    }
}

.c-logo {
    padding: 12px 0 6px;
}

@media (min-width: 640px) {
    .c-logo {
        padding: 24px 0;
    }
}

.c-logo svg {
    max-width: 130px;
    height: auto;
}

@media (min-width: 640px) {
    .c-logo svg {
        max-width: 152px;
    }
}

.c-navigation {
}

@media (min-width: 640px) {
    .c-navigation {
        margin-right: 20px;
    }
}

.c-navigation__list {
    list-style: none;
    padding: 0;
    display: inline;
}

.c-navigation__item {
    color: var(--color-primary);
    display: inline-block;
    font-weight: 500;
    line-height: 24px;
    word-wrap: break-word;
    margin-left: 12px;
    font-size: 14px;
}

@media (min-width: 640px) {
    .c-navigation__item {
        margin-left: 20px;
        font-size: 16px;
    }
}

.c-navigation__item a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
    line-height: 22px;
    display: flex;
}

.c-navigation__item a span {
    padding-right: 4px;
}

.c-navigation__item a:hover {
    color: #073439;
    text-decoration: underline;
}

/* ===================================================
   MAIN CONTENT
   =================================================== */
.r-main {
    display: flex;
    flex-flow: row;
    flex: 1;
}

.r-aside, .r-form {
    flex-grow: 1;
}

.r-aside {
    max-width: 480px;
    margin-right: 60px;
}

@media (max-width: 915px) {
    .r-aside {
        display: none;
    }
}

@media (min-width: 950px) {
    .r-aside {
        margin-right: 120px;
    }
}

.r-aside h1 {
    color: var(--color-primary);
    font-size: 40px;
    font-family: "All Round Gothic", sans-serif;
    font-weight: 400;
    line-height: 44px;
    word-wrap: break-word;
}

.r-aside p, .r-aside li {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    word-wrap: break-word;
}

.r-aside b {
    font-weight: 600;
}

.c-content ul {
    padding: 0;
    margin: 0;
}

.r-aside li {
    list-style: none;
    margin: 4px 0;
}

.r-aside li .icon {
    position: relative;
    width: 24px;
    height: 22px;
    display: inline-block;
    margin-right: 10px;
}

.r-aside li .icon svg {
    position: absolute;
    left: 0;
    top: 6px;
}

.r-form {
}

@media (min-width: 768px) {
    .r-form {
        min-width: 480px;
    }
}

@media (max-width: 640px) {
    .r-form {
        min-width: 320px;
    }
}

.c-heyflow {
    margin: 0 auto;
    padding: 20px 5px 45px;
    border-radius: 16px;
    background: #fff;
    min-height: 200px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(6, 52, 57, 0.05);
    transition: box-shadow .3s ease;
    opacity: 0;
    transform: scale(0.98) translateY(10px);
}

.is-page-loaded .c-heyflow {
    animation: formIntroIn 1000ms var(--ease-out-expo) forwards;
    animation-delay: 300ms;
}

.c-heyflow:hover {
    box-shadow: 0 10px 30px rgba(6, 52, 57, 0.08);
}

@media (min-width: 600px) {
    .c-heyflow {
        padding: 20px 20px 65px;
    }
}

/* ===================================================
   SOURCES
   =================================================== */
.c-sources {
    position: relative;
    border-top: none;
    margin-top: 80px;
}

.c-sources:before,
.c-sources:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: 0 50%;
    position: absolute;
    top: 0;
}

.c-sources:before {
    background: #ccc;
}

.c-sources:after {
    background: #fff;
    top: 1px;
}

.c-sources__list {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0;
    margin: 0;
    flex-flow: row nowrap;
    align-items: center;
    opacity: 0;
}

@media (max-width: 950px) {
    .c-sources__list {
        flex-flow: row wrap;
    }
}

.c-sources__list li {
    flex-grow: 1;
    padding: 0 10px;
    max-width: 140px;
    text-align: center;
}

@media (min-width: 950px) {
    .c-sources__list li {
        max-width: 100%;
    }
}

.c-sources__list li:first-child {
    padding-left: 0;
}

.c-sources__list li:last-child {
    padding-right: 0;
}

.c-sources__list li img {
    max-width: 100%;
    height: auto;
}

.c-sources__info {
    color: #000;
    font-size: 10px;
    line-height: 1.5;
    margin: 0;
    font-weight: normal;
}

.c-sources__info b {
    font-weight: 700;
}

.c-sources__stars {
    color: #fb9e0d;
}

.c-sources__rating {
    color: #4a4a4a;
}

/* ===================================================
   ANIMATIONS
   =================================================== */
.r-aside .c-content li {
    opacity: 0;
    transform: translateX(14px);
}

.is-page-loaded .r-aside .c-content li {
    animation: listItemIntroIn 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.is-page-loaded .r-aside .c-content li:nth-child(1) {
    animation-delay: 420ms;
}

.is-page-loaded .r-aside .c-content li:nth-child(2) {
    animation-delay: 620ms;
}

.is-page-loaded .r-aside .c-content li:nth-child(3) {
    animation-delay: 820ms;
}

@keyframes listItemIntroIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.c-content__headline-line {
    display: block;
    opacity: 0;
    transform: scale(0.9);
    transform-origin: 0 50%;
}

.r-aside .c-content > p {
    opacity: 0;
}

.is-page-loaded .c-content__headline-line {
    animation: headlineLineScaleIn 920ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.is-page-loaded .c-content__headline-line:nth-child(1) {
    animation-delay: 220ms;
}

.is-page-loaded .c-content__headline-line:nth-child(2) {
    animation-delay: 440ms;
}

.is-page-loaded .c-content__headline-line:nth-child(3) {
    animation-delay: 660ms;
}

.is-page-loaded .r-aside .c-content > p,
.is-page-loaded .c-sources__list {
    animation: contentTextFadeIn 900ms ease-out forwards;
    animation-delay: 980ms;
}

.is-page-loaded .c-sources:before,
.is-page-loaded .c-sources:after {
    animation: sourceDividerIn 900ms ease-out forwards;
    animation-delay: 870ms;
}

@keyframes headlineLineScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contentTextFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes sourceDividerIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes formIntroIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===================================================
   MODAL
   =================================================== */
.is-modal-open {
    overflow: hidden;
}

.c-contact-modal {
    position: fixed;
    inset: 0;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 52, 57, 0.35);
    z-index: 999;
    opacity: 0;
    transition: opacity 300ms ease, visibility 300ms ease;
    backdrop-filter: blur(4px);
}

.c-contact-modal.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.c-contact-modal__panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: min(92vw, 480px);
    padding: 28px 28px 24px;
    display: flex;
    gap: 28px;
    align-items: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 400ms var(--ease-out-expo), opacity 400ms ease;
    opacity: 0;
}

.c-contact-modal.is-open .c-contact-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.c-contact-modal__content {
    flex: 1 1 60%;
}

.c-contact-modal__title {
    color: var(--color-primary);
    font-size: 22px;
    font-family: "All Round Gothic", sans-serif;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E5E7EB;
}

.c-contact-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    color: var(--color-primary);
    font-size: 16px;
    line-height: 24px;
}

.c-contact-modal__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.c-contact-modal__item a {
    text-decoration: none;
    color: inherit;
}

.c-contact-modal__item a:hover {
    text-decoration: underline;
}

.c-contact-modal__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.c-contact-modal__portrait {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(6, 52, 57, 0.15);
}

.c-contact-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    color: var(--color-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

@media (max-width: 640px) {
    .c-contact-modal__panel {
        flex-direction: column;
        text-align: left;
    }

    .c-contact-modal__portrait {
        width: 140px;
        height: 140px;
    }
}

/* ===================================================
   FOOTER
   =================================================== */
.r-footer {
    position: relative;
    margin-top: 60px;
    padding-top: 24px;
}

.r-footer:before,
.r-footer:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    position: absolute;
    top: 0;
}

.r-footer:before {
    background: #ccc;
}

.r-footer:after {
    background: #fff;
    top: 1px;
}

.c-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.c-footer__legal {
    display: flex;
    gap: 20px;
}

.c-footer__legal a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}

.c-footer__legal a:hover {
    text-decoration: underline;
}

.c-footer__copyright {
    color: var(--color-primary);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 640px) {
    .c-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .c-footer__legal {
        justify-content: center;
    }
}

/* ===================================================
   ACCESSIBILITY
   =================================================== */
@media (prefers-reduced-motion: reduce) {
    .r-aside .c-content li,
    .c-content__headline-line,
    .r-aside .c-content > p,
    .c-sources__list,
    .c-sources:before,
    .c-sources:after,
    .c-heyflow,
    .c-contact-modal.is-open,
    .c-contact-modal.is-open .c-contact-modal__panel {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
