/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

/* === Variables === */
:root {
    --primary: #76b909;
    --primary-dark: #5a9200;
    --dark-green: #2c3323;
    --header-bg: #2a2a2a;
    --footer-bg: #222222;
    --white: #ffffff;
    --light-grey: #f5f5f5;
    --medium-grey: #e0e0e0;
    --text: #333333;
    --text-light: #666666;
    --max-width: 1200px;
    --header-height: 72px;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.14);
    --transition: 0.3s ease;
}

/* === Utilities === */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }
.section-padding-lg { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background: var(--light-grey); }
.bg-dark { background: var(--header-bg); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--dark-green); font-weight: 700; }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; max-width: 700px; margin: 0 auto 2rem; }

/* === Buttons === */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all var(--transition); border: none; text-align: center; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--header-bg); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* === Header === */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--header-bg); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo img { height: 68px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 8px; }
.main-nav a { color: var(--white); padding: 8px 14px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; transition: background var(--transition); }
.main-nav a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.main-nav .btn-primary { padding: 10px 20px; }
.main-nav .btn-primary:hover { background: var(--primary-dark); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: all var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* === Scroll offset for anchors (sticky header) === */
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* === Hero === */
.page-hero { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 500px; display: flex; align-items: center; }
.page-hero-small { min-height: 300px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(60deg, rgba(26,60,52,0.85) 0%, rgba(44,51,35,0.6) 100%); }
.hero-content { position: relative; z-index: 1; color: var(--white); }
.hero-content h1 { color: var(--white); font-size: 2.8rem; max-width: 700px; }
.hero-content p { font-size: 1.2rem; max-width: 600px; margin-bottom: 1.5rem; opacity: 0.95; }
.hero-content .hero-subtitle { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }

/* === Breadcrumbs === */
.breadcrumbs ol { display: flex; gap: 8px; font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumbs a { color: rgba(255,255,255,0.8); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: rgba(255,255,255,0.5); }
.breadcrumbs li[aria-current] { color: var(--primary); }

/* === Service Cards === */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--medium-grey); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.service-card .icon { width: 56px; height: 56px; background: rgba(118,185,9,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-card .icon svg { width: 28px; height: 28px; fill: var(--primary); }
.service-card h3 { color: var(--dark-green); }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }

/* === Service Detail (Services page) === */
.service-detail { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.service-detail:nth-child(even) .service-detail-img { order: -1; }
.service-detail-img { border-radius: var(--radius); overflow: hidden; }
.service-detail-img img { width: 100%; height: 300px; object-fit: cover; }
.service-detail-content h2 { position: relative; padding-bottom: 12px; }
.service-detail-content h2::after { content: ""; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--primary); border-radius: 2px; }

/* === Feature / Value Cards === */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.feature-card { text-align: center; padding: 30px 20px; }
.feature-card .icon { width: 64px; height: 64px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.feature-card .icon svg { width: 32px; height: 32px; fill: var(--white); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* === Projects Gallery === */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-card img { width: 100%; height: 280px; object-fit: cover; transition: transform var(--transition); }
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--white); }
.project-card-overlay .tag { display: inline-block; background: var(--primary); color: var(--white); padding: 3px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.project-card-overlay h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.project-card-overlay p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 0; }

/* === CTA Banner === */
.cta-banner { background: var(--primary); color: var(--white); text-align: center; padding: 50px 20px; }
.cta-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 0.5rem; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 1.5rem; opacity: 0.95; }

/* === Forms === */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; color: var(--dark-green); }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--medium-grey); border-radius: var(--radius); font-size: 1rem; font-family: inherit; transition: border-color var(--transition); background: var(--white); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(118,185,9,0.15); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 16px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.radio-group input[type="radio"] { width: auto; accent-color: var(--primary); }

/* === Contact Layout === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-info-card { background: var(--light-grey); padding: 30px; border-radius: var(--radius); }
.contact-info-card h3 { margin-bottom: 16px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-info-item svg { width: 22px; height: 22px; fill: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-info-item a { color: var(--text); }
.contact-info-item a:hover { color: var(--primary); }

/* === Service Areas === */
.areas-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.areas-list span { background: var(--white); border: 1px solid var(--medium-grey); padding: 6px 14px; border-radius: 20px; font-size: 0.9rem; color: var(--text); }

/* === Content Page === */
.content-page { max-width: 800px; margin: 0 auto; }
.content-page h2 { margin-top: 2rem; }
.content-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.content-page li { margin-bottom: 0.5rem; }

/* === Footer === */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.85); padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
.footer-col h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.footer-col a { color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--primary); }
.footer-col ul li { margin-bottom: 6px; font-size: 0.95rem; }
.footer-col p { font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 0.9rem; }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--primary); }

/* === Responsive: Tablet (769px+) === */
@media (min-width: 769px) {
    h1 { font-size: 2.6rem; }
    .hero-content h1 { font-size: 3.2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .service-detail { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1.2fr 0.8fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .section-padding { padding: 80px 0; }
}

/* === Responsive: Desktop (1024px+) === */
@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-content h1 { font-size: 3.5rem; }
    .container { padding: 0 30px; }
}

/* === Responsive: Mobile nav === */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav { position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--header-bg); padding: 20px; transform: translateY(-110%); transition: transform var(--transition); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
    .main-nav.active { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { display: block; padding: 12px 16px; }
    .main-nav .btn-primary { text-align: center; margin-top: 8px; }
    .page-hero { min-height: 350px; }
    .page-hero-small { min-height: 220px; }
}

/* === Alerts === */
.alert { padding: 16px 20px; border-radius: 6px; margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #fbe9e7; color: #c62828; border: 1px solid #ef9a9a; }

/* === Print === */
@media print {
    .site-header, .site-footer, .menu-toggle, .cta-banner, .btn { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
    .page-hero { min-height: auto; padding: 20px 0; background: none !important; }
    .hero-overlay { display: none; }
    .hero-content { color: #000; }
    .hero-content h1 { color: #000; }
}
