:root {
  --dark: #0d0d0d;
  --dark-2: #111111;
  --black: #000000;
  --cream: #f0dcc0;
  --tan-bg: #f5e3c3;
  --white: #ffffff;
  --muted: #cfcfcf;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--dark);
  line-height: 1.6;
}

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

/* <picture> only swaps in the WebP copy; it mustn't change the layout, so the
   <img> inside is laid out exactly as if it stood alone. */
picture { display: contents; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; }

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.btn--outline:hover {
  background: var(--cream);
  color: var(--dark);
}

/* HERO */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.05) 75%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 5vw 6vw 8vw;
  max-width: 720px;
}

.hero__content h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__tagline {
  color: var(--cream);
  opacity: 0.85;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* GENERIC SECTIONS */
.section {
  padding: 5rem 6vw;
}

.section--dark { background: var(--dark); }
.section--black { background: var(--black); }
.section--light { background: var(--tan-bg); color: var(--dark); }

.section__media {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.section__media img { width: 100%; height: auto; }

.section__text {
  max-width: 700px;
  margin: 0 auto;
}

.section__text--center { text-align: center; }

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.section p { color: var(--muted); font-weight: 300; }

/* SPLIT (Process / Materials) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.split__col { text-align: center; }

.split__media {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 4 / 3;
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__col h3 {
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.split__col p { color: var(--muted); font-weight: 300; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* GALLERY */
/* .section h2.gallery__title, not just .gallery__title: needs to outrank the
   plain .section h2 rule above (docs/BRAND.md note 1) or its size/weight wins
   and this renders large and regular instead of small, bold and uppercase. */
.section h2.gallery__title {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* One row that scrolls sideways (swipe on phones, arrows on desktop), so each
   photo gets room instead of twelve similar boards sitting in a grid. */
.gallery-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}

.gallery:focus-visible { outline: 2px solid var(--dark); outline-offset: 4px; }

.gallery img {
  flex: 0 0 auto;
  height: clamp(240px, 42vw, 440px);
  width: auto;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  scroll-snap-align: start;
}

.gallery__nav {
  position: absolute;
  top: calc(50% - 0.375rem);
  transform: translateY(-50%);
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.75);
  color: var(--cream);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.gallery__nav:hover { background: var(--dark); }
.gallery__nav:disabled { opacity: 0; pointer-events: none; }
.gallery__nav--prev { left: 0.5rem; }
.gallery__nav--next { right: 0.5rem; }

/* On a phone, show part of the next photo so it's obvious the row swipes. */
@media (max-width: 600px) {
  .gallery img { width: 82%; height: auto; aspect-ratio: 3 / 2; }
}

.section .gallery__hint {
  display: none;
  text-align: center;
  font-size: 0.85rem;
  color: var(--dark);
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Phones swipe; the arrows only earn their space with a mouse. */
@media (hover: none) {
  .gallery__nav { display: none; }
  .section .gallery__hint { display: block; }
}

/* CONTACT */
/* .section h2.contact__title, same reason as .gallery__title above. */
.section h2.contact__title {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact__form h3 { font-weight: 400; margin-bottom: 1.5rem; }

.contact__form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.5rem 0.1rem;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-bottom-color: var(--cream);
}

.contact__form textarea { min-height: 90px; resize: vertical; }
.contact__form select option { background: var(--dark); color: var(--white); }

.contact__form .btn { margin-top: 2rem; }

.contact__status { margin-top: 1rem; font-size: 0.9rem; }

.hidden-field { position: absolute; left: -9999px; }

.contact__aside h3 { font-weight: 400; margin-bottom: 1rem; margin-top: 2rem; }
.contact__aside h3:first-child { margin-top: 0; }
.contact__aside p { color: var(--muted); font-weight: 300; margin-bottom: 0.5rem; }
.contact__aside a { color: var(--cream); }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
}

/* FOOTER */
.footer {
  background: var(--black);
  text-align: center;
  padding: 3rem 6vw 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.footer__social a {
  color: var(--white);
  opacity: 0.8;
}

.footer__social a:hover { opacity: 1; }

.footer__name { font-family: var(--font-head); font-weight: 700; margin-bottom: 0.5rem; }
.footer__address { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.footer__copyright { color: var(--muted); font-size: 0.8rem; opacity: 0.7; }

/* =========================================================
   Additions — conversion / CTA / ordering section
   ========================================================= */

/* Solid + dark button variants for primary CTAs */
.btn--solid {
  background: var(--cream);
  color: var(--dark);
  border: 1.5px solid var(--cream);
}
.btn--solid:hover { background: #fff; border-color: #fff; }

.btn--dark {
  background: var(--dark);
  color: var(--cream);
  border: 1.5px solid var(--dark);
}
.btn--dark:hover { background: #000; border-color: #000; }

.btn--inline { margin-top: 1.75rem; }

button.btn { font-family: var(--font-head); }
button.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Hero supporting line */
.hero__sub {
  color: var(--white);
  opacity: 0.85;
  font-size: 1rem;
  font-weight: 300;
  max-width: 30rem;
  margin-bottom: 2rem;
}

/* Three-column ordering section */
.split--three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .split--three { grid-template-columns: 1fr; }
}

#ordering .section__text { margin-bottom: 2.5rem; }

/* Gallery call-to-action */
.gallery__cta {
  text-align: center;
  margin-top: 3rem;
}
.gallery__cta p {
  color: var(--dark);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

/* Contact form refinements */
.contact__intro {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
  margin-top: -0.75rem;
  margin-bottom: 0.5rem;
}

.contact__form .req { color: var(--cream); }

.contact__form .hint {
  color: var(--muted);
  opacity: 0.7;
  font-weight: 300;
  font-size: 0.8rem;
}

.contact__status { min-height: 1.4em; }

.contact__social-note {
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.contact__social-note a {
  color: var(--cream);
  text-decoration: underline;
}

/* Honeypot — kept out of view and out of the tab order */
.hidden-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* "How ordering works" numbered steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 3.5rem;
}
.steps li {
  counter-increment: step;
  text-align: center;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--cream);
  border-radius: 50%;
  color: var(--cream);
  font-family: var(--font-head);
}
.steps h3 { font-weight: 400; font-size: 1.15rem; margin-bottom: 0.6rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* 404 page */
.section--notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.section--notfound h1 { font-weight: 400; margin-bottom: 1rem; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 6vw;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar__brand {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-right: auto;
}
.topbar__links { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.topbar__links a { color: var(--muted); }
.topbar__links a:hover { color: var(--white); }
.topbar .topbar__cta { padding: 0.5rem 1.1rem; font-size: 0.75rem; }

@media (max-width: 760px) {
  .topbar__links { display: none; }
}

/* Keep jumped-to headings clear of the sticky bar */
section[id] { scroll-margin-top: 4rem; }

.contact__form .contact__photos {
  font-size: 0.85rem;
  margin-top: 1.25rem;
}
.contact__photos a { color: var(--cream); text-decoration: underline; }

/* Footer links to the Privacy and How-ordering-works pages */
.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.footer__links a { color: var(--cream); text-decoration: underline; }

/* Privacy note beside the Send button */
.contact__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
}
.contact__submit .btn { margin-top: 0; }
.contact__form .contact__consent { font-size: 0.8rem; margin: 0; }
.contact__consent a { color: var(--cream); text-decoration: underline; }

/* How-ordering-works and Privacy pages */
.legal__body {
  max-width: 720px;
  margin: 0 auto;
}
.legal__body h1 {
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
}
.section .legal__body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}
.legal__body p, .legal__body li { color: var(--muted); font-weight: 300; }
.legal__body p + p { margin-top: 0.9rem; }
.legal__body ul { margin: 0.5rem 0 0 1.25rem; }
.legal__body li { margin-bottom: 0.3rem; }
.legal__body strong { color: var(--white); font-weight: 600; }
.legal__body a { color: var(--cream); text-decoration: underline; }
