/* =========================================================
   CAREFORCE - MAIN STYLES
   Global layout, landing page, shared header/footer/status pages
========================================================= */

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}



/*=========================
MAIN STYLES
==========================*/


:root {
    --blue: #087de5;
    --blue-hover: #006fd2;
    --blue-dark: #063f75;
    --blue-deep: #003d70;
    --green: #23c83a;
    --green-dark: #15962a;

    --text: #202124;
    --muted: #666b72;
    --white: #fff;
    --page: #f5f6f7;
    --soft-blue: #f3f8ff;
    --border: #e2e6eb;

    --container: 1180px;
    --header-container: 1280px;
    --header-height: 86px;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 32px;
    --pill: 999px;

    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.07);
}

/* ---------- Reset / shared ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* ---------- Utilities ---------- */

.text-blue {
    color: var(--blue);
}

.text-green {
    color: var(--green);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #59616b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #686868;
    font-size: 0.68rem;
    font-weight: 600;
}

.section-label-light {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-hover);
}

.btn-green {
    background: var(--green);
    color: var(--white);
}

.btn-green:hover {
    background: var(--green-dark);
}

.btn-outline-green {
    border-color: var(--green);
    background: transparent;
    color: var(--green-dark);
}

.btn-outline-green:hover {
    background: #effff2;
}

.btn-light {
    background: var(--white);
    color: var(--blue);
}

.btn-small {
    min-height: 36px;
    padding: 7px 14px;
    font-size: 0.85rem;
}

.small-icon {
    height: 12px;
}

/* =========================================================
   HEADER
========================================================= */

/*
   Normal pages: header stays in document flow.
   Home page only: header is fixed while the page scrolls.
*/
.site-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    background: var(--white);
}

.site-header .nav-wrap {
    width: min(calc(100% - 48px), var(--header-container));
    max-width: none;
    min-height: var(--header-height);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 2vw, 30px);
}

.home-page .site-header {
    position: fixed;
    inset: 0 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
}

.home-page main {
    padding-top: var(--header-height);
}

.home-page section[id] {
    scroll-margin-top: calc(var(--header-height) + 19px);
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 170px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 32px);
    margin-left: auto;
    font-size: 0.94rem;
}

.main-nav a,
.nav-cta {
    white-space: nowrap;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--blue);
}

.nav-cta {
    flex: 0 0 auto;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}



/* =========================================================
   GLOBAL NOTIFICATIONS
========================================================= */

.app-notifications {
    position: fixed;

    top: 105px;
    left: 50%;

    z-index: 2000;

    width: min(430px, calc(100% - 32px));

    transform: translateX(-50%);

    display: grid;
    gap: 10px;

    pointer-events: none;
}


.app-notification {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.14);

    font-size: 0.88rem;

    pointer-events: auto;

    animation: notification-in 0.25s ease;
}


.app-notification-error {
    border: 1px solid #f2b8b8;
    color: #a72828;
    background: #fff7f7;
}


.app-notification-success {
    border: 1px solid #b7e5be;
    color: #187a28;
    background: #f5fff6;
}


.app-notification-warning {
    border: 1px solid #f1d39b;
    color: #8a6214;
    background: #fffaf0;
}


.notification-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    font-weight: 700;
}


.app-notification-error .notification-icon {
    background: #e44848;
    color: white;
}


.app-notification-success .notification-icon {
    background: var(--green);
    color: white;
}


.notification-message {
    flex: 1;
}


.notification-close {
    padding: 0;

    border: 0;

    background: transparent;
    color: inherit;

    font-size: 1.3rem;

    cursor: pointer;
}


.app-notification.is-leaving {
    opacity: 0;
    transform: translateY(-8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


@keyframes notification-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 600px) {
    .app-notifications {
        top: 82px;
    }
}



/* =========================================================
   HOME - HERO
========================================================= */

.home-hero {
    overflow: hidden;
    padding: 30px 0 0;
    background: var(--white);
}

.hero-inner {
    text-align: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
    margin: 0 auto 10px;
}

.hero-copy h1 {
    margin: 0;
    font-family: Roboto, Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.hero-copy p {
    max-width: 660px;
    margin: 22px auto 20px;
    color: #3f4348;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    position: relative;
    max-width: 920px;
    margin: -5px auto 0;
    min-width: 400px;
}

.hero-main-image {
    width: 100%;
    margin-inline: auto;
}

.hero-stat {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    text-align: left;
    font-size: 0.75rem;
}

.hero-stat img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.hero-stat strong,
.hero-stat span {
    display: block;
}

.hero-stat strong {
    color: var(--blue);
    font-size: 0.78rem;
}

.hero-stat span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.66rem;
}

.hero-stat-left {
    left: 0;
    bottom: 20%;
}

.hero-stat-top {
    left: 10%;
    top: 28%;
}

.hero-stat-right {
    right: 0;
    bottom: 29%;
}

/* =========================================================
   HOME - VALUES
========================================================= */

.values-section {
    padding: 70px 0;
    background: var(--soft-blue);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.section-intro h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.section-intro p {
    margin: 0;
    color: #454a50;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 25px;
}

.value-item {
    text-align: center;
}

.value-item img {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.value-item h3 {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================================
   HOME - ABOUT
========================================================= */

.about-section {
    padding: 95px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-visual img {
    width: 100%;
    border-radius: 0 0 45px 45px;
    object-fit: cover;
}

.about-content h2 {
    margin: 0 0 24px;
    color: #082d54;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.about-card {
    margin-top: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
}

.about-card-highlight {
    border-left: 5px solid var(--blue);
    background: #d9ecff;
}

.about-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.about-card p {
    margin: 0;
    color: #555c63;
    font-size: 0.9rem;
}

/* =========================================================
   HOME - REQUEST CARE CTA
========================================================= */

.request-care-section {
    padding: 40px 0 100px;
    background: var(--white);
}

.request-care-panel {
    min-height: 640px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 40% 72%,
            #00f5c2 0,
            #00a0bd 14%,
            #01426e 45%,
            #022b50 100%
        );
    color: var(--white);
}

.request-care-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px 24px 0;
}

.request-care-visual img {
    width: min(100%, 620px);
    object-fit: contain;
}

.request-care-copy {
    align-self: center;
    max-width: 470px;
    padding: 60px 45px;
}

.request-care-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.request-care-copy p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   HOME - PRICING
========================================================= */

.pricing-section {
    padding: 110px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 0.8fr;
    gap: 32px;
    align-items: stretch;
}

.pricing-intro {
    padding-right: 60px;
}

.pricing-intro h2 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.pricing-intro p {
    max-width: 540px;
    color: var(--muted);
}

.pricing-card {
    padding: 30px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.pricing-premium {
    background: var(--blue);
    color: var(--white);
}

.plan-name {
    font-weight: 600;
}

.plan-price {
    margin: 15px 0;
}

.plan-price strong {
    display: block;
    font-size: 2.6rem;
    line-height: 1;
}

.plan-price span {
    font-size: 0.74rem;
}

.pricing-card p {
    font-size: 0.85rem;
}

.pricing-card ul {
    margin: 20px 0;
    padding-left: 18px;
    font-size: 0.82rem;
}

.pricing-card li + li {
    margin-top: 5px;
}

/* =========================================================
   HOME - BOARD
========================================================= */

.board-section {
    padding: 80px 0 120px;
}

.board-heading {
    margin-bottom: 34px;
}

.board-heading h2 {
    margin: 3px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.board-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.board-member {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #eaf8fb;
    border-right: 1px solid var(--white);
}

.board-member-copy {
    min-height: 90px;
    padding: 20px;
}

.board-member-copy h3 {
    margin: 0;
    font-size: 0.95rem;
}

.board-member img {
    width: 100%;
    aspect-ratio: 0.85;
    margin-top: auto;
    object-fit: cover;
    object-position: center bottom;
}

.board-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
}

.board-pagination span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cacaca;
}

.board-pagination .active {
    background: #111;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 70px 0 28px;
    border-top: 1px solid #ececec;
    background: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-brand img {
    width: 150px;
    margin-bottom: 18px;
}

.footer-grid h4 {
    margin: 0 0 12px;
    font-size: 0.88rem;
}

.footer-grid p,
.footer-grid a {
    color: #60656b;
    font-size: 0.76rem;
}

.footer-grid a:hover {
    color: var(--blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #ededed;
    color: #686d72;
    font-size: 0.7rem;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

/* =========================================================
   404 / GENERIC STATUS PAGE
========================================================= */

.error-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 60px 20px;
    background: var(--page);
}

.error-card {
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    align-items: center;
    gap: 40px;
    padding: 60px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.error-code {
    color: var(--blue);
    font-size: 4rem;
    font-weight: 700;
}

.error-copy h1 {
    margin: 5px 0 15px;
}

.error-copy p {
    margin: 0 0 25px;
    color: var(--muted);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }

    .nav-cta {
        margin-left: auto;
    }

    .nav-toggle {
        display: block;
    }

    .site-header .nav-wrap {
        position: relative;
    }

    .main-nav {
        display: none;
    }

    .site-header.menu-open .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;
        margin: 0;
        padding: 12px 0;

        background: var(--white);

        border: 1px solid var(--border);
        border-radius: 14px;

        box-shadow: var(--shadow-soft);
    }

    .site-header.menu-open .main-nav a {
        display: block;
        padding: 12px 20px;
    }
}

@media (max-width: 950px) {
    .hero-stat {
        transform: scale(0.9);
    }

    .values-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .request-care-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .request-care-copy {
        order: 1;
        max-width: 700px;
        margin: auto;
    }

    .request-care-visual {
        order: 2;
    }

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

    .pricing-intro {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .board-list,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .error-illustration {
        max-width: 320px;
        margin-inline: auto;
    }
}

@media (max-width: 650px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header .nav-wrap {
        width: min(calc(100% - 28px), var(--header-container));
        min-height: var(--header-height);
    }

    .brand img {
        width: 135px;
    }

    .home-page section[id] {
        scroll-margin-top: calc(var(--header-height) + 16px);
    }

    .nav-cta {
        display: none;
    }

    .home-hero {
        padding-top: 25px;
    }

    .hero-copy h1 {
        font-size: 2.3rem;
    }

    .hero-copy p {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stat {
        display: none;
    }

    .values-section,
    .about-section,
    .pricing-section,
    .board-section {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .values-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .request-care-section {
        padding-bottom: 65px;
    }

    .request-care-panel {
        min-height: auto;
    }

    .request-care-copy {
        padding: 50px 22px 30px;
    }

    .request-care-copy h2 {
        font-size: 2.5rem;
    }

    .pricing-grid,
    .board-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .error-card {
        padding: 40px 24px;
    }
}
