:root {
  --paper:        #faf6ef;
  --paper-2:      #f3ecde;
  --ink:          #3b2e1f;
  --ink-soft:     #6b5a45;
  --gold:         #b8965a;
  --gold-deep:    #8a6c3a;
  --green:        #1f7a3a;
  --red:          #c2362d;
  --line:         rgba(59,46,31,0.12);
  --shadow:       0 12px 40px rgba(59,46,31,0.10);
  --radius:       14px;
  --maxw:         1180px;

  --f-script:     "Allura", "Dancing Script", cursive;
  --f-serif:      "Cormorant Garamond", Georgia, serif;
  --f-sans:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--red); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.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;
}

/* ---------- Tricolore ribbon ---------- */
.ribbon {
  display: flex; height: 6px; width: 100%;
  position: sticky; top: 0; z-index: 60;
}
.ribbon-stripe { flex: 1; }
.ribbon-green  { background: var(--green); }
.ribbon-white  { background: #ffffff; }
.ribbon-red    { background: var(--red); }
.ribbon-bottom { position: static; height: 5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 6px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex; flex-direction: column; line-height: 1; color: var(--ink);
}
.brand-mark {
  font-family: var(--f-script);
  font-size: clamp(28px, 4.2vw, 38px);
  color: var(--gold-deep);
  letter-spacing: 0.5px;
}
.brand-mark.small { font-size: 26px; }
.brand-sub {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 2px;
  letter-spacing: 0.4px;
}

.primary-nav {
  display: flex; align-items: center; gap: 26px;
}
.primary-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.lang-select select {
  font-family: var(--f-sans);
  font-size: 14px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.lang-select select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 24px;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -1;
}
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(250,246,239,0.40), rgba(250,246,239,0.95) 75%),
    linear-gradient(180deg, rgba(250,246,239,0) 0%, var(--paper) 100%);
}

.hero-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
}

.eyebrow {
  font-family: var(--f-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--gold-deep);
  margin: 0 0 14px;
  font-weight: 500;
}

.display { margin: 0; }
.display-script {
  display: block;
  font-family: var(--f-script);
  font-size: clamp(64px, 11vw, 124px);
  color: var(--gold-deep);
  line-height: 1;
}
.display-sub {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--ink);
  margin-top: 6px;
}

.lede {
  font-family: var(--f-serif);
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  margin: 22px auto 28px;
  max-width: 620px;
}

.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold-deep);
  color: #fff;
}
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}
.btn-ghost:hover { background: var(--gold-deep); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--paper-2); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 { margin: 6px 0 12px; }
.section-sub {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
}

h2 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 44px);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 18px;
}
h3 {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 22px;
  margin: 18px 0 8px;
  color: var(--ink);
}

.script-h {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 78px);
  color: var(--gold-deep);
  line-height: 1;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.about-img img,
.contact-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.check-list {
  list-style: none; padding: 0; margin: 22px 0 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 26px; }
.products-grid {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { padding: 0 22px; }
.card p {
  padding: 0 22px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Markets ---------- */
.markets-grid {
  grid-template-columns: repeat(4, 1fr);
}
.market-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.market-card:nth-child(2) { border-top-color: #fff; box-shadow: inset 0 4px 0 #f0e8d4; }
.market-card:nth-child(3) { border-top-color: var(--red); }
.market-card:nth-child(4) { border-top-color: var(--gold); }
.market-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.market-day {
  font-family: var(--f-script);
  font-size: 38px;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 10px;
}
.market-name {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}
.market-meta {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Contact ---------- */
.contact-list {
  list-style: none; padding: 0; margin: 28px 0 0;
}
.contact-list li {
  display: flex; flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.contact-list a {
  font-family: var(--f-serif);
  font-size: 22px;
  color: var(--ink);
}
.contact-list a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: #2a2014;
  color: #f1e6d2;
  padding-top: 50px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 32px;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-mark { color: #e7c98a; }
.footer-brand .brand-sub  { color: #c5b395; }
.footer-meta {
  font-size: 14px;
  color: #c5b395;
  margin: 0;
}
.footer-meta a { color: #e7c98a; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid  { grid-template-columns: repeat(2, 1fr); }
  .two-col       { grid-template-columns: 1fr; }
  .about-img img, .contact-img img { aspect-ratio: 4 / 3; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .primary-nav.is-open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .primary-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .primary-nav a::after { display: none; }
  .lang-select { padding: 12px 0 4px; }
  .lang-select select { width: 100%; padding: 12px; font-size: 16px; }

  .site-header { padding: 12px 18px; gap: 12px; position: relative; top: 0; }
  .container { padding: 0 18px; }
  .hero { padding: 70px 18px 80px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .markets-grid  { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
