/* ============================================
   Wind Water Engineering Solutions
   Brand Colors (from logo)
   ============================================
   Deep Green (Primary):    #0F9D58
   Light Green (Secondary): #5FBF4A
   Water Blue (Accent):     #1E88E5
   Soft Grey BG:            #F5F7F6
   Medium Grey Text:        #6B7280
   Dark Charcoal Text:      #1F2933
   Border Grey:             #E5E9ED
   ============================================ */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #1F2933;
    background-color: #FFFFFF;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #1F2933;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

p {
    color: #6B7280;
    margin-bottom: 1rem;
}

/* LINKS */
a {
    text-decoration: none;
    color: #1E88E5;
    transition: color 0.2s ease;
}

a:hover {
    color: #0F9D58;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background-color: #1E88E5;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: #0F9D58;
    color: white;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #1F2933;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #6B7280;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #0F9D58;
    color: #0F9D58;
    background-color: transparent;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================
   HEADER & LOGO STYLES
   ============================================ */
header {
    background: #FFFFFF;
    border-bottom: 1px solid #F5F7F6;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Logo Container */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

/* Logo Image */
.logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Logo Text (hidden by default - use if logo is icon-only) */
.logo-text {
    display: none;
}

/* Show text when using icon-only logo */
.logo-icon-only .logo-text {
    display: block;
}

.logo-icon-only .logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #0F9D58;
}

.logo-icon-only .logo-text p {
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 0;
}

/* Alternative: Logo with text always visible */
.logo-with-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-with-text .logo-img {
    height: 45px;
}

.logo-with-text .logo-text {
    display: block;
}

.logo-with-text .logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #0F9D58;
}

.logo-with-text .logo-text p {
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 0;
}

/* Fallback text logo (if no image) */
.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #0F9D58;
}

.logo p {
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 0;
}

/* NAVIGATION */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: #1F2933;
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    color: #0F9D58;
}

.btn-login {
    background-color: #1F2933;
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-login:hover {
    background-color: #0F9D58;
    color: white !important;
}

/* ============================================
   HAMBURGER MENU (Mobile)
   ============================================ */

/* Hide hamburger button on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #1F2933;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #1F2933;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Active state (X icon) */
.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Show hamburger button */
    .menu-toggle {
        display: block;
    }
    
    /* Hide nav by default on mobile */
    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #E5E9ED;
    }
    
    /* Show nav when active */
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem;
        width: 100%;
    }
    
    .btn-login {
        display: inline-block;
        width: auto;
    }
    
    /* Adjust header for mobile */
    .header-flex {
        position: relative;
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    /* Original mobile adjustments */
    .logo-img {
        height: 40px;
        max-width: 140px;
    }
    
    .logo-icon-only .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-icon-only .logo-text p {
        font-size: 0.65rem;
    }
    
    .logo-with-text .logo-img {
        height: 35px;
    }
    
    .logo-with-text .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-with-text .logo-text p {
        font-size: 0.65rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo p {
        font-size: 0.65rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 span {
    color: #0F9D58;
}

.hero-content .tagline {
    font-size: 1.25rem;
    color: #6B7280;
    margin: 1rem 0 1.5rem;
    border-left: 3px solid #0F9D58;
    padding-left: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-image {
    background: linear-gradient(135deg, #F5F7F6 0%, #E8EDE9 100%);
    border-radius: 12px;
    height: 380px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        height: 250px;
        order: -1;
    }
}

/* SECTION BACKGROUNDS */
.section-white {
    background-color: #FFFFFF;
    padding: 5rem 0;
}

.section-light {
    background-color: #F5F7F6;
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-white, .section-light {
        padding: 3rem 0;
    }
}

/* CARDS GRID */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.card {
    background: #FFFFFF;
    border: 1px solid #E5E9ED;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.card h3 {
    color: #0F9D58;
    margin-bottom: 1rem;
}

.card p {
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.card-link {
    font-weight: 600;
    color: #1E88E5;
}

.card-link:hover {
    color: #0F9D58;
}

/* STATS / TRUST SECTION */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F9D58;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6B7280;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, #1F2933 0%, #0F9D58 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn-primary {
    background-color: white;
    color: #1F2933;
}

.cta-banner .btn-primary:hover {
    background-color: #5FBF4A;
    color: #1F2933;
}

/* PROJECT CARDS */
.project-card {
    border: 1px solid #E5E9ED;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #F5F7F6;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.project-meta {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* BLOG ARTICLES */
.blog-article {
    border-bottom: 1px solid #E5E9ED;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.blog-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-title {
    color: #0F9D58;
    margin-bottom: 0.5rem;
}

.blog-meta {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    margin-bottom: 1rem;
}

.blog-link {
    color: #1E88E5;
    font-weight: 500;
}

/* CONTACT PAGE */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: #F5F7F6;
    padding: 2rem;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.875rem;
    border: 1px solid #E5E9ED;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0F9D58;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* SERVICE LIST */
.service-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #E5E9ED;
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-title {
    color: #0F9D58;
}

.service-description ul {
    color: #6B7280;
    margin-left: 1.25rem;
    margin-top: 0.5rem;
}

.service-description li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}

/* FOOTER */
footer {
    background-color: #1F2933;
    color: #9CA3AF;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: #9CA3AF;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: #5FBF4A;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* PRINT STYLES */
@media print {
    header, footer, .cta-banner, .btn-primary, .btn-secondary {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}