/**
 * Construction Pro Theme - Main Stylesheet
 * Built to match Figma design exactly
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors from Figma */
    --color-primary: #8BC34A;
    --color-primary-dark: #7CB342;
    --color-accent: #CDDC39;
    --color-dark: #2C3E50;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-light: #F5F5F5;
    --color-bg-green: #E8F5E9;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Container */
    --container-width: 1200px;
}

/* ========================================
   Reset & Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

/* Highlight text in green */
.highlight {
    color: var(--color-accent);
}

/* ========================================
   Header
   ======================================== */
.site-header {
    background: #fff;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .custom-logo {
    max-height: 50px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--color-dark);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
}

.primary-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
    text-transform: uppercase;
    padding: 8px 0;
}

.primary-menu a:hover {
    color: var(--color-primary);
}

.header-cta-btn {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.header-cta-btn:hover {
    background: var(--color-primary-dark);
}

.menu-toggle {
    display: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #7CB342 0%, #9CCC65 100%);
    padding: var(--spacing-xxl) 0 0;
    position: relative;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    min-height: 500px;
}

.hero-content {
    color: #fff;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: rgba(255,255,255,0.95);
}

.hero-cta {
    margin-top: var(--spacing-lg);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    border-radius: 8px 8px 0 0;
}

/* Stats Section */
.hero-stats {
    background: #fff;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    padding: var(--spacing-xl);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-text);
    font-weight: 500;
    margin-top: 8px;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: #fff;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    background: var(--color-bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.service-card {
    background: #fff;
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.service-card:nth-child(3) {
    background: var(--color-primary);
    color: #fff;
}

.service-card:nth-child(3) * {
    color: #fff;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: var(--color-bg-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:nth-child(3) .service-icon {
    background: rgba(255,255,255,0.2);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.service-link {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--color-dark);
    color: #fff;
    padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 300px 1fr 200px;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xl);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.footer-cta h3 {
    color: #fff;
    margin-bottom: var(--spacing-sm);
}

.footer-cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-md);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.back-to-top {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}
