/*
 * Custom Design System for Envirodata Global
 * Colors: Green (#96cc64), Blue (#2993d1), Red (#e74c3c)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #2993d1;
    --primary-green: #96cc64;
    --primary-red: #e74c3c;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light-bg: #f8fafc;
    --light-card: #ffffff;
    --text-dark: #0f172a;
    --text-light: #f8fafc;
    --text-gray: #64748b;
    --border-color-light: #e2e8f0;
    --border-color-dark: #334155;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -15px rgba(41, 147, 209, 0.15);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-bg);
    line-height: 1.25;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-green);
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

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

/* Typography and Accents */
.text-center { text-align: center; }

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-red);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-title.left-align::after {
    margin: 16px 0 0;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Header & Navigation */
header.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    min-height: 110px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.logo-img {
    height: 96px;
    width: auto;
}

.logo-text span {
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-bg);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition-smooth);
}

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

.nav-link.active {
    color: var(--primary-blue);
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--dark-bg);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition-smooth);
        border-bottom: 1px solid var(--border-color-light);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(41, 147, 209, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 14px rgba(150, 204, 100, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.4);
}

.btn-accent:hover {
    background-color: #d63031;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(41, 147, 209, 0.05) 0%, rgba(150, 204, 100, 0.05) 100%), var(--light-bg);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    transform: rotate(-2deg);
    transition: var(--transition-smooth);
}

.hero-image-container:hover .hero-image {
    transform: rotate(0deg) scale(1.02);
}

/* Services Section */
.service-card {
    background-color: var(--light-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

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

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

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(41, 147, 209, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 24px;
}

.service-card:nth-child(2) .service-icon {
    background-color: rgba(150, 204, 100, 0.1);
    color: var(--primary-green);
}

.service-card:nth-child(3) .service-icon {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--primary-red);
}

.service-card-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.service-card-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.testimonials .section-title {
    color: var(--text-light);
}

.testimonial-card {
    background-color: var(--dark-card);
    border: 1px solid var(--border-color-dark);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.testimonial-content {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.7;
    position: relative;
}

.testimonial-content::before {
    content: '“';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(41, 147, 209, 0.2);
    position: absolute;
    top: -30px;
    left: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-green);
}

.author-info h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info p {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 500;
}

/* News/Blog Section */
.news-card {
    background-color: var(--light-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.news-date {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: var(--primary-red);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.35;
}

.news-title a {
    color: var(--dark-bg);
}

.news-title a:hover {
    color: var(--primary-blue);
}

.news-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-link {
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-blue);
}

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

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-info-section {
    background-color: var(--light-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(41, 147, 209, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.contact-details p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.phones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.phone-entry {
    background-color: var(--light-bg);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border-left: 3px solid var(--primary-green);
}

.phone-entry span {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    color: var(--dark-bg);
}

.contact-form-card {
    background-color: var(--light-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    background-color: var(--light-bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(41, 147, 209, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-alert-success {
    background-color: rgba(150, 204, 100, 0.15);
    color: #2e7d32;
    border: 1px solid rgba(150, 204, 100, 0.3);
}

/* Legal notice styling */
.legal-container {
    background-color: var(--light-card);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--shadow-premium);
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 36px;
    margin-bottom: 16px;
}

.legal-container p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-container strong {
    color: var(--dark-bg);
}

/* Footer Section */
footer.site-footer {
    background-color: var(--dark-bg);
    color: rgba(248, 250, 252, 0.7);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-brand h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand p {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-green);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color-dark);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--border-color-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}
