/* ============================================================
   ZAS Services — stylesheet
   Reorganized & verified against index.html, calendar.html,
   panaceaplanting.html
   ============================================================ */

/* ============================================================
   1. RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   2. DESIGN TOKENS
   FIX: consolidated the two variable systems. The calendar
   previously referenced --gold/--ink/--line which were never
   defined; they now map to the global palette.
   ============================================================ */
:root {
  /* surfaces & text */
  --color-bg: #fdfcf9;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-border: #e3dfd7;

  /* accent (global green) */
  --color-accent: #2f5d50;
  --color-accent-hover: #234a3f;

  /* calendar tokens — FIX: these were undefined before.
     Mapped to the global palette so the calendar renders. */
  --gold: #b8963e;            /* adjust to taste */
  --gold-soft: #8a6d2a;
  --gold-muted: #c9b98a;
  --ink: var(--color-text);
  --ink-dim: var(--color-text-muted);
  --line: var(--color-border);

  /* type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

/* ============================================================
   3. BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 5vw;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  order: 2;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  order: 1;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* Hamburger menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  order: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================================
   5. BUTTONS
   CONSOLIDATED: .btn-accent was a duplicate of .btn.
   Kept as an alias so the existing HTML keeps working.
   ============================================================ */
.btn,
.btn-accent {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn:hover,
.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ============================================================
   6. HERO (index.html)
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 6rem 5vw;
  background: linear-gradient(160deg, #f4f1ea 0%, #e8ece7 100%);
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: 2.25rem;
}

/* ============================================================
   7. SERVICES / SPECIALTIES (index.html)
   .spec defines its own local tokens, so it deliberately does
   NOT inherit the global accent. Flagging in case that's
   unintentional.
   ============================================================ */
.spec {
  --ink: #1f2a2e;
  --muted: #55656b;
  --line: #d5dde0;
  --accent: #2f6f73;

  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.spec-intro h2 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 600;
}

.spec-intro p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.spec-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 600;
}

.spec-list summary::-webkit-details-marker {
  display: none;
}

.spec-list summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.spec-list details[open] summary::after {
  content: "\2212";
}

.spec-list summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.spec-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.spec-body p {
  margin: 0 0 1rem;
}

.spec-body > :last-child {
  margin-bottom: 0;
}

.spec-body ul,
.spec-body ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.spec-body li {
  margin-bottom: 0.4rem;
}

.spec-body li::marker {
  color: var(--accent);
}

.spec-body > * {
  max-width: 62ch;
}

@media (max-width: 760px) {
  .spec {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem;
  }
}

/* ============================================================
   8. PANACEA PAGE (panaceaplanting.html)
   NOTE: .about, .horticulture-therapy, .panacea-planting-services
   have NO rules in the original stylesheet. They currently rely
   entirely on body defaults. If you want them styled (padding,
   max-width, section spacing), tell me and I'll add them.
   ============================================================ */
.subsections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

.subsection h3 {
  margin: 0 0 0.5rem;
}

.subsection p {
  margin: 0;
}

/* ============================================================
   PANACEA PAGE SECTIONS (panaceaplanting.html)
   ============================================================ */
.about,
.horticulture-therapy,
.panacea-planting-services {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 5vw;
}

.about-content h2,
.horticulture-content h2,
.services-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-content p,
.horticulture-content p,
.services-content p {
  color: var(--color-text-muted);
  max-width: 62ch;
  margin-bottom: 1rem;
}

.about-content > :last-child,
.horticulture-content > :last-child,
.services-content > :last-child {
  margin-bottom: 0;
}
/* ============================================================
   9. CONTACT (index.html)
   ============================================================ */
#contact {
  padding: 6rem 5vw;
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.contact-info p {
  color: var(--color-text-muted);
  max-width: 40ch;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-info a:hover {
  border-bottom-color: var(--color-accent);
}

/* ============================================================
   10. FORM (index.html)
   ============================================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Netlify honeypot — VERIFIED: used on bot-field wrapper */
.hidden {
  position: absolute;
  left: -9999px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.8rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.12);
}

form .btn {
  align-self: flex-start;
}

/* ============================================================
   11. AVAILABILITY CALENDAR (calendar.html)
   FIX: --gold/--ink/--line are now defined in :root.
   NOTE: .cal-day / .available / .booked have no static HTML —
   they must be injected by js/script.js. Confirm that JS exists.
   ============================================================ */
#availability {
  padding: 4rem 5vw 5rem;
}

.cal-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cal-nav {
  background: none;
  border: 1px solid var(--gold-muted);
  color: var(--ink);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cal-nav:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

#cal-month-label {
  font-family: var(--font-display);
  color: var(--gold-soft);
  min-width: 10ch;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.cal-day-name {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gold-muted);
  padding-bottom: 0.5rem;
}

/* JS-injected day cells */
.cal-grid .cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.85rem;
}

.cal-day.blank {
  border: none;
  background: transparent;
}

.cal-day.available {
  border-color: var(--gold-muted);
  color: var(--ink);
}

.cal-day.booked {
  background: rgba(212, 175, 55, 0.05);
  color: var(--ink-dim);
  opacity: 0.6;
}

.cal-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.calendar-contact {
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.calendar-contact p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.legend-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
}

.legend-dot.available {
  background: var(--gold);
}

.legend-dot.booked {
  background: var(--ink-dim);
  opacity: 0.4;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
footer {
  padding: 2.5rem 5vw;
  background: var(--color-text);
  color: #fff;
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  opacity: 0.75;
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .nav-logo {
    order: 1;
    margin-left: auto;
    margin-right: 1rem;
  }

  .nav-toggle {
    order: 0;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li {
    border-top: 1px solid var(--color-border);
  }

  .nav-links a {
    display: block;
    padding: 1rem 5vw;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 60vh;
    padding: 4rem 5vw;
  }

  #contact {
    padding: 4rem 5vw;
  }
}