/* ===========================================================
   Triangle Plant Care — Design Tokens
   Palette:  forest #1F3A2E, moss #4A6741, clay #A9603D,
             gold #C9A227, parchment #EFE8D8, ink #2B2620
   Type:     Fraunces (display) / Public Sans (body) / IBM Plex Mono (tags)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --forest: #1F3A2E;
  --forest-dark: #142720;
  --moss: #4A6741;
  --clay: #A9603D;
  --clay-dark: #8B4C31;
  --gold: #C9A227;
  --parchment: #EFE8D8;
  --parchment-dim: #E4DAC3;
  --ink: #2B2620;
  --paper-line: #D9CDAE;

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', sans-serif;
  --font-tag: 'IBM Plex Mono', monospace;

  --radius: 6px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--forest-dark);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--forest);
  color: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

.main-nav {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--parchment-dim);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--gold);
}

.nav-cta {
  background: var(--clay);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: var(--radius);
  border-color: transparent !important;
}

.nav-cta:hover { background: var(--clay-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--parchment-dim);
  color: #fff;
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--parchment);
  padding: 78px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-tag);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  font-size: 1.08rem;
  color: var(--parchment-dim);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--clay);
  color: #fff;
}
.btn-primary:hover { background: var(--clay-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--parchment-dim);
  color: var(--parchment);
}
.btn-outline:hover { border-color: #fff; }

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px;
  background: rgba(239, 232, 216, 0.06);
  border: 1px solid rgba(239, 232, 216, 0.18);
  border-radius: 10px;
}

.hero-stat b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  display: block;
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--parchment-dim);
}

/* ---------- Section shell ---------- */
.section {
  padding: 84px 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: var(--font-tag);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--clay);
  display: block;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.section-head p {
  color: #55503f;
  font-size: 1.02rem;
}

.updated-note {
  font-family: var(--font-tag);
  font-size: 0.82rem;
  color: var(--moss);
  background: #E3EADC;
  border: 1px dashed var(--moss);
  border-radius: var(--radius);
  padding: 8px 14px;
  display: inline-block;
  margin-top: 18px;
}

/* ---------- Plant tag cards (signature element) ---------- */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 38px 28px;
}

.plant-tag {
  position: relative;
  background: #fff;
  border-radius: 4px 4px 14px 14px;
  box-shadow: 0 10px 24px rgba(31, 58, 46, 0.12);
  padding-top: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plant-tag:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 16px 30px rgba(31, 58, 46, 0.18);
}

.plant-tag::before {
  /* twine hole punch */
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--paper-line);
}

.plant-tag-photo {
  margin: 0 10px;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(135deg, #E4EAD9, #D3DFC4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plant-tag-photo img { width: 100%; height: 100%; object-fit: cover; }

.plant-tag-photo.is-placeholder svg { width: 46%; opacity: 0.55; }

.plant-tag-body {
  padding: 16px 18px 20px;
}

.plant-tag-common {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--forest-dark);
}

.plant-tag-botanical {
  font-style: italic;
  color: var(--moss);
  font-size: 0.9rem;
  margin: 2px 0 10px;
}

.plant-tag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.plant-tag-meta span {
  font-family: var(--font-tag);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--parchment);
  border: 1px solid var(--paper-line);
  color: var(--clay-dark);
  padding: 4px 8px;
  border-radius: 3px;
}

.plant-tag-note {
  font-size: 0.88rem;
  color: #57523f;
}

.plant-tag-dateline {
  font-family: var(--font-tag);
  font-size: 0.72rem;
  color: var(--moss);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--paper-line);
}

/* ---------- Why us / feature columns ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.feature {
  border-left: 3px solid var(--clay);
  padding-left: 20px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--moss);
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature p {
  color: #55503f;
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest);
  color: var(--parchment);
  text-align: center;
  padding: 70px 0;
}

.cta-band h2 { color: #fff; margin-bottom: 14px; }

.cta-band p {
  color: var(--parchment-dim);
  max-width: 50ch;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: var(--parchment-dim);
  padding: 46px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  font-family: var(--font-body);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: var(--parchment-dim);
  text-decoration: none;
}
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(239, 232, 216, 0.15);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #a49d87;
}

/* ===========================================================
   Quote page
   =========================================================== */

.page-hero {
  background: var(--forest);
  color: var(--parchment);
  padding: 56px 0;
  border-bottom: 3px solid var(--gold);
}

.page-hero .section-eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.page-hero p { color: var(--parchment-dim); max-width: 55ch; margin-top: 12px; }

.quote-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: start;
}

/* the "order slip" card */
.slip {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(31, 58, 46, 0.14);
  overflow: hidden;
}

.slip-header {
  background: var(--parchment-dim);
  padding: 20px 32px;
  border-bottom: 1px dashed var(--paper-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slip-header .slip-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest-dark);
}

.slip-header .slip-id {
  font-family: var(--font-tag);
  font-size: 0.78rem;
  color: var(--clay-dark);
}

form.slip-form {
  padding: 32px;
  display: grid;
  gap: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--font-tag);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest-dark);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 11px 13px;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  background: #FDFCF8;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--moss);
}

.field textarea { resize: vertical; min-height: 100px; }

fieldset.services {
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
}

fieldset.services legend {
  font-family: var(--font-tag);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest-dark);
  padding: 0 6px;
}

.service-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
}

.check-option input { width: 17px; height: 17px; accent-color: var(--clay); }

.slip-submit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.form-status {
  font-size: 0.9rem;
  color: var(--moss);
  font-weight: 600;
}

.form-status[hidden] { display: none; }

/* sidebar */
.quote-aside {
  display: grid;
  gap: 20px;
}

.aside-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px 26px;
  box-shadow: 0 10px 24px rgba(31, 58, 46, 0.1);
}

.aside-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.aside-card p, .aside-card li {
  font-size: 0.92rem;
  color: #55503f;
}

.aside-card ul {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 6px;
}

.aside-card.tinted {
  background: var(--moss);
  color: #fff;
}
.aside-card.tinted h3 { color: #fff; }
.aside-card.tinted p { color: #DDE7D6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .quote-layout { grid-template-columns: 1fr; }
  .field-row, .service-options { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle,
  .main-nav { display: none !important; }

  .site-header .wrap { justify-content: center; }

  .wrap { padding: 0 20px; }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 26px; height: 26px; }

  .hero { padding: 48px 0 56px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stat-strip { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .hero-stat b { font-size: 1.5rem; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }

  .plant-grid { grid-template-columns: 1fr; gap: 26px; }

  .cta-band { padding: 48px 0; }
  .cta-band .btn { width: 100%; justify-content: center; }

  .slip-header { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  form.slip-form { padding: 22px 20px; }

  .footer-grid { gap: 26px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.9rem; }
  .btn { width: 100%; justify-content: center; }
}
