/* 
    Sustain Edge Design System
    Palette: Deep Forest Green, Emerald Accent, Ivory, Slate
*/

:root {
    --primary: #003A2B;
    --primary-light: #004d3a;
    --primary-dark: #00261c;
    --accent: #2ECC71;
    --accent-hover: #27ae60;
    --secondary: #97aca3;
    --text-dark: #1A1A1A;
    --text-light: #4A4A4A;
    --bg-light: #F9FBF9;
    --bg-white: #FFFFFF;
    --bg-dark: #001A13;
    --white: #FFFFFF;
    --gray-100: #F4F4F4;
    --gray-200: #E0E0E0;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, .logo-text {
    font-family: 'Playfair Display', serif;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.accent {
    color: var(--accent);
}

/* Utilities */
.section {
    padding: 8rem 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-white { color: var(--white); }
.text-white h2, .text-white p, .text-white h3 { color: var(--white); }
.text-center { text-align: center; }
.margin-auto { margin-left: auto; margin-right: auto; }
.max-width-700 { max-width: 700px; }
.margin-bottom-lg { margin-bottom: 4rem; }

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

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

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 5rem 0; }
    .container { padding: 0 1.5rem; }
    h2 { font-size: 2rem; }
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#main-nav.scrolled {
    background: rgba(0, 58, 43, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#main-nav .logo img {
    transition: var(--transition);
}

.nav-logo {
    height: 80px;
    width: auto;
    max-width: 300px;
    max-height: 80px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transition: var(--transition);
}

#main-nav.scrolled .nav-logo {
    height: 50px;
    max-height: 50px;
}

#main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

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

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 58, 43, 0.9) 0%, rgba(0, 26, 19, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { text-align: center; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-round {
    border-radius: 50px;
    padding: 0.8rem 2.2rem;
}

.whatsapp-nav {
    color: var(--white);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.whatsapp-nav:hover {
    color: var(--accent);
    transform: scale(1.1);
}

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

.btn-secondary:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Section Tag */
.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.section-tag.light {
    color: var(--accent);
}

/* Feature Cards */
.feature-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.feature-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Research Visual */
.research-visual {
    position: relative;
    overflow: hidden;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded { border-radius: 12px; }
.shadow { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.sector-grid-overlay {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.sector-grid-overlay span {
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

@media (max-width: 480px) {
    .sector-grid-overlay { grid-template-columns: repeat(2, 1fr); }
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

/* Value Prop (Diff Grid) */
.diff-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.diff-item h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Spec List */
.spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.spec-pill {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.spec-pill:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 58, 43, 0.15);
    border-color: var(--primary);
}

.contact-details {
    margin-top: 2rem;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.contact-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.footer-credit {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit:hover {
    text-decoration: underline;
}

/* Forms */
.premium-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 58, 43, 0.05);
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Affiliations Carousel */
.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    background: var(--white);
}

.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, rgba(255,255,255,0) 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, rgba(255,255,255,0) 100%);
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.carousel-group {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
}

.partner-logo {
    width: 180px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
