/* Page */
:root {
  --cta-text-color: #143016;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f9fafb;
  line-height: 1.5;
  margin: 0;
}

.skip-link {
  background-color: rgb(7, 106, 7);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: absolute;
  text-decoration: none;
  top: -48px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.menu-icon:focus-visible {
  outline: 3px solid rgb(224, 163, 11);
  outline-offset: 3px;
}

/* HEADER */
header {
  background: url("images/heroImg.png");
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  padding: 5px 50px 80px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* NAV BAR */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.nav-bar .logo img {
  width: 180px;
  border-radius: 6px;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgb(7, 106, 7);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rgb(224, 163, 11);
}

.nav-links a.cta-button {
  color: var(--cta-text-color);
  font-weight: 700;
}

.nav-links a.active {
  color: rgb(224, 163, 11);
  font-weight: 700;
}

.nav-links a.cta-button.active {
  color: var(--cta-text-color);
}

/* BUTTONS */
.cta-button {
  background-color: rgb(224, 163, 11);
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--cta-text-color);
  cursor: pointer;
  border: none;
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: rgb(226, 191, 100);
  color: var(--cta-text-color) !important;
  border: none;
}

/* HERO SECTION */
.hero {
  padding-top: 50px;
  max-width: 1180px;
  margin: 0 auto;
}

.hero h1 {
  color: rgb(7, 106, 7);
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: rgb(88, 86, 86);
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero a {
  text-decoration: none;
  font-size: 16px;
  padding: 12px 24px;
}

/* ABOUT PAGE */
.about-header {
  min-height: 45vh;
}

.signup-header {
  min-height: auto;
  padding-bottom: 30px;
}

.contact-header {
  min-height: auto;
  padding-bottom: 30px;
}

.about-hero {
  max-width: 720px;
}

.about-hero p {
  max-width: 620px;
}

.about-main {
  color: rgb(7, 106, 7);
}

.about-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 50px;
}

.about-copy {
  max-width: 560px;
}

.about-copy h2,
.about-cta h2 {
  text-align: left;
  margin: 0 0 20px;
}

.about-copy p,
.about-highlight p,
.about-cta p {
  color: rgb(88, 86, 86);
  line-height: 1.6;
}

.about-highlights {
  display: grid;
  gap: 20px;
  width: min(100%, 420px);
}

.about-highlight {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.about-highlight h3 {
  margin-top: 0;
}

.about-cta {
  background: url("images/background.png");
  background-position: center;
  background-size: cover;
  padding: 50px;
  text-align: center;
}

.about-cta h2 {
  text-align: center;
}

.about-cta a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
}

/* MAIN CONTENT */
/* FEATURES */
main {
  color: rgb(7, 106, 7);
}

main h2 {
  text-align: center;
  margin: 0 0 32px;
}

main > h2 {
  padding: 56px 20px 0;
}

.features {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 50px 56px;
}

.feature {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature img {
  width: 100px;
  margin-bottom: 15px;
}

.feature h3 {
  margin: 10px 0;
}

.feature p {
  color: rgb(88, 86, 86);
  font-size: 14px;
  line-height: 1.4;
}

/* TESTIMONIAL AND CTA */
.testimonial-cta-content {
  background: url("images/background.png");
  background-size: cover;
  background-position: center;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* TESTIMONIAL */
.testimonial {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial p {
  color: rgb(88, 86, 86);
  font-size: 16px;
  line-height: 1.5;
}

/* CTA */
.cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 15px;
}

.cta p {
  color: rgb(88, 86, 86);
  margin-bottom: 25px;
  font-size: 16px;
}

.cta a.cta-button {
  text-decoration: none;
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
}

/* SIGNUP */
.signup-section,
.contact-section {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 50px;
}

.signup-page-main,
.contact-page-main {
  min-height: 55vh;
}

.signup-page-section {
  align-items: flex-start;
}

.signup-copy,
.contact-copy {
  max-width: 440px;
}

.signup-copy h1,
.signup-copy h2,
.contact-copy h1 {
  color: rgb(7, 106, 7);
  margin: 0 0 15px;
  text-align: left;
}

.signup-copy p,
.signup-message,
.contact-copy p,
.form-message {
  color: rgb(88, 86, 86);
  line-height: 1.6;
}

.signup-form,
.contact-form {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 28px;
}

.signup-form label,
.contact-form label {
  font-weight: 600;
}

.signup-form input,
.contact-form input,
.contact-form textarea {
  border: 1px solid #d9e2dc;
  border-radius: 6px;
  color: rgb(48, 47, 47);
  font: inherit;
  padding: 12px;
}

.contact-form textarea {
  resize: vertical;
}

.signup-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgb(7, 106, 7);
  outline: 2px solid rgba(7, 106, 7, 0.15);
}

.signup-form input:invalid:not(:placeholder-shown),
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #b42318;
}

.signup-form button,
.contact-form button {
  font: inherit;
  margin-top: 8px;
}

.form-help {
  color: rgb(88, 86, 86);
  font-size: 13px;
  margin: -6px 0 4px;
}

.signup-message,
.form-message {
  color: rgb(7, 106, 7);
  font-weight: 600;
  min-height: 24px;
  margin: 0;
}

/* FOOTER */
.footer {
  background-color: rgb(7, 106, 7);
  color: #fff;
  padding: 30px 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

/* LEFT SIDE */
.footer-left p {
  margin: 5px 0;
  font-size: 14px;
}

/* LINKS */
.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: rgb(224, 163, 11);
}

/* LICENSE */
.footer-license p {
  font-size: 14px;
}

.footer-license a {
  color: rgb(224, 163, 11);
  text-decoration: none;
}

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

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* =========================
  GLOBAL RESPONSIVENESS
========================= */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================
  TABLET (max-width: 1024px)
========================= */
@media (max-width: 1024px) {
  header {
    padding: 20px 30px 60px;
    height: auto;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 30px 50px;
  }

  .testimonial {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .signup-section,
  .contact-section {
    flex-direction: column;
    padding: 50px 30px;
  }

  .signup-copy,
  .contact-copy {
    max-width: 100%;
    text-align: center;
  }

  .signup-copy h1,
  .signup-copy h2,
  .contact-copy h1 {
    text-align: center;
  }

  .about-section {
    flex-direction: column;
    padding: 50px 30px;
  }

  .about-copy {
    max-width: 100%;
  }

  .about-highlights {
    width: 100%;
  }

}

/* =========================
  MOBILE (max-width: 768px)
========================= */
@media (max-width: 768px) {
  header {
    background-position: center;
  }

  /* NAV */
  .nav-bar {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;

    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;

    /* FIXED ANIMATION */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links a:not(.cta-button) {
    padding: 8px 0;
    width: 100%;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* HERO */
  .hero {
    text-align: center;
    padding-top: 30px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.2;
    color: rgb(3, 64, 3);
  }

  .hero p {
    font-size: 15px;
    color: rgb(48, 47, 47);
  }

  /* FEATURES */
  .features {
    gap: 20px;
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }

  .feature {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  /* TESTIMONIAL + CTA */
  .testimonial-cta-content {
    padding: 30px 20px;
  }

  .testimonial img {
    width: 120px;
    height: 120px;
  }

  .about-section,
  .about-cta,
  .signup-section,
  .contact-section {
    padding: 30px 20px;
  }

  .about-copy h2 {
    text-align: center;
  }

  /* FOOTER */
  .footer {
    padding: 20px;
  }
}

/* =========================
  SMALL MOBILE (max-width: 480px)
========================= */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .cta a.cta-button {
    width: 100%;
  }

  .feature {
    padding: 20px;
  }
}

/* VISUALLY HIDE CHECKBOX */
#menu-toggle {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

#menu-toggle:focus-visible + .menu-icon {
  outline: 3px solid rgb(224, 163, 11);
  outline-offset: 3px;
}

/* HAMBURGER ICON */
.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: rgb(7, 106, 7);
  padding: 5px 10px;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links a:not(:last-child) {
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: center;
  }
}
