﻿/* =========================
   GLOBAL DESIGN SYSTEM
   Inspired by the provided ELMAC website
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --color-primary: #17824f;
    --color-primary-dark: #10663d;
    --color-primary-light: #27a267;
    --color-accent: #4caf50;
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #111111;
    /* Backgrounds */
    --color-bg: #ffffff;
    --color-bg-light: #f5f7f6;
    --color-bg-soft: #f2f4f3;
    --color-bg-muted: #eef2f0;
    /* Text */
    --color-text: #1d1d1d;
    --color-text-muted: #667085;
    --color-text-soft: #98a2b3;
    --color-text-white: #ffffff;
    /* Borders */
    --color-border: #e4e7ec;
    --color-border-dark: #d0d5dd;
    /* States */
    --color-success: #22c55e;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #0ea5e9;
    /* Overlay */
    --color-overlay-dark: rgba(0, 0, 0, 0.55);
    --color-overlay-light: rgba(255, 255, 255, 0.75);
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Font Sizes */
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 24px;
    --fs-2xl: 32px;
    --fs-3xl: 40px;
    --fs-4xl: 52px;
    /* Font Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 6px 20px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
    --transition: 0.3s ease;
}

/* =========================
   RESET
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   BASE
   ========================= */
body {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
}

h1 {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-extrabold);
}

h2 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
}

h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
}

h4 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
}

p {
    color: var(--color-text-muted);
    font-size: var(--fs-md);
}

/* =========================
   LAYOUT
   ========================= */
.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: var(--section-padding) 0;
}

.section-light {
    background: var(--color-bg-light);
}

.section-soft {
    background: var(--color-bg-soft);
}

.section-primary {
    background: var(--color-primary);
    color: var(--color-text-white);
}

/* =========================
   TYPOGRAPHY HELPERS
   ========================= */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-white {
    color: var(--color-text-white);
}

.text-muted {
    color: var(--color-text-muted);
}

.uppercase {
    text-transform: uppercase;
}

.section-title {
    text-align: center;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    position: relative;
    margin-bottom: 18px;
}

    .section-title::after {
        content: "";
        width: 60px;
        height: 3px;
        background: var(--color-primary);
        display: block;
        margin: 10px auto 0;
        border-radius: 999px;
    }

.section-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    color: var(--color-text-muted);
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

    .btn-primary:hover {
        background: var(--color-primary-dark);
    }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

    .btn-outline:hover {
        background: var(--color-primary);
        color: var(--color-white);
    }

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
}

    .btn-white:hover {
        background: #f3f3f3;
    }

.btn-sm {
    min-height: 38px;
    padding: 8px 16px;
    font-size: var(--fs-xs);
}

/* =========================
   CARDS
   ========================= */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.card-body {
    padding: 20px;
}

/* =========================
   FORMS
   ========================= */
.form-group {
    margin-bottom: 18px;
}

.label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}

.input,
.textarea,
.select {
    width: 100%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: var(--transition);
    outline: none;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

    .input::placeholder,
    .textarea::placeholder {
        color: var(--color-text-soft);
    }

    .input:focus,
    .textarea:focus,
    .select:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 4px rgba(23, 130, 79, 0.12);
    }

/* =========================
   NAVBAR
   ========================= */
.navbar {
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1000;
}

.navbar-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 13px;
    font-weight: var(--fw-medium);
    color: var(--color-text);
    text-transform: uppercase;
    transition: var(--transition);
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-primary);
    }

/* =========================
   HERO
   ========================= */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 28%, rgba(255, 255, 255, 0.18) 65%, rgba(255, 255, 255, 0.03) 100% );
    }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.hero-subtitle {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: var(--fw-extrabold);
    color: var(--color-primary);
    margin-bottom: 16px;
}

.hero-text {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================
   IMAGE BLOCKS
   ========================= */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-rounded {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* =========================
   PROJECT / CLIENT / SERVICE ITEMS
   ========================= */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-card,
.service-card,
.project-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .client-card:hover,
    .service-card:hover,
    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

/* =========================
   GREEN BLOCK SECTION
   ========================= */
.block-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

    .block-primary h1,
    .block-primary h2,
    .block-primary h3,
    .block-primary h4,
    .block-primary p,
    .block-primary .label {
        color: var(--color-white);
    }

    .block-primary .input,
    .block-primary .textarea,
    .block-primary .select {
        border-color: rgba(255, 255, 255, 0.25);
    }

/* =========================
   FOOTER
   ========================= */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    position:relative !important; 
    padding: 60px 0 20px;
}

    .footer h3,
    .footer h4,
    .footer h5,
    .footer p,
    .footer a,
    .footer li,
    .footer span {
        color: var(--color-white);
    }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.footer-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    margin-bottom: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.88);
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--color-white);
            transform: translateX(4px);
        }

.footer-bottom {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
}

/* =========================
   UTILITIES
   ========================= */
.w-100 {
    width: 100%;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mt-24 {
    margin-top: 24px;
}

.py-section {
    padding-block: var(--section-padding);
}

.rounded {
    border-radius: var(--radius-md);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.bg-white {
    background: var(--color-white);
}

.bg-light {
    background: var(--color-bg-light);
}

.bg-primary {
    background: var(--color-primary);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
    :root {
        --section-padding: 64px;
    }

    .grid-4,
    .grid-3,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .navbar-inner {
        min-height: 72px;
    }

    .hero {
        min-height: 70vh;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-2xl: 28px;
        --fs-3xl: 34px;
        --fs-4xl: 40px;
        --section-padding: 56px;
    }

    .container {
        width: min(var(--container-width), calc(100% - 24px));
    }

    .grid-4,
    .grid-3,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .d-flex {
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 30px;
    }

    .nav-links {
        gap: 12px;
    }
}
