/* The Charcuterie Shop — faithful rebuild of the Square/Weebly theme */

:root {
  --white: #ffffff;
  --ink: #000000;
  --ink-soft: #4a4a4a;
  --line: #d9d9d9;
  --placeholder: #8a8a8a;
  --radius-sm: 3px;
  --radius-img: 4px;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--white);
  color: var(--ink);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

section { scroll-margin-top: 92px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  padding: 1rem 2.4rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-dark { background: #000000; color: #ffffff; }
.btn-dark:hover { background: #333333; }

.btn-white { background: #ffffff; color: var(--ink); }
.btn-white:hover { background: #f0f0f0; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
}
.btn-outline:hover { background: var(--ink); color: #ffffff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.menu-toggle {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 0;
}

.brand {
  justify-self: center;
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

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

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.cart-link {
  color: var(--ink);
  line-height: 0;
  text-decoration: none;
}
.cart-link:hover { color: #555; }

.menu-panel {
  display: none;
  border-top: 1px solid #eee;
  background: var(--white);
}

.menu-panel.open { display: block; }

.menu-panel a {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.9rem 4%;
  border-bottom: 1px solid #f2f2f2;
}

.menu-panel a:hover { background: #fafafa; }

/* ---------- Main banner ---------- */
.banner {
  position: relative;
  min-height: 26vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 8, 5, 0.35);
}

.banner-text {
  position: relative;
  z-index: 2;
  text-align: left;
  color: #ffffff;
  max-width: 560px;
  padding: 4rem 2rem 4rem 6%;
}

.banner-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* ---------- Holiday notice ---------- */
.holiday-note {
  background: #2d313a;
  color: #ffffff;
  text-align: center;
  padding: 0.7rem 1rem;
}
.holiday-note p { margin: 0; font-size: 0.95rem; }
.holiday-note a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .lede { margin-left: auto; margin-right: auto; }
.contact-social { margin-top: 1.2rem; }
.contact-phone { margin-top: 1.2rem; font-size: 1.3rem; }
.contact-phone a { color: var(--ink); text-decoration: none; }
.contact-social a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }

.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 0.8rem; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  max-width: 640px;
}

.lede-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Text and image (stacked) ---------- */
.stacked-text { margin-bottom: 1.5rem; }

.stacked-text h2 { margin-bottom: 0.8rem; }

.stacked-text p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  max-width: 640px;
}

.stacked-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.stacked .stacked-image { margin-top: 0; }
.stacked .stacked-text:last-child { margin-bottom: 0; margin-top: 1.5rem; }

/* ---------- Boxes page ---------- */
.page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.boxes-page .box-page-strip { margin: 0 0 2.5rem; }

.boxes-page .product-grid { margin-bottom: 2.5rem; }

.boxes-note {
  font-size: 1.15rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}

.product-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.product-card a { display: block; }

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

.product-card a:hover img { opacity: 0.94; }

.product-card-body { padding: 1.25rem 1.25rem 1.5rem; }

.product-card h3 {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.product-serves {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

.product-price {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.btn-order { width: 100%; }

/* ---------- Box page photo strip ---------- */
.box-page-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.box-page-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

/* ---------- Image gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

.gallery-2col {
  columns: 2;
  column-gap: 1.25rem;
  display: block;
}

.gallery-2col img {
  aspect-ratio: auto;
  margin-bottom: 1.25rem;
  break-inside: avoid;
}

/* ---------- Inquiry form ---------- */
.inquiry { text-align: center; }

.inquiry h2 { margin-bottom: 0.6rem; }

.inquiry-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.inquiry form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.field { margin-bottom: 0.65rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field-row .field { margin-bottom: 0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfcfcf;
  border-radius: 0;
  padding: 0.9rem 1rem;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a8a8a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  color: var(--ink);
  font-family: var(--serif);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }

.field select:invalid { color: var(--placeholder); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid var(--ink);
  outline-offset: 0;
  border-color: var(--ink);
}

.field textarea { resize: vertical; }

.recaptcha-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0.25rem 0 1rem;
}

.recaptcha-note a { color: var(--ink-soft); }

.btn-submit {
  display: block;
  margin: 0 auto;
  min-width: 220px;
  background: #000000;
  color: #ffffff;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
}

.btn-submit:hover { background: #434a56; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 2.75rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand { line-height: 0; display: inline-block; }

.footer-brand img {
  height: 64px;
  width: auto;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-icons a {
  color: var(--ink);
  line-height: 0;
  text-decoration: none;
}

.footer-icons a:hover { color: #555; }

.footer-fine {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Dark footer (homepage) ---------- */
.site-footer-dark {
  background: #161616;
  border-top: 0;
}

.footer-brand-box {
  background: #ffffff;
  border-radius: 0;
  padding: 0.9rem 1.2rem;
}

.footer-brand-box img { height: 56px; }

.site-footer-dark .footer-icons a { color: #ffffff; }
.site-footer-dark .footer-icons a:hover { color: #cccccc; }
.site-footer-dark .footer-fine { color: #9a9a9a; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .gallery-2col { column-gap: 1rem; }
  .gallery-2col img { margin-bottom: 1rem; }
  .stacked-image img { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .section { padding: 1rem 0; }
  body { line-height: 1.3; }
  .section h2 { font-size: 1.55rem; }
  .stacked-text p { font-size: 1rem; }
  .inquiry-sub { font-size: 1rem; }
  .banner { min-height: 120px; }
  .banner-text { padding: 1.2rem 6%; max-width: 100%; }
  .banner-text h1 { font-size: 1.3rem; font-weight: 400; }
  .brand-logo { height: 46px; }
  .header-actions .btn-outline { display: none; }
  .gallery-grid { gap: 0.8rem; }
  .field-row { grid-template-columns: 1fr; }
  .box-page-strip { grid-template-columns: 1fr; gap: 0.9rem; margin-top: 2rem; }
  .boxes-page .box-page-strip { margin: 0 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
