/* Shared by every page: tokens, base, header, footer, buttons and the
   content pages (About, Policies). Shop-only styles are in shop.css. */

:root {
  --brand: #ed1023; /* pink logo: #f06a8c */
  --brand-dark: #c90d1d; /* pink logo: #d94f73 */
  --ink: #201d1b;
  --cream: #fbf4ed;
  --cream-deep: #f4e5d8;
  --white: #fffdfb;
  --muted: #716963;
  --line: #eaded4;
  --in-stock: #159b50;
  --made-to-order: #2589cb;
  --sold-out: #8b8580;
  --radius: 17px;
  --shadow: 0 3px 12px rgb(45 30 20 / 0.07);
  --page-width: 1220px;
  --gutter: 24px;
  --sidebar-width: 230px; /* the shop's filter column; the logo centres over it on every page */
  --logo-size: 200px; /* hangs below the header bar */
  --logo-slot: 66px; /* the space it takes in the menu row */
  --logo-clearance: 16px; /* extra top space on each page's first block */
  --topline-height: 36px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

/* The announcement bar is the header's top row; the logo starts over it. */
.topline {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--topline-height);
  padding: 0 16px;
  background: var(--brand);
  color: white;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(255 253 251 / 0.96);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--page-width);
  min-height: 82px;
  margin: auto;
  padding: 8px var(--gutter);
}

/* The logo starts at the top of the page, over the announcement bar, and
   spans the whole header, hanging a little below it. It stays in place
   while the page scrolls underneath. */
.brand {
  position: relative;
  flex: none;
  width: var(--sidebar-width);
  height: var(--logo-slot);
}

.brand img {
  position: absolute;
  top: calc(6px - var(--topline-height) - 8px);
  left: 50%;
  translate: -50% 0;
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgb(45 30 20 / 0.18));
}


/* The menu and the search row start right after the logo; the social
   icons keep to the right. */
.nav-links {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--brand);
}

.nav-links [aria-current="page"] {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
}

.nav-links [aria-current="page"]:hover {
  color: white;
}

/* Search, on every page: a row under the menu. It goes to the shop
   (shop.html?q=…), where it filters as you type. */
.search-row {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 12px calc(var(--gutter) + var(--sidebar-width) + 28px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 560px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.header-search:focus-within {
  border-color: var(--brand);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 0.9rem;
}

.header-search button {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  cursor: pointer;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: color 0.18s, border-color 0.18s;
}

.social-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 3px 0 rgb(120 0 10 / 0.12);
  color: white;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s;
}

.button:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.button--wide {
  width: 100%;
}

.button--disabled,
.button--disabled:hover {
  background: #aaa29c;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Sections */

.section {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 26px var(--gutter);
}

.section-heading {
  margin: 0 0 22px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Local panel: delivery and pickup at a glance */

.local-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  align-items: center;
  gap: 20px;
  max-width: calc(var(--page-width) - 2 * var(--gutter));
  margin: 28px auto 42px;
  padding: 24px 28px;
  border-radius: 22px;
  background: var(--cream-deep);
}

.local-intro h2 {
  margin: 0 0 5px;
  font-size: 1.45rem;
}

.local-intro p {
  margin: 0;
  color: #514943;
}

.local-feature {
  padding: 6px 10px;
  border-left: 1px solid #d8c5b7;
  font-weight: 750;
  text-align: center;
}

.local-feature strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 1.45rem;
}

/* Content pages */

.page-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(48px + var(--logo-clearance)) var(--gutter) 8px;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px var(--gutter) 48px;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  scroll-margin-top: 196px;
}

.prose h3 {
  margin: 22px 0 6px;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: #3d3632;
}

.prose a {
  color: var(--brand);
  font-weight: 650;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

.page-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.page-contents a {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.88rem;
}

.page-contents a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.note {
  padding: 14px 18px;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--cream-deep);
}

/* Contact form */

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-weight: 400;
  outline-color: var(--brand);
}

.field textarea {
  resize: vertical;
}

.field--trap {
  position: absolute;
  left: -10000px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-form .button {
  justify-self: start;
}

.contact-form .button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.form-status--success {
  background: #e3f4ea;
  color: #0f6b38;
}

.form-status--error {
  background: #fde4e6;
  color: #9b0c18;
}

/* Footer */

.site-footer {
  padding: 38px var(--gutter) 20px;
  background: #211e1c;
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 150px repeat(3, 1fr);
  align-items: start;
  gap: 28px;
  max-width: 1172px;
  margin: auto;
}

.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.footer-col h3 {
  margin: 4px 0 12px;
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  gap: 7px;
  color: #e3dcd7;
  font-size: 0.87rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1172px;
  margin: 28px auto 0;
  padding-top: 17px;
  border-top: 1px solid #514943;
  color: #d5cbc4;
  font-size: 0.82rem;
}

.footer-bottom strong {
  color: white;
  font-style: italic;
}

@media (max-width: 900px) {
  .nav-wrap {
    gap: 16px;
  }

  :root {
    --logo-clearance: 56px;
  }

  /* On narrower screens the bar's text needs the full width, so the logo
     starts below the bar instead of over it. */
  .brand img {
    top: 0;
  }

  /* No filter column on tablets and phones: the logo keeps to the left edge. */
  .brand {
    width: var(--logo-size);
  }

  .search-row {
    padding-left: calc(var(--gutter) + var(--logo-size) + 12px);
  }

  .social-links {
    margin-left: auto;
  }

  /* The full menu doesn't fit beside the logo and icons: use the menu button. */
  .menu-toggle {
    display: block;
    order: 1;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
  }

  .nav-links [aria-current="page"] {
    text-align: center;
  }

  .local-panel {
    grid-template-columns: repeat(3, 1fr);
    margin-inline: var(--gutter);
  }

  .local-intro {
    grid-column: 1 / -1;
    text-align: center;
  }

  .local-feature:first-of-type {
    border-left: 0;
  }

  .footer-inner {
    grid-template-columns: 130px repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 16px;
  }

  .topline {
    font-size: 0.72rem;
  }

  .nav-wrap {
    min-height: 70px;
    padding-block: 8px;
  }

  :root {
    --logo-size: 128px;
    --logo-slot: 54px;
    --logo-clearance: 0px;
    --topline-height: 30px;
  }

  .local-panel {
    gap: 10px;
    padding: 20px 14px;
  }

  .local-feature {
    padding: 5px;
    font-size: 0.78rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 18px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
