/* ========================================================================
   FOMBINA RENEWABLE ENERGY SERVICES LIMITED
   Professional Corporate Website — Navy / Green / White
   ======================================================================== */

/* ===== Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a3a5c;
    --navy-dark: #0f2540;
    --navy-light: #2a5580;
    --green: #2ecc71;
    --green-dark: #1a8a4a;
    --green-light: #55e89d;
    --white: #ffffff;
    --off-white: #f8f9fb;
    --light-gray: #f0f3f7;
    --mid-gray: #dde3eb;
    --text: #2c3e50;
    --text-light: #5a6b7d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(46,204,113,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===== Section Common ===== */
.section-label {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green);
    margin-bottom: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--navy);
    letter-spacing: 0.5px;
}

.section-title.left {
    text-align: left;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--green);
    margin: 14px auto 0;
    border-radius: 2px;
}

.section-line.left {
    margin-left: 0;
}

.section-desc {
    margin-top: 16px;
    font-size: 16px;
    color: var(--text-light);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========================================================================
   HEADER
   ======================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header.scrolled .nav-links a { color: var(--navy); }
.header.scrolled .nav-links a:hover { color: var(--green); }
.header.scrolled .hamburger span { background: var(--navy); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    filter: none;
}

/* Default: white logo on transparent header over hero */
.header:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--white);
}

.header.scrolled .nav-links a:hover {
    color: var(--green);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--navy);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15,37,64,0.88) 0%,
        rgba(26,58,92,0.78) 40%,
        rgba(26,58,92,0.72) 60%,
        rgba(15,37,64,0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 820px;
}

.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 5.5vw, 64px);
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(16px, 1.8vw, 20px);
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================================================
   ABOUT
   ======================================================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

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

.about-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-img-accent {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--green);
    border-radius: var(--radius-lg);
    z-index: -1;
    pointer-events: none;
}

.about-text-col {
    padding-top: 10px;
}

.about-text-col p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--light-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--green);
}

.stat-item:hover .stat-icon,
.stat-item:hover .stat-text strong,
.stat-item:hover .stat-text span {
    color: var(--white);
}

.stat-icon {
    width: 44px;
    height: 44px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    background: rgba(255,255,255,0.2);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
    transition: var(--transition);
}

.stat-text span {
    font-size: 13px;
    color: var(--text-light);
    transition: var(--transition);
}

/* ========================================================================
   SERVICES
   ======================================================================== */
.services {
    padding: 100px 0;
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

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

.service-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-card-img img {
    transform: scale(1.06);
}

.service-card-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    box-shadow: 0 2px 12px rgba(46,204,113,0.35);
}

.service-card-body {
    padding: 28px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.service-link i {
    font-size: 11px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--green-dark);
    gap: 10px;
}

/* ========================================================================
   PROJECTS
   ======================================================================== */
.projects {
    padding: 100px 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
}

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

.project-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.06);
}

.project-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,58,92,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-slow);
}

.project-card:hover .project-hover-overlay {
    opacity: 1;
}

.project-hover-content {
    text-align: center;
    color: var(--white);
}

.project-hover-content i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.project-hover-content span {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-card-body {
    padding: 22px 20px;
}

.project-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(46,204,113,0.1);
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.project-card-body h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================================================
   CONTACT
   ======================================================================== */
.contact {
    padding: 100px 0;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    border: 2px solid var(--mid-gray);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(46,204,113,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aab3bf;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: flex-start;
}

/* Contact Info */
.contact-info-box {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.contact-social {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-social span {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-social-icons {
    display: flex;
    gap: 10px;
}

.contact-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.contact-social-icons a:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
    background: var(--navy-dark);
    padding: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.8);
}

.footer-links-col h4,
.footer-services-col h4,
.footer-contact-col h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-col ul,
.footer-services-col ul {
    list-style: none;
}

.footer-links-col li,
.footer-services-col li {
    margin-bottom: 10px;
}

.footer-links-col a,
.footer-services-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}

.footer-links-col a:hover,
.footer-services-col a:hover {
    color: var(--green-light);
    padding-left: 4px;
}

.footer-contact-col p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-col p i {
    color: var(--green);
    font-size: 13px;
    width: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================================
   SCROLL-TO-TOP
   ======================================================================== */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--green);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(46,204,113,0.35);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 1000;
    }

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

    .nav-links.active a {
        color: rgba(255,255,255,0.85);
        font-size: 18px;
    }

    .hamburger {
        display: flex;
    }

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

    .about-img {
        height: 300px;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-social,
    .contact-social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}