:root {
  --green: #2e8b22;
  --green-dark: #1d5a16;
  --gold: #f2c811;
  --ink: #23312a;
  --muted: #5d6b63;
  --light: #f4f8f1;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: #fff;
  border-bottom: 1px solid #e6ebe4;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled { box-shadow: 0 4px 18px rgba(29, 90, 22, 0.1); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand img { flex-shrink: 0; }

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  background:
    radial-gradient(circle at 0% 100%, rgba(46, 139, 34, 0.12), transparent 45%),
    radial-gradient(circle at 35% 0%, rgba(242, 200, 17, 0.14), transparent 40%),
    var(--light);
  border-bottom: 5px solid var(--gold);
}

.hero-text { animation: rise 0.7s ease-out both; }

.hero-text {
  padding: 56px var(--gutter);
}

.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
}

.hero-sub {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 30em;
}

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 26px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.button:hover { background: var(--green-dark); }

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  object-position: 60% center;
}

/* ---------- Sections ---------- */
.about,
.contact {
  padding: 80px var(--gutter);
  text-align: center;
  scroll-margin-top: 72px; /* clear the sticky header on anchor jumps */
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--green-dark);
}

h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 24px;
  background: var(--gold);
  border-radius: 2px;
}

.about p {
  max-width: 40em;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Feature cards ---------- */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 48px auto 0;
}

.features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: #fff;
  border: 1px solid #e3eadf;
  border-top: 4px solid var(--green);
  border-radius: 8px;
  font-weight: 600;
  color: var(--green-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.features li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(29, 90, 22, 0.12);
}

.icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light);
}

.icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.contact { background: var(--light); }

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .features li, .site-header { transition: none; }
}

.contact p {
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email:hover { text-decoration: underline; }

.linkedin {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 28px auto 0;
  padding: 10px 22px;
  border-radius: 4px;
  background: #0a66c2;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.linkedin:hover { background: #084f96; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 24px var(--gutter);
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 40px var(--gutter) 32px; }
  .hero-photo { min-height: 0; height: 260px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .brand { font-size: 0.85rem; }
  .brand img { width: 44px; height: 44px; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.85rem; }
  .nav a:last-child { display: none; } /* LinkedIn is in the contact section */
  .site-footer { justify-content: center; text-align: center; }
}
