/* 411 Small Business storefront. Colours, fonts and radii follow the
   settings of the Shopify "Trade" theme the store used. */
:root {
  --bg: #f4f4f4;
  --fg: #2b2c2d;
  --fg-soft: rgba(43, 44, 45, 0.75);
  --ink: #1c2228;          /* header, footer, dark band */
  --slate: #323841;        /* announcement bar */
  --sand: #c2b7ac;         /* warm band */
  --sand-card: rgba(255, 255, 255, 0.08);
  --button: #b7aca2;
  --button-fg: #262626;
  --link: #001128;
  --card: #ffffff;
  --line: rgba(43, 44, 45, 0.55);
  --radius: 8px;
  --radius-btn: 6px;
  --page: 1100px;
  --font-body: "Jost", system-ui, sans-serif;
  --font-head: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-soft);
  font: 400 16px/1.7 var(--font-body);
  letter-spacing: 0.04em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; color: var(--fg); line-height: 1.25; letter-spacing: 0; text-wrap: balance; }
.h1, h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin: 0 0 1.25rem; letter-spacing: -0.02em; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--fg-soft); font-size: 0.9rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 10; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Announcement + header */
.announcement { background: var(--slate); color: #fff; text-align: center; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; display: grid; }
.announcement__msg { grid-area: 1 / 1; margin: 0; padding: 0.55rem 1rem; opacity: 0; visibility: hidden; transition: opacity 0.4s; }
.announcement__msg.is-active { opacity: 1; visibility: visible; }
.announcement a { color: inherit; }
.header { background: var(--ink); color: #fff; }
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: 60px; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.header__brand { font-family: var(--font-head); font-size: 1.5rem; color: rgba(255, 255, 255, 0.8); text-decoration: none; letter-spacing: 0.01em; }
.header__nav { display: flex; gap: 1.4rem; flex: 1; }
.header__nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.9rem; padding: 0.4rem 0; }
.header__nav a:hover, .header__nav a.is-current { color: #fff; text-decoration: underline; }
.header__icons { display: flex; gap: 1.1rem; align-items: center; margin-left: auto; }
.header__icons a { color: #fff; display: inline-flex; position: relative; padding: 0.3rem; }
.header__count { position: absolute; right: -6px; bottom: -4px; background: #fff; color: var(--ink); border-radius: 99px; font-size: 0.65rem; line-height: 1; padding: 3px 5px; font-weight: 700; letter-spacing: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 1.9rem; border-radius: var(--radius-btn); font: 400 0.95rem var(--font-body); letter-spacing: 0.1em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: box-shadow 0.15s; }
.btn--solid { background: var(--button); color: var(--button-fg); }
.btn--outline { background: transparent; color: var(--link); border-color: var(--link); }
.btn:hover { box-shadow: 0 0 0 1px currentColor; }
.btn--full { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }

/* Hero */
.hero { position: relative; background: var(--slate); min-height: clamp(280px, 33vw, 420px); display: flex; align-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(28, 34, 40, 0.35); }
.hero__content { position: relative; z-index: 1; width: 100%; padding-top: 3rem; padding-bottom: 3rem; }
.hero__eyebrow { color: #fff; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.13em; margin: 0 0 0.75rem; }
.hero__title { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 2.9rem); font-weight: 500; letter-spacing: -0.03em; max-width: 16em; margin: 0 0 1.5rem; }

/* Bands */
.band { padding: 2.5rem 0 3rem; }
.band--sand { background: var(--sand); color: rgba(38, 38, 38, 0.8); padding-top: 0.6rem; }
.band--sand a { color: #54483c; }
.band--dark { background: var(--ink); color: rgba(255, 255, 255, 0.8); }
.band--dark h1, .band--dark h2 { color: #fff; }
.band__heading { font-size: 1.5rem; margin: 0 0 1.5rem; letter-spacing: 0.02em; }
.band__title { margin-top: 2.5rem; }
.tagline { text-align: center; margin: 0 0 0.9rem; }
.tagline--strong { font-weight: 700; color: #262626; }
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.column { background: var(--sand-card); border-radius: var(--radius); padding: 1.5rem; }
.column h3 { font-size: 1.15rem; margin: 0 0 0.75rem; letter-spacing: 0.04em; }
.column p { margin: 0 0 1.4rem; font-size: 0.95rem; }
.column p:last-child { margin-bottom: 0; }

/* Collection tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--fg); display: flex; flex-direction: column; }
.tile img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.tile__title { font-family: var(--font-head); font-size: 1.1rem; padding: 1.25rem 1.25rem 2rem; letter-spacing: 0.03em; }
.tile:hover .tile__title { text-decoration: underline; }

/* Product cards */
.grid { display: grid; gap: 12px; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; }
.card__link { color: var(--fg); text-decoration: none; flex: 1; }
.card__media { position: relative; }
.card__media img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card__title { font: 500 0.9rem/1.3 var(--font-body); letter-spacing: 0.06em; margin: 1rem 0.5rem 0.4rem; }
.card__link:hover .card__title { text-decoration: underline; }
.card__price { margin: 0 0.5rem 1rem; letter-spacing: 0.08em; }
.card__action .btn, .card__action form { width: 100%; }
.card__action .btn { padding: 0 0.5rem; font-size: 0.9rem; }
.badge { position: absolute; left: 8px; bottom: 8px; background: var(--sand); color: #262626; border-radius: 40px; font-size: 0.75rem; padding: 0.15rem 0.8rem; letter-spacing: 0.08em; }
.badge--inline { position: static; margin-left: 0.6rem; }

/* Collection page */
.lede { font-size: 1.1rem; margin-bottom: 2.5rem; }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 2rem; font-size: 0.9rem; margin-bottom: 1.5rem; }
.toolbar select { font: inherit; color: inherit; background: transparent; border: 0; padding: 0.3rem; letter-spacing: inherit; }

/* Product page */
.product { display: grid; grid-template-columns: 55fr 45fr; gap: 3rem; align-items: start; }
.product__title { margin-bottom: 0.5rem; }
.product__price { font-size: 1.15rem; color: var(--fg); letter-spacing: 0.08em; margin: 0 0 1.5rem; }
.product__media { display: grid; gap: 12px; position: sticky; top: 1rem; }
.product__media img { border-radius: var(--radius); width: 100%; }
.product__form { max-width: 440px; margin-top: 2rem; display: grid; gap: 0.75rem; }
.pills { border: 0; padding: 0; margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills legend { font-size: 0.8rem; margin-bottom: 0.5rem; padding: 0; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; border: 1px solid var(--line); border-radius: 40px; padding: 0.35rem 1.2rem; font-size: 0.85rem; cursor: pointer; color: var(--fg); }
.pill input:checked + span { background: var(--fg); color: #fff; border-color: var(--fg); }
.pill input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 3px; }

/* Rich text from the imported content */
.rte { overflow-wrap: anywhere; }
.rte > :first-child { margin-top: 0; }
.rte h1 { font-size: 1.7rem; margin: 2rem 0 1rem; }
.rte h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.rte h3, .rte h4 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.rte img { border-radius: var(--radius); margin: 1rem 0; }
.rte ul, .rte ol { padding-left: 1.4rem; }
.rte table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.rte td, .rte th { border: 1px solid rgba(43, 44, 45, 0.2); padding: 0.5rem 0.75rem; vertical-align: top; }

/* Forms, cart, search */
.form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: 0.3rem; font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], textarea {
  font: inherit; color: var(--fg); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0.65rem 0.9rem; width: 100%;
}
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; }
.notice { background: #fff; border-left: 4px solid var(--button); border-radius: var(--radius-btn); padding: 1rem 1.25rem; }
.search { display: flex; gap: 0.75rem; max-width: 560px; margin-bottom: 1.5rem; }
.results { padding-left: 1.2rem; }
.cart { width: 100%; border-collapse: collapse; }
.cart th { text-align: left; font-weight: 400; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.13em; border-bottom: 1px solid rgba(43, 44, 45, 0.15); padding: 0 0 0.75rem; }
.cart td { padding: 1.5rem 0; border-bottom: 1px solid rgba(43, 44, 45, 0.15); vertical-align: top; }
.cart .num { text-align: right; font-variant-numeric: tabular-nums; }
.cart__product { display: flex; gap: 1rem; }
.cart__product img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-btn); }
.qty { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.qty input { width: 5rem; }
.cart__foot { display: grid; justify-items: end; gap: 1rem; margin-top: 2rem; }
.cart__total { margin: 0; }
.cart__total strong { color: var(--fg); font-size: 1.15rem; margin-left: 1rem; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); text-align: center; padding: 2rem 1.25rem 3rem; }
.footer a { color: inherit; }
.footer__contact { font-size: 1.1rem; margin: 0 0 3rem; }
.footer__contact a { text-decoration: none; }
.footer__heading { color: #fff; font-size: 1.1rem; margin: 0 0 1rem; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.85rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { font-size: 0.75rem; margin: 3rem 0 0; }

@media (max-width: 989px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 749px) {
  .columns { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product { grid-template-columns: 1fr; gap: 1.5rem; }
  .product__media { order: -1; position: static; }
  .form__row { grid-template-columns: 1fr; }
  .header__inner { gap: 0.25rem 1.25rem; }
  .header__nav { order: 3; flex-basis: 100%; }
  .toolbar { justify-content: space-between; }
  .cart thead { display: none; }
  .cart tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid rgba(43, 44, 45, 0.15); padding: 1rem 0; gap: 0.75rem; }
  .cart td { border: 0; padding: 0; }
  .cart__product { grid-column: 1 / -1; }
}

/* Intake forms on product pages */
.intake { background: #fff; border-radius: var(--radius); padding: 1.5rem; margin-top: 2rem; }
.intake__title { font-size: 1.35rem; margin: 0 0 0.5rem; text-align: center; }
.intake__desc { font-size: 0.95rem; }
.intake__desc p { text-align: center; }
.intake__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0 1.5rem; }
.field { grid-column: 1 / -1; min-width: 0; }
.field--half { grid-column: span 1; }
.field[hidden] { display: none; }
.field label, .field legend { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; color: var(--fg); padding: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field hr { border: 0; border-top: 1px solid rgba(43, 44, 45, 0.15); margin: 0.5rem 0; }
.field__heading { font-family: var(--font-head); font-weight: 700; color: var(--fg); margin: 0; }
.field select, .field input[type="date"], .field input[type="file"] { font: inherit; color: var(--fg); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0.65rem 0.9rem; width: 100%; }
.field .check { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field .check input { flex: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 0.85rem; margin: 0.3rem 0 0; }
.notice--error { border-left-color: #b3261e; }
@media (max-width: 749px) { .field--half { grid-column: 1 / -1; } .intake { padding: 1rem; } }

/* Order confirmation */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; display: grid; gap: 12px; }
.step { background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 4px solid var(--button); }
.step.is-done { border-left-color: #2e7d4f; }
.step strong { color: var(--fg); }
.step__action { display: flex; gap: 1rem; align-items: center; }
.step__status { color: #2e7d4f; font-weight: 500; }
.wrap--narrow .intake { margin-top: 1rem; }
