/* static/css/public/index.css */

:root {
    --primary: #087f73;
    --primary-dark: #05645b;
    --primary-light: #e9f7f5;

    --accent: #f4b942;

    --dark: #102a2a;
    --text: #4b5f5f;
    --muted: #718181;

    --white: #ffffff;
    --light: #f6faf9;
    --border: #e3eceb;

    --shadow-sm: 0 8px 25px rgba(16, 42, 42, 0.06);
    --shadow-md: 0 18px 45px rgba(16, 42, 42, 0.10);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --container: 1180px;
}


/* ============================================================
   RESET
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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


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

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

    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.section-label {
    display: inline-block;

    color: var(--primary);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    margin-bottom: 14px;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2,
.about-content h2,
.process-heading h2 {
    color: var(--dark);

    font-size: clamp(
        2rem,
        4vw,
        3.1rem
    );

    line-height: 1.15;
    letter-spacing: -0.04em;

    margin-bottom: 18px;
}

.section-heading h2 span,
.about-content h2 span,
.process-heading h2 span {
    color: var(--primary);
}

.section-heading p {
    color: var(--muted);
    font-size: 1rem;
}


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

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid rgba(227, 236, 235, 0.8);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.brand-logo {
    width: 43px;
    height: 43px;

    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.brand-name {
    color: var(--dark);

    font-size: 1.2rem;
    font-weight: 800;

    letter-spacing: 0.04em;
}

.brand-subtitle {
    color: var(--primary);

    font-size: 0.62rem;
    font-weight: 600;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;

    margin-left: auto;
}

.main-nav a {
    position: relative;

    color: var(--dark);

    font-size: 0.84rem;
    font-weight: 500;

    transition:
        color 0.25s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width 0.25s ease;
}

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

.main-nav a:hover::after {
    width: 100%;
}

.header-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 20px;

    color: var(--white);
    background: var(--primary);

    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 600;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.header-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}


/* ============================================================
   HERO
============================================================ */

.hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    padding-top: 76px;

    color: var(--white);

    background-image: url(
        "https://images.unsplash.com/photo-1582735689369-4fe89db7114c?auto=format&fit=crop&w=2000&q=85"
    );

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 46, 43, 0.92) 0%,
            rgba(7, 46, 43, 0.76) 42%,
            rgba(7, 46, 43, 0.28) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 45px;
    padding-bottom: 160px;
}

.hero-label {
    display: inline-block;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.73rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    margin-bottom: 20px;
}

.hero h1 {
    max-width: 720px;

    font-size: clamp(
        3rem,
        7vw,
        5.8rem
    );

    line-height: 1.02;

    letter-spacing: -0.055em;

    margin-bottom: 26px;
}

.hero h1 span {
    display: block;
    color: #9de3d9;
}

.hero-description {
    max-width: 590px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 1.03rem;

    margin-bottom: 35px;
}

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


/* ============================================================
   BUTTONS
============================================================ */

.btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 25px;

    border-radius: 999px;

    font-size: 0.82rem;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

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

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

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

.btn-outline {
    color: var(--white);

    border: 1px solid rgba(255, 255, 255, 0.55);

    background: rgba(255, 255, 255, 0.06);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
}

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

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


/* ============================================================
   HERO STATS
============================================================ */

.hero-bottom {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;

    z-index: 5;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid rgba(255, 255, 255, 0.2);

    padding: 24px 0;
}

.hero-stat {
    padding: 0 28px;

    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat:first-child {
    padding-left: 0;
}

.hero-stat:last-child {
    border-right: 0;
}

.hero-stat strong {
    display: block;

    color: var(--white);

    font-size: 0.88rem;
    font-weight: 600;

    margin-bottom: 3px;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.62);

    font-size: 0.72rem;
}


/* ============================================================
   ABOUT
============================================================ */

.about {
    background: var(--white);
}

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1fr);

    gap: 90px;

    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 570px;

    object-fit: cover;

    border-radius: var(--radius-lg);

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

.about-badge {
    position: absolute;

    right: -28px;
    bottom: 30px;

    width: 145px;
    height: 145px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background: var(--primary);

    border: 8px solid var(--white);
    border-radius: 50%;

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

.about-badge strong {
    font-size: 1.2rem;
    font-weight: 700;
}

.about-badge span {
    font-size: 0.65rem;
    opacity: 0.8;
}

.about-content h2 {
    max-width: 550px;
}

.about-content .lead {
    color: var(--dark);

    font-size: 1.05rem;
    font-weight: 500;

    margin-bottom: 15px;
}

.about-content > p {
    margin-bottom: 14px;
}

.about-features {
    display: grid;
    gap: 16px;

    margin-top: 30px;
}

.feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);
    background: var(--primary-light);

    border-radius: 50%;

    font-size: 0.75rem;
    font-weight: 700;
}

.feature strong {
    display: block;

    color: var(--dark);

    font-size: 0.82rem;
    font-weight: 600;
}

.feature span {
    display: block;

    color: var(--muted);

    font-size: 0.75rem;
}


/* ============================================================
   SERVICES
============================================================ */

.services {
    background: var(--light);
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.service-card {
    position: relative;

    padding: 35px 30px;

    background: var(--white);

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

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.service-card.featured {
    background: var(--primary);
    border-color: var(--primary);

    color: var(--white);
}

.service-number {
    position: absolute;

    top: 25px;
    right: 28px;

    color: var(--muted);

    font-size: 0.7rem;
    font-weight: 600;
}

.featured .service-number {
    color: rgba(255, 255, 255, 0.55);
}

.service-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);
    background: var(--primary-light);

    border-radius: 14px;

    margin-bottom: 25px;
}

.featured .service-icon {
    color: var(--primary);
    background: var(--white);
}

.service-icon span {
    font-size: 1rem;
    font-weight: 800;
}

.service-card h3 {
    color: var(--dark);

    font-size: 1.1rem;
    font-weight: 600;

    margin-bottom: 10px;
}

.featured h3 {
    color: var(--white);
}

.service-card p {
    color: var(--muted);

    font-size: 0.82rem;

    margin-bottom: 22px;
}

.featured p {
    color: rgba(255, 255, 255, 0.74);
}

.service-note {
    color: var(--primary);

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 0.03em;
}

.featured .service-note {
    color: #a9e9df;
}


/* ============================================================
   PROCESS
============================================================ */

.process {
    margin-top: 105px;
}

.process-heading {
    margin-bottom: 45px;
}

.process-heading h2 {
    margin-bottom: 0;
}

.process-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.process-step {
    position: relative;

    padding: 26px 22px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.process-number {
    display: inline-flex;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    color: var(--primary);
    background: var(--primary-light);

    border-radius: 50%;

    font-size: 0.68rem;
    font-weight: 700;

    margin-bottom: 18px;
}

.process-step h3 {
    color: var(--dark);

    font-size: 0.88rem;
    font-weight: 600;

    margin-bottom: 7px;
}

.process-step p {
    color: var(--muted);

    font-size: 0.73rem;
}


/* ============================================================
   CTA
============================================================ */

.cta {
    padding: 75px 0;

    color: var(--white);

    background: var(--primary);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.cta .section-label {
    color: #a9e9df;
}

.cta h2 {
    max-width: 700px;

    color: var(--white);

    font-size: clamp(
        2rem,
        4vw,
        3.2rem
    );

    line-height: 1.12;
    letter-spacing: -0.04em;
}

.cta h2 span {
    color: #a9e9df;
}


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

.site-footer {
    color: rgba(255, 255, 255, 0.65);
    background: #0b2524;

    padding-top: 70px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.7fr
        1fr
        1fr
        1.2fr;

    gap: 45px;

    padding-bottom: 55px;
}

.footer-logo .brand-name {
    color: var(--white);
}

.footer-logo .brand-subtitle {
    color: #8ed8ce;
}

.footer-brand p {
    max-width: 330px;

    font-size: 0.76rem;

    margin-top: 18px;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.footer-column h4 {
    color: var(--white);

    font-size: 0.8rem;
    font-weight: 600;

    margin-bottom: 8px;
}

.footer-column a,
.footer-column span {
    font-size: 0.73rem;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #9de3d9;
}

.footer-bottom {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom p {
    font-size: 0.68rem;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {

    .section {
        padding: 85px 0;
    }

    .main-nav {
        gap: 20px;
    }

    .header-login {
        padding: 0 15px;
    }

    .hero {
        min-height: 680px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .about-image {
        height: 480px;
    }

    .about-badge {
        right: 20px;
    }

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

    .service-card:last-child {
        grid-column: span 2;
    }

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

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


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 680px) {

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

    .section {
        padding: 70px 0;
    }


    /* Header */

    .header-inner {
        min-height: 68px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        font-size: 0.55rem;
    }

    .main-nav {
        display: none;
    }

    .header-login {
        min-height: 38px;

        padding: 0 14px;

        font-size: 0.7rem;
    }


    /* Hero */

    .hero {
        min-height: 680px;

        padding-top: 68px;

        background-position: 60% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(7, 46, 43, 0.85),
                rgba(7, 46, 43, 0.72)
            );
    }

    .hero-content {
        padding-top: 70px;
        padding-bottom: 190px;
    }

    .hero h1 {
        font-size: clamp(
            2.8rem,
            14vw,
            4rem
        );
    }

    .hero-description {
        font-size: 0.88rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;

        max-width: 290px;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;

        padding: 15px 0;
    }

    .hero-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 15px;

        padding: 7px 0;

        border-right: 0;
    }

    .hero-stat:first-child {
        padding-left: 0;
    }

    .hero-stat strong {
        margin-bottom: 0;
    }


    /* About */

    .about-grid {
        gap: 45px;
    }

    .about-image {
        height: 390px;
    }

    .about-badge {
        width: 110px;
        height: 110px;

        right: 10px;
        bottom: 18px;

        border-width: 5px;
    }

    .about-badge strong {
        font-size: 0.95rem;
    }

    .about-badge span {
        font-size: 0.55rem;
    }

    .about-content .lead {
        font-size: 0.92rem;
    }

    .about-content > p {
        font-size: 0.82rem;
    }


    /* Services */

    .section-heading {
        margin-bottom: 38px;
    }

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

    .service-card:last-child {
        grid-column: auto;
    }

    .service-card {
        padding: 28px 24px;
    }


    /* Process */

    .process {
        margin-top: 75px;
    }

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


    /* CTA */

    .cta {
        padding: 60px 0;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-inner .btn {
        width: auto;
        min-width: 190px;
    }


    /* Footer */

    .site-footer {
        padding-top: 55px;
    }

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

        gap: 38px 25px;

        padding-bottom: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        min-height: auto;

        flex-direction: column;
        align-items: flex-start;

        padding: 20px 0;
    }
}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 400px) {

    .header-login {
        padding: 0 11px;

        font-size: 0.64rem;
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        padding-top: 55px;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .hero-description {
        font-size: 0.82rem;
    }

    .about-image {
        height: 340px;
    }

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

    .footer-brand {
        grid-column: auto;
    }
}