/* ── Variables ── */
:root {
  --black: #000;
  --burgundy: #5c1835;
  --green: #344944;
  --gold: #c1965c;
  --cream: #f0e8df;
  --muted: #cbc0b5;
  --gap: 14px;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--cream);
  background: var(--burgundy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.15; }
img { display: block; max-width: 100%; height: auto; }

/* ── Mobile Menu ── */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--burgundy); z-index: 200;
  flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 80px; gap: 32px;
}
.mobile-menu--open { display: flex; }
.mobile-menu__link { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--gold); }
.mobile-menu__link:hover { color: var(--cream); }
.mobile-menu__link--insta { display: flex; align-items: center; gap: 10px; font-family: 'Jost', sans-serif; font-size: 0.92rem; }
.mobile-menu__link--insta svg { width: 20px; height: 20px; stroke: var(--gold); }

.mobile-menu__close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: none; font-size: 1.6rem;
  color: var(--gold); cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 300;
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding: var(--gap);
  max-width: 1200px;
  margin: 0 auto;
}

.grid--home { gap: 0; }
.grid--narrow { gap: 6px; }

/* ── Label ── */
.label {
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── Site Nav ── */
.site-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  align-self: start;
  position: relative;
}

.site-nav__logo {
  position: absolute;
  left: 24px;
}

.site-nav__logo img { height: 50px; width: auto; }

.site-nav__list {
  display: none;
  list-style: none;
  align-items: center;
  gap: 28px;
}

.site-nav__link {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav__link:hover { color: var(--cream); }
.site-nav__link--ig { display: flex; align-items: center; }
.site-nav__link--ig svg { width: 17px; height: 17px; stroke: var(--gold); }
.site-nav__link--ig:hover svg { stroke: var(--cream); }

.site-nav__toggle {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none; cursor: pointer;
  margin-left: auto;
}
.site-nav__toggle-bar { display: block; width: 20px; height: 1.5px; background: var(--gold); }

/* ── Hero ── */
.hero {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: auto;
  justify-content: flex-start;
  align-items: flex-start;
}

.hero__logo { max-width: 280px; margin-bottom: 24px; }

.hero__desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 380px;
}

/* ── Media ── */
.media {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  min-height: 280px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.media__placeholder {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(240, 232, 223, 0.2);
  text-transform: uppercase;
}

/* ── Page Header ── */
.page-header {
  display: flex;
  flex-direction: column;
  padding: 56px 32px 8px;
  justify-content: center;
  align-items: flex-start;
}

.page-header--spaced { margin-bottom: 20px; }

.page-header__title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.page-header__desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.8;
}

/* ── Section ── */
.section {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section--sip { justify-content: flex-end; }

/* Mobile column wrapper: flatten so items participate in grid */
.home-col { display: contents; }

/* Mobile order: hero, newsletter, sip, events, food */
.hero           { order: 0; }
.newsletter     { order: 1; }
.section--sip   { order: 2; }
.section--events { order: 3; }
.section--food  { order: 4; }
.section--intro,
.section--why { padding-top: 0; }

.section__title { font-size: 1.6rem; margin-bottom: 14px; }

.section__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.section__text:last-child { margin-bottom: 0; }

/* ── Newsletter ── */
.newsletter {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.newsletter__title { font-size: 1.6rem; margin-bottom: 14px; }
.newsletter__text { color: var(--muted); font-size: 0.92rem; line-height: 1.8; margin-bottom: 20px; }

.newsletter__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter__input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(240, 232, 223, 0.2);
  border-radius: 4px;
  outline: none;
}

.newsletter__input::placeholder {
  color: rgba(240, 232, 223, 0.35);
}

.newsletter__input:focus {
  border-color: var(--gold);
}

.newsletter__button {
  padding: 10px 24px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.newsletter__button:hover { background: #b08550; }

/* ── Constant Contact Form Overrides ── */
.newsletter .ctct-inline-form,
.newsletter .ctct-form-container,
.newsletter .ctct-form-embed,
.newsletter .ctct-form-defaults {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  max-width: none !important;
}

.newsletter .ctct-form-header {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 400 !important;
  font-size: 1.6rem !important;
  line-height: 1.15 !important;
  color: var(--cream) !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
}

.newsletter .ctct-form-text {
  font-family: 'Jost', sans-serif !important;
  font-weight: 300 !important;
  color: var(--muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
}

.newsletter .ctct-form-custom {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  background: transparent !important;
}

.newsletter .ctct-form-field {
  margin: 0 !important;
  padding: 0 !important;
}

.newsletter .ctct-form-label {
  display: none !important;
}

.newsletter .ctct-form-element {
  flex: 1 !important;
  width: 100% !important;
  padding: 10px 14px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 300 !important;
  color: var(--cream) !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(240, 232, 223, 0.2) !important;
  border-radius: 4px !important;
  outline: none !important;
  box-shadow: none !important;
}

.newsletter .ctct-form-element:focus {
  border-color: var(--gold) !important;
}

.newsletter .ctct-form-button {
  padding: 10px 24px !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background: var(--gold) !important;
  color: var(--black) !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  width: auto !important;
  align-self: flex-start !important;
}

.newsletter .ctct-form-button:hover {
  background: #b08550 !important;
}

.newsletter .ctct-gdpr-text {
  font-family: 'Jost', sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.68rem !important;
  line-height: 1.6 !important;
  color: rgba(240, 232, 223, 0.35) !important;
  margin-top: 7px !important;
  padding: 0 !important;
}

.newsletter .ctct-gdpr-text a {
  color: rgba(240, 232, 223, 0.5) !important;
  text-decoration: underline !important;
}

.newsletter .ctct-form-footer {
  text-align: left !important;
  margin-top: 11px !important;
  padding: 0 !important;
}

.newsletter .ctct-form-footer-link {
  color: rgba(240, 232, 223, 0.35) !important;
  font-size: 0.68rem !important;
}

.newsletter .ctct-form-footer-img {
  height: 20px !important;
  opacity: 0.3 !important;
}

.newsletter .ctct-form-errorMessage {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.8rem !important;
  color: #e88 !important;
}

.newsletter .ctct-form-success {
  border: 1px solid rgba(240, 232, 223, 0.2) !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
}

.newsletter .ctct-form-success .ctct-form-header {
  color: var(--cream) !important;
}

.newsletter .ctct-form-success .ctct-form-text {
  color: var(--muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.8 !important;
  margin-bottom: 0 !important;
}

/* ── Member ── */
.member {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 14px;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.member--last { border-bottom: none; }

.member__photo {
  border-radius: 4px;
  overflow: hidden;
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 1 / 1;
}

.member__bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 10px;
}

.member__name {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.member__role {
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.member__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ── Tier ── */
.tier {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 36px 32px;
  justify-content: flex-start;
}

.tier__title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.tier__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 20px;
}

.tier__perks { list-style: none; }

.tier__perk {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.tier__perk::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── Signup ── */
.signup {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
}

.signup__title {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.signup__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ── Not Found ── */
.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 32px;
}

.not-found__title {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.not-found__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 32px;
}

.not-found__link {
  padding: 10px 24px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  border-radius: 4px;
}

.not-found__link:hover { background: #b08550; }

/* ── Footer ── */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px calc(var(--gap) + 32px) 24px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.footer__col p:not(.label) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer__col--connect { display: flex; flex-direction: column; gap: 12px; }

.footer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.footer__link svg { width: 20px; height: 20px; stroke: var(--gold); flex-shrink: 0; }
.footer__link span { color: var(--muted); font-size: 0.88rem; }
.footer__link:hover span { color: var(--gold); }

.footer__copy { font-size: 0.72rem; color: rgba(240, 232, 223, 0.45); text-align: center; }

/* ── Desktop ── */
@media (min-width: 768px) {
  .site-nav__list { display: flex; }
  .site-nav__toggle { display: none; }
  .footer { padding-left: 72px; padding-right: 72px; }
  .footer__inner { flex-direction: row; justify-content: space-between; }

  /* Home layout */
  .grid--home {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    padding: var(--gap) 40px;
  }
  .grid--home > .site-nav { grid-column: 1 / -1; }
  .home-col {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
  }
  .hero, .newsletter, .section--sip, .section--events, .section--food { order: unset; }
  .hero__logo { max-width: 340px; }

  /* Team layout */
  .grid--team {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--gap) 40px;
  }
  .grid--team > .site-nav { grid-column: 1 / 3; }
  .grid--team > .page-header { grid-column: 1 / 3; }
  .member {
    grid-column: 1 / 3;
    grid-template-columns: 1fr 1fr;
    border-bottom: none;
    padding: 14px 0;
  }
  .member--reverse .member__bio { order: -1; }
  .member__bio { padding: 16px 32px; }
  .member__photo img { aspect-ratio: 1 / 1; }
  .page-header__title { font-size: 2.8rem; }

  /* 404 layout */
  .grid--404 { padding: var(--gap) 40px; }
  .grid--404 > .site-nav { grid-column: 1; }
  .not-found { padding: 120px 32px; }
  .not-found__title { font-size: 2.8rem; }

  /* Wine Club layout */
  .grid--wine-club {
    grid-template-columns: repeat(4, 1fr);
    padding: var(--gap) 40px;
  }
  .grid--wine-club > .site-nav { grid-column: 1 / 5; grid-row: 1; }
  .grid--wine-club > .page-header { grid-column: 1 / 5; grid-row: 2; }
  .section--intro    { grid-column: 1 / 5; grid-row: 3; }
  .section--why      { grid-column: 1 / 5; grid-row: 4; }
  .tier--four        { grid-column: 1 / 3; grid-row: 5; }
  .tier--two         { grid-column: 3 / 5; grid-row: 5; }
  .section--party    { grid-column: 1 / 3; grid-row: 6; }
  .signup            { grid-column: 3 / 5; grid-row: 6; }
}

@media (min-width: 1024px) {
  .hero__logo { max-width: 400px; }
  .section--sip .section__title { font-size: 1.8rem; }
  .page-header__title { font-size: 3.2rem; }
  .member__name { font-size: 1.7rem; }
  .section__title { font-size: 1.8rem; }
  .not-found__title { font-size: 3.2rem; }
}
