/* Wildglade Garden Services — shared stylesheet */

:root {
  --green-dark: #2e4b2f;
  --green: #4a7c4e;
  --green-light: #8fbc8f;
  --cream: #faf7f0;
  --earth: #7a5c3e;
  --text: #2b2b28;
  --text-muted: #5f6b5f;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(46, 75, 47, 0.12);
  --max-width: 1080px;
}

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

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, .nav, .btn {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & navigation */
.site-header {
  background: var(--green-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav a.active {
  background: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 70%, var(--green-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 1.25rem 5rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 1.75rem;
  opacity: 0.92;
}

/* Page banner (inner pages) */
.page-banner {
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  color: var(--white);
  text-align: center;
  padding: 2.75rem 1.25rem;
}

.page-banner h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.page-banner p {
  opacity: 0.9;
  max-width: 640px;
  margin: 0.5rem auto 0;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section h2 {
  font-size: 1.75rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section .lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

/* Card grid */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section-alt .card {
  border: 1px solid #eee7d9;
}

.card-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.card h3 {
  color: var(--green-dark);
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Image / photo placeholders */
.photo {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--green-light), var(--green));
}

.photo-frame {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d8e8d4, var(--green-light));
  color: var(--green-dark);
}

.photo-frame svg {
  width: 64px;
  height: 64px;
  opacity: 0.7;
}

/* Team */
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.avatar-frame {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d8e8d4, var(--green-light));
}

.avatar-frame svg {
  width: 72px;
  height: 72px;
  opacity: 0.7;
}

.role {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Feature list (sustainability) */
.feature-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
}

.feature-list strong {
  color: var(--green-dark);
}

/* Testimonials */
.quote {
  font-style: italic;
  color: var(--text-muted);
}

.quote-author {
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.92rem;
}

/* Contact form */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cfd8cc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}

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

.contact-aside {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 2rem auto 0;
}

/* CTA band */
.cta-band {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.25rem;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  margin-top: 0;
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
}

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

/* Split hero (homepage, design 4a) */
.split-hero {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  padding: 3rem 0;
}

.split-hero .hero-photo {
  width: 52%;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: auto;
  min-height: 340px;
}

.split-hero .hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-hero h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  color: var(--green-dark);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.split-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Diagonal service band (homepage, design 4a)
   The 17px slant and -17px overlap must match so seams line up. */
.dband {
  display: flex;
  overflow: hidden;
  border-radius: 6px;
}

.dpanel {
  flex: 1 1 0;
  height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  margin-left: -17px;
  clip-path: polygon(17px 0, 100% 0, calc(100% - 17px) 100%, 0 100%);
  text-decoration: none;
  background-size: cover;
  background-position: center;
  transition: flex-grow 0.3s ease;
}

.dpanel:hover {
  flex-grow: 1.35;
}

.dpanel:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 17px) 100%, 0 100%);
}

.dpanel:last-child {
  clip-path: polygon(17px 0, 100% 0, 100% 100%, 0 100%);
}

/* Placeholder fills until real service photos are supplied */
.dpanel-1 { background-image: linear-gradient(160deg, #8fbc8f, #4a7c4e); }
.dpanel-2 { background-image: linear-gradient(160deg, #a8c69f, #5d8a52); }
.dpanel-3 { background-image: linear-gradient(160deg, #9db98a, #2e4b2f); }
.dpanel-4 { background-image: linear-gradient(160deg, #b5a684, #7a5c3e); }

.dpanel::after {
  content: "";
  position: absolute;
  inset: 60% 0 0 0;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35));
}

.dlbl {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.75);
  color: var(--green-dark);
  padding: 2px 9px;
  border-radius: 3px;
  font-weight: 700;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

/* Sustainability band (homepage) */
.eco-band {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
}

.eco-band .eco-leaf {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.eco-band .eco-text {
  flex: 1;
}

.eco-band h2 {
  text-align: left;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.eco-band p {
  color: var(--text-muted);
}

/* Team row (homepage) */
.team-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.team-row .portraits {
  display: flex;
  gap: 0.75rem;
}

.team-row .avatar-frame {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.team-row .avatar-frame svg {
  width: 42px;
  height: 42px;
}

.team-row p {
  flex: 1;
  min-width: 240px;
  color: var(--text-muted);
}

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

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }

  .nav.open {
    display: flex;
  }

  .split-hero {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .split-hero .hero-photo {
    width: 100%;
    min-height: 220px;
  }

  /* Service band becomes a vertical stack with diagonal seams */
  .dband {
    flex-direction: column;
    border-radius: 5px;
  }

  .dpanel,
  .dpanel:first-child,
  .dpanel:last-child {
    flex: 0 0 auto;
    height: 90px;
    margin-left: 0;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 0 100%);
    margin-bottom: -8px;
  }

  .dpanel:hover {
    flex-grow: 1;
  }

  .dpanel:last-child {
    clip-path: none;
    margin-bottom: 0;
  }

  .eco-band {
    flex-direction: column;
    text-align: center;
  }

  .eco-band h2 {
    text-align: center;
  }

  .team-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    justify-content: center;
  }

  .nav {
    justify-content: center;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

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