/* ============================================================
   TISANITY — static site stylesheet
   Raw CSS, no frameworks. All imagery is inline SVG in the HTML.
   ============================================================ */

:root {
  --forest: #2f4a3a;
  --forest-dark: #22382b;
  --cream: #faf6ef;
  --cream-dark: #f0e9dc;
  --terracotta: #c96f4a;
  --terracotta-dark: #a95837;
  --sage: #a8bfa4;
  --sage-light: #d3dfd0;
  --charcoal: #2b2b28;
  --muted: #6d6d66;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(43, 43, 40, 0.10);
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: var(--forest); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--forest);
  line-height: 1.2;
  font-weight: 600;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand svg { width: 34px; height: 34px; }

.brand-logo { height: 44px; width: auto; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.cart-link {
  position: relative;
  display: inline-flex;
  color: var(--forest);
}

.cart-link svg { width: 26px; height: 26px; }

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav (CSS-only checkbox hack) */

.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle-label span { top: 9px; }
.nav-toggle-label span::before { top: -9px; }
.nav-toggle-label span::after { top: 9px; }

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

.hero {
  background:
    linear-gradient(rgba(34, 56, 43, 0.45), rgba(34, 56, 43, 0.6)),
    url("../assets/hero-cans.jpg") center / cover no-repeat;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8rem 1.25rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(34, 56, 43, 0.5);
}

.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1rem;
  text-shadow: 0 1px 6px rgba(34, 56, 43, 0.6);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--cream);
  margin: 0 auto 2rem;
  max-width: 34rem;
  text-shadow: 0 1px 8px rgba(34, 56, 43, 0.6);
}

/* ---------- Section scaffolding ---------- */

.section { padding: 4.5rem 0; }
.section-alt { background: #fff; }
.section-forest { background: var(--forest); color: var(--cream); }
.section-forest h2, .section-forest h3 { color: var(--cream); }

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-head h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); }
.section-forest .section-head p { color: var(--sage-light); }

/* ---------- Feature cards ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature svg,
.feature img {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.feature h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2rem;
}

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

.product-card:hover { transform: translateY(-4px); }

.product-art {
  background: var(--sage-light);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-art svg { width: 110px; height: 150px; }

.product-info { padding: 1.1rem 1.25rem 1.4rem; }

.product-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.product-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--forest);
  margin: 0.25rem 0 0.35rem;
}

.product-price { font-weight: 700; color: var(--charcoal); }

.btn-buy {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
}

.btn-disabled {
  background: var(--cream-dark);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.sold-out-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.product-card.sold-out .product-art { opacity: 0.55; }

/* ---------- Shop filters (CSS-only, :checked pattern) ---------- */

.shop-filters input[type="radio"] { display: none; }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-tabs label {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--forest);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-tabs label:hover { background: var(--sage-light); }

/* Active tab highlighting */
#f-all:checked     ~ .filter-tabs label[for="f-all"],
#f-thriftea:checked ~ .filter-tabs label[for="f-thriftea"],
#f-tisane:checked  ~ .filter-tabs label[for="f-tisane"],
#f-kombucha:checked ~ .filter-tabs label[for="f-kombucha"],
#f-apparel:checked ~ .filter-tabs label[for="f-apparel"] {
  background: var(--forest);
  color: var(--cream);
}

/* Filtering: hide cards that don't match the checked category */
#f-thriftea:checked ~ .product-grid .product-card:not(.cat-thriftea),
#f-tisane:checked   ~ .product-grid .product-card:not(.cat-tisane),
#f-kombucha:checked ~ .product-grid .product-card:not(.cat-kombucha),
#f-apparel:checked  ~ .product-grid .product-card:not(.cat-apparel) {
  display: none;
}

/* ---------- Story section (photo + copy) ---------- */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.story-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}

.story-copy h2 { font-size: 2rem; margin-bottom: 1rem; }
.story-copy p { color: var(--muted); margin-bottom: 1.25rem; }

/* ---------- Newsletter band ---------- */

.newsletter-band { text-align: center; }

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  min-width: 280px;
  font-family: var(--sans);
}

/* ---------- Steps (Tea Club) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

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

.step .step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Pricing tiers ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 2rem;
}

.tier {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--sage);
}

.tier.featured { border-top-color: var(--terracotta); }

.tier .tier-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.tier .tier-price {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--forest);
  margin: 0.75rem 0 0.25rem;
}

.tier .tier-cycle { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.tier ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
  display: inline-block;
}

.tier li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  color: var(--charcoal);
}

.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}

/* ---------- Blog cards ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

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

.post-card:hover { transform: translateY(-4px); }

.post-thumb {
  background: var(--sage-light);
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.post-thumb svg { width: 120px; height: 90px; }

.post-body { padding: 1.4rem 1.5rem 1.75rem; }

.post-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.post-body h3 { font-size: 1.25rem; margin: 0.4rem 0 0.6rem; }
.post-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--forest);
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 2px;
}

/* ---------- Blog article ---------- */

.post-article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.post-article p { margin-bottom: 1.1rem; }

.post-article h2,
.post-article h3 { margin: 2.25rem 0 0.85rem; }

.post-article ul,
.post-article ol { margin: 0 0 1.25rem 1.6rem; }

.post-article li > p { margin-bottom: 0.35rem; }

.post-article .post-meta {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.post-article .back-link { margin-top: 3rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-details h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.contact-details p { color: var(--muted); }

.market-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.market-table th,
.market-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.92rem;
}

.market-table th {
  background: var(--forest);
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.market-table tr:nth-child(even) td { background: var(--cream); }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  display: block;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--cream);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sage);
  border-color: var(--sage);
}

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

.site-footer {
  background: var(--forest-dark);
  color: var(--sage-light);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.site-footer h4 {
  color: var(--cream);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer p { font-size: 0.92rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--sage-light);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-newsletter { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }

.footer-newsletter input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
}

.social-icons { display: flex; gap: 0.9rem; margin-top: 1.25rem; }

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(250, 246, 239, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: background 0.2s ease;
}

.social-icons a:hover { background: var(--terracotta); }
.social-icons svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(211, 223, 208, 0.7);
}

/* ---------- Page banner (inner pages) ---------- */

.page-banner {
  background: linear-gradient(160deg, var(--sage-light), var(--cream));
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.page-banner h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.page-banner p { color: var(--muted); max-width: 36rem; margin: 0 auto; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { padding: 5rem 1.25rem; }
  .features, .steps, .story-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-toggle-label { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 0.75rem 0; border-bottom: none; }

  .nav-toggle:checked ~ .main-nav { max-height: 320px; }
  .nav-toggle:checked ~ .nav-toggle-label span { transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(-90deg); top: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after { display: none; }
}
