/* File: /assets/css/style.css */

/* =================================================================
   GLOBAL STYLES & VARIABLES
   Defines base styles, colors, and typography for the entire site.
   ================================================================= */
:root {
    --primary-green: #10B981; /* A modern, vibrant green */
    --primary-green-dark: #059669;
    --dark-bg: #111827; /* A very dark, almost black blue */
    --light-bg: #F9FAFB; /* A very light grey for section backgrounds */
    --text-dark: #1F2937;
    --text-light: #F3F4F6;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =================================================================
   HEADER & NAVIGATION STYLES
   ================================================================= */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo img {
    height: 40px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

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

/* =================================================================
   HERO SECTION STYLES
   ================================================================= */
.hero-section {
    background-color: var(--dark-bg);
    /* You can replace this with an image: background: url('../images/hero-background.jpg') no-repeat center center/cover; */
    color: var(--text-light);
    text-align: center;
    padding: 6rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto the background image. */
    background: url('../images/hero-background.jpg') no-repeat center center;
    padding: 0 20px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.hero-section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.hero-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-green);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-green-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* =================================================================
   SERVICES SECTION STYLES
   ================================================================= */
.services-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-price {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-link {
    font-weight: 600;
}

/* =================================================================
   CLIENTS SECTION STYLES
   ================================================================= */
.clients-section {
    padding: 3rem 0;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.clients-section h4 {
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
}

.client-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-logos img {
    height: 35px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.client-logos img:hover {
    opacity: 1;
}

/* =================================================================
   PRODUCTS SECTION STYLES
   ================================================================= */
.products-section {
    padding: 6rem 0;
}

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

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.cta-button-small {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: var(--primary-green);
    color: #fff;
    transition: background-color 0.3s ease;
}
.cta-button-small:hover {
    background-color: var(--primary-green-dark);
    color: #fff;
}
.section-cta {
    text-align: center;
    margin-top: 4rem;
}


/* =================================================================
   BLOG SECTION STYLES
   ================================================================= */
.blog-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

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

.blog-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.blog-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary-green);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-post-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.blog-post-content h4 a {
    color: var(--text-dark);
}
.blog-post-content h4 a:hover {
    color: var(--primary-green);
}

.blog-post-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more-link {
    font-weight: 600;
}

/* =================================================================
   TEAM SECTION STYLES
   ================================================================= */
.team-section {
    padding: 6rem 0;
}

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

.team-member {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.team-member img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
}

.team-member-info h5 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.team-member-info span {
    font-size: 1rem;
    opacity: 0.9;
}


/* =================================================================
   FOOTER STYLES
   ================================================================= */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-info {
    list-style: none;
    color: var(--text-muted);
}
.contact-info li {
    margin-bottom: 0.5rem;
}
.contact-info strong {
    color: var(--text-light);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid #4B5563;
    background-color: #374151;
    color: var(--text-light);
    font-family: var(--font-family);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9CA3AF;
}

.sub-footer {
    border-top: 1px solid #374151;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-light);
}


/* =================================================================
   RESPONSIVE STYLES (for tablets and mobile)
   ================================================================= */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; } /* Basic mobile menu hide, will need JS for a hamburger menu later */
    
    h1 { font-size: 2.5rem; }
    .section-title h3 { font-size: 2rem; }

    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    
    .sub-footer { flex-direction: column; gap: 1rem; }
}