/* ===========================
   CUSTOM PROPERTIES
   =========================== */
:root {
  --bg-page:     #f5f5f3;
  --bg-card:     #ffffff;
  --bg-section:  #eef5eb;
  --text-primary:   #1a1a1a;
  --text-secondary: #555555;
  --green-dark:   #1c5412;
  --green-accent: #4aaa28;
  --grey-mid:  #888888;
  --border:    #d8d8d8;

  --font-family:     Arial, Helvetica, sans-serif;
  --font-size-base:  16px;
  --line-height:     1.65;

  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 2rem;
  --sp-xl: 4rem;

  --radius:    4px;
  --radius-lg: 8px;
  --shadow:    0 2px 8px rgba(0, 0, 0, 0.08);
  --transition: 0.18s ease;

  --container-max: 1100px;
  --nav-height:    64px;
}


/* ===========================
   RESET
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol { list-style: none; }
a      { color: inherit; text-decoration: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}


/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4vw,   2.75rem); }
h2 { font-size: clamp(1.4rem,  3vw,   2rem);    }
h3 { font-size: clamp(1.1rem,  2.5vw, 1.4rem);  }
h4 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-md);
}
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-muted  { color: var(--text-secondary); }
.text-small  { font-size: 0.875rem; }


/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.section      { padding: var(--sp-xl) 0; }
.section--alt { background-color: var(--bg-section); }

.grid     { display: grid; gap: var(--sp-lg); }
.grid--2  { grid-template-columns: repeat(2, 1fr); }
.grid--3  { grid-template-columns: repeat(3, 1fr); }
.grid--4  { grid-template-columns: repeat(4, 1fr); }

.flex          { display: flex; }
.flex--center  { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.gap-sm        { gap: var(--sp-sm); }
.gap-md        { gap: var(--sp-md); }
.gap-lg        { gap: var(--sp-lg); }


/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.nav__logo { height: 64px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__link:hover       { color: var(--green-accent); }
.nav__link--active     { color: var(--green-dark); font-weight: 700; }

.nav__cta { margin-left: var(--sp-md); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-sm);
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}


/* ===========================
   HERO
   =========================== */
.hero {
  background-color: var(--bg-section);
  padding: calc(var(--sp-xl) * 1.5) 0;
  text-align: center;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: var(--sp-md) auto var(--sp-lg);
}

.hero__actions {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}


/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color var(--transition),
    color            var(--transition),
    border-color     var(--transition);
}

.btn--primary {
  background-color: var(--green-dark);
  color: #fff;
}
.btn--primary:hover { background-color: var(--green-accent); }

.btn--secondary {
  background-color: var(--green-accent);
  color: #fff;
}
.btn--secondary:hover { background-color: var(--green-dark); }

.btn--outline {
  background-color: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn--outline:hover {
  background-color: var(--green-dark);
  color: #fff;
}

.btn--ghost { background-color: transparent; color: var(--text-secondary); }
.btn--ghost:hover { color: var(--green-dark); }

.btn--lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.4rem  1rem; font-size: 0.85rem; }


/* ===========================
   CARDS
   =========================== */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  margin-bottom: var(--sp-md);
  overflow: hidden;
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  background-color: var(--bg-section);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: var(--sp-sm);
}

.card__title { margin-bottom: var(--sp-sm); }

.card__body {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card--featured { border-left: 4px solid var(--green-accent); }


/* ===========================
   SECTION HEADER
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.section-header__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-accent);
  margin-bottom: var(--sp-sm);
}

.section-header__title  { margin-bottom: var(--sp-sm); }

.section-header__body {
  max-width: 540px;
  margin: 0 auto;
  color: var(--text-secondary);
}


/* ===========================
   IMAGES
   =========================== */
.placeholder-img {
  background-color: var(--bg-section);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-mid);
  font-size: 0.85rem;
  width: 100%;
}

.img-hero { height: 380px; }


/* ===========================
   DIVIDER & BADGE
   =========================== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-lg) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background-color: var(--bg-section);
  border: 1px solid var(--border);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}


/* ===========================
   FOOTER
   =========================== */
.footer {
  background-color: var(--green-dark);
  color: #fff;
  padding: var(--sp-xl) 0 var(--sp-lg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.footer__logo {
  height: 140px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: var(--sp-sm);
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-accent);
  margin-bottom: var(--sp-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__link:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--sp-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}


/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}


/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 768px) {
  :root {
    --sp-xl: 2.5rem;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Mobile nav */
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-md) var(--sp-lg);
    border-bottom: 1px solid var(--border);
    gap: var(--sp-md);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle        { display: flex; }
  .nav__cta           { margin-left: 0; }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--sp-sm);
    text-align: center;
  }

  .img-hero { height: 220px; }
}


/* ===========================
   RESPONSIVE — SMALL MOBILE
   =========================== */
@media (max-width: 480px) {
  .container { padding: 0 var(--sp-md); }
}


/* ===========================
   FORMS
   =========================== */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form__label--required::after {
  content: ' *';
  color: var(--green-accent);
}

.form__input,
.form__textarea,
.form__select {
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(74, 170, 40, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--grey-mid);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__hint {
  font-size: 0.8rem;
  color: var(--grey-mid);
}

@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
}
