/* ============================================================
   Cat grASS — styles
   Mobile-first, no framework. Palette from the business card.
   ============================================================ */

:root {
  --ink: #0e0e0e;          /* near-black sections */
  --ink-soft: #1a1a1a;     /* cards on dark */
  --cream: #f5f1ea;        /* light sections + text on dark */
  --cream-dim: #e9e3d8;    /* borders / subtle fills on light */
  --green: #3fae4a;        /* grass-green accent */
  --green-dark: #33913c;   /* hover */
  --green-light: #4fc75c;
  --amber: #d99a2b;        /* "Made to Order" badge */
  --gray: #8a8a84;         /* "Sold Out" badge, muted text */

  --font-head: "Poppins", "Quicksand", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 4px 18px rgba(14, 14, 14, 0.10);
  --shadow-hover: 0 10px 28px rgba(14, 14, 14, 0.16);
  --header-h: 64px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

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

[hidden] { display: none !important; }

a { color: var(--green-dark); }

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Anchor targets land below the sticky header */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

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

.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #262626; }

.btn--outline { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--outline:hover { background: var(--cream); color: var(--ink); }

/* Secondary button on light cards (used next to "Buy Now") */
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn--big { padding: 1rem 1.8rem; font-size: 1.05rem; }

.btn:disabled {
  background: var(--gray);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

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

.wordmark__logo { width: 40px; height: 40px; flex: none; }

.wordmark__text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wordmark__ass {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Mobile menu button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle__bar {
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  background: var(--ink);
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid #2a2a2a;
}
.site-nav.is-open { display: flex; }

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0.25rem;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--green-light); }

.site-nav__cta { margin-top: 0.5rem; }
.site-nav a.site-nav__cta { color: #fff; text-align: center; }

@media (min-width: 760px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background: none;
    padding: 0;
    border: none;
  }
  .site-nav a { padding: 0.25rem 0; }
  .site-nav__cta { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(88vh - var(--header-h));
  padding: 4.5rem 0;
  color: var(--cream);
  /* Dark gradient shows even if hero.jpg hasn't been added yet */
  background:
    linear-gradient(rgba(14, 14, 14, 0.72), rgba(14, 14, 14, 0.82)),
    var(--ink) url("images/hero.jpg") center / cover no-repeat;
}

.hero__content { position: relative; text-align: center; max-width: 720px; }

.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 0.4em;
}

.hero__tagline {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--green-light);
  margin: 0 0 0.75em;
}

.hero__subline {
  font-size: 1.05rem;
  color: rgba(245, 241, 234, 0.85);
  margin: 0 auto 2rem;
  max-width: 560px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section--light { background: var(--cream); color: var(--ink); }
.section--dark { background: var(--ink); color: var(--cream); }

.section__title {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  font-weight: 700;
  text-align: center;
}
.section__title--spaced { margin-top: 3.5rem; }

.section__intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: inherit;
  opacity: 0.85;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card--sold-out { opacity: 0.55; }
.product-card--sold-out:hover { transform: none; box-shadow: var(--shadow); }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-dim);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.badge--in-stock { background: var(--green); }
.badge--made-to-order { background: var(--amber); }
.badge--sold-out { background: var(--gray); }

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.25rem;
}

.product-card__name { font-size: 1.1rem; margin-bottom: 0.1em; }

.product-card__color {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5em;
}

.product-card__desc {
  font-size: 0.95rem;
  color: #444;
  margin: 0 0 1rem;
  flex: 1;
}

.product-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-card__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}

.product-card__actions {
  display: flex;
  gap: 0.5rem;
}
.product-card__actions .btn {
  flex: 1;
  white-space: nowrap;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}

.about-card {
  background: var(--ink-soft);
  border: 1px solid #2b2b2b;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.about-card h3 { color: var(--green-light); font-size: 1.1rem; }
.about-card p { margin: 0; color: rgba(245, 241, 234, 0.85); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step { text-align: center; padding: 0.5rem 1rem; }

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.step p { margin: 0; color: rgba(245, 241, 234, 0.8); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  max-width: 460px;
  margin: 0 auto 2rem;
}
@media (min-width: 700px) {
  .contact-buttons { flex-direction: row; justify-content: center; max-width: none; }
}

.contact-or {
  text-align: center;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.order-form {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
}

.order-form__row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .order-form__row { grid-template-columns: 1fr 1fr; }
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field__optional { font-weight: 400; color: var(--gray); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--cream-dim);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.field textarea { resize: vertical; }

.order-form__submit { width: 100%; }

/* Netlify honeypot — hidden from humans */
.hp-field { position: absolute; left: -9999px; }

.form-note {
  max-width: 620px;
  margin: 1.5rem auto 0;
  text-align: center;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.form-note--thanks { background: #e3f4e5; border: 1px solid var(--green); }
.form-note--thanks h3 { color: var(--green-dark); }
.form-note--error { background: #fdf0dc; border: 1px solid var(--amber); }
.form-note p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(245, 241, 234, 0.8);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p { margin: 0.3rem 0; }
.site-footer a { color: var(--green-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.wordmark__text--footer {
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.site-footer__fine {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .product-card { transition: none; }
}
