/* ===========================================================================
   Celebrations Wine Club — homepage.
   Enqueued only on the front page, so no other template pays for it.
   Depends on the tokens declared in style.css.
   ======================================================================== */

/* ---------------------------------------------------------------- 3. Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  /* Pull the hero up behind the transparent sticky header, then pad the
     content back down so nothing hides underneath it. */
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--wine-burgundy-dark);
  isolation: isolate;
  overflow: hidden;
}

@media (min-width: 768px) { .hero { min-height: 660px; align-items: center; } }
@media (min-width: 1280px) { .hero { min-height: 800px; } }
@media (min-width: 1600px) { .hero { min-height: 840px; } }

.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
}

/* Two overlays: a wash for overall depth, and a left-weighted gradient so the
   headline sits on a dark ground without flattening the photograph. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(50, 16, 24, .90) 0%,
    rgba(50, 16, 24, .74) 34%,
    rgba(50, 16, 24, .38) 62%,
    rgba(50, 16, 24, .30) 100%);
}
@media (max-width: 767px) {
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(50, 16, 24, .78) 0%,
      rgba(50, 16, 24, .70) 45%,
      rgba(50, 16, 24, .88) 100%);
  }
}

.hero__inner { position: relative; max-width: 40rem; }

.hero .eyebrow { margin-bottom: 1.35rem; }

.hero h1 {
  color: var(--warm-ivory);
  margin-bottom: 1.25rem;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 em {
  font-style: italic;
  color: var(--champagne-gold);
}

.hero__lede {
  font-size: clamp(1rem, .95rem + .35vw, 1.1875rem);
  line-height: 1.65;
  color: rgba(247, 242, 233, .88);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 479px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

.hero__note {
  margin: 1.75rem 0 0;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: rgba(247, 242, 233, .8);
}
.hero__note a { color: var(--champagne-gold); text-decoration: none; }
.hero__note a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- 4. Trust strip */

.trust {
  background: var(--warm-ivory);
  border-bottom: 1px solid var(--border-light);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.trust__grid {
  display: grid; gap: clamp(1.75rem, 3vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .trust__grid { grid-template-columns: repeat(3, 1fr); } }

.trust__item { display: flex; gap: 1rem; align-items: flex-start; }
@media (min-width: 720px) {
  .trust__item + .trust__item { border-left: 1px solid var(--border-light); padding-left: clamp(1.75rem, 3vw, 3rem); }
}
.trust__icon { flex: 0 0 auto; color: var(--champagne-gold); margin-top: .15rem; }
.trust__icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.1; }
.trust__title {
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--wine-burgundy); margin: 0 0 .35rem;
}
.trust__text { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--olive-ink); }

/* --------------------------------------------------------- 5. Brand story */

.story__grid {
  display: grid; gap: var(--grid-gap);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 5rem); }
}

.story__media { position: relative; margin: 0; }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899px) { .story__media img { aspect-ratio: 3 / 2; } }

/* A thin gold rule offset behind the image — editorial, not a drop shadow. */
.story__media::after {
  content: ""; position: absolute;
  inset: auto -14px -14px auto;
  width: 55%; height: 55%;
  border-right: 1px solid var(--champagne-gold);
  border-bottom: 1px solid var(--champagne-gold);
  z-index: -1;
}
@media (max-width: 899px) { .story__media::after { display: none; } }

.story__body h2 { margin-bottom: 1.25rem; }
.story__body p { color: var(--olive-ink); }
.story__body .link-underline { margin-top: .75rem; }

.story__stats {
  display: flex; flex-wrap: wrap; gap: 2rem 3rem;
  margin: 2.25rem 0 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}
.story__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 400; line-height: 1;
  color: var(--wine-burgundy);
}
.story__stat span {
  display: block; margin-top: .4rem;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--warm-gray);
}

/* -------------------------------------------------------- 6. How it works */

.steps { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { padding: 2rem 0; border-top: 1px solid var(--border-light); }
@media (min-width: 860px) {
  .step { padding: 0 clamp(1.5rem, 3vw, 3rem); border-top: 0; }
  .step + .step { border-left: 1px solid var(--border-light); }
  .step:first-child { padding-left: 0; }
  .step:last-child { padding-right: 0; }
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 2.5vw, 4rem);
  line-height: 1; color: var(--champagne-gold);
  margin-bottom: 1rem;
}
.step h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); margin-bottom: .6rem; }
.step p { margin: 0; color: var(--olive-ink); font-size: 1rem; }

/* --------------------------------------------------------- 7. Memberships */

.plans { display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.plan:hover { border-color: rgba(83, 29, 45, .3); transform: translateY(-2px); }

.plan__media { overflow: hidden; background: var(--warm-ivory); }
.plan__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.plan:hover .plan__media img { transform: scale(1.04); }

.plan__body { padding: 1.75rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.plan__name { font-size: 1.6rem; margin-bottom: .5rem; }
.plan__status {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--warm-gray); margin: 0 0 .6rem;
}
.plan__positioning { font-size: .9375rem; color: var(--olive-ink); margin-bottom: 1.25rem; }

.plan__facts { list-style: none; margin: 0 0 1.5rem; padding: 1.25rem 0 0; border-top: 1px solid var(--border-light); }
.plan__facts li {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .9375rem; margin-bottom: .6rem; color: var(--body-ink);
}
.plan__facts li::before {
  content: ""; flex: 0 0 auto;
  width: 6px; height: 6px; margin-top: .6rem;
  border: 1px solid var(--champagne-gold);
  transform: rotate(45deg);
}
.plan__cta { margin-top: auto; }
.plan__cta .btn { width: 100%; }

.plan__pending {
  font-size: .8125rem; color: var(--warm-gray);
  margin: .9rem 0 0; text-align: center;
}

.plans-note {
  margin: 2.5rem auto 0;
  max-width: 46rem; text-align: center;
  font-size: .9375rem; color: var(--olive-ink);
}
.plans-note strong { color: var(--wine-burgundy); }

/* ------------------------------------------------- 8. Two wine cultures */

.regions {
  display: grid; grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) { .regions { grid-template-columns: 1fr 1.12fr 1fr; } }

.regions__img { position: relative; overflow: hidden; min-height: 260px; margin: 0; }
.regions__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.regions__img figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 1rem 1.25rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--warm-ivory);
  text-shadow: 0 1px 12px rgba(50, 16, 24, .9);
}
.regions__img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(50, 16, 24, .6), rgba(50, 16, 24, 0) 45%);
}

.regions__panel {
  background: var(--wine-burgundy);
  color: var(--warm-ivory);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
}
.regions__panel h2 { color: var(--warm-ivory); margin-bottom: 1.1rem; }
.regions__panel p { color: rgba(247, 242, 233, .82); max-width: 34rem; margin-inline: auto; }
.regions__panel .link-underline { margin-top: 1.25rem; align-self: center; }

/* On small screens the message leads, then the two places. */
@media (max-width: 899px) {
  .regions__panel { order: -1; }
  .regions__img { min-height: 240px; }
}

/* ------------------------------------------------------ 9. Featured wine */

.featured__grid {
  display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) {
  .featured__grid { grid-template-columns: .95fr 1.05fr; gap: clamp(2.5rem, 5vw, 5rem); }
}
.featured__media { margin: 0; }
.featured__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.featured__body h2 { margin-bottom: 1.1rem; }
.featured__body > p { color: rgba(247, 242, 233, .82); }

.featured__specs {
  list-style: none; margin: 2rem 0; padding: 0;
  display: grid; gap: 1.1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  border-top: 1px solid rgba(247, 242, 233, .18);
  border-bottom: 1px solid rgba(247, 242, 233, .18);
  padding-block: 1.5rem;
}
.featured__specs dt, .featured__specs .spec__label {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--champagne-gold); margin-bottom: .3rem;
}
.featured__specs dd, .featured__specs .spec__value {
  margin: 0; font-size: .9375rem; color: var(--warm-ivory); line-height: 1.5;
}

.archive-flag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--champagne-gold);
  border: 1px solid rgba(180, 147, 90, .45);
  padding: .4rem .75rem; border-radius: 2rem;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------- 10. Founder */

.founder__grid { display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .founder__grid { grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.founder__media { margin: 0; }
.founder__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899px) { .founder__media img { aspect-ratio: 3 / 2; } }
.founder__media figcaption {
  font-size: .75rem; color: var(--warm-gray); margin-top: .6rem; line-height: 1.5;
}

.founder__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  line-height: 1.35; font-style: italic;
  color: var(--charcoal);
  margin: 0 0 1.5rem; padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--champagne-gold);
}
.founder__attrib { font-size: .875rem; color: var(--warm-gray); margin-bottom: 1.75rem; }
.founder__attrib strong { display: block; font-size: 1rem; color: var(--wine-burgundy); font-weight: 600; margin-bottom: .2rem; }
.founder__body p { color: var(--olive-ink); }

/* ----------------------------------------------------- 11. Wine journal */

.journal__head {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.journal__head h2 { margin-bottom: 0; }

/* ------------------------------------------------------------ 12. Gift */

.gift {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--wine-burgundy-dark);
  isolation: isolate;
  overflow: hidden;
}
.gift__media { position: absolute; inset: 0; z-index: -2; }
.gift__media img { width: 100%; height: 100%; object-fit: cover; }
.gift::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(50, 16, 24, .93) 0%, rgba(50, 16, 24, .80) 48%, rgba(50, 16, 24, .55) 100%);
}
.gift__inner { max-width: 36rem; }
.gift h2 { color: var(--warm-ivory); margin-bottom: 1rem; }
.gift p { color: rgba(247, 242, 233, .84); }
.gift__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
@media (max-width: 479px) { .gift__actions .btn { width: 100%; } }

/* ------------------------------------------------------ 13. Newsletter */

.newsletter { background: var(--warm-ivory); }
.newsletter__grid {
  display: grid; gap: var(--grid-gap); grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) { .newsletter__grid { grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4.5rem); } }
.newsletter h2 { margin-bottom: .9rem; }
.newsletter p { color: var(--olive-ink); margin-bottom: 0; }

.newsletter__form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
.newsletter__form .form-row { flex: 1 1 16rem; margin-bottom: 0; }
.newsletter__form .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .newsletter__form { flex-direction: column; align-items: stretch; }
  .newsletter__form .btn { width: 100%; }
}
.newsletter__privacy { font-size: .8125rem; color: var(--warm-gray); margin: .9rem 0 0; }

.form-message {
  margin: 1rem 0 0; padding: .85rem 1rem;
  border-radius: var(--radius); font-size: .9375rem;
  border: 1px solid var(--border-light);
  background: var(--white);
}
.form-message--ok { border-left: 3px solid var(--muted-olive); }
.form-message--error { border-left: 3px solid var(--terracotta); color: #7E3C28; }

/* ------------------------------------------------------------- Section head */

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head h2 { margin-bottom: .85rem; }
.section__head p { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Small-screen legibility floor for homepage components.
   home.css loads after style.css, so the shared floor there loses on source
   order for these selectors; it is restated here to win.
   ------------------------------------------------------------------------ */

@media (max-width: 767px) {
  .trust__text,
  .plan__positioning,
  .plan__facts li,
  .plans-note,
  .founder__attrib,
  .step p,
  .newsletter p,
  .gift p,
  .regions__panel p,
  .featured__body > p { font-size: 1rem; }

  .newsletter__privacy { font-size: .875rem; }
  .plan__status, .regions__img figcaption, .founder__media figcaption { font-size: .75rem; }
}
