/* ===========================================================
   RCGrassWorks - consolidated styles
   Ported from Next.js CSS modules. Class names from the
   original modules are prefixed (nav-, footer-, home-, about-)
   so they no longer collide after the CSS modules were merged.
   =========================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* matches fixed-nav height so #anchor targets aren't hidden under it */
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
               Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
}

/* Belt-and-braces: per-target offset for older browsers that don't honor scroll-padding. */
#services, #contact, #top { scroll-margin-top: 90px; }

a { color: inherit; text-decoration: none; }

h1 { font-size: 3rem;   margin-bottom: 1rem;    font-weight: 800; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 1rem;    font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; }
p  { margin-bottom: 1rem; font-size: 1.1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-heading { text-align: center; color: #333; margin-bottom: 1rem; }
.section-lede    { text-align: center; color: #666; font-size: 1.2rem;
                   max-width: 700px; margin: 0 auto; }

.btn {
  display: inline-block; padding: 14px 32px; font-size: 1.1rem;
  font-weight: 600; border-radius: 50px; cursor: pointer;
  transition: all 0.3s ease; border: none; text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-secondary {
  background: white; color: #15803d; border: 3px solid #15803d;
  font-weight: 700; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white; transform: translateY(-2px); border-color: #16a34a;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* ---- navigation ---- */
.nav {
  background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all 0.3s ease;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.nav-logo { display: flex; align-items: center; font-size: 1.5rem;
            font-weight: 700; color: #15803d; transition: transform 0.3s ease; }
.nav-logo:hover { transform: scale(1.05); }
.nav-logo-icon { font-size: 2rem; margin-right: 10px; }
.nav-logo-text {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent; font-weight: 800;
}
/* ---- nav: mobile-first (hamburger visible by default; desktop styles via min-width) ---- */
.nav-container { position: relative; }

.nav-toggle {
  display: inline-flex;
  background: transparent; border: none; padding: 8px;
  cursor: pointer; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; border-radius: 8px;
}
.nav-toggle:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }
.nav-toggle-bar {
  display: block; width: 26px; height: 3px; background: #15803d;
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.nav-open .nav-menu {
  max-height: 360px;
  opacity: 1;
  pointer-events: auto;
}
.nav-item { position: relative; width: 100%; }
.nav-link {
  display: block;
  padding: 14px 24px;
  width: 100%;
  color: #1f2937;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}
.nav-link:hover { color: #16a34a; }
.nav-link.active { color: #16a34a; }
.nav-link:after {
  content: ''; position: absolute; width: 0; height: 3px; bottom: -5px;
  left: 50%; background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  transition: all 0.3s ease; transform: translateX(-50%);
  display: none;
}

@media (min-width: 769px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    background: transparent;
    border-top: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
  .nav-item { width: auto; }
  .nav-link {
    display: inline-block;
    padding: 0;
    width: auto;
    font-size: 1.1rem;
  }
  .nav-link:after { display: block; }
  .nav-link:hover:after, .nav-link.active:after { width: 100%; }
}

/* ---- footer ---- */
.footer {
  background: linear-gradient(135deg, #14532d 0%, #166534 100%);
  color: white; padding: 60px 0 20px; margin-top: 80px;
}
.footer-content {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px; margin-bottom: 40px;
}
.footer-section { padding: 0 15px; }
.footer-title    { font-size: 1.8rem; margin-bottom: 1rem; font-weight: 700; }
.footer-subtitle { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 600; color: white; }
.footer-text     { line-height: 1.8; margin-bottom: 1rem; opacity: 0.95; }
.footer-links    { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 8px 0; opacity: 0.9;
                   transition: opacity 0.3s ease, transform 0.3s ease; }
.footer-links li:hover { opacity: 1; transform: translateX(5px); }
.footer-links a  { color: white; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: #86efac; }
.footer-contact-info { line-height: 2; opacity: 0.95; }
.footer-social-links { display: flex; gap: 15px; margin-top: 1rem; }
.footer-social-icon  { font-size: 1.5rem; cursor: pointer;
                       transition: transform 0.3s ease; display: inline-block; }
.footer-social-icon:hover { transform: scale(1.2) rotate(5deg); }
.footer-bottom {
  text-align: center; padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2); opacity: 0.9;
}
.footer-bottom p { margin: 0; font-size: 0.95rem; }

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .footer-section { text-align: center; }
  .footer-social-links { justify-content: center; }
  .footer-links li:hover { transform: none; }
}

/* ---- home page ---- */
.home-hero {
  background: linear-gradient(135deg, #86efac 0%, #bbf7d0 100%);
  color: #15803d; padding: 150px 0 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
.home-hero-content { position: relative; z-index: 2; }
.home-hero-location {
  display: inline-block;
  background: rgba(20, 83, 45, 0.12);
  color: #14532d;
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(20, 83, 45, 0.18);
}
.home-hero-title    { font-size: 3.5rem; margin-bottom: 1rem; color: #14532d; font-weight: 900; }
.home-hero-subtitle { font-size: 1.5rem; margin-bottom: 1rem; color: #166534; font-weight: 500; }
.home-hero-tagline  { display: inline-block; font-size: 1rem; color: #14532d; background: #dcfce7;
                      padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid rgba(20, 83, 45, 0.25);
                      margin-bottom: 1.5rem; letter-spacing: 0.02em; }
.home-hero-buttons  { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.home-features { padding: 80px 0; background: #f8f9fa; }
.home-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px; margin-top: 3rem;
}
@media (min-width: 960px) {
  .home-features-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .home-feature-card { grid-column: span 2; }
  .home-feature-card:nth-child(4) { grid-column: 2 / span 2; }
  .home-feature-card:nth-child(5) { grid-column: 4 / span 2; }
}
.home-feature-card {
  background: white; padding: 40px 30px; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center;
}
.home-feature-card:hover {
  transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.home-feature-icon        { font-size: 3rem; margin-bottom: 1rem; }
.home-feature-title       { color: #333; margin-bottom: 1rem; }
.home-feature-description { color: #666; line-height: 1.8; }

.home-mission { padding: 80px 0; background: white; }
.home-mission-content { max-width: 800px; margin: 0 auto; text-align: center; }
.home-mission-title   { color: #333; margin-bottom: 2rem; }
.home-mission-text    { font-size: 1.2rem; color: #555; line-height: 1.8; margin-bottom: 1.5rem; }

.home-values { padding: 80px 0;
               background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.home-values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px; margin-top: 3rem;
}
.home-value-card { background: white; padding: 30px; border-radius: 15px;
                   text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.home-value-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.home-value-title       { color: #333; font-size: 1.3rem; margin-bottom: 0.5rem; }
.home-value-description { color: #666; font-size: 1rem; }

.home-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white; text-align: center;
}
.home-cta-title { font-size: 2.5rem; margin-bottom: 1rem; }
.home-cta-text  { font-size: 1.3rem; margin-bottom: 2rem; opacity: 0.95; }

.home-equipment { padding: 80px 0; background: white; }
.home-equipment-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; margin-top: 3rem;
}
.home-equipment-image {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  height: 400px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white; text-align: center; padding: 40px;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
}
.home-equipment-details h3 { color: #22c55e; font-size: 2rem; margin-bottom: 1rem; }
.home-equipment-details p  { color: #555; line-height: 1.8; margin-bottom: 1.5rem; }
.home-equipment-features   { list-style: none; padding: 0; margin: 0; }
.home-equipment-features li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.875rem;
  color: #555; line-height: 1.6;
}
.home-equipment-features li + li {
  border-top: 1px solid #f1f5f9;
}
.home-equipment-features li:before {
  content: "\2713";
  position: absolute; left: 0; top: 0.5rem;
  color: #22c55e; font-weight: bold; font-size: 1.1rem;
  line-height: 1.6;
}
.home-equipment-features li strong { color: #14532d; }

@media (max-width: 768px) {
  .home-hero-title    { font-size: 2.5rem; }
  .home-hero-subtitle { font-size: 1.2rem; }
  .home-hero-buttons  { padding: 0 20px; }
  .home-equipment-content { grid-template-columns: 1fr; }
  .home-equipment-image   { height: 300px; }
}

/* ---- contact form ---- */
.contact-form {
  max-width: 640px; margin: 2.5rem auto 0; text-align: left;
  background: rgba(255, 255, 255, 0.12); padding: 2rem;
  border-radius: 20px; backdrop-filter: blur(4px);
}
.contact-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.contact-field { display: block; margin-bottom: 1rem; }
.contact-field > span { display: block; font-weight: 600; margin-bottom: 0.35rem; color: white; }
.contact-field input,
.contact-field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.4); border-radius: 12px;
  background: rgba(255,255,255,0.95); color: #1f2937;
  font-family: inherit;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none; border-color: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}
.contact-form-actions {
  display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 1rem;
}
.contact-honeypot {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.contact-banner {
  max-width: 640px; margin: 1.5rem auto 0; padding: 1rem 1.25rem;
  border-radius: 12px; font-weight: 600; text-align: left;
}
.contact-banner-ok    { background: #ecfdf5; color: #065f46; border: 2px solid #10b981; }
.contact-banner-error { background: #fef2f2; color: #991b1b; border: 2px solid #ef4444; }

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

/* ---- about page ---- */
.page-about main { padding-top: 100px; padding-bottom: 80px; }

.about-hero {
  background: linear-gradient(135deg, #86efac 0%, #bbf7d0 100%);
  color: #14532d; padding: 80px 0; text-align: center; margin-bottom: 60px;
}
.about-title    { font-size: 3rem; margin-bottom: 1rem; color: #14532d; font-weight: 900; }
.about-subtitle { font-size: 1.3rem; color: #166534; font-weight: 500;
                  max-width: 600px; margin: 0 auto; }

.about-story { padding: 60px 0; background: #f8f9fa; }
.about-story-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-story-title   { color: #333; margin-bottom: 2rem; }
.about-story-text    { color: #555; font-size: 1.15rem; line-height: 1.9; margin-bottom: 1.5rem; }

.about-team { padding: 80px 0; background: white; }
.about-team-title { text-align: center; color: #333; margin-bottom: 3rem; }
.about-team-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; max-width: 900px; margin: 0 auto;
}
@media (min-width: 768px) {
  .about-team-grid { grid-template-columns: repeat(2, 1fr); }
}
.about-team-member {
  text-align: center; padding: 30px; background: white; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.about-team-member:hover { transform: translateY(-5px);
                           box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.about-member-image {
  width: 150px; height: 150px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 3rem; font-weight: bold;
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.3);
}
.about-member-name { color: #333; font-size: 1.5rem; margin-bottom: 0.5rem; }
.about-member-role { color: #22c55e; font-size: 1.1rem; margin-bottom: 1rem; font-weight: 600; }
.about-member-bio  { color: #666; line-height: 1.8; }

.about-values { padding: 80px 0;
                background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.about-values-title { text-align: center; color: #333; margin-bottom: 3rem; }
.about-values-grid  { display: grid;
                      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                      gap: 30px; margin-top: 3rem; }
@media (min-width: 992px) {
  .about-values-grid { grid-template-columns: repeat(12, 1fr); }
  .about-value-card { grid-column: span 3; }
  .about-value-card:nth-child(5) { grid-column: 4 / span 3; }
  .about-value-card:nth-child(6) { grid-column: 7 / span 3; }
}
.about-value-card {
  background: white; padding: 35px 25px; border-radius: 15px;
  text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.about-value-card:hover { transform: translateY(-3px);
                          box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.about-value-icon  { font-size: 2.5rem; margin-bottom: 1rem; }
.about-value-title { color: #333; font-size: 1.3rem; margin-bottom: 1rem; font-weight: 600; }
.about-value-description { color: #666; line-height: 1.7; }

.about-community { padding: 80px 0; background: white; }
.about-community-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-community-title   { color: #333; margin-bottom: 2rem; }
.about-community-text    { color: #555; font-size: 1.15rem; line-height: 1.9; margin-bottom: 2rem; }
.about-community-grid    { display: grid;
                           grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                           gap: 20px; margin-top: 3rem; }
@media (min-width: 768px) {
  .about-community-grid { grid-template-columns: repeat(6, 1fr); }
  .about-community-item { grid-column: span 2; }
  .about-community-item:nth-child(4) { grid-column: 3 / span 2; }
}
.about-community-item {
  padding: 25px; background: #f8f9fa; border-radius: 15px;
  text-align: center; border: 2px solid #22c55e;
}
.about-community-item h4 { color: #22c55e; margin-bottom: 0.5rem; }
.about-community-item p  { color: #666; font-size: 0.95rem; margin-bottom: 0; }

.about-join {
  padding: 60px 0;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  text-align: center; color: white;
}
.about-join-title   { font-size: 2.5rem; margin-bottom: 1rem; }
.about-join-text    { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; }
.about-join-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .about-title { font-size: 2.5rem; }
  .about-team-grid   { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: 1fr; }
}
