:root {
  --green-dark: #1e4e34;
  --green-main: #2f6b3f;
  --green-light: #e7f1eb;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-light: #ffffff;
  --accent-gold: #c59d5f;
  --max-width: 1100px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}

.site-header {
  background-color: var(--green-dark);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 52px;
  width: auto;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.logo-text p {
  margin: 0;
  font-size: 0.84rem;
  color: #d4e5db;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.2rem;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #ffffff;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

main {
  padding-bottom: 3rem;
}

.page-section {
  display: none;
  padding: 2.5rem 1.5rem 3rem;
}

.page-section.active {
  display: block;
}

.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-section h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--green-dark);
  font-weight: 700;
}

.page-section h3 {
  color: var(--green-main);
  font-weight: 600;
}

/* HOME */
.hero {
  max-width: var(--max-width);
  margin: 1.5rem auto 1rem;
  text-align: center;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-intro {
  max-width: 800px;
  margin: 1.5rem auto;
  text-align: center;
}

.home-intro p {
  margin-bottom: 0.75rem;
}

.home-logo-center {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.home-logo-center img {
  max-width: 260px;
  height: auto;
}

.home-feature-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.feature-image {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.feature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  flex: 1;
}

.feature-card .btn {
  margin-top: 0.75rem;
}

/* BUTTONS */
.btn {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn.primary {
  background-color: var(--green-main);
  color: #ffffff;
}

.btn.primary:hover {
  background-color: #275531;
}

.btn.secondary {
  background-color: var(--green-main);
  color: #ffffff;
  border: 1px solid var(--green-main);
}

.btn.secondary:hover {
  background-color: #275531;
}

/* ABOUT & SERVICES */
.about-container,
.services-container {
  text-align: center;
}

.about-container p,
.services-container p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.service-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.service-column {
  min-width: 240px;
}

.service-columns ul {
  padding-left: 1.1rem;
  text-align: left;
  display: inline-block;
}

.benefits {
  margin-top: 2rem;
}

.benefits ol {
  padding-left: 1.3rem;
  display: inline-block;
  text-align: left;
}

.divider {
  height: 2px;
  max-width: 260px;
  background-color: #dddddd;
  margin: 1.4rem auto;
  border-radius: 999px;
}

/* HOW IT WORKS */
.about-how {
  margin-top: 1.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.step h4 {
  margin-top: 0;
  color: var(--green-main);
}

/* SERVICES GALLERY */
.service-types ul {
  padding-left: 1.2rem;
  display: inline-block;
  text-align: left;
}

.pricing {
  margin-top: 1.4rem;
  padding: 1rem 1.25rem;
  background-color: var(--green-light);
  border-left: 4px solid var(--green-main);
  border-radius: var(--radius);
  display: inline-block;
  text-align: left;
}

.service-gallery {
  margin-top: 0.9rem;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  justify-content: center;
}

.gallery-item {
  flex: 1 1 200px;
  max-width: 320px;
  text-align: center;
}

.gallery-item p {
  margin-top: 0.6rem;
  color: var(--green-main);
  font-weight: 500;
}

.gallery-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
}

/* CONTACT */
#contact .page-container {
  text-align: center;
}

#contact p,
#contact .contact-highlight,
#contact a {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#contact iframe,
#contact .supernova,
#contact .form-all {
  width: 100% !important;
  max-width: 900px !important;
  min-width: 280px !important;
}

#contact iframe {
  height: 1200px !important;
  border: none !important;
  display: block;
  margin: 0 auto;
}

.site-footer {
  background-color: var(--green-dark);
  color: #ffffff;
  padding: 1.25rem 1rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-icons a {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-icons a:hover {
  color: var(--accent-gold);
}

.footer-contact p {
  margin: 0;
  font-size: 0.9rem;
}

/* Jotform container */
.jotform-container {
  max-width: 700px;
  margin: 1.5rem auto 0;
}

.jotform-container iframe {
  width: 100%;
  border: none;
  height: 900px;      /* adjust if you want more/less visible form */
}

/* slightly taller on small phones if needed */
@media (max-width: 600px) {
  .jotform-container iframe {
    height: 1000px;
  }
}

@media (max-width: 600px) {
  /* tighten header on phones */
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    padding: 0.35rem 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  /* shrink / simplify logo on mobile */
  .logo-img {
    display: none;              /* hide big logo to save space */
  }

  .logo-text h1 {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .logo-text p {
    display: none;              /* hide tagline on mobile */
  }

  .main-nav {
    justify-content: flex-start;
    gap: 0.7rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding-bottom: 0.1rem;
  }

  .page-section {
    padding: 1.6rem 1rem 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .home-logo-center img {
    max-width: 200px;
  }

  .gallery-item {
    max-width: 100%;
  }
}

/* MOBILE FIX for home feature cards */
@media (max-width: 768px) {
  .home-feature-grid {
    display: grid;
    grid-template-columns: 1fr; /* single column layout */
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .feature-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .feature-image {
    height: 220px; /* keep consistent image height */
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  .feature-card p {
    font-size: 1rem;
  }

  .feature-card .btn {
    margin: 1rem auto 0;
    display: block;
    width: fit-content;
  }
}

/* ECO CLEAN CONTACT FORM */
.eco-form {
  max-width: 650px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eco-row {
  display: flex;
  gap: 1rem;
}

.eco-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #b5c7b9;
  font-size: 1rem;
  font-family: "Lato", sans-serif;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.eco-input:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 4px rgba(47, 107, 63, 0.35);
}

.eco-textarea {
  resize: vertical;
}

.eco-btn {
  padding: 14px;
  width: 100%;
  background-color: var(--green-main);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.eco-btn:hover {
  background-color: #275531;
}

/* MOBILE FIX: Make name inputs stack */
@media (max-width: 600px) {
  .eco-row {
    flex-direction: column;
  }
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--green-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--green-main);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  text-align: left;
}

.form-row label {
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row textarea {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid #cccccc;
  font-size: 1rem;
  font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--green-main);
  border-color: var(--green-main);
}