/* =========================================================
   Fantastico — Catalogue (wine archive + single wine)
   Loaded only on /wines/ and single wine pages.
   Self-contained: does not rely on home.css.
   ========================================================= */

/* ---------------------------------------------------------
   ARCHIVE
   --------------------------------------------------------- */
.fc-cat-inner{
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(56px, 8vw, 104px) 26px clamp(64px, 9vw, 110px);
}

.fc-cat-head{
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.fc-cat-head .fc-eyebrow{ margin-bottom: 10px; }
.fc-cat-title{
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 500;
  color: var(--wp--preset--color--wine);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
}
.fc-cat-intro{
  margin: 18px 0 0;
  color: var(--wp--preset--color--muted);
  font-size: 1.08rem;
  max-width: 600px;
}
.fc-cat-empty{
  color: var(--wp--preset--color--muted);
  font-size: 1.05rem;
  padding: 40px 0;
}

/* ---- Filter chips ---- */
.fc-cat-filter{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--fc-line, rgba(92,34,53,.15));
}
.fc-chip{
  font-family: var(--wp--preset--font-family--jost);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--wine);
  background: transparent;
  border: 1px solid var(--fc-line-gold, rgba(184,147,58,.5));
  border-radius: 40px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.fc-chip:hover{
  border-color: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--gold);
}
.fc-chip.is-active{
  background: var(--wp--preset--color--wine);
  border-color: var(--wp--preset--color--wine);
  color: var(--wp--preset--color--cream);
}
.fc-chip:focus-visible{
  outline: 2px solid var(--wp--preset--color--gold);
  outline-offset: 2px;
}

/* ---- Card grid (shared card look, self-contained) ---- */
.fc-cat-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fc-card{
  background: var(--wp--preset--color--white, #fff);
  border: 1px solid var(--fc-line, rgba(92,34,53,.15));
  padding: 26px 22px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.fc-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(0,0,0,.14);
  border-color: var(--fc-line-gold, rgba(184,147,58,.5));
}
.fc-card:focus-visible{
  outline: 2px solid var(--wp--preset--color--gold);
  outline-offset: 3px;
}
.fc-card-img{
  position: relative;
  width: 100%;
  height: 300px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fc-card-img img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.fc-card-noimg{
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 80% at 30% 18%, rgba(184,147,58,.18), transparent 60%),
    linear-gradient(135deg, #efe6d4, #e6d8bf);
}
.fc-card h3{
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--wp--preset--color--wine);
  margin: 0 0 2px;
  line-height: 1.15;
}
.fc-region{
  font-family: var(--wp--preset--font-family--jost);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.fc-card.is-hidden{ display: none; }

/* ---------------------------------------------------------
   SINGLE WINE
   --------------------------------------------------------- */
.fc-wine{
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) 26px clamp(56px, 8vw, 96px);
}

/* hero: bottle panel + info */
.fc-wine-hero{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.fc-wine-photo{
  position: relative;
  border-radius: 2px;
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(184,147,58,.16), transparent 62%),
    linear-gradient(160deg, var(--wp--preset--color--header-cream), #efe4cf);
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.fc-wine-bottle{
  display: block;
  max-height: 560px;
  max-width: 100%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(40,15,20,.28));
}
.fc-wine-bottle--ph{
  width: 120px;
  height: 360px;
  background: linear-gradient(180deg, rgba(92,34,53,.18), rgba(92,34,53,.06));
  border-radius: 60px 60px 12px 12px;
  filter: none;
}

.fc-wine-info{ max-width: 540px; }
.fc-wine-eyebrow{ margin-bottom: 12px; }
.fc-wine-title{
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 500;
  color: var(--wp--preset--color--wine);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.02;
  margin: 0;
}
.fc-wine-meta{
  margin: 14px 0 0;
  font-family: var(--wp--preset--font-family--jost);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}

/* short description (lead) under the title */
.fc-wine-lead{
  margin: 18px 0 0;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--wp--preset--color--ink);
}

/* quick facts */
.fc-wine-facts{
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--fc-line, rgba(92,34,53,.15));
}
.fc-fact{
  padding: 14px 0;
  border-bottom: 1px solid var(--fc-line, rgba(92,34,53,.15));
}
.fc-fact:nth-child(odd){ padding-right: 18px; }
.fc-fact dt{
  font-family: var(--wp--preset--font-family--jost);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
  margin-bottom: 3px;
}
.fc-fact dd{
  margin: 0;
  font-size: 1.02rem;
  color: var(--wp--preset--color--ink);
}

/* CTA */
.fc-wine-cta{
  display: inline-block;
  margin-top: 30px;
  font-family: var(--wp--preset--font-family--jost);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--cream);
  background: var(--wp--preset--color--gold);
  border: 1px solid var(--wp--preset--color--gold);
  padding: 15px 32px;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.fc-wine-cta:hover{
  background: var(--wp--preset--color--wine);
  border-color: var(--wp--preset--color--wine);
  color: var(--wp--preset--color--cream);
}
.fc-wine-cta:focus-visible{
  outline: 2px solid var(--wp--preset--color--wine);
  outline-offset: 3px;
}
.fc-wine-disclaimer{
  margin: 14px 0 0;
  font-size: .78rem;
  color: var(--wp--preset--color--muted);
}

/* detail sections */
.fc-wine-body{
  max-width: 760px;
  margin: clamp(48px, 7vw, 88px) auto 0;
}
.fc-wine-sec{ margin-bottom: clamp(34px, 5vw, 52px); }
.fc-wine-sec:last-child{ margin-bottom: 0; }
.fc-wine-h{
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 500;
  color: var(--wp--preset--color--wine);
  font-size: 1.9rem;
  line-height: 1.1;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fc-line-gold, rgba(184,147,58,.5));
}
.fc-wine-text{
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--wp--preset--color--ink);
}

/* estate definition list */
.fc-wine-dl{ margin: 0; }
.fc-erow{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--fc-line, rgba(92,34,53,.15));
}
.fc-erow:first-child{ border-top: 1px solid var(--fc-line, rgba(92,34,53,.15)); }
.fc-erow dt{
  font-family: var(--wp--preset--font-family--jost);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
  padding-top: 3px;
}
.fc-erow dd{
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--wp--preset--color--ink);
}

/* back link */
.fc-wine-back{
  max-width: 760px;
  margin: clamp(40px, 6vw, 64px) auto 0;
}
.fc-wine-back a{
  font-family: var(--wp--preset--font-family--jost);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--wine);
  text-decoration: none;
  border-bottom: 1px solid var(--fc-line-gold, rgba(184,147,58,.5));
  padding-bottom: 3px;
}
.fc-wine-back a:hover{ color: var(--wp--preset--color--gold); }

/* optional editor prose under the sheet */
.fc-wine-prose{ margin-top: clamp(28px, 4vw, 44px); }
.fc-wine-prose > *{ margin-block: 1rem; }

/* ---------------------------------------------------------
   THE PRODUCER (supplier story + photo)
   --------------------------------------------------------- */
.fc-producer{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.fc-producer--noimg{ display: block; }
.fc-producer-photo{ margin: 0; }
.fc-producer-photo img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 22px 40px rgba(40,15,20,.18);
}
.fc-producer-text .fc-eyebrow{ margin-bottom: 10px; }
.fc-producer-name{
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 500;
  color: var(--wp--preset--color--wine);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}
.fc-producer-desc{
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--wp--preset--color--ink);
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 900px){
  .fc-cat-grid{ grid-template-columns: repeat(2, 1fr); }
  .fc-wine-hero{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .fc-wine-photo{ min-height: 0; padding: 32px; }
  .fc-wine-bottle{ max-height: 380px; }
  .fc-producer{ grid-template-columns: 1fr; gap: 24px; }
  .fc-producer-photo{ max-width: 460px; }
}

@media (max-width: 560px){
  .fc-cat-grid{ grid-template-columns: 1fr; gap: 20px; }
  .fc-wine-facts{ grid-template-columns: 1fr; }
  .fc-fact:nth-child(odd){ padding-right: 0; }
  .fc-erow{ grid-template-columns: 1fr; gap: 4px; }
  .fc-erow dt{ padding-top: 0; }
}

/* =========================================================
   v0.9.0 additions
   ========================================================= */

/* ---- Card: uppercase type kicker above the name (wine catalogue) ---- */
.fc-card-type{
  font-family: var(--wp--preset--font-family--jost);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
  margin-bottom: 7px;
}

/* CTA is now a <button> — normalise so it matches the old link exactly */
button.fc-wine-cta{
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  line-height: 1.1;
}

/* ---------------------------------------------------------
   ENQUIRY POP-UP (single wine / oil) — form id 3
   --------------------------------------------------------- */
html.fc-modal-lock{ overflow: hidden; }

.fc-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.fc-modal.is-open{ display: flex; }
.fc-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.fc-modal-box{
  position: relative;
  z-index: 1;
  width: min(92vw, 480px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--wp--preset--color--cream);
  border-top: 3px solid var(--wp--preset--color--gold);
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(20,8,12,.5);
  padding: 54px clamp(24px, 5vw, 40px) clamp(28px, 5vw, 40px);
  -webkit-overflow-scrolling: touch;
}
.fc-modal-x{
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wp--preset--color--wine);
  color: var(--wp--preset--color--cream);
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20,8,12,.3);
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .2s, transform .2s;
}
.fc-modal-x:hover{ background: var(--wp--preset--color--gold); transform: rotate(90deg); }
.fc-modal-x:focus-visible{ outline: 2px solid var(--wp--preset--color--gold); outline-offset: 2px; }
.fc-modal-eyebrow{ margin: 0 0 8px; }
.fc-modal-title{
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 500;
  color: var(--wp--preset--color--wine);
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  line-height: 1.1;
  margin: 0;
}
.fc-modal-intro{
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
}
.fc-modal-regarding{
  margin: 12px 0 0;
  font-family: var(--wp--preset--font-family--jost);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--wine);
}
.fc-modal-form{ margin-top: 20px; }

/* Fluent Forms inside the cream pop-up — light touch to match the brand */
.fc-modal-form .ff-el-input--label label,
.fc-modal-form .ff-el-input--label{ color: var(--wp--preset--color--ink); }
.fc-modal-form .ff-el-form-control{ border-radius: 3px; }
.fc-modal-form .ff-el-form-control:focus{
  border-color: var(--wp--preset--color--gold);
  box-shadow: 0 0 0 3px rgba(184,147,58,.3);
}
.fc-modal-form .ff-btn-submit{
  background: var(--wp--preset--color--gold);
  border-color: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--cream);
  font-family: var(--wp--preset--font-family--jost);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.fc-modal-form .ff-btn-submit:hover{
  background: var(--wp--preset--color--wine);
  border-color: var(--wp--preset--color--wine);
}
.fc-modal-form .ff-message-success{
  color: var(--wp--preset--color--wine);
  font-size: 1.02rem;
  line-height: 1.6;
}

@media (max-width: 560px){
  .fc-modal{ padding: 12px; }
}

/* =========================================================
   v0.10.0 — Blog (posts index + shared post cards)
   Reuses .fc-cat-inner / .fc-cat-head / .fc-cat-filter / .fc-chip /
   .fc-cat-grid / .fc-card from the catalogue above.
   ========================================================= */
.fc-card--post{ text-align: left; align-items: flex-start; padding: 0 0 24px; overflow: hidden; }
.fc-post-img{
  height: 210px;
  margin-bottom: 18px;
  align-items: stretch;
}
.fc-post-img img{
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.fc-post-img .fc-card-noimg{ width: 100%; height: 100%; }
.fc-card--post .fc-card-type{ margin: 0 22px 6px; }
.fc-card--post h3{ margin: 0 22px 6px; font-size: 1.42rem; text-align: left; }
.fc-post-date{
  margin: 0 22px 10px;
  font-family: var(--wp--preset--font-family--jost);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.fc-post-excerpt{
  margin: 0 22px;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--wp--preset--color--ink);
}

/* ---- Home journal section ---- */
.fc-journal{
  background: var(--wp--preset--color--cream);
  padding: clamp(64px, 9vw, 120px) 26px;
}
.fc-journal-inner{ max-width: 1180px; margin-inline: auto; }
.fc-journal-head{ max-width: 680px; margin-bottom: clamp(30px, 4vw, 44px); }
.fc-journal-head .fc-eyebrow{ margin-bottom: 10px; }
.fc-journal-title{
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 500;
  color: var(--wp--preset--color--wine);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.08;
  margin: 0;
}
.fc-journal-more{ margin: 34px 0 0; }
.fc-journal-more a{
  font-family: var(--wp--preset--font-family--jost);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--wine);
  text-decoration: none;
  border-bottom: 1px solid var(--fc-line-gold, rgba(184,147,58,.5));
  padding-bottom: 3px;
}
.fc-journal-more a:hover{ color: var(--wp--preset--color--gold); }
