/* OVERO Distribution — site styles */
/* Self-hosted fonts (Sora, Inter — SIL Open Font License) */
@font-face { font-family: "Sora"; src: url("fonts/sora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --charcoal: #242321;
  --charcoal-2: #2E2D2A;
  --taupe: #A58B70;
  --ivory: #F2EDE4;
  --ivory-deep: #E8E1D5;
  --olive: #797F75;
  --ink-soft: #55524C;      /* secondary text on ivory, ~7:1 */
  --ivory-soft: #CFC8BC;    /* secondary text on charcoal, ~10:1 */
  --line: rgba(36, 35, 33, 0.16);
  --line-dark: rgba(242, 237, 228, 0.18);

  --font-head: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.on-dark .eyebrow { color: var(--taupe); }

.lede { font-size: 1.1875rem; color: var(--ink-soft); max-width: 34em; }
.on-dark .lede, .on-dark p { color: var(--ivory-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--charcoal); border-radius: 2px;
  background: var(--charcoal); color: var(--ivory);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--charcoal); }
.btn-light { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn-light:hover { background: transparent; color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--ivory); }

/* Logo */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: inherit; line-height: 1; }
.logo-word { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.06em; display: inline-flex; align-items: baseline; }
.logo-e { display: inline-block; height: 0.72em; width: 0.56em; margin: 0 0.06em; fill: currentColor; }
.logo-sub { font-family: var(--font-body); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.42em; margin-top: 6px; padding-left: 0.1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 237, 228, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--charcoal); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--charcoal); }
.nav .btn { min-height: 42px; padding: 0 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--charcoal); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav .btn { margin-top: 20px; min-height: 48px; }
}

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 28px; max-width: 11ch; }
.hero-meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-soft); max-width: 34em; }

.media {
  background-color: var(--ivory-deep);
  background-size: cover; background-position: center;
  border-radius: 2px;
}
.hero-media { aspect-ratio: 4 / 5; background-color: #D9CFC0; background-image: url("images/hero.jpg"); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; order: 2; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-head { max-width: 40em; margin-bottom: clamp(40px, 5vw, 64px); }

/* Categories */
.categories { background: var(--ivory-deep); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.cat { display: flex; flex-direction: column; }
.cat .media { aspect-ratio: 4 / 5; margin-bottom: 20px; }
.cat-num { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px; }
.cat h3 { margin-bottom: 8px; }
.cat p { font-size: 0.9375rem; color: var(--ink-soft); }
.cat-1 .media { background-color: #CDBFAE; background-image: url("images/home-kitchen.jpg"); }
.cat-2 .media { background-color: #B9B1A4; background-image: url("images/tools.jpg"); }
.cat-3 .media { background-color: #A9AEA3; background-image: url("images/sports-outdoors.jpg"); }
.cat-4 .media { background-color: #9E9890; background-image: url("images/automotive.jpg"); }
.cat-note { margin-top: 40px; font-size: 0.875rem; color: var(--ink-soft); }

@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } .cat .media { aspect-ratio: 3 / 2; } }

/* Business blocks */
.business-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; }
.block { display: flex; flex-direction: column; border-radius: 2px; overflow: hidden; }
.block-body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; flex: 1; }
.block h2 { margin-bottom: 20px; }
.block p { margin-bottom: 28px; max-width: 32em; }
.block .btn { align-self: flex-start; margin-top: auto; }

.block-partner { background: var(--charcoal); color: var(--ivory); }
.block-partner .media { aspect-ratio: 16 / 7; background-color: #3A3833; background-image: url("images/packaging.jpg"); border-radius: 0; }
.commitments { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 14px; }
.commitments li { display: flex; gap: 14px; align-items: baseline; color: var(--ivory); font-size: 0.9875rem; }
.commitments svg { flex: none; width: 14px; height: 11px; fill: var(--taupe); transform: translateY(1px); }

.block-wholesale { background: var(--ivory-deep); border: 1px solid var(--line); }
.block-wholesale .media { aspect-ratio: 16 / 9; background-color: #CFC4B4; background-image: url("images/orders.jpg"); border-radius: 0; }
.block-wholesale h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.block-wholesale p { color: var(--ink-soft); }

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

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-details { margin-top: 40px; display: grid; gap: 20px; }
.contact-details dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.contact-details dd { margin: 0; font-size: 1.0625rem; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-details a:hover { border-bottom-color: var(--charcoal); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 0.875rem; font-weight: 500; }
.field .opt { color: var(--ink-soft); font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  background: #FBF8F3; border: 1px solid rgba(36, 35, 33, 0.28); border-radius: 2px;
  padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(165, 139, 112, 0.35); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 4px; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.checks label { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 0.9375rem; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--charcoal); }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 6px; }
.form-foot small { color: var(--ink-soft); font-size: 0.8125rem; max-width: 30em; }
.form-foot small a { color: var(--charcoal); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Dialogs */
dialog.modal {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: 2px;
  background: var(--ivory); color: var(--charcoal);
  box-shadow: 0 30px 80px rgba(20, 19, 17, 0.35);
}
dialog.modal::backdrop { background: rgba(36, 35, 33, 0.6); }
.modal-inner { padding: clamp(28px, 4vw, 48px); }
.modal-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.modal-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.modal-head p { color: var(--ink-soft); margin-top: 10px; font-size: 0.9875rem; }
.modal-close { flex: none; background: none; border: 1px solid var(--line); border-radius: 2px; width: 40px; height: 40px; cursor: pointer; color: var(--charcoal); display: grid; place-items: center; }
.modal-close:hover { border-color: var(--charcoal); }
.modal-close svg { width: 16px; height: 16px; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--ivory); padding: 64px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; font-size: 0.9375rem; color: var(--ivory-soft); }
.footer-nav a:hover { color: var(--ivory); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--ivory-soft); }
.footer-bottom p { max-width: 46em; }
.footer-bottom a { color: var(--ivory-soft); }

/* Simple pages */
.page { padding: clamp(56px, 8vw, 96px) 0 var(--section); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.page h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--ink-soft); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 20px; }

.block-wholesale .btn { letter-spacing: 0.08em; padding: 0 20px; }

/* Wide hero: photo across the page, copy over an ivory fade */
.hero-wide { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(520px, 42vw, 600px); padding: 72px 0; border-bottom: 1px solid var(--line); }
.hero-wide > .wrap { width: 100%; }
.hero-bg { position: absolute; top: 0; bottom: 0; right: 0; left: 28%; background: #D9CFC0 url("images/hero-wide.jpg") center right / cover no-repeat; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ivory) 0%, rgba(242,237,228,0.88) 22%, rgba(242,237,228,0.35) 45%, rgba(242,237,228,0) 62%); }
.hero-copy { position: relative; max-width: 590px; }
.hero-wide h1 { max-width: 14ch; font-size: clamp(2.5rem, 4.6vw, 4.1rem); }
.hero-wide .hero-meta { border-top-color: rgba(36,35,33,0.22); }
@media (max-width: 860px) {
  .hero-wide { flex-direction: column; align-items: stretch; min-height: 0; padding: 48px 0 0; }
  .hero-bg { position: relative; left: auto; order: 2; width: 100%; aspect-ratio: 16 / 10; margin-top: 40px; }
  .hero-bg::before { display: none; }
}

/* Services */
.services { border-bottom: 1px solid var(--line); }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.svc { border-top: 1px solid var(--charcoal); padding-top: 24px; }
.svc h3 { margin-bottom: 12px; }
.svc p { font-size: 0.9875rem; color: var(--ink-soft); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; gap: 32px; } }

/* About: vision + reasons */
.about { background: var(--ivory-deep); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.vision h2 { margin-bottom: 24px; max-width: 14ch; }
.why-title { font-size: 1.05rem; margin-bottom: 8px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.9875rem; }
.why-list li:last-child { border-bottom: 0; }
.why-list strong { color: var(--charcoal); font-weight: 600; margin-right: 4px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.services { padding-bottom: clamp(56px, 7vw, 88px); }
.services + .section { padding-top: clamp(56px, 7vw, 88px); }

/* The Puchis & Co wordmark */
.logo-word { font-size: 1.3rem; letter-spacing: 0.04em; white-space: nowrap; }
.logo-sub { font-size: 0.5625rem; letter-spacing: 0.34em; }
@media (max-width: 380px) { .logo-word { font-size: 1.15rem; } }
