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

:root {
    --color-green: #009F49;
    --color-blue: #1A73E8;
    --color-dark: #1A1A1A;
    --color-white: #FFFFFF;
    --color-grey: #CCCCCC;
    --color-light-bg: #F5F7FA;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition-fast: 0.2s ease-out;
    --transition-standard: 0.3s ease-in-out;
    --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-secondary);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23009F49" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg>'), auto;
}

a, button {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--color-dark);
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; font-size: 1.125rem; }

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

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* Base Layout & Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.text-center { text-align: center; }
.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; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-fast);
    text-align: center;
    border: 2px solid transparent;
}

.btn:active {
    transform: scale(0.98) !important;
}

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

.btn-primary:hover {
    background-color: #007c39;
    border-color: #007c39;
    transform: scale(1.05);
    color: var(--color-white);
}

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

.btn-secondary:hover {
    background-color: #1255b0;
    border-color: #1255b0;
    transform: scale(1.05);
    color: var(--color-white);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--color-blue);
    padding: 0.75rem 0;
    position: relative;
}

.btn-tertiary::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-blue);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.btn-tertiary:hover::after {
    width: 100%;
}

/* Header */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: padding var(--transition-fast);
    padding: 1rem 0;
}

.site-header.compact {
    padding: 0.5rem 0;
}

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

.logo-lockup img {
    height: 48px;
    transition: height var(--transition-fast);
}

.site-header.compact .logo-lockup img {
    height: 36px;
}

.primary-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.primary-nav a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-dark);
    position: relative;
    padding: 0.5rem 0;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-green);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--color-green);
}

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
}

.mobile-phone-icon {
    display: none;
    color: var(--color-green);
    font-size: 1.5rem;
}

/* Hero Section */
/* HERO IMAGE RULE: No color overlays, no pseudo-elements, no mix-blend-mode. Just the raw image. */
.hero {
    margin-top: 80px; /* Offset for header */
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    /* Adding a subtle card background for text legibility since we cannot darken the image itself */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

.hero-content h1 {
    color: var(--color-dark);
    margin-bottom: 1rem;
}
.hero-content p {
    color: #444;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Animated reveals */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}
.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-down.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

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

.service-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-standard);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-blue);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 159, 73, 0.1);
    color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: translateY(-2px);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: #555;
    flex-grow: 1;
    font-size: 1rem;
}

/* Dark Section */
.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.bg-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.bg-dark h2, .bg-dark h3 {
    color: var(--color-white);
}

.bg-dark p {
    color: #ddd;
}

/* Light background */
.bg-light {
    background-color: var(--color-light-bg);
}

/* Accent background */
.bg-green {
    background-color: var(--color-green);
    color: var(--color-white);
}
.bg-green h2, .bg-green h3, .bg-green p {
    color: var(--color-white);
}

.bg-blue {
    background-color: var(--color-blue);
    color: var(--color-white);
}
.bg-blue h2, .bg-blue h3, .bg-blue p {
    color: var(--color-white);
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-list li svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    color: var(--color-green);
    margin-top: 0.25rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.two-col-img {
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 3.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-grey);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    border: 3px solid var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-green);
    font-size: 1.25rem;
}

/* CTAs block */
.cta-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.cta-block {
    padding: 4rem 2rem;
    text-align: center;
}

.cta-block h3 { margin-bottom: 1rem; font-size: 2rem; }
.cta-block p { font-size: 1.125rem; margin-bottom: 2rem; }

/* Testimonials */
.testimonial {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
}

.testimonial blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-grey);
    position: absolute;
    top: -2rem;
    left: -1.5rem;
    font-family: var(--font-primary);
    opacity: 0.3;
}

.testimonial cite {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-blue);
    font-style: normal;
}

/* Forms */
.contact-form {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-grey);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(0, 159, 73, 0.1);
    background-color: var(--color-white);
}

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

/* Footer */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: var(--color-green);
    padding-left: 0.25rem;
}

.footer-logo img {
    height: 48px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-contact li {
    display: flex;
    align-items: center;
    color: #aaa;
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    color: var(--color-green);
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-green);
    transform: translateY(-2px);
}

a:hover svg, button:hover svg {
    transform: translateY(-2px);
    transition: transform 0.15s ease-out;
}


.social-links svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.875rem;
}

.footer-bottom-links a {
    color: #888;
    margin-left: 1.5rem;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-standard);
    z-index: 99;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #1255b0;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

@keyframes pulse {
    from { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 159, 73, 0.4); }
    to { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 159, 73, 0); }
}

@keyframes zap {
    0%, 100% { text-shadow: none; transform: skewX(0); }
    10% { text-shadow: 2px 0 var(--color-green), -2px 0 var(--color-blue); transform: skewX(-5deg); }
    30% { text-shadow: -2px 0 var(--color-green), 2px 0 var(--color-blue); transform: skewX(5deg); }
}

.hero h1.visible {
    animation: zap 0.3s ease-in-out 0.8s;
}

.pulse-anim {
    animation: pulse 1.5s infinite alternate;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    aspect-ratio: 4/3;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--color-white);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-standard);
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.875rem;
    color: #ddd;
}

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

.team-member {
    text-align: center;
}

.team-img-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 4px solid var(--color-white);
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    margin-bottom: 0.25rem;
}

.team-member p {
    color: var(--color-green);
    font-weight: 600;
}

/* Mobile Nav Off-canvas */
.mobile-nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-dark);
    z-index: 1001;
    transition: right var(--transition-standard);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-nav-wrapper.open {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-list {
    margin-top: 3rem;
    flex-grow: 1;
}

.mobile-nav-list li {
    margin-bottom: 1.5rem;
}

.mobile-nav-list a {
    color: var(--color-white);
    font-size: 1.25rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.mobile-nav-list a.active, .mobile-nav-list a:hover {
    color: var(--color-green);
}

.mobile-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-standard);
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .primary-nav, .header-cta { display: none; }
    .mobile-nav-toggle, .mobile-phone-icon { display: block; }
    
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .cta-blocks { grid-template-columns: 1fr; }
    
    .timeline { flex-direction: column; align-items: flex-start; padding-left: 2rem; }
    .timeline::before { left: 30px; top: 0; width: 2px; height: 100%; }
    .timeline-step { display: flex; text-align: left; margin-bottom: 2rem; padding: 0; }
    .timeline-icon { margin: 0 1.5rem 0 0; flex-shrink: 0; width: 40px; height: 40px; font-size: 1rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 0; }
    .footer-col {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 0;
    }
    .footer-col h3 {
        margin-bottom: 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0;
    }
    .footer-col h3::after { display: none; }
    .footer-col h3::before {
        content: '+';
        font-size: 1.5rem;
        order: 2;
        transition: transform var(--transition-fast);
    }
    .footer-col.active h3::before { transform: rotate(45deg); }
    .footer-col-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-standard);
    }
    .footer-col.active .footer-col-content {
        max-height: 500px;
        margin-top: 1rem;
    }
    .footer-col:first-child .footer-col-content {
        max-height: none;
        margin-top: 1rem;
    }
    .footer-col:first-child h3::before { display: none; }
    .footer-col:first-child h3 { cursor: default; }

    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
    .footer-bottom-links { display: flex; flex-direction: column; gap: 0.5rem; }
    .footer-bottom-links a { margin: 0; }
    
    .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up, .fade-in-down, .fade-in-left, .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
    }
    .pulse-anim { animation: none; }
}
