@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #01393A;
    --secondary: #678660;
    --light-bg: #f4f7f6;
    --dark-text: #1a2e2e;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --gradient-green: linear-gradient(135deg, var(--secondary), #4e8055);
}

/* Global & Reset */
body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.6;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    position: sticky;
    /* Sticky instead of fixed for easier page flow, or fixed with body padding */
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

#main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
}

.nav-links a.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

.nav-links a:hover {
    color: var(--secondary);
}

.header-socials {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 15px;
    padding-left: 20px;
    border-left: 1px solid #ddd;
}

.header-socials a {
    color: inherit;
    transition: transform 0.3s;
    display: inline-flex;
}

.header-socials a:hover {
    transform: translateY(-2px);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-green);
    color: white !important;
    box-shadow: 0 5px 15px rgba(103, 134, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(103, 134, 96, 0.5);
}

.btn-outline-light {
    border: 2px solid white;
    color: white !important;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary) !important;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary);
    font-weight: 700;
}

.text-left {
    text-align: left;
}

.subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Hero (Home) */
.hero {
    height: 90vh;
    /* Slightly smaller */
    background: url('../assets/img/hero-green.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(1, 40, 41, 0.8), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.highlight {
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Page Header (Internal Pages) */
.page-header {
    background: var(--primary);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.relative {
    position: relative;
    z-index: 2;
}

/* Problem Section (High Bill) */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.problem-img-wrapper {
    position: relative;
}

.problem-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
    transition: transform 0.3s;
}

.problem-img:hover {
    transform: rotate(0deg);
}

.sys-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.sys-features li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* Advantages Grid */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.adv-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s;
}

.adv-card:hover {
    transform: translateY(-10px);
}

.adv-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* History Page */
.history-full {
    background: white;
}

.story-block {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.founder-card.large {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.founder-card .role {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.founder-card .desc {
    font-size: 0.95rem;
    color: #666;
}

.story-footer {
    text-align: center;
    margin-top: 60px;
    font-style: italic;
    color: var(--primary);
}

/* Systems Detail Page */
.systems-detail {
    background: white;
}

.system-block {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.system-block.reverse {
    flex-direction: row-reverse;
}

.sys-detail-img {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.sys-detail-content {
    flex: 1.2;
}

.sys-detail-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.sys-intro {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.sys-description {
    margin-bottom: 20px;
}

.sys-components {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary);
}

.sys-components h4,
.sys-description h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.sys-components ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.sys-components ul li::before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 60px 0;
}

/* Calculator Page */
.calculator-bg {
    background: linear-gradient(180deg, #f4f7f6 0%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-wrapper {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 57, 58, 0.1);
    padding: 50px;
    width: 100%;
    max-width: 900px;
}

.calc-header {
    text-align: center;
    margin-bottom: 40px;
}

.calc-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.input-group input {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    padding: 15px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    color: var(--primary);
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.res-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.res-card h4 {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 5px 0 0;
}

.res-card.highlight {
    background: var(--primary);
}

.res-card.highlight h4,
.res-card.highlight span {
    color: white;
}

/* Contact Footer */
.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    flex-wrap: wrap;
    gap: 30px;
}

.contact-wrapper form {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.contact-wrapper form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
}

/* Form Status Notification - Toast Style */
.form-status-msg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 25px rgba(1, 40, 41, 0.4);
    z-index: 9999;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-status-msg::before {
    content: "✓";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
}

.form-status-msg.hidden {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    pointer-events: none;
    visibility: hidden;
}

.form-status-msg.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    /* Navbar stack */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    #main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        border-radius: 0 0 15px 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        z-index: 999;
    }

    #main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        width: 100%;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-links .btn {
        padding: 10px 20px;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .header-socials {
        margin-left: 0;
        margin-top: 10px;
        padding-left: 0;
        padding-top: 20px;
        border-left: none;
        border-top: 1px solid #eee;
        width: 100%;
        justify-content: center;
    }

    /* Typograpy scaling */
    .hero h1 {
        font-size: 2.2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Paddings */
    .section {
        padding: 50px 0;
    }

    /* Grids to 1 column */
    .problem-grid,
    .system-block,
    .system-block.reverse {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .problem-img-wrapper,
    .sys-detail-img {
        margin-bottom: 0;
    }

    .contact-wrapper {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
    }

    .contact-wrapper>div {
        margin-bottom: 20px;
    }

    .contact-wrapper form {
        width: 100%;
        flex-direction: column;
    }

    .calc-wrapper {
        padding: 30px 20px;
    }

    /* Toast adjustment for mobile */
    .form-status-msg {
        bottom: 20px;
        right: 20px;
        left: 20px;
        border-radius: 8px;
        padding: 15px;
        justify-content: center;
    }
}