:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-strong: #1e7d3b;
  --text: #2a2e2c;
  --text-muted: #5d6863;
  --forest: #1e7d3b;
  --emerald: #2fa85e;
  --charcoal: #2a2e2c;
  --light-grey: #f3f5f4;
  --border: #d7ddd9;
  --shadow: 0 22px 70px rgba(36, 53, 45, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); padding-top: 80px; }
a { color: inherit; text-decoration: none; }

@media (max-width: 960px) {
  /* Reduce header offset on tablet */
  body { padding-top: 100px; }
}

@media (max-width: 720px) {
  /* Reduce header offset on mobile to avoid large white gap */
  body { padding-top: 100px; }
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, 100% - 40px); margin: 0 auto; }
.flex { display: flex; }
.grid { display: grid; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; border: 1px solid transparent; cursor: pointer; border-radius: 999px; padding: 0.75rem 1.25rem; min-height: 44px; min-width: 92px; font-weight: 700; transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.admin-container .btn { padding: 0.7rem 1.3rem; }
.btn-primary { background: var(--forest); border-color: var(--forest); color: white; }
.btn-primary:hover { background: #17622a; border-color: #17622a; transform: translateY(-1px); }
.btn-danger { background: #dc4f4f; border-color: #dc4f4f; color: white; }
.btn-danger:hover { background: #b83a3a; border-color: #b83a3a; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.18); }
.btn-secondary:hover { background: rgba(255,255,255,0.18); }
.btn-outline { background: white; color: var(--forest); border: 1px solid rgba(30,125,59,0.22); box-shadow: inset 0 0 0 1px transparent; }
.btn-outline:hover { background: rgba(47,168,94,0.08); border-color: rgba(30,125,59,0.32); transform: translateY(-1px); }
.btn-outline.btn-danger { color: #dc4f4f; border-color: rgba(220,79,79,0.5); }
.btn-outline.btn-danger:hover { background: rgba(220,79,79,0.08); border-color: #dc4f4f; }
.btn:focus-visible { outline: 3px solid rgba(47,168,94,0.25); outline-offset: 2px; }
.header, .footer { width: 100%; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(255,255,255,0.86); border-bottom: 1px solid rgba(0,0,0,0.04); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 0.9rem; font-weight: 700; }
.brand-mark { width: 44px; height: 44px; border-radius: 18px; background: var(--forest); color: white; display: grid; place-items: center; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.nav-links a { color: var(--text); padding: 0.7rem 0.45rem; font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links .active { color: var(--forest); }
.nav-links a.btn-primary { color: #ffffff; padding: 0.65rem 1.25rem; font-weight: 700; border-radius: 999px; background: var(--forest); margin-left: 0.5rem; display: inline-flex; align-items: center; justify-content: center; }
/* Service preview and lightbox styles */
.service-image-wrapper { border-radius: 12px; background: #f8fafc; padding: 0.6rem; display:flex; align-items:center; justify-content:center; min-height:150px; border:1px dashed #e6f4ea; overflow:hidden; }
.service-image-wrapper img { width:100%; height:100%; object-fit:cover; max-height:140px; border-radius:8px; display:block; }

.service-modal-preview { margin-top:0.45rem; border:1px solid #e2e8f0; border-radius:12px; padding:0.5rem; background:#f8fafc; display:none; }
.service-modal-preview img { max-width:100%; max-height:180px; object-fit:contain; border-radius:8px; display:block; }

.image-lightbox { position:fixed; inset:0; background:rgba(0,0,0,0.8); display:none; align-items:center; justify-content:center; z-index:3000; padding:1rem; }
.image-lightbox.open { display:flex; }
.image-lightbox img { max-width:90%; max-height:90%; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,0.5); }

/* Slight extra spacing for admin card area */
.card { padding: 1.25rem; }
.nav-links a.btn-primary:hover { background: #17622a; transform: translateY(-1px); }
.hero { position: relative; min-height: 100vh; display: grid; align-items: center; color: white; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(42,46,44,0.92) 0%, rgba(42,46,44,0.72) 35%, rgba(42,46,44,0.18) 100%); z-index: 1; }
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; padding: 140px 0 120px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-radius: 999px; background: rgba(63, 176, 117, 0.16); border: 1px solid rgba(102, 188, 135, 0.3); font-size: 0.85rem; color: #daf1d7; }
.hero-title { font-family: 'Poppins', sans-serif; font-size: clamp(3rem, 5vw, 5.4rem); line-height: 0.95; max-width: 760px; margin: 1rem 0 1rem; }
.hero-copy { font-size: 1.05rem; max-width: 700px; color: rgba(255,255,255,0.86); margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--light-grey); }
.section-dark { background: var(--charcoal); color: white; padding: 7rem 0 5rem; }
.section .section-heading { max-width: 720px; margin: 0 auto 2.4rem; text-align: center; }
.section .eyebrow { display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0.25em; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--forest); }
.section h2 { margin: 1rem 0 0; font-family: 'Poppins', sans-serif; font-size: clamp(2rem, 2.5vw, 3.4rem); line-height: 1.05; }
.section p { color: var(--text-muted); line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.stat-card { border-radius: 32px; background: var(--forest); padding: 2rem; box-shadow: var(--shadow); color: white; text-align: center; }
.stat-card h3 { font-size: 2.8rem; margin: 0; }
.stat-card p { margin: 0.75rem 0 0; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.card { background: white; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-5px); }
.card-image { position: relative; min-height: 240px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-image img { transform: scale(1.06); }
.card-tag { position: absolute; top: 1rem; left: 1rem; padding: 0.5rem 0.85rem; border-radius: 999px; background: rgba(30,125,59,0.96); color: white; font-size: 0.75rem; }
.card-icon { position: absolute; bottom: 1rem; left: 1rem; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, #2fa85e 0%, #1e7d3b 100%); display: grid; place-items: center; color: white; box-shadow: 0 12px 20px rgba(0,0,0,0.12); }
.card-icon svg { width: 24px; height: 24px; }
.icon-circle { width: 3.5rem; height: 3.5rem; border-radius: 18px; background: rgba(47,168,94,0.12); display: grid; place-items: center; color: var(--forest); }
.icon-circle svg { width: 22px; height: 22px; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin: 0 0 0.85rem; font-size: 1.2rem; }
.card-body p { margin: 0; color: var(--text-muted); }
.card-body .card-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-weight: 600; color: var(--forest); }
.card-body .card-link svg { width: 18px; height: 18px; }
.btn svg { width: 18px; height: 18px; vertical-align: middle; }
.footer-links svg { width: 20px; height: 20px; margin-right: 0.6rem; vertical-align: middle; }
.footer-links svg path, .footer-links svg circle, .footer-links svg rect { stroke-width: 1.8; }
.footer-links a svg { color: var(--forest); }
.testimonial-card svg { width: 28px; height: 28px; margin: 0 0 1rem; color: var(--forest); }
.testimonial-card svg path, .testimonial-card svg circle { stroke-width: 1.8; }
.process-step svg { width: 26px; height: 26px; margin-bottom: 0.5rem; }
.bullet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.bullet-list li { display: flex; align-items: start; gap: 0.8rem; }
.bullet-list li::before { content: '•'; color: var(--forest); font-weight: bold; margin-top: 0.1rem; }
.text-card { background: white; border-radius: 28px; padding: 2rem; box-shadow: var(--shadow); }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.process-step { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 28px; padding: 2rem; }
.process-step h3 { margin: 1rem 0 0.5rem; }
.process-step p { margin: 0; color: rgba(255,255,255,0.8); }

@media (max-width: 960px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
}
.testimonial-card { background: white; border-radius: 32px; padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.testimonial-card p { color: var(--text-muted); font-style: italic; line-height: 1.85; }
.testimonial-name { margin-top: 1.25rem; font-weight: 700; }
.testimonial-role { color: var(--text-muted); font-size: 0.95rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.icon-circle { width: 3rem; height: 3rem; border-radius: 18px; background: rgba(30,125,59,0.1); display: grid; place-items: center; color: var(--forest); }
.banner { position: relative; overflow: hidden; border-radius: 32px; padding: 4rem 2rem; background: var(--forest); color: white; text-align: center; }
.banner::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(47,168,94,0.25); bottom: -100px; left: -100px; filter: blur(64px); }
.banner-content { position: relative; }
.banner h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.banner p { margin: 1rem auto 0; max-width: 740px; color: rgba(255,255,255,0.88); }
.banner-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer { padding: 3rem 0; background: white; margin-top: 3.5rem; border-top: 1px solid rgba(42, 46, 44, 0.08); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-logo { display: flex; gap: 1rem; align-items: center; }
.footer-logo .brand-mark { width: 48px; height: 48px; border-radius: 18px; }
.footer-links { display: grid; gap: 1rem; }
.footer-links h4 { margin: 0 0 0.9rem; font-size: 0.95rem; font-weight: 700; }
.footer-links a { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); margin-bottom: 0.4rem; line-height: 1.25; }
.footer-links a ion-icon { font-size: 1rem; color: var(--forest); min-width: 1.2rem; }
.footer-bottom { margin-top: 2rem; border-top: 1px solid rgba(42,46,44,0.08); padding-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--text-muted); font-size: 0.94rem; }
.page-header { position: relative; background: var(--charcoal); color: white; padding: 8rem 0 4rem; overflow: hidden; }
.page-header::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(47,168,94,0.18); top: -120px; right: -120px; filter: blur(80px); }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.02; }
.page-header p { margin: 1rem 0 0; max-width: 760px; color: rgba(255,255,255,0.8); }
.page-block { margin-bottom: 3rem; }
/* Admin area tweaks */
.admin-aside { background: linear-gradient(180deg, #ffffff, #fbfbfb); }
.side-menu { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.side-link { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.25rem; color: var(--text-muted); font-weight: 600; border-radius: 8px; }
.side-link svg { color: var(--forest); }
.side-link:hover { color: var(--forest); background: rgba(47,168,94,0.04); }
.side-link.active { color: var(--forest); background: rgba(47,168,94,0.14); }
.table-wrapper { overflow: auto; }
.table-wrapper table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table-wrapper th, .table-wrapper td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--light-grey); }
.card h3 { margin: 0; font-size: 1.1rem; }
.admin-container { width: min(100%, 1650px); margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.75rem; align-items: start; padding: 0 1.25rem 2rem; }
.admin-main { min-width: 0; }
.admin-aside { align-self: start; }
.section.admin-section { padding-top: 3.5rem; }
@media (max-width: 960px) {
  .admin-container { grid-template-columns: 1fr; padding: 0 1rem 2rem; }
}
/* Ensure cards have consistent header and content padding (admin area) */
.card > h3 { padding: 1.25rem 1.5rem 0.6rem; }
.card > .table-wrapper { padding: 0 1.5rem 1.25rem; }
.card > .grid-4, .card > .grid-3 { padding: 0 1.5rem 1.25rem; }
.card > .grid-2 { padding: 0 1.5rem 1.25rem; }
.card > .card-body { padding: 0 1.5rem 1.25rem; }
/* Add horizontal padding for forms inside cards so inputs sit away from card edges */
.card form { padding: 0 1rem 1rem; }
.card + .card { margin-top: 1rem; }
.stat-card { border-radius: 18px; background: linear-gradient(180deg, #1e7d3b, #2fa85e); padding: 1.25rem; color: white; text-align: center; box-shadow: none; }
.stat-card strong { display: block; margin-top: 0.35rem; font-size: 1.1rem; }

@media (max-width: 960px) {
  .container[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .admin-aside { order: -1; }
}
.hero-form, .info-panel, .form-card, .sidebar-card { background: white; border-radius: 28px; box-shadow: var(--shadow); padding: 2rem; }
.form-grid { display: grid; gap: 1rem; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .stats-grid, .grid-3, .grid-4, .grid-2, .footer-top, .project-row, .nav-links { grid-template-columns: 1fr; } .site-header .container { flex-wrap: wrap; gap: 1rem; } .hero { min-height: 80vh; } }
@media (max-width: 720px) { .hero-content { padding-top: 80px; } .nav-links { justify-content: center; } .form-grid-2 { grid-template-columns: 1fr; } }
/* Mobile nav toggle and menu */
.mobile-menu-toggle { display: none; background: transparent; border: none; font-size: 1.4rem; cursor: pointer; color: var(--charcoal); }
.mobile-nav { display: none; position: fixed; left: 0; right: 0; top: 80px; height: calc(100vh - 80px); background: var(--surface); transform: translateY(-8px); transition: transform 0.25s ease, opacity 0.2s ease; box-shadow: 0 10px 40px rgba(32,40,32,0.06); z-index: 60; overflow-y: auto; }
.mobile-nav.open { display: block; transform: translateY(0); }
.mobile-nav-inner { padding: 1rem 1.25rem; display:flex; flex-direction:column; gap:0.6rem; }
.mobile-nav a { display:block; padding: 0.9rem 0.5rem; font-weight:700; color:var(--text); border-bottom: 1px solid rgba(0,0,0,0.04); }
.mobile-close { background: transparent; border: none; align-self: flex-end; font-size: 1.25rem; cursor: pointer; color: var(--text); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; gap: 0.45rem; }
}

.confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 250;
  padding: 1.5rem;
}
.confirm-modal.open {
  display: flex;
}
.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 23, 21, 0.7);
}
.confirm-modal-panel {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  width: min(520px, 100%);
  box-shadow: var(--shadow);
  z-index: 1;
}
.confirm-modal-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.3rem;
}
.confirm-modal-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}
.confirm-modal-actions {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Style adjustments for the Request Quote button inside mobile nav */
.mobile-nav a.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--forest);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  margin: 0.75rem 0 0;
  border: none;
}
.mobile-nav a.btn-primary:hover { background: #17622a; }
.form-control { width: 100%; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 18px; background: #fff; color: var(--text); }
.form-control:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(47,168,94,0.12); }
textarea.form-control { min-height: 140px; resize: vertical; }
/* Add spacing for form labels inside cards/forms */
.card form label, .form-card label { display: block; margin: 0.45rem 0 0.2rem 0.6rem; color: var(--text-muted); font-weight: 600; }
.alert { padding: 1rem 1.25rem; border-radius: 20px; margin-bottom: 1rem; }
.alert-success { background: #e7f6ec; color: #1e5d32; }
.alert-error { background: #fde8e7; color: #802b2e; }
.faq-item { border-radius: 24px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.faq-summary { width: 100%; background: none; border: none; text-align: left; padding: 1.4rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-size: 1rem; font-weight: 600; }
.faq-answer { padding: 0 1.5rem 1.4rem; display: none; color: var(--text-muted); }
.faq-item.open .faq-answer { display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(18, 23, 21, 0.86); display: none; align-items: center; justify-content: center; z-index: 60; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 24px; }
.lightbox button { position: absolute; top: 1.25rem; right: 1.25rem; background: rgba(255,255,255,0.12); border: none; color: white; width: 3rem; height: 3rem; border-radius: 999px; cursor: pointer; }
@media (max-width: 640px) { .hero-title { font-size: 2.6rem; } .page-header { padding: 4rem 0 3rem; } }

/* Service detail gallery */
.service-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service-gallery img { border-radius: 20px; width: 100%; height: 140px; object-fit: cover; display: block; }

@media (max-width: 720px) {
  /* Stack gallery images vertically on mobile for better readability */
  .service-gallery { display: grid; grid-template-columns: 1fr; gap: 0.75rem; padding: 0; }
  .service-gallery figure { margin: 0; }
  .service-gallery img { width: 100%; height: 180px; border-radius: 14px; object-fit: cover; display: block; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
}
