/* Croton Strength — styled after Shopify's Dawn theme defaults */
:root {
  /* Default page colors: the theme's white "background-1" scheme */
  --bg: #ffffff;
  --text: #121212;
  --text-muted: rgba(18, 18, 18, 0.75);
  --bg-alt: #f3f3f3;
  --border: rgba(18, 18, 18, 0.12);
  --input-border: rgba(18, 18, 18, 0.55);
  --accent: #121212;
  --on-accent: #ffffff;
  --notice-bg: #fff8e1;
  --notice-border: #e0b84c;
  --page-width: 120rem;
  /* Theme fonts: Asul (headings) and Azbuka (body). Azbuka isn't on Google Fonts; Jost stands in. */
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Asul", Georgia, serif;
}
/* The theme's grey "background-2" scheme: header, footer, home products, product page, text boxes */
.scheme-grey {
  --bg: #8f8f8f;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --bg-alt: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.2);
  --input-border: rgba(255, 255, 255, 0.55);
  background: var(--bg);
  color: var(--text-muted);
}
.scheme-light { background: #fff; }
.text-center { text-align: center; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.8;
  letter-spacing: 0.06rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.06rem;
  line-height: 1.3;
  margin: 0 0 1.5rem;
}
h1 { font-size: 4rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
@media (min-width: 750px) {
  h1 { font-size: 5.2rem; }
  h2 { font-size: 2.8rem; }
}

.page-width { max-width: var(--page-width); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 750px) { .page-width { padding: 0 5rem; } }
.page-width--narrow { max-width: 72.6rem; }
.section { padding: 3.6rem 0; }
@media (min-width: 750px) { .section { padding: 5.2rem 0; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg); padding: 1rem 2rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* Header */
.header-wrapper { border-bottom: 1px solid var(--border); background: var(--bg); }

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 2rem; padding-bottom: 2rem;
}
.header__heading { margin: 0; font-size: 2.4rem; grid-column: 2; text-align: center; }
.header__heading a { text-decoration: none; color: var(--text); display: inline-block; }
.header__logo { width: 90px; height: auto; }
.header__menu-toggle {
  grid-column: 1; justify-self: start;
  background: none; border: 0; padding: 0.8rem; cursor: pointer; color: var(--text);
}
.header__menu-toggle svg { width: 2.4rem; height: 2.4rem; display: block; }
.header__nav { display: none; }
.header__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 2.4rem; }
.header__nav a { text-decoration: none; color: var(--text-muted); font-size: 1.5rem; }
.header__nav a:hover, .header__nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 0.3rem; }
@media (min-width: 990px) {
  .header { grid-template-columns: auto 1fr; gap: 4rem; }
  .header__heading { grid-column: 1; text-align: left; }
  .header__menu-toggle { display: none; }
  .header__nav { display: block; grid-column: 2; }
}
/* Mobile menu drawer */
.header__nav.is-open {
  display: block; grid-column: 1 / -1; padding-top: 1.6rem;
}
.header__nav.is-open ul { flex-direction: column; }
.header__nav.is-open a { font-size: 1.8rem; color: var(--text); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 4.5rem; padding: 0 3rem;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: 0;
  font: inherit; font-size: 1.5rem; letter-spacing: 0.1rem;
  text-decoration: none; cursor: pointer;
  transition: box-shadow 0.1s ease;
}
.button:hover { box-shadow: 0 0 0 0.2rem var(--accent); }
.button--secondary { background: transparent; color: var(--text); border-color: var(--text); }
.button--secondary:hover { box-shadow: 0 0 0 0.1rem var(--text); }
.button--full { width: 100%; }

/* Hero banner */
.banner { position: relative; min-height: 34rem; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
@media (min-width: 750px) { .banner { min-height: 0; aspect-ratio: 2000 / 1115; } }
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.banner__content { position: relative; text-align: center; padding: 4rem 1.5rem 5rem; color: #fff; }
.banner__content .eyebrow { margin: 0 0 1rem; font-size: 1.5rem; letter-spacing: 0.15rem; color: #fff; }
.banner__content h2 { color: #fff; font-size: 4rem; margin-bottom: 2.4rem; }
@media (min-width: 750px) { .banner__content h2 { font-size: 5.2rem; } }
.banner__content .button { background: transparent; color: #fff; border-color: #fff; }
.banner__content .button:hover { box-shadow: 0 0 0 0.1rem #fff; }

/* Product grid */
.title-wrapper { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.title-wrapper h2, .title-wrapper h1 { margin: 0; }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 0.8rem; }
@media (min-width: 750px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 3.2rem 2.4rem; } }
.card { position: relative; }
.card__media { background: var(--bg-alt); aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__heading { font-size: 1.5rem; margin: 1.2rem 0 0.4rem; }
.card__heading a { text-decoration: none; }
.card__heading a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__heading a { text-decoration: underline; text-underline-offset: 0.3rem; }
.price { color: var(--text); font-size: 1.5rem; letter-spacing: 0.1rem; }
.price small { font-size: 1.2rem; color: var(--text-muted); }

/* Product page */
.product { display: grid; gap: 3rem; }
@media (min-width: 750px) { .product { grid-template-columns: 1.3fr 1fr; gap: 5rem; align-items: start; } }
.product__media { background: var(--bg-alt); }
.product__info h1 { font-size: 3.2rem; margin-bottom: 1rem; }
@media (min-width: 750px) { .product__info h1 { font-size: 4rem; } }
.product__info .price { font-size: 1.8rem; display: block; margin-bottom: 2.4rem; }
.product__vendor { font-size: 1.2rem; letter-spacing: 0.13rem; text-transform: uppercase; margin: 0 0 1rem; }
fieldset.variant-picker { border: 0; padding: 0; margin: 0 0 2.4rem; }
.variant-picker legend { color: var(--text); margin-bottom: 0.8rem; font-size: 1.4rem; }
.variant-picker__options { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.variant-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variant-picker label {
  border: 1px solid var(--input-border); border-radius: 4rem;
  padding: 1rem 2rem; font-size: 1.4rem; color: var(--text); cursor: pointer; line-height: 1.3;
}
.variant-picker input:checked + label { background: var(--text); color: var(--bg); border-color: var(--text); }
.scheme-grey .variant-picker input:checked + label { color: #121212; }
.variant-picker input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 2px; }
.product__description { margin-top: 3rem; }
.product__description p { margin: 0 0 1.4rem; }

/* Rich text pages */
.rte p { margin: 0 0 1.6rem; }

/* Placeholder notices (remove once real checkout/forms are wired up) */
.placeholder-note {
  background: var(--notice-bg); border: 1px dashed var(--notice-border);
  color: #5a4500; font-size: 1.4rem; line-height: 1.5; padding: 1.2rem 1.6rem; margin: 1.6rem 0;
}
.placeholder-note[hidden] { display: none; }

/* Forms */
.form { display: grid; gap: 1.6rem; }
@media (min-width: 750px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
.field { display: flex; flex-direction: column; }
.field label { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--input-border); border-radius: 0; padding: 1.2rem 1.5rem; min-height: 4.5rem; width: 100%;
}
.field textarea { min-height: 12rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.form .button { justify-self: start; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 4.8rem 0 2.4rem; font-size: 1.4rem; }
.footer__blocks { display: grid; gap: 3.2rem; }
@media (min-width: 750px) { .footer__blocks { grid-template-columns: 1fr 1fr 1.4fr; gap: 4rem; } }
.footer h2 { font-size: 1.8rem; margin-bottom: 1.2rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.6rem; }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.newsletter { display: flex; max-width: 36rem; }
.newsletter input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--input-border); border-right: 0; padding: 1.1rem 1.5rem; }
.newsletter input::placeholder, .field input::placeholder { color: var(--text-muted); }
.newsletter button { font: inherit; border: 1px solid var(--input-border); background: transparent; padding: 0 1.4rem; cursor: pointer; color: var(--text); }
.footer__bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); font-size: 1.2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.field select option { color: #121212; }

/* Rich-text box (grey, centered) as on the Personalized Programming page */
.text-box { padding: 2.4rem 2rem; margin: 0 0 3rem; text-align: center; }
.text-box p { margin: 0 0 1rem; }
.text-box p:last-child { margin-bottom: 0; }

/* Intake form, styled after the Shopify Forms app: compact, underlined fields */
.intake { max-width: 40rem; margin: 0 auto; }
.intake h2 { font-family: var(--font-body); font-weight: 700; font-size: 2rem; text-align: center; margin-bottom: 2rem; }
.intake .field { margin: 0; }
.intake .field label:not(.visually-hidden) { font-size: 1.3rem; color: var(--text); margin: 1rem 0 0; }
.intake .field input, .intake .field select, .intake .field textarea {
  border: 0; border-bottom: 1px solid var(--input-border); padding: 1rem 0.8rem; min-height: 0; font-size: 1.4rem;
}
.intake .field:first-of-type input { border-top: 1px solid var(--input-border); }
.intake .field textarea { min-height: 7rem; }
.intake .button { width: 100%; justify-self: stretch; margin-top: 1.6rem; min-height: 4rem; }
.intake .form { gap: 0; }

.product__note { font-size: 1.4rem; margin: 1.2rem 0 0; }
