/* styles.css - optimized mobile-first */

/* ========== Variables ========== */
:root {
  --green: #0e8a45;
  --dark-green: #0b5e33;
  --accent: #28b463;
  --bg: #ffffff;
  --muted: #6b7280;
  --card-bg: rgba(255,255,255,0.98);
  --gray-bg: #f9fafb;
  --max-width: 1100px;
  --container-padding: 20px;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(14,138,69,0.06);
  --glass: rgba(255,255,255,0.9);

  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 40px;
}

/* ========== Base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Lato', "Inter", "Open Sans", system-ui, sans-serif;
  color: #0f1724;
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: #0b2e1e;
  font-weight: 700;
}
img { max-width: 100%; display: block; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--container-padding);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-bottom: 1px solid #eef0f3;
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--dark-green);
  font-size: 1.2rem;
}
.logo img { height: 32px; width: auto; }
.logo-accent { color: var(--accent); }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.main-nav a {
  color: #0f1724;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.main-nav a.active,
.mobile-nav a.active { color: var(--accent); font-weight: 700; }
.cta-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 14px;
  border-radius: 8px;
}
#mobile-menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #111;
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.mobile-nav {
  background: white;
  padding: var(--space-md);
  border-top: 1px solid #eee;
}
.mobile-nav ul { list-style: none; }
.mobile-nav li { margin-bottom: var(--space-sm); }
.mobile-nav a { text-decoration: none; color: #111; font-weight: 600; }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 56px 0;
  background: linear-gradient(180deg, rgba(8,69,37,0.9), rgba(8,69,37,0.85)),
    url('assets/hero-bg.jpg') center/cover no-repeat;
  color: white;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-sm);
  color: white;
}
.hero-copy .lead {
  margin-bottom: var(--space-md);
  color: rgba(255,255,255,0.92);
}
.accent { color: var(--accent); }
.hero-ctas .btn { margin-right: var(--space-sm); }
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.card.small {
  background: rgba(255,255,255,0.1);
  padding: 14px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
  min-width: 240px;
  transition: transform 0.3s ease;
}
.card.small:hover { transform: translateY(-4px); }
.card.small h4 { margin-bottom: 6px; color: white; }

/* ========== Sections ========== */
.section { padding: var(--space-lg) 0; }
.section h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: var(--space-sm); }
.sub { color: var(--muted); margin-bottom: var(--space-md); }

.grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}
.about-photo img { border-radius: var(--radius); }

/* SERVICES GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* always 3 columns */
  gap: 24px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr; /* stack on small screens */
  }
}

.service-card {
  background: var(--card-bg);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(14,138,69,0.1);
}

.mid-cta {
  background: linear-gradient(90deg, rgba(6,66,36,0.03), rgba(6,66,36,0.02));
  border-radius: 12px;
  padding: 28px;
}
.mid-cta-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

/* Clients Section */
.clients-section {
  background: var(--gray-bg);
  padding: 80px 0;
  text-align: center;
}

.clients-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 50px;
  color: #0b2e1e;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.client-logo {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 100%;
}

.client-logo img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(14,138,69,0.12);
}
.client-logo:hover img {
  opacity: 1;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.stat {
  background: var(--card-bg);
  padding: 14px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.stat h3 { font-size: 1.4rem; color: var(--dark-green); }

.part-model table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-sm);
}
.part-model th, .part-model td {
  padding: 10px;
  border: 1px solid #eef0f3;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.contact-info .contact-card {
  background: var(--card-bg);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-sm);
}

/* Footer */
.site-footer {
  background: #111;
  color: #f5f5f5;
  padding: 60px 0 30px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: #fff;
}

.footer-col p,
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,0.85);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s ease;
}
.social-icons a:hover {
  background: var(--accent);
}
.social-icons img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid #333;
  padding-top: 20px;
  align-items: center;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.7);
}
.legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.legal-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
.legal-links a:hover {
  color: var(--accent);
}

/* Responsive Footer */
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}


/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s, background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: white; border: 0; }
.btn.primary:hover { background-color: var(--dark-green); }
.btn.outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn.large { padding: 14px 20px; }

/* Utilities */
.muted { color: var(--muted); }

/* Animations */
.fade-up { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media(min-width:700px) {
  .hero-inner { grid-template-columns: 1fr 360px; gap: 32px; }
  .grid-two { grid-template-columns: 1fr 420px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  #mobile-menu-toggle { display: none; }
  .main-nav { display: block; }
  #mobile-nav { display: none !important; }
}
@media(max-width:699px) {
  .main-nav { display: none; }
  #mobile-menu-toggle { display: block; }
}
@media(min-width:900px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media(min-width:1200px) {
  .container { padding: 24px 40px; }
}

/* ========== Typography & Spacing Cleanup ========== */

/* Global text improvements */
body {
  line-height: 1.7;
  letter-spacing: 0.2px;
}

/* Section spacing */
.section {
  padding: 80px 0;
}
@media(max-width: 699px) {
  .section {
    padding: 56px 0;
  }
}

/* Headings */
h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0;
}
.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 20px;
}
.sub {
  font-size: 1rem;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 28px;
}

/* Paragraphs */
p {
  margin-bottom: 1.2em;
  max-width: 720px;
}

/* Cards (services, hero, stats) */
.service-card h3 {
  margin-bottom: 10px;
}
.service-card p {
  margin-bottom: 0;
}
.stat h3 {
  margin-bottom: 6px;
  font-size: 1.6rem;
}

/* Hero section */
.hero-copy h1 {
  margin-bottom: 16px;
}
.hero-copy .lead {
  margin-bottom: 24px;
  max-width: 600px;
}

/* About section */
.values li {
  margin-bottom: 10px;
}

/* Mid CTA */
.mid-cta h2 {
  margin-bottom: 12px;
}
.mid-cta p {
  margin-bottom: 0;
  max-width: 700px;
}

/* Clients section */
.clients-section h2 {
  margin-bottom: 36px;
}
.client-logo {
  height: 110px;
  padding: 20px;
}

/* Partners section */
.part-benefits li {
  margin-bottom: 10px;
}

/* Contact form */
.contact-form label {
  margin-bottom: 6px;
  display: block;
}
.contact-form input,
.contact-form textarea {
  margin-bottom: 18px;
}
.contact-form button {
  margin-top: 6px;
}

/* Footer cleanup */
.footer-col p {
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-bottom {
  font-size: 0.85rem;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form button {
  margin-top: 10px;
}
