/*
Theme Name: Gh2Kenya
Theme URI: https://example.com/gh2kenya
Author: Antigravity
Author URI: https://google.com
Description: A WordPress theme for Gh2Kenya, compatible with Elementor.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, elementor-friendly
Text Domain: gh2kenya
*/

:root {
    --color-primary-start: #72BE44;
    --color-primary-end: #8BDF58;
    --color-gradient-green: linear-gradient(93deg, var(--color-primary-start) 1.29%, var(--color-primary-end) 96.22%);
    --color-deep-blue: #0E1B2D;
    --color-text-dark: #0E1B2D;
    --color-text-light: #FFFFFF;
    --color-bg-light: #FFFFFF;
    --font-heading: 'Geologica', sans-serif;
    --font-body: 'Arial', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Header Top Bar */
.header-top {
    background-color: #F8F9FA;
    border-bottom: 1px solid #E9ECEF;
    padding: 8px 0;
    font-size: 13px;
    color: #333;
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-ticker {
    font-family: var(--font-body);
    color: #666;
}

.stock-ticker strong {
    color: #000;
}

.stock-up {
    color: #72BE44;
    /* Green */
    font-weight: 700;
    margin-left: 5px;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top-right a {
    color: #666;
    font-weight: 500;
}

.header-top-right a:hover {
    color: #72BE44;
}

.btn-capsule {
    background-color: #E9ECEF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-capsule:hover {
    background-color: #DEE2E6;
    color: #333 !important;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 700;
    color: #333;
}

/* Header Main Bar */
.header-main {
    height: 80px;
    background-color: #fff;
}

.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.logo-iberdrola {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-leaves {
    display: flex;
    gap: 2px;
}

.leaf {
    width: 20px;
    /* Simplified leaf shape */
    height: 28px;
    border-radius: 50% 0 50% 0;
    transform: rotate(-15deg);
}

.leaf-blue {
    background-color: #0077C8;
    margin-top: 5px;
}

.leaf-orange {
    background-color: #F58220;
    height: 32px;
}

.leaf-green {
    background-color: #72BE44;
    margin-top: 8px;
    border-radius: 0 50% 0 50%;
    transform: rotate(15deg);
}

.logo-text {
    font-family: var(--font-heading);
    color: #72BE44;
    /* Brand Green */
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation */

.nav-main ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-main li {
    position: relative;
    list-style: none;
}

.nav-main a {
    font-family: var(--font-body);
    color: #333;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 10px 0;
    display: block;
}

.nav-main a:hover {
    color: #72BE44;
}

/* Sub-menu Styles */
.nav-main .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    /* Optional: Slight rounded corners */
    display: none;
    flex-direction: column;
    padding: 10px 0;
    z-index: 1000;
    gap: 0;
    /* Override main ul gap */
}

/* Show sub-menu on hover */
.nav-main li:hover>.sub-menu {
    display: block;
}

/* Sub-menu links */
.nav-main .sub-menu li {
    width: 100%;
}

.nav-main .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.nav-main .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-main .sub-menu a:hover {
    background-color: #f8f9fa;
    color: #72BE44;
    padding-left: 25px;
    /* Slight movement effect */
}

/* Utilities */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn,
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
}

/* Mobile Responsive */
@media (max-width: 900px) {

    .header-top,
    .nav-main {
        display: none;
    }

    .header-main {
        height: 60px;
    }

    .logo-text {
        font-size: 22px;
    }

    .leaf {
        width: 14px;
        height: 20px;
    }

    .leaf-orange {
        height: 24px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #1a3a5f 0%, #0E1B2D 100%);
    color: var(--color-text-light);
    text-align: center;
    padding-top: var(--header-height);
    /* Masking effect */
    border-bottom-right-radius: 30vw;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Placeholder for particle animation */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgb3BhY2l0eT0iMC4xIj48Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSIyIiBmaWxsPSIjZmZmIi8+PC9zdmc+');
    opacity: 0.5;
    animation: particleDrift 20s linear infinite;
    z-index: 1;
}

@keyframes particleDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 100%;
    }
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Particles on top of overlay but below text */
    pointer-events: none;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay to ensure text readability over video */
    background: radial-gradient(circle at center, rgba(14, 27, 45, 0.4) 0%, var(--color-deep-blue) 90%);
    opacity: 0.8;
    /* Fixed invalid opacity */
    z-index: 1;
}

.hero-content {
    z-index: 3;
    /* Ensure text is always on top */
    position: relative;
    /* Needed for z-index to work */
}

.pill-badge {
    background: var(--color-gradient-green);
    color: var(--color-deep-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4rem;
    line-height: 1.1;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    z-index: 2;
}

/* Value Prop Section */
.value-prop {
    padding: 100px 0;
    background-color: #F3F3F3;
    /* Light grey match */
    text-align: center;
    position: relative;
    z-index: 1;
    /* Below Hero which is z-index 1? No, Hero needs to be higher to mask over. */
    margin-top: -50px;
    /* Pull up slightly */
    padding-top: 150px;
    /* Compensate */
}

/* Ensure Hero is on top to show the curve */
.hero {
    z-index: 2;
}

.value-prop-card {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.icon-droplet {
    color: var(--color-primary-start);
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.icon-droplet span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-deep-blue);
    line-height: 1.2;
}

.renewables-icons {
    display: flex;
    gap: 20px;
    font-size: 2rem;
    color: #ccc;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        /* Add mobile menu logic later */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .value-text {
        font-size: 1.8rem;
    }
}

/* Technology Section */
.technology {
    position: relative;
    padding: 120px 0 0;
    /* Removing bottom padding as curve handles it */
    background: linear-gradient(135deg, #0E1B2D 0%, #1a3a5f 100%);
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.tech-bg-text-container {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    line-height: 0.85;
}

.tech-bg-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 10vw;
    /* Responsive based on viewport width */
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.03);
    /* Very subtle opacity */
    white-space: nowrap;
}

.tech-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.tech-content-centered {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-sub-title {
    font-family: var(--font-heading);
    color: #72BE44;
    /* Bright Green */
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-main-title {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.tech-description-centered {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
}

.tech-cta-wrapper {
    margin-bottom: 20px;
}

/* Facility Card */
.tech-visual-card-wrapper {
    width: 100%;
    max-width: 900px;
    position: relative;
    margin-bottom: -5px;
    /* Pull down slightly to touch bottom curve if needed, but curve handles strict overlap */
    z-index: 2;
}

.tech-visual-card {
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    /* White border effect */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.tech-visual-card:hover {
    transform: translateY(-10px);
}

.tech-facility-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-icon {
    color: #fff;
    font-size: 24px;
    margin-left: 5px;
    /* Optical adjustment for play triangle */
}

.play-button-overlay:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Curved Separator */
.curved-separator-bottom {
    position: relative;
    /* Changed from absolute to flow naturally after content */
    width: 100%;
    line-height: 0;
    margin-top: -80px;
    /* Pull up to overlap with the section content/card */
    z-index: 1;
    /* Behind the card? No, card is z-index 2. This is background-like */
}

/* Make sure the card sits ON TOP of the white curve bottom */
.tech-visual-card-wrapper {
    margin-bottom: 50px;
    /* Push content up so card bottom floats over the curve? */
    /* Actually design shows card largely above the curve line. */
    /* Let's adjust margins: */
    margin-bottom: -60px;
    /* Pull card down to overlap the white area below */
}

@media (max-width: 768px) {
    .tech-bg-text {
        font-size: 15vw;
    }

    .tech-main-title {
        font-size: 2rem;
    }

    .tech-visual-card-wrapper {
        margin-bottom: -30px;
    }
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary-start);
}

.benefit-icon {
    font-size: 2.5rem;
    background: var(--color-gradient-green);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-deep-blue);
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .tech-container {
        flex-direction: column;
        text-align: center;
    }

    .tech-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.benefit-card:hover .benefit-icon {
    background-clip: text;
    -webkit-background-clip: text;
}

/* Markets Section */
.markets {
    padding: 100px 0;
    background-color: #F9FAFB;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.markets-scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.markets-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.markets-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.market-card {
    min-width: 300px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.market-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-deep-blue);
    margin-bottom: 20px;
}

.market-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-deep-blue);
    margin-bottom: 10px;
}

.market-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Footer */
.footer {
    background-color: var(--color-deep-blue);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    color: #fff;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
    color: var(--color-primary-start);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.legal-links {
    display: flex;
    gap: 20px;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
    }
}

/* Ticker Animation */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--color-deep-blue, #0E1B2D);
    color: white;
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
    z-index: 900;
}

.ticker {
    display: inline-block;
    animation: ticker-scroll 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Parallax Background */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('https://tes-h2.com/sites/default/files/styles/hero_image_desktop/public/2022-05/Visual_Home_Hero.jpg?h=50c90c56&itok=M0a6Xl_G') no-repeat center center / cover;
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
    /* dimmed for text visibility */
}

/* Ensure JS class compatibility */
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(14, 27, 45, 0.98);
    /* Deep Blue with opacity */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-close-btn:hover {
    transform: rotate(90deg);
    color: #72BE44;
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
}

.search-form {
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.search-field {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 15px 0;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-submit {
    background: none;
    border: none;
    color: #72BE44;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
    transition: transform 0.3s ease;
}

.search-submit:hover {
    transform: translateX(5px);
}

/* Elementor Editor Compatibility */
body.elementor-editor-active .header {
    position: relative !important;
    /* Make header static in editor so it doesn't float over controls */
    top: auto !important;
    left: auto !important;
    box-shadow: none !important;
}

body.elementor-editor-active .hero {
    height: auto !important;
    /* Allow hero to shrink/grow based on content in editor */
    min-height: 100vh;
    padding-top: 20px !important;
    /* Remove huge padding since header is now relative */
}

/* Ensure controls are visible */
body.elementor-editor-active .elementor-editor-section-settings {
    z-index: 10001 !important;
}