/* =====================================================
   RHINGGO ENERGY
   ABOUT US PAGE
   RESPONSIVE / LAPTOP OPTIMIZED
===================================================== */

:root {
    --green: #19B419;
    --dark-green: #19B419;
    --black: #0b0f08;
    --dark: #121712;
    --white: #ffffff;
    --light: #f5f7f3;
    --gray: #687067;
    --border: #e4e8e1;
}


/* =====================================================
   GENERAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    font-family: "Inter", sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

img {
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.nav-container {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 145px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-button {
    background: var(--black);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-button:hover {
    background: var(--green);
    color: var(--black);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    background: var(--black);
    margin: 6px 0;
}


/* =====================================================
   HERO
   FITS LAPTOP VIEWPORT
===================================================== */

.hero {
    position: relative;

    /* Exactly one viewport */
    width: 100%;
    height: 100vh;
    min-height: 600px;

    display: flex;
    align-items: center;

    padding-top: 78px;

    background:
        linear-gradient(
            90deg,
            rgba(5, 10, 5, 0.90),
            rgba(5, 10, 5, 0.35)
        ),
        url("images/about-hero.jpg") center/cover no-repeat;

    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 0;
    padding-left: 25px;
}

.hero-label,
.section-label {
    display: inline-block;
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-label {
    color: var(--green);
}

.hero h1 {
    max-width: 760px;

    font-size: clamp(42px, 5.5vw, 76px);
    line-height: 0.98;
    letter-spacing: -3px;

    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--green);
}

.hero p {
    max-width: 620px;

    font-size: 17px;
    line-height: 1.55;

    color: #e2e6df;

    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* =====================================================
   BUTTONS
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 24px;

    font-size: 13px;
    font-weight: 800;

    border-radius: 4px;

    transition: 0.3s;
}

.btn-primary {
    background: var(--green);
    color: var(--black);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(140, 255, 0, 0.25);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.6);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

.btn-white {
    background: white;
    color: black;
}


/* =====================================================
   INTRO
===================================================== */

.intro {
    background: var(--white);
    padding: 90px 0;
}

.intro-grid {
    display: grid;

    /* IMPORTANT: prevents overflow */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 55px;

    align-items: center;

    /* Removed the old 200px margin */
    margin-left: 0;
}

.intro-image {
    position: relative;
    width: 100%;
    min-width: 0;
}

.intro-image img {
    width: 100%;
    height: 560px;

    object-fit: cover;

    border-radius: 5px;
}

.image-badge {
    position: absolute;

    right: 20px;
    bottom: 30px;

    background: var(--green);

    padding: 18px 22px;

    display: flex;
    flex-direction: column;
}

.image-badge strong {
    font-size: 26px;
}

.image-badge span {
    font-size: 11px;
    font-weight: 700;
}

.intro-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
}

.intro-content .section-label {
    margin-bottom: 15px;
}

.intro-content h2,
.section-heading h2,
.why-content h2 {
    font-size: clamp(35px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

.intro-content p {
    width: 100%;
    max-width: 650px;

    color: var(--gray);

    margin-bottom: 18px;

    font-size: 15px;
    line-height: 1.65;
}

.text-link {
    display: inline-block;

    margin-top: 10px;

    font-weight: 800;

    border-bottom: 2px solid var(--green);
}


/* =====================================================
   STATS
===================================================== */

.stats-section {
    background: var(--black);
    color: white;

    padding: 65px 0;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 25px;
}

.stat {
    min-width: 0;

    border-left:
        1px solid rgba(255,255,255,.15);

    padding-left: 22px;
}

.stat-number {
    display: inline-block;

    font-size: 45px;
    font-weight: 800;

    line-height: 1;
}

.stat > span {
    color: var(--green);

    font-size: 27px;
    font-weight: 800;
}

.stat p {
    color: #aab1a8;

    margin-top: 9px;

    font-size: 13px;
}


/* =====================================================
   MISSION
===================================================== */

.mission {
    background: var(--light);
}

.mission-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
}

.mission-card {
    padding: 55px;

    background: white;
}

.mission-card.dark {
    background: var(--black);
    color: white;
}

.card-icon {
    font-size: 30px;
    margin-bottom: 20px;
}

.mission-card span:not(.card-icon) {
    color: var(--dark-green);

    font-size: 23px;
    font-weight: 900;

    letter-spacing: 2px;
}

.mission-card.dark span {
    color: var(--green);
}

.mission-card h3 {
    font-size: 30px;
    line-height: 1.1;

    margin: 12px 0;
}

.mission-card p {
    color: var(--gray);

    font-size: 15px;
}

.mission-card.dark p {
    color: #afb6ad;
}


/* =====================================================
   SOLUTIONS
===================================================== */

.section-heading {
    text-align: center;

    max-width: 700px;

    margin:
        0 auto 50px;
}

.section-heading p {
    color: var(--gray);
}

.solution-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.solution-card {
    min-width: 0;

    border: 1px solid var(--border);

    background: white;

    overflow: hidden;

    transition: 0.35s;
}

.solution-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 45px rgba(0,0,0,.08);
}

.solution-image img {
    width: 100%;
    height: 250px;

    object-fit: cover;
}

.solution-content {
    padding: 27px;
}

.solution-content > span {
    color: var(--dark-green);

    font-weight: 800;
    font-size: 12px;
}

.solution-content h3 {
    font-size: 24px;

    margin: 8px 0;
}

.solution-content p {
    color: var(--gray);

    font-size: 14px;
}


/* =====================================================
   WHY RHINGGO
===================================================== */

.why {
    background: var(--light);
}

.why-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 60px;

    align-items: center;
}

.why-content {
    min-width: 0;
}

.why-content > p {
    color: var(--gray);

    margin-bottom: 25px;
}

.benefit {
    display: flex;

    gap: 16px;

    margin: 22px 0;
}

.benefit-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green);

    border-radius: 50%;

    font-weight: 900;
}

.benefit h4 {
    margin-bottom: 3px;
}

.benefit p {
    color: var(--gray);

    font-size: 14px;
}

.why-image {
    position: relative;
    min-width: 0;
}

.why-image img {
    width: 100%;
    height: 580px;

    object-fit: cover;
}

.quote-box {
    position: absolute;

    left: 20px;
    bottom: 25px;

    background: var(--black);
    color: white;

    padding: 22px 27px;

    display: flex;
    flex-direction: column;
}

.quote-box strong {
    color: var(--green);

    font-size: 21px;
}

.quote-box span {
    font-size: 13px;
}


/* =====================================================
   SUSTAINABILITY
===================================================== */

.sustainability {
    min-height: 520px;

    display: flex;
    align-items: center;

    position: relative;

    color: white;

    background:
        linear-gradient(
            rgba(0,0,0,.7),
            rgba(0,0,0,.7)
        ),
        url("images/sustainability.jpg") center/cover no-repeat;
}

.sustain-content {
    max-width: 750px;
}

.sustain-content h2 {
    font-size: clamp(40px, 5.5vw, 65px);

    line-height: 1;

    letter-spacing: -3px;

    margin-bottom: 22px;
}

.sustain-content p {
    max-width: 650px;

    color: #d4d8d2;

    margin-bottom: 25px;
}


/* =====================================================
   TIMELINE
===================================================== */

.journey {
    background: white;
}

.timeline {
    max-width: 850px;

    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 15px;
    top: 0;
    bottom: 0;

    width: 2px;

    background: var(--border);
}

.timeline-item {
    position: relative;

    padding-left: 65px;

    margin-bottom: 45px;
}

.timeline-dot {
    position: absolute;

    left: 6px;
    top: 4px;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: var(--green);

    border: 5px solid white;

    box-shadow:
        0 0 0 1px var(--border);
}

.timeline-content span {
    font-size: 11px;

    color: var(--dark-green);

    font-weight: 800;
}

.timeline-content h3 {
    font-size: 27px;

    margin: 5px 0;
}

.timeline-content p {
    color: var(--gray);
}


/* =====================================================
   CTA
===================================================== */

.cta {
    background: var(--green);

    padding: 65px 0;
}

.cta-content {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 35px;
}

.cta-content > div > span {
    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.cta h2 {
    font-size: clamp(35px, 4.5vw, 55px);

    line-height: 1;

    margin-top: 8px;

    letter-spacing: -2px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: var(--black);

    color: white;

    padding: 70px 0 25px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 40px;

    padding-bottom: 55px;
}

.footer-brand img {
    width: 145px;

    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 360px;

    color: #9da59a;

    font-size: 14px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 11px;
}

.footer-column h4 {
    color: var(--green);

    margin-bottom: 7px;
}

.footer-column a,
.footer-column p {
    color: #a8afa5;

    font-size: 13px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top:
        1px solid rgba(255,255,255,.12);

    padding-top: 23px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: #747c72;

    font-size: 12px;
}


/* =====================================================
   BACK TO TOP
===================================================== */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: none;

    background: var(--green);

    color: black;

    font-size: 20px;
    font-weight: bold;

    border-radius: 50%;

    cursor: pointer;

    opacity: 0;

    pointer-events: none;

    transition: .3s;

    z-index: 900;
}

.back-to-top.show {
    opacity: 1;

    pointer-events: auto;
}


/* =====================================================
   REVEAL ANIMATION
===================================================== */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


/* =====================================================
   LAPTOP
   1024px - 1200px
===================================================== */

@media (max-width: 1200px) {

    .container {
        width: 92%;
    }

    .nav-menu {
        gap: 20px;
    }

    .hero h1 {
        font-size: clamp(42px, 5.5vw, 65px);
    }

    .hero p {
        font-size: 16px;
    }

    .intro-grid {
        gap: 40px;
    }

    .intro-image img {
        height: 500px;
    }

    .why-grid {
        gap: 40px;
    }

    .why-image img {
        height: 520px;
    }

    .section {
        padding: 75px 0;
    }

    .stats-section {
        padding: 55px 0;
    }

    .solution-image img {
        height: 220px;
    }

    .mission-card {
        padding: 45px;
    }

    .footer-grid {
        gap: 30px;
    }
}


/* =====================================================
   SMALL LAPTOP / SHORT SCREEN
   Example: 1366x768
===================================================== */

@media (min-width: 901px) and (max-height: 800px) {

    .header,
    .nav-container {
        height: 70px;
    }

    .hero {
        height: 100vh;

        min-height: 580px;

        padding-top: 70px;
    }

    .hero h1 {
        font-size: clamp(40px, 5vw, 62px);

        margin-bottom: 18px;
    }

    .hero p {
        max-width: 570px;

        font-size: 15px;

        line-height: 1.5;

        margin-bottom: 20px;
    }

    .hero-label {
        margin-bottom: 10px;
    }

    .btn {
        padding: 12px 21px;

        font-size: 12px;
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    /* HEADER */

    .header,
    .nav-container {
        height: 72px;
    }

    .nav-menu {
        position: absolute;

        top: 72px;
        left: 0;

        width: 100%;

        background: white;

        flex-direction: column;

        align-items: flex-start;

        padding: 25px 5%;

        gap: 18px;

        box-shadow:
            0 15px 30px rgba(0,0,0,.08);

        transform:
            translateY(-150%);

        opacity: 0;

        pointer-events: none;

        transition: .3s;
    }

    .nav-menu.open {
        transform: translateY(0);

        opacity: 1;

        pointer-events: auto;
    }

    .nav-button {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    /* HERO */

    .hero {
        min-height: 650px;

        height: 100vh;

        padding-top: 72px;
    }

    .hero h1 {
        font-size: clamp(42px, 8vw, 65px);

        letter-spacing: -2px;
    }


    /* INTRO */

    .intro-grid,
    .why-grid {
        grid-template-columns: 1fr;

        gap: 40px;

        margin-left: 0;
    }

    .intro-image img {
        height: 500px;
    }

    .intro-content {
        width: 100%;

        padding: 0;
    }


    /* STATS */

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* SOLUTIONS */

    .solution-grid {
        grid-template-columns: 1fr;
    }


    /* MISSION */

    .mission-grid {
        grid-template-columns: 1fr;
    }


    /* WHY */

    .why-image img {
        height: 500px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* CTA */

    .cta-content {
        flex-direction: column;

        align-items: flex-start;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 65px 0;
    }


    /* HERO */

    .hero {
        min-height: 650px;

        height: 100svh;

        padding-top: 72px;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 55px);

        letter-spacing: -2px;

        margin-bottom: 18px;
    }

    .hero p {
        font-size: 15px;

        line-height: 1.55;

        margin-bottom: 22px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }


    /* INTRO */

    .intro {
        padding: 65px 0;
    }

    .intro-image img,
    .why-image img {
        height: 420px;
    }

    .image-badge {
        right: 10px;

        bottom: 20px;

        padding: 15px 18px;
    }


    /* STATS */

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .stat {
        padding-left: 15px;
    }

    .stat-number {
        font-size: 35px;
    }

    .stat > span {
        font-size: 22px;
    }


    /* MISSION */

    .mission-card {
        padding: 40px 25px;
    }


    /* SOLUTIONS */

    .solution-image img {
        height: 230px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
    }


    /* CTA */

    .cta {
        padding: 55px 0;
    }
}


/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat {
        padding-left: 15px;
    }

    .intro-image img,
    .why-image img {
        height: 360px;
    }
}