/* ==========================================================================
   Garden City Grow Club — styles.css
   Last updated: 2026-04-25
   Stack: hand-written HTML/CSS, no build step. Drop-deploy to Netlify.

   Layout intent:
   - One dark forest-green page background. White type throughout.
   - Single grid container — every block (hero logo, hero text, intro, tiers,
     footer) shares the same left edge.
   - Tiers stack one per row down the page. Product PNGs float directly on
     the page background (no card containers).
   - Mobile-first responsive: container padding, type scale, hero height.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Brand palette */
  --cream:    #fcfcf0;
  --yellow:   #e4bf28;
  --teal:     #4fa4af;
  --orange:   #e55c32;
  --amber:    #dd8628;
  --sage:     #88a078;
  --forest:   #0d200a;

  /* Roles */
  --bg:        var(--cream);
  --text:      var(--forest);
  --text-soft: rgba(13, 32, 10, 0.72);
  --rule:      rgba(13, 32, 10, 0.14);
  --accent:    var(--orange);
  --on-photo:  #ffffff; /* white used only over the hero photo */

  /* Grid */
  --max:       1200px;
  --gutter-d:  48px;   /* desktop horizontal padding */
  --gutter-t:  32px;   /* tablet */
  --gutter-m:  20px;   /* mobile */

  /* Type stacks */
  --font-heading: 'Quicksand', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    'Pochaevsk', Georgia, 'Times New Roman', serif;
}

/* --- Reset (light) -------------------------------------------------------- */

*, *::before, *::after { 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(--font-body);
  font-weight: 400;
  font-size: 18.4px;   /* 15% larger than spec's 16px */
  line-height: 30px;   /* maintains ~163% ratio */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }

/* --- Type system (per spec) ---------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 0.4em;
  color: var(--text);
}

h1 { font-weight: 700; font-size: 62px; line-height: 68px; }
h2 { font-weight: 600; font-size: 32px; line-height: 38px; }
h3 { font-weight: 300; font-size: 28px; line-height: 32px; }
h4 {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Responsive type scale */
@media (max-width: 880px) {
  h1 { font-size: 48px; line-height: 54px; }
  h2 { font-size: 28px; line-height: 34px; }
}
@media (max-width: 560px) {
  h1 { font-size: 38px; line-height: 44px; }
  h2 { font-size: 24px; line-height: 30px; }
  h3 { font-size: 22px; line-height: 28px; }
}

/* --- Grid container (the one source of horizontal alignment) ----------- */

.container {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-d);
  padding-right: var(--gutter-d);
}
@media (max-width: 880px) {
  .container { padding-left: var(--gutter-t); padding-right: var(--gutter-t); }
}
@media (max-width: 560px) {
  .container { padding-left: var(--gutter-m); padding-right: var(--gutter-m); }
}

/* --- Section rhythm ----------------------------------------------------- */

.section { padding: 120px 0; }
@media (max-width: 880px) { .section { padding: 80px 0; } }
@media (max-width: 560px) { .section { padding: 64px 0; } }

/* Reusable block constraints */
.measure-tight { max-width: 22ch; }   /* hero h1, big headlines */
.measure-prose { max-width: 75ch; }   /* body copy — wider on desktop */
@media (max-width: 880px) {
  .measure-prose { max-width: 100%; }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(180deg,
      rgba(13, 32, 10, 0.30) 0%,
      rgba(13, 32, 10, 0.10) 35%,
      rgba(13, 32, 10, 0.85) 100%),
    url('assets/images/watering_greens.jpg') center/cover no-repeat;
  display: flex;
  color: var(--on-photo);
}
/* Hero sits over a photo, so type stays white regardless of page bg */
.hero h1, .hero h2, .hero h3, .hero h4, .hero p { color: var(--on-photo); }
.hero .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero__logo {
  width: 220px;
  max-width: 50vw;
  height: auto;
  /* Logo flush-left within the container — same left edge as everything else */
}
.hero__content {
  margin-top: auto;     /* push to bottom of hero */
  text-align: left;
}
.hero__eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-photo);
  opacity: 0.9;
  margin: 0 0 16px;
}
.hero__title {
  margin: 0 0 16px;
  max-width: 16ch;
}
.hero__lede {
  max-width: 52ch;
  font-size: 21px;     /* 15% larger to match body bump */
  line-height: 32px;
  color: var(--on-photo);
  margin: 0 0 32px;
}

@media (max-width: 880px) {
  .hero { min-height: 90vh; }
  .hero__logo { width: 160px; }
  .hero .container { padding-top: 28px; padding-bottom: 56px; }
}
@media (max-width: 560px) {
  .hero { min-height: 80vh; }
  .hero__logo { width: 130px; }
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--orange);
  color: #ffffff;
}
.btn--primary:hover { background: #cc4d27; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--ghost:hover { background: var(--text); color: var(--bg); }

/* Hero ghost button sits over the photo — keep it white */
.hero .btn--ghost { color: var(--on-photo); border-color: var(--on-photo); }
.hero .btn--ghost:hover { background: var(--on-photo); color: var(--forest); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Intro section ------------------------------------------------------ */

.intro__eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  color: var(--text);
  opacity: 0.7;
}

/* Stacked callouts (used in "More than a garden" section) ---------------- */
.callout + .callout { margin-top: 48px; }
.callout h3 { margin-bottom: 12px; }

/* Section background variants ------------------------------------------- */
.section--sage { background: var(--sage); }

/* --- Tier section ------------------------------------------------------- */
/* One tier per row down the page. Desktop: text on the left, PNG on the
   right. Mobile: image stacks above text. PNGs float directly on the
   page background (no card containers). */

.tiers__intro {
  margin-bottom: 32px;
}

.tier {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: row-reverse; /* text first in DOM, image rendered right */
  align-items: center;
  gap: 64px;
}
.tier:first-of-type { border-top: 0; padding-top: 24px; }

.tier__media {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
.tier__media img {
  display: block;
  width: 100%;
  max-width: 720px;       /* PNG won't stretch huge on wide screens */
  height: auto;
  margin-left: auto;       /* hug the right edge of its column */
  /* No background, no padding, no border — PNG sits on page bg */
}

.tier__media--missing {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--rule);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
}

.tier__body {
  flex: 1 1 0;
  min-width: 0;
}

.tier__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  margin: 0 0 12px;
}
.tier__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
  margin: 0;
}
.tier__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
  color: var(--sage);
  white-space: nowrap;
}

.tier__desc {
  margin: 0 0 16px;
}

.tier__note {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

@media (max-width: 880px) {
  .tier {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .tier__media { order: -1; width: 100%; }
  .tier__media img,
  .tier__media--missing { margin-left: 0; max-width: 100%; }
}
@media (max-width: 560px) {
  .tier { padding: 64px 0; }
  .tier__name { font-size: 26px; line-height: 32px; }
}

/* --- Site header (used on contact page) -------------------------------- */

.site-header {
  padding: 28px 0;
  background: var(--forest);
  color: var(--on-photo);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__logo {
  height: 48px;
  width: auto;
  display: block;
}
.site-header__nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-photo);
  text-decoration: none;
  margin-left: 24px;
}
.site-header__nav a:first-child { margin-left: 0; }
.site-header__nav a:hover { color: var(--yellow); }

@media (max-width: 560px) {
  .site-header__logo { height: 36px; }
  .site-header__nav a { margin-left: 16px; font-size: 13px; }
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer p { margin: 0; color: var(--text-soft); }

/* --- Forms (contact) ---------------------------------------------------- */

.form {
  display: grid;
  gap: 20px;
  max-width: 560px;
  margin: 32px 0 0;
}
.form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--text);
}
.form input,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--forest);
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { display: none; } /* honeypot */
