/* Corazón de Jerez — Agave palette. Ported from mockups-src/m1-agave.html
   (Amendment A1). Fonts are self-hosted latin woff2 subsets (Amendment A2);
   no font CDN links. The mockup's lightbox is intentionally dropped — product
   pages show the full-pair photos instead (Amendment A5). */

@font-face {
  font-family: 'Marcellus';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/marcellus-400.woff2) format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/ebgaramond-400.woff2) format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/ebgaramond-400italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/mulish-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/mulish-600.woff2) format('woff2');
}

:root {
  --porcelain: #f4f3ec;
  --white: #fbfaf5;
  --ink: #1f2620;
  --slate: #6c7a6a;
  --brass: #39544a;
  --brass-dark: #2c4239;
  --muted: #6d7267;
  --hairline: #e2e1d3;
  --whatsapp: #2f7d5b;
  --whatsapp-dark: #276a4d;
  --display: 'Marcellus', 'Times New Roman', serif;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Mulish', 'Segoe UI', sans-serif;
  --container: 72rem;
}

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

body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--container); margin: 0 auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.display { font-family: var(--display); font-weight: 400; }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.26em; color: var(--brass);
}
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head h1,
.section-head h2 { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 400; margin: 0.8rem 0; text-wrap: balance; }
.section-head p { color: var(--muted); font-style: italic; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  padding: 0.9rem 2.1rem;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--porcelain); }
.btn-solid { background: var(--ink); color: var(--porcelain); }
.btn-solid:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); color: var(--white); }

/* ---------- announcement + header ---------- */
.announce {
  background: var(--ink); color: var(--porcelain);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
}
.announce p { flex: 1; text-align: center; font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }
.announce-util { color: var(--porcelain); text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; white-space: nowrap; }
.announce-util:hover { color: var(--hairline); }
.announce .lang-pill { border: 1px solid rgba(244, 243, 236, 0.45); border-radius: 999px; padding: 0.14rem 0.75rem; }
.announce .lang-pill:hover { border-color: var(--porcelain); }
.masthead { background: var(--white); border-bottom: 1px solid var(--hairline); }
.masthead-inner { display: flex; justify-content: center; padding-block: 1.5rem 0.9rem; }
.masthead-nav {
  display: flex; justify-content: center; gap: clamp(1.2rem, 3vw, 2.2rem);
  flex-wrap: wrap; padding-bottom: 1.15rem;
}
.masthead-nav a {
  text-decoration: none; font-family: var(--sans); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ink);
  transition: color 0.2s ease;
}
.masthead-nav a:hover { color: var(--brass); }
.logotype { text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 0.85rem; }
.logo-mark { width: 54px; height: 55px; flex: none; }
.logotype-text { text-align: center; }
.logotype .primary { font-family: var(--display); font-size: 2.05rem; letter-spacing: 0.32em; text-indent: 0.32em; }
.logotype .secondary {
  display: block; font-family: var(--sans); font-weight: 600; font-size: 0.6rem;
  letter-spacing: 0.52em; text-indent: 0.52em; color: var(--muted); margin-top: 0.15rem;
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.02fr 0.98fr; min-height: 560px; border-bottom: 1px solid var(--hairline); }
.hero-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 6vw, 5rem);
}
.hero-panel h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 4.8vw, 3.9rem); line-height: 1.08;
  text-wrap: balance; margin: 1.3rem 0 1.1rem;
}
.hero-panel h1 em { font-family: var(--serif); font-style: italic; color: var(--slate); }
.hero-panel p { max-width: 30rem; color: var(--muted); }
.hero-actions { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; margin-top: 2.3rem; }
.hero-media { position: relative; background: #131110; overflow: hidden; }
.hero-media picture { position: absolute; inset: 0; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption {
  position: absolute; right: 1.4rem; bottom: 1.1rem;
  font-style: italic; font-size: 0.95rem; color: #c9d0c6;
}

/* ---------- trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--hairline); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 1.5rem; }
.trust-item { text-align: center; padding-inline: 1rem; }
.trust-item + .trust-item { border-left: 1px solid var(--hairline); }
.trust-item strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.02rem; }
.trust-item span { font-size: 0.86rem; color: var(--muted); font-style: italic; }

/* ---------- collection ---------- */
.collection { padding-block: clamp(3.5rem, 8vw, 6rem); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2.8rem 1.8rem; }
.card { text-decoration: none; }
.card-media { position: relative; background: #131110; overflow: hidden; aspect-ratio: 4/5; }
.card-media picture { position: absolute; inset: 0; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.4s ease; }
@media (prefers-reduced-motion: no-preference) {
  .card:hover .card-media img { transform: scale(1.04); }
}
.card-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0 0.75rem;
}
.card-label h3 { font-family: var(--display); font-weight: 400; font-size: 1.06rem; letter-spacing: 0.05em; }
.card-label span { font-style: italic; color: var(--slate); font-size: 0.95rem; white-space: nowrap; }
.card-note { padding-top: 0.6rem; font-size: 0.95rem; color: var(--muted); }
.sold .card-media img { opacity: 0.5; filter: grayscale(70%); }
.sold-flag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1;
  background: var(--porcelain); color: var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.22em;
  padding: 0.3rem 0.75rem;
}

/* ---------- story ---------- */
.story { background: var(--white); border-block: 1px solid var(--hairline); }
.story-inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem); padding-block: clamp(3.5rem, 8vw, 6rem);
}
.story-media picture { display: block; }
.story-media img { width: 100%; }
.story-copy h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.4rem); margin: 0.8rem 0 1rem; text-wrap: balance; }
.story-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 33rem; }
.story-copy .btn { margin-top: 1.1rem; }

/* ---------- quote ---------- */
.quote { padding-block: clamp(3.5rem, 8vw, 5.5rem); text-align: center; }
.quote blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.42;
  max-width: 44rem; margin: 0 auto 1.4rem; text-wrap: balance;
}
.quote cite { font-style: normal; font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }

/* ---------- wholesale ---------- */
.wholesale { background: var(--ink); color: var(--porcelain); }
.wholesale-inner { text-align: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.wholesale .eyebrow { color: #9dbfa9; }
.wholesale h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.4rem); margin: 0.8rem 0; }
.wholesale p { max-width: 36rem; margin: 0 auto 2rem; color: #b3bab0; }
.wholesale-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.wholesale .btn { border-color: var(--porcelain); color: var(--porcelain); }
.wholesale .btn:hover { background: var(--porcelain); color: var(--ink); }
.wholesale .btn-solid { background: var(--brass); border-color: var(--brass); color: var(--white); }
.wholesale .btn-solid:hover { background: var(--brass-dark); }

/* ---------- instagram strip ---------- */
.insta { background: var(--white); border-bottom: 1px solid var(--hairline); }
.insta-inner {
  display: flex; align-items: baseline; justify-content: center; gap: 1.1rem; flex-wrap: wrap;
  padding-block: 2rem; text-align: center;
}
.insta p { font-family: var(--display); font-size: 1.2rem; }
.insta a { font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); text-decoration: none; }
.insta a:hover { color: var(--brass-dark); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-mark { display: block; margin-bottom: 0.7rem; }
.footer-brand .primary { font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.28em; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 22rem; margin-top: 0.8rem; font-style: italic; }
.footer-col h4 { font-family: var(--sans); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--brass); }
.footer-bar {
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.3rem; font-family: var(--sans); font-size: 0.76rem; color: var(--muted);
}

/* ---------- interior pages (product detail, prose: about/wholesale/contact) ----------
   These templates render directly inside <main> without a .container wrapper,
   so they carry their own centered max-width and inline padding. */
.prose, .product {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 4vw, 2.5rem);
}
.prose { max-width: 46rem; }
.faq h2 { font-size: 1.2rem; margin-top: 2.2rem; }
.faq .intro { color: var(--muted); font-style: italic; }
.prose h1, .product-info h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1;
  text-wrap: balance; margin-bottom: 1.3rem;
}
.prose p { margin-bottom: 1.1rem; }
.prose p a { color: var(--brass); }
.prose .btn { margin-top: 0.6rem; }

.product { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.product-gallery picture { display: block; }
.product-gallery img { width: 100%; height: auto; margin-bottom: 1rem; }
.product-gallery img:last-child { margin-bottom: 0; }
.product-info > * + * { margin-top: 1rem; }
.product-info .price { font-family: var(--display); font-size: 1.4rem; color: var(--brass); }
.product-info .one-of-a-kind { font-style: italic; color: var(--slate); }
.product-info .hint { font-size: 0.9rem; color: var(--muted); }
.product-info .sold-flag { position: static; display: inline-block; }
.product-info a { color: var(--brass); }
.product-info .btn { color: var(--white); }

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.7rem; }
.contact-list a { color: var(--brass); }

/* ---------- responsive ---------- */
@media (min-width: 760px) {
  .product { grid-template-columns: 1.05fr 0.95fr; }
}

@media (max-width: 860px) {
  .masthead-inner { padding-block: 1rem 0.4rem; }
  .announce { flex-wrap: wrap; justify-content: center; row-gap: 0.2rem; }
  .announce p { flex-basis: 100%; order: -1; }
    .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 380px; position: relative; }
  .trust-inner { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
  .trust-item:nth-child(3) { border-left: none; }
  .story-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
}
