/* Base theme: keeps existing brand greens, improves typography, spacing, and motion */
:root {
  --brand-green: #7CB342;
  --brand-green-dark: #689F38;
  --brand-green-light: #AED581;
  --text: #333333;
  --bg: #ffffff;
  --muted: #6b7280;
  --shadow-soft: 0 8px 24px rgba(124,179,66,.15);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Global utility classes */
.container { max-width: 1200px; margin: 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 10px; padding: .75rem 1rem; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn--primary { background: var(--brand-green); color: #fff; box-shadow: 0 6px 16px rgba(124,179,66,.25); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(124,179,66,.30); }

/* Header: subtle backdrop blur and shrink on scroll */
header.sticky { position: fixed; top: 0; left: 0; right: 0; backdrop-filter: saturate(180%) blur(8px); background: rgba(255,255,255,.85); transition: all .25s ease; }
header.sticky.is-scrolled { box-shadow: 0 6px 18px rgba(0,0,0,.08); padding-top: 8px !important; padding-bottom: 8px !important; }

/* Nav link hover underline animation */
nav ul li a { position: relative; }
nav ul li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand-green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
nav ul li a:hover::after { transform: scaleX(1); }

/* Cards: elevate on hover */
.card-elevate { transition: transform .25s ease, box-shadow .25s ease; }
.card-elevate:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

/* Section headings: gentle fade-up animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* Link, button micro-interactions */
a, button { transition: color .2s ease, background-color .2s ease, transform .2s ease; }
a:active, button:active { transform: scale(.98); }

/* Smooth anchor offset via scroll-margin */
[id] { scroll-margin-top: 90px; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0%; background: linear-gradient(90deg, var(--brand-green), var(--brand-green-light)); z-index: 10000; transition: width .1s ease; }

/* Preloader */
.preloader { position: fixed; inset: 0; background: #ffffff; display: flex; align-items: center; justify-content: center; z-index: 10001; transition: opacity .3s ease, visibility .3s ease; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.loader { width: 48px; height: 48px; border-radius: 50%; border: 4px solid rgba(124,179,66,.25); border-top-color: var(--brand-green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Parallax helper (position context) */
.parallax { position: relative; overflow: hidden; }
.parallax__layer { position: absolute; inset: -10%; background-size: cover; background-position: center; will-change: transform; z-index: -1; }

/* Who We Are (about) modern layout */
#about { background: linear-gradient(180deg, var(--very-light-green, #F1F8E9) 0%, #ffffff 60%); }
#about .section { padding-top: 80px; padding-bottom: 80px; }
#about .section-title h2 { font-size: 2.25rem; letter-spacing: .2px; }

#about .about-content { 
  display: grid; 
  grid-template-columns: 1.2fr 1fr; /* emphasize text (left) */ 
  align-items: center; 
  gap: 48px; 
}

/* Image card */
#about .about-image { 
  position: relative; 
  top: auto; 
  text-align: center; 
  order: 2;
}
#about .about-image::after {
  content: "";
  position: absolute;
  inset: -30px -20px -20px -30px;
  z-index: -1;
  border-radius: 24px;
  background: radial-gradient(220px 140px at 20% 20%, rgba(174,213,129,.25), rgba(174,213,129,0)),
              radial-gradient(240px 160px at 80% 70%, rgba(124,179,66,.15), rgba(124,179,66,0));
  filter: blur(1px);
}
#about .guaranteed-mobile-image { 
  border-radius: 18px; 
  box-shadow: 0 12px 32px rgba(124,179,66,.18); 
  outline: 2px solid rgba(124,179,66,.15); 
}

/* Text card */
#about .about-text { 
  order: 1; 
}
#about .about-text p + br + p { margin-top: 6px; }
#about .about-text p { color: var(--text); line-height: 1.8; }
#about .about-intro { font-size: 1.05rem; line-height: 1.85; }
@media (min-width: 1025px) {
  #about .about-intro { font-size: 1.12rem; line-height: 1.9; }
}

/* Team cards grid */
#about .about-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#about .team-member { 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 15px;
  max-width: 370px;
  margin-left: auto;
  margin-right: auto;
}
#about .team-member:hover { 
  transform: translateY(-3px);
}
#about .team-member img { 
  width: 100%; 
  max-width: 120px;
  height: 100px; 
  border-radius: 8px; 
  object-fit: cover; 
  border: 2px solid var(--brand-green); 
}
#about .team-member h4 { 
  margin-top: 12px; 
  color: var(--brand-green); 
  font-weight: 700;
}
#about .team-member h4::after { content: none; display: none; }
#about .team-member p {
  color: var(--text);
  margin-top: 6px;
  line-height: 1.6;
}

/* Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--brand-green);
  text-decoration: none;
}


.team-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(124, 179, 66, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#about .team-member p::before { content: none; display: none; box-shadow: none; }

/* Responsive tweaks */
@media (max-width: 1024px) {
  #about .about-content { grid-template-columns: 1fr; }
  #about .about-text { order: 1; }
  #about .about-image { order: 2; }
}
@media (min-width: 1025px) {
  /* Revert to first layout: text left card, image right, grid below */
  #about .about-image { order: 2; display: block; }
  #about .about-text { order: 1; }
}
@media (max-width: 768px) {
  #about .section { padding-top: 60px; padding-bottom: 60px; }
}


