
:root {
    --forest: #183c2e;
    --forest-dark: #102a21;
    --green: #315c46;
    --sage: #dce7d8;
    --cream: #f7f5ed;
    --white: #ffffff;
    --gold: #d7b56d;
    --text: #26362d;
    --muted: #78857b;
    --line: rgba(38, 54, 45, 0.14);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", sans-serif;
}

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

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

body {
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.7;
    overflow-x: hidden;
}

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

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

button {
    font: inherit;
}

.navbar {
    height: 84px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    color: white;
    transition: background .3s, height .3s, box-shadow .3s;
}

.navbar.scrolled {
    height: 72px;
    background: rgba(16, 42, 33, .97);
    box-shadow: 0 5px 30px rgba(0, 0, 0, .12);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    font-size: 17px;
}

.brand-light {
    font-weight: 400;
    opacity: .75;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 12px;
    font-weight: 500;
}

.nav-links a:not(.nav-cta) {
    opacity: .82;
    transition: opacity .2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    padding: 11px 17px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 3px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 760px;
    height: 100svh;
    max-height: 1050px;
    display: flex;
    align-items: center;
    color: white;
    background:
        url("../images/hero-ranomafana.jpg")
        center 48% / cover no-repeat,
        #254838;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(12, 34, 25, .84) 0%,
        rgba(12, 34, 25, .54) 47%,
        rgba(12, 34, 25, .12) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 130px 0 100px 10%;
}

.eyebrow,
.overline {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.3px;
    line-height: 1.8;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e6d4a5;
}

.hero h1,
.section-heading h2,
.intro-title h2,
.app-copy h2,
.final-cta h2 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -1.8px;
    line-height: 1.13;
}

.hero h1 {
    margin-top: 27px;
    font-size: clamp(54px, 7vw, 96px);
}

.hero h1 em,
.section-heading h2 em,
.intro-title h2 em,
.app-copy h2 em,
.final-cta h2 em {
    color: var(--gold);
    font-weight: 500;
}

.hero-content > p {
    max-width: 440px;
    margin-top: 25px;
    color: rgba(255,255,255,.8);
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 35px;
}

.btn {
    min-height: 51px;
    padding: 14px 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 17px;
    font-size: 11px;
    font-weight: 700;
    transition: transform .25s, background .25s;
}

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

.btn-primary {
    background: var(--gold);
    color: var(--forest-dark);
}

.btn-primary:hover {
    background: #e5c985;
}

.btn-glass {
    border: 1px solid rgba(255,255,255,.45);
    color: white;
    background: rgba(255,255,255,.07);
}

.btn-light {
    color: var(--forest-dark);
    background: var(--cream);
}

.hero-caption {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 70px;
    font-size: 9px;
    letter-spacing: 2px;
}

.caption-line,
.label-line {
    height: 1px;
    width: 42px;
    background: var(--gold);
}

.hero-bottom {
    position: absolute;
    z-index: 1;
    bottom: 27px;
    left: 7%;
    right: 7%;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.72);
    font-size: 9px;
    letter-spacing: 1.6px;
}

.section-padding {
    padding: 110px 10%;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.section-label .label-line {
    width: 60px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    margin-top: 55px;
}

.overline {
    color: var(--green);
    font-size: 9px;
    letter-spacing: 2px;
}

.intro-title h2,
.section-heading h2 {
    margin-top: 18px;
    font-size: clamp(40px, 5vw, 64px);
}

.intro-title h2 em,
.section-heading h2 em {
    color: var(--green);
}

.intro-text {
    padding-top: 18px;
}

.intro-text .lead {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.5;
}

.intro-text > p + p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--green);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 75px;
}

.stat-card {
    min-height: 155px;
    padding: 23px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
}

.stat-card i {
    color: var(--green);
    font-size: 21px;
}

.stat-card strong {
    margin-top: 7px;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 500;
}

.stat-card span {
    color: var(--muted);
    font-size: 10px;
}

.biodiversity {
    background: #eaece3;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 45px;
    margin: 42px 0 45px;
}

.section-heading > p {
    max-width: 370px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.nature-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(2, 290px);
    gap: 18px;
}

.nature-card {
    position: relative;
    overflow: hidden;
    background: var(--forest);
    color: white;
    min-height: 250px;
}

.nature-card-large {
    grid-row: span 2;
}

.nature-card img {
    height: 100%;
    position: absolute;
    inset: 0;
    transition: transform .7s;
}

.nature-card:hover img {
    transform: scale(1.05);
}

.card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(9,28,19,.88),
        rgba(9,28,19,.03) 80%
    );
}

.nature-card-content {
    position: absolute;
    left: 28px;
    right: 24px;
    bottom: 26px;
}

.card-number {
    font-size: 9px;
    color: #e4d3a5;
    letter-spacing: 1.5px;
}

.nature-card h3 {
    margin-top: 8px;
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 500;
}

.nature-card p {
    max-width: 370px;
    margin-top: 5px;
    color: rgba(255,255,255,.8);
    font-size: 11px;
}

.image-note {
    margin-top: 15px;
    color: var(--muted);
    font-size: 10px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.experience-card {
    position: relative;
    padding: 28px 22px;
    min-height: 275px;
    border: 1px solid var(--line);
    transition: background .3s, transform .3s;
}

.experience-card:hover {
    background: white;
    transform: translateY(-5px);
}

.experience-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--sage);
    color: var(--green);
    border-radius: 50%;
    font-size: 19px;
}

.experience-index {
    position: absolute;
    right: 20px;
    top: 29px;
    color: #9ba69c;
    font-size: 10px;
}

.experience-card h3,
.planning-card h3 {
    margin-top: 26px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.35;
}

.experience-card p,
.planning-card p {
    margin-top: 13px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.experience-card > a {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: var(--green);
    font-size: 18px;
}

.app-section {
    position: relative;
    overflow: hidden;
    background: var(--forest-dark);
    color: white;
}

.app-background {
    position: absolute;
    inset: 0;
    opacity: .14;
    background:
        radial-gradient(ellipse at 80% 40%, #69926b, transparent 50%),
        radial-gradient(ellipse at 20% 100%, #486e51, transparent 45%);
}

.app-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr .85fr;
    align-items: center;
    gap: 9%;
}

.app-copy .overline {
    color: #d6c18c;
}

.app-copy h2 {
    margin-top: 24px;
    font-size: clamp(42px, 5vw, 66px);
}

.app-copy > p {
    max-width: 490px;
    margin-top: 22px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    line-height: 1.9;
}

.feature-list {
    display: grid;
    gap: 16px;
    margin: 28px 0 32px;
}

.feature-list > div {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 12px;
}

.feature-list i {
    color: var(--gold);
    font-size: 18px;
}

.app-note {
    font-size: 10px !important;
    color: rgba(255,255,255,.5) !important;
}

.app-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

.app-image-frame {
    width: min(100%, 360px);
    min-height: 400px;
    overflow: hidden;
    border: 7px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: #e6eadd;
    transform: rotate(2deg);
    box-shadow: 0 30px 70px rgba(0,0,0,.25);
}

.app-image-frame img {
    height: 100%;
    min-height: 400px;
}

.app-placeholder {
    min-height: 400px;
    padding: 25px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--forest);
    text-align: center;
}

.app-placeholder i {
    font-size: 65px;
}

.app-placeholder span {
    font-size: 12px;
}

.floating-badge {
    position: absolute;
    right: -5px;
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 19px;
    background: var(--cream);
    color: var(--forest);
    box-shadow: 0 15px 30px rgba(0,0,0,.16);
    font-size: 11px;
    font-weight: 700;
}

.floating-badge i {
    font-size: 20px;
}

.planning {
    background: #f0efe6;
}

.planning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.planning-card {
    padding: 30px;
    background: rgba(255,255,255,.65);
}

.planning-card > i {
    color: var(--green);
    font-size: 25px;
}

.planning-card h3 {
    margin-top: 18px;
}

.planning-footer {
    display: flex;
    align-items: start;
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--line);
}

.planning-footer i {
    color: var(--green);
}

.planning-footer p {
    color: var(--muted);
    font-size: 11px;
}

.final-cta {
    position: relative;
    min-height: 440px;
    padding: 85px 8%;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    background:
        url("../images/sources-thermales.jpg")
        center / cover no-repeat,
        #234b37;
}

.final-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 38, 27, .76);
}

.final-cta-content {
    position: relative;
    max-width: 750px;
}

.final-cta .overline {
    color: #dfcb98;
}

.final-cta h2 {
    margin-top: 20px;
    font-size: clamp(39px, 5vw, 65px);
}

.final-cta p {
    margin: 20px auto 28px;
    color: rgba(255,255,255,.8);
    font-size: 13px;
}

.footer {
    padding: 45px 8% 20px;
    background: #102a21;
    color: white;
}

.footer-brand {
    justify-content: center;
    display: flex;
}

.footer > p {
    margin-top: 12px;
    color: rgba(255,255,255,.55);
    text-align: center;
    font-size: 11px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 27px;
    margin: 28px 0;
    font-size: 11px;
}

.footer-links a {
    color: rgba(255,255,255,.7);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.5);
    font-size: 10px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1000px) {
    .navbar {
        padding: 0 5%;
    }

    .nav-links {
        gap: 18px;
    }

    .section-padding {
        padding: 85px 6%;
    }

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

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

    .app-grid {
        gap: 5%;
    }
}

@media (max-width: 760px) {
    .navbar {
        height: 70px;
    }

    .brand {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .brand-icon {
        width: 31px;
        height: 31px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 20px 6% 26px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        background: var(--forest-dark);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-cta {
        align-self: flex-start;
    }

    .hero {
        min-height: 700px;
        max-height: none;
        height: 92svh;
        background-position: 60% center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(12,34,25,.82),
            rgba(12,34,25,.38)
        );
    }

    .hero-content {
        padding: 120px 7% 80px;
    }

    .hero h1 {
        font-size: clamp(48px, 12vw, 74px);
    }

    .hero-content > p {
        font-size: 13px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 270px;
    }

    .hero-caption {
        margin-top: 45px;
    }

    .hero-bottom {
        font-size: 8px;
        left: 6%;
        right: 6%;
    }

    .section-padding {
        padding: 72px 6%;
    }

    .intro-grid,
    .app-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .intro-grid {
        margin-top: 35px;
    }

    .intro-text {
        padding-top: 0;
    }

    .intro-text .lead {
        font-size: 21px;
    }

    .stats-grid {
        margin-top: 40px;
        gap: 10px;
    }

    .stat-card {
        min-height: 140px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin: 32px 0;
    }

    .nature-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 350px 270px 270px;
    }

    .nature-card-large {
        grid-row: auto;
    }

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

    .experience-card {
        min-height: 230px;
    }

    .app-grid {
        gap: 25px;
    }

    .app-visual {
        min-height: 350px;
    }

    .app-image-frame {
        min-height: 350px;
        max-width: 300px;
    }

    .app-image-frame img,
    .app-placeholder {
        min-height: 350px;
    }

    .floating-badge {
        right: 0;
        bottom: 15px;
    }

    .planning-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .planning-card {
        padding: 24px;
    }

    .final-cta {
        min-height: 390px;
        padding: 70px 6%;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}
