/* ==========================================================================
   DIRT NURSE — site styles
   White with the Dirt Nurse greens from the logo. Flat colour only — no
   gradients, filters or image effects. All values come from :root.
   ========================================================================== */

:root {
  --bg:        #ffffff;   /* page */
  --bg-soft:   #EEF3E7;   /* tiles, placeholders — pale green */
  --text:      #111111;   /* body text */
  --text-dim:  #3f3f3f;   /* secondary text */
  --muted:     #6b6b6b;   /* labels, captions — 5.3:1 on white, passes AA */
  --line:      rgba(0, 0, 0, 0.13);
  --green:      #5E8C30;  /* logo "DIRT NURSE" — links, buttons, accents */
  --green-deep: #3F6320;  /* hover on green, small green text (7:1 on white) */
  --green-soft: #B9C9A3;  /* logo "PLANTS" — rules, borders */
  --green-wash: #EEF3E7;  /* flat pale green panels */
  --accent:     var(--green);

  --sidebar:    248px;
  --pad:        clamp(1.5rem, 4vw, 4.5rem);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Small uppercase labels go faint at light weights — hold them at 500. */
.eyebrow,
.column-head .count,
.plant-card .row,
.pill,
.back-link,
.btn { font-weight: 500; }

/* the home page is one screen — nothing below the fold */
body.fixed-screen { height: 100vh; height: 100svh; overflow: hidden; }

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

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

/* --------------------------------------------------------------------------
   SIDEBAR
   -------------------------------------------------------------------------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-right: 4px solid var(--green);
  background: var(--bg);
  z-index: 60;
}

.wordmark { display: block; }
.wordmark img { width: 172px; height: auto; }
.wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-top: 0.9rem;
  font-weight: 500;
}

.nav { display: flex; flex-direction: column; gap: 0.15rem; }

.nav a {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.nav a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--green);
  transform: translateY(-50%);
  transition: width 0.25s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--green-deep); padding-left: 1.6rem; }
.nav a:hover::before,
.nav a[aria-current="page"]::before { width: 1.1rem; }

.sidebar-foot {
  margin-top: auto;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.sidebar-foot a { color: var(--green-deep); }
.sidebar-foot a:hover { color: var(--text); }

/* mobile bar + toggle */
.mobile-bar { display: none; }

.nav-toggle {
  display: none;
  position: fixed;
  top: 0.9rem; right: 1rem;
  z-index: 80;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle i {
  display: block;
  width: 18px; height: 1px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   PAGE SHELL
   -------------------------------------------------------------------------- */

.main { margin-left: var(--sidebar); min-height: 100vh; }
body.fixed-screen .main { min-height: 0; height: 100%; }

.section { padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 1.4rem;
}

h1, h2, h3 { font-weight: 400; margin: 0; }

.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.headline {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
}
.lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.headline, .display { color: var(--green); }

/* --------------------------------------------------------------------------
   HERO — one full screen, no scrolling
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  overflow: hidden;
  background: #fff;
}

/* the logo, big and centred */
.hero-logo { margin: 0; line-height: 0; width: min(760px, 78%); }
.hero-logo img { width: 100%; height: auto; }

/* flat green band along the bottom of the home screen */
.hero-band {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(18px, 3vh, 34px);
  background: var(--green);
  z-index: 1;
}
body.fixed-screen .hero { height: 100%; }

/* The video sits behind everything. Until a file exists at
   assets/video/hero.mp4 the plain panel below shows instead. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-soft);
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero .display { max-width: 16ch; }
.hero .lede { margin-top: 1.5rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.8rem;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: transparent;
  font-family: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--green); color: #fff; }
.btn-solid { background: var(--green); border-color: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* --------------------------------------------------------------------------
   CATEGORY COLUMNS (Plant Hub)
   -------------------------------------------------------------------------- */

.hub-head { padding: clamp(4rem, 9vw, 7rem) var(--pad) clamp(2rem, 4vw, 3rem); }
.hub-head .display { color: var(--green); }

/* --------------------------------------------------------------------------
   PLANT HUB — portfolio grid
   One unified grid of square tiles. Name centred underneath, category below
   that. Three across on a desktop, two on a tablet, one on a phone.
   -------------------------------------------------------------------------- */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.2rem, 4vw, 3.6rem) clamp(1.6rem, 3vw, 2.8rem);
  padding: clamp(2rem, 4vw, 3rem) var(--pad) clamp(5rem, 9vw, 8rem);
  border-top: 4px solid var(--green);
}

.work {
  display: block;
  text-align: center;
}

.work .shot {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}
.work .shot img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* hover: a flat green frame, no zoom */
.work .shot { outline: 0 solid var(--green); outline-offset: -4px; }
.work:hover .shot { outline-width: 4px; }

/* placeholder tile for a plant with no photo yet */
.work .shot.ph { display: grid; place-items: center; }
.work .shot.ph .glyph {
  font-family: var(--serif);
  font-size: 3.4rem;
  color: var(--green);
}

.work .title {
  margin-top: 1.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.work:hover .title { color: var(--green); }

.work .kind {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: var(--green-deep);
}
.work .kind em {
  font-family: var(--serif);
  font-style: italic;
}

.work .price {
  color: var(--green-deep);
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* "New Plants" section under the main grid */
.hub-head--sub { padding-top: 0; }
.hub-head--sub .display { color: var(--green); }

@media (max-width: 1100px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .hub-grid { grid-template-columns: 1fr; } }

.columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.column {
  border-right: 1px solid var(--line);
  padding: 2.5rem 1.6rem 4rem;
  min-width: 0;
}
.column:last-child { border-right: 0; }

.column-head { margin-bottom: 2rem; }
.column-head h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.1;
}
.column-head .count {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}
.column-head .note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.9rem;
  line-height: 1.55;
}

.plant-list { display: flex; flex-direction: column; gap: 1.6rem; }

/* Inside a Plant Hub column the tiles run two across, so every tile is the
   same size no matter how many plants a category holds. */
.column .plant-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 1.1rem;
  align-items: start;
}
.column .plant-card h3 { font-size: 0.86rem; }
.column .plant-card .latin { font-size: 0.76rem; line-height: 1.35; }
.column .plant-card .row { font-size: 0.58rem; letter-spacing: 0.1em; }
/* the hub columns are narrow — drop the "view care" hint, keep price if set */
.column .plant-card .cta { display: none; }

/* a row of tiles outside the hub columns */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 3rem; }

.plant-card { display: block; }

.thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-soft);
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* Placeholder tiles used while there is no photo. */
.thumb.ph { display: grid; place-items: center; }
.thumb.ph .glyph {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.thumb.t1 { background: #f2f2f1; }
.thumb.t2 { background: #ededec; }
.thumb.t3 { background: #f5f5f4; }
.thumb.t4 { background: #e9e9e8; }
.thumb.t5 { background: #f0f0ef; }
.thumb.t6 { background: #eaeae9; }

.plant-card .meta { margin-top: 0.85rem; }
.plant-card h3 {
  font-size: 0.98rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.plant-card:hover h3 { color: var(--muted); }
.plant-card .latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.plant-card .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  min-width: 0;
  gap: 0.3rem 0.75rem;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.plant-card .row span { white-space: nowrap; }
.plant-card .price { color: var(--text); letter-spacing: 0.08em; }

.empty-note {
  border: 1px dashed var(--line);
  border-radius: 2px;
  padding: 1.6rem 1.3rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   PLANT DETAIL PAGE
   -------------------------------------------------------------------------- */

.plant-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 78vh;
}
.plant-visual {
  position: relative;
  min-height: 52vh;
  background: var(--bg-soft);
}
.plant-visual img { width: 100%; height: 100%; object-fit: cover; }
.plant-visual.ph { display: grid; place-items: center; }
.plant-visual.ph .glyph { font-family: var(--serif); font-size: 6rem; color: var(--green); }

.plant-intro {
  padding: clamp(3rem, 6vw, 6rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--green);
}
.back-link {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  display: inline-flex;
  gap: 0.6rem;
}
.back-link { color: var(--green-deep); }
.back-link:hover { color: var(--text); }

.plant-intro h1 { color: var(--green); font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; }
.plant-intro .latin { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); margin-top: 0.6rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.pill {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.35rem 0.95rem;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pill { border-color: var(--green-soft); }
.pill.level { background: var(--green); border-color: var(--green); color: #fff; }

.buy {
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}
.buy .amount { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.buy .ask { font-size: 0.8rem; color: var(--muted); max-width: 30ch; }

/* care table */
.care { padding: clamp(3.5rem, 7vw, 6rem) var(--pad); border-top: 4px solid var(--green); }
.care-grid { display: grid; gap: 0; max-width: 980px; }
.care-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.care-row:last-child { border-bottom: 1px solid var(--line); }
.care-row dt {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 500;
  padding-top: 0.25rem;
}
.care-row dd { margin: 0; color: var(--text-dim); max-width: 62ch; }

.next-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.next-strip .plant-card { padding: 2rem 1.5rem; border-right: 1px solid var(--line); }
.next-strip .plant-card:last-child { border-right: 0; }

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.contact-info {
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  display: flex; flex-direction: column; justify-content: center;
}
.contact-rows { margin-top: 3rem; }
.contact-row { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row .label {
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact-row .value { font-size: 1.05rem; }
.contact-row a.value { color: var(--green-deep); }
.contact-row a.value:hover { color: var(--text); }

.map { position: relative; min-height: 50vh; border-left: 4px solid var(--green); background: var(--bg-soft); }
.map iframe {
  position: relative; z-index: 1;
  width: 100%; height: 100%; min-height: 50vh; border: 0; display: block;
}
/* shows through if the map can't load */
.map-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-content: center; gap: 0.6rem;
  text-align: center; padding: 2rem;
  color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em;
}
.map-fallback .big { font-family: var(--serif); font-size: 1.4rem; color: var(--text); }

/* --------------------------------------------------------------------------
   SHARED BLOCKS
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }

.cat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.cat-tile {
  padding: clamp(2.5rem, 4vw, 4rem) 1.8rem;
  border-right: 1px solid var(--line);
  transition: background 0.3s ease;
}
.cat-tile:last-child { border-right: 0; }
.cat-tile:hover { background: var(--bg-soft); }
.cat-tile .n { font-family: var(--serif); font-size: 1.5rem; }
.cat-tile .c { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 0.8rem; }

/* --------------------------------------------------------------------------
   CARDS / PRINT SHEET
   -------------------------------------------------------------------------- */

.card-tools {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
  margin-top: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 0.7rem 0.9rem; border-radius: 2px; font: inherit; font-size: 0.9rem; min-width: 260px;
}
.field input:focus, .field select:focus { outline: 1px solid var(--text); }

.sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 2.5rem; max-width: 900px; }
.qr-card {
  background: #ffffff;
  color: #111111;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 0.9rem;
  align-items: center;
  min-height: 2in;
  break-inside: avoid;
}
.qr-card .nm { font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; }
.qr-card .lt { font-family: var(--serif); font-style: italic; font-size: 0.8rem; color: #6a6a6a; margin-top: 0.15rem; }
.qr-card .lv { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: #6a6a6a; margin-top: 0.6rem; }
.qr-card .tip { font-size: 0.72rem; line-height: 1.45; margin-top: 0.5rem; color: #2a2a2a; }
.qr-card .brand { font-size: 0.55rem; letter-spacing: 0.26em; text-transform: uppercase; color: #7a7a7a; margin-top: 0.7rem; }
.qr-box { display: grid; place-items: center; text-align: center; }
.qr-box canvas, .qr-box img { width: 84px; height: 84px; display: block; }
.qr-box .scan { font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7a7a7a; margin-top: 0.35rem; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .columns { grid-template-columns: repeat(2, 1fr); }
  .column:nth-child(2n) { border-right: 0; }
  .column:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cat-strip, .next-strip, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-tile:nth-child(2n), .next-strip .plant-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }

  .nav-toggle { display: block; }

  .sidebar {
    width: min(84vw, 320px);
    transform: translateX(-102%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid var(--green);
    padding-top: 4.5rem;
  }
  body.nav-open .sidebar { transform: none; }

  .mobile-bar {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    align-items: center;
    padding: 0 1.2rem;
    background: #fff;
    border-bottom: 3px solid var(--green);
    z-index: 70;
  }
  .mobile-bar img { height: 34px; width: auto; }

  .main { margin-left: 0; padding-top: 67px; }
  .hero { height: calc(100svh - 67px); }
  .hero-logo { width: 88%; }
  body.fixed-screen .main { height: 100%; }

  .plant-top, .contact-grid, .split { grid-template-columns: 1fr; }
  .plant-intro, .contact-info, .map { border-left: 0; border-top: 4px solid var(--green); }
  .plant-visual { min-height: 46vh; }
  .care-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .sheet { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* tiles stay two across on a phone; only the big section blocks stack */
  .columns, .cat-strip { grid-template-columns: 1fr; }
  .column, .cat-tile { border-right: 0; border-top: 1px solid var(--line); }
  .next-strip .plant-card { padding: 1.5rem 1.1rem; }
  .field input, .field select { min-width: 0; width: 100%; }
  .field { width: 100%; }
}

/* --------------------------------------------------------------------------
   PRINT — used by cards.html so the QR cards come out clean
   -------------------------------------------------------------------------- */

@media print {
  @page { margin: 0.4in; }
  body { background: #fff; color: #000; }
  .sidebar, .nav-toggle, .mobile-bar, .card-tools, .no-print { display: none !important; }
  .main { margin: 0; padding: 0; }
  .section { padding: 0; }
  .sheet { grid-template-columns: repeat(2, 1fr); gap: 0.2in; max-width: none; margin: 0; }
  .qr-card { border: 1px solid #ddd; box-shadow: none; }
}
