/* Three Fours Ranch — Weddings page
   Depends on styles.css (tokens) and framed.css (framed card + ribbon). */

/* ---------- Editorial masthead ---------- */
.wed-intro-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 40px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: 80px;
  row-gap: 20px;
  grid-template-areas:
    "eyebrow eyebrow"
    "title   lede"
    "orn     orn";
  align-items: end;
}

.wed-intro-inner .eyebrow { grid-area: eyebrow; }

.wed-intro-inner h1 {
  grid-area: title;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.09;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}

.wed-intro-inner p {
  grid-area: lede;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 46ch;
}

.wed-intro-inner .ornament {
  grid-area: orn;
  margin-top: 30px;
}

/* ---------- Framed hero ---------- */
.wed-hero { padding-bottom: 96px; }

.wed-hero-figure {
  margin: 0;
  text-align: center;
}

.wed-hero-frame {
  --framed-ratio: 3 / 2;
  --framed-gap: 18px;
}

/* ---------- Collections: the invitation suite ---------- */
.wed-collections {
  max-width: 1320px;
  margin: 0 auto;
  padding: 104px 40px;
  display: flex;
  flex-direction: column;
  gap: 58px;
}

.wed-collections-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.wed-collections-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: 0.04em;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* Double rule: an outer border with a gold hairline set 8px inside it,
   the way a letterpress invitation is bordered. */
.suite-card {
  position: relative;
  min-width: 0;
  display: flex;
  background: var(--cream);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 0 0 8px var(--cream),
    inset 0 0 0 9px rgba(168, 133, 63, 0.42);
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.suite-card:hover {
  border-color: rgba(168, 133, 63, 0.55);
  box-shadow:
    inset 0 0 0 8px var(--cream),
    inset 0 0 0 9px var(--gold);
}

.suite-inner {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 48px 34px 42px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suite-kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.suite-card h3 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: 0.03em;
}

/* The 444 rule from the brand lockup, run full width inside the card. */
.suite-rule {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-deep);
  margin: 2px 0 4px;
}

.suite-rule::before,
.suite-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(168, 133, 63, 0), var(--gold), rgba(168, 133, 63, 0));
}

.suite-rule span {
  font-family: var(--brand-serif);
  font-size: 10.5px;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  line-height: 1;
}

.collection-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.collection-schedule {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
}

.schedule-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}
.schedule-row:last-child { padding-bottom: 0; }

.schedule-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
}

.schedule-detail {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* Regal: the centrepiece, ink with gold */
.suite-card.featured {
  background: var(--ink);
  border-color: rgba(212, 173, 99, 0.45);
  box-shadow:
    inset 0 0 0 8px var(--ink),
    inset 0 0 0 9px rgba(212, 173, 99, 0.55);
  margin-block: -24px;
}

.suite-card.featured:hover {
  border-color: rgba(212, 173, 99, 0.75);
  box-shadow:
    inset 0 0 0 8px var(--ink),
    inset 0 0 0 9px var(--gold);
}

.suite-card.featured .suite-inner { padding-top: 56px; }
.suite-card.featured .suite-kicker { color: var(--rose-muted); }
.suite-card.featured .collection-desc { color: var(--rose-muted); }
.suite-card.featured .schedule-row { border-top-color: var(--dark-border); }
.suite-card.featured .schedule-label { color: var(--gold); }
.suite-card.featured .schedule-detail { color: var(--cream); }

.suite-card.featured h3 { color: var(--gold-light); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .suite-card.featured h3 {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* A small seal straddling the top rule */
.collection-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--ink);
  color: var(--gold-light);
  border: 1px solid rgba(212, 173, 99, 0.6);
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.collection-note {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 68ch;
  align-self: center;
}
.collection-note a { color: var(--maroon); }

/* ---------- Pull quote band ---------- */
.wed-quote {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.wed-quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
  z-index: 0;
}

.wed-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(43, 33, 36, 0) 30%, rgba(43, 33, 36, 0.62) 100%);
}

.wed-quote-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 116px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.wed-quote .ornament { color: var(--gold-light); }
.wed-quote .ornament::before,
.wed-quote .ornament::after {
  background: linear-gradient(to right, rgba(240, 222, 190, 0), var(--gold-light), rgba(240, 222, 190, 0));
  width: clamp(34px, 8vw, 76px);
}

.wed-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3.3vw, 40px);
  line-height: 1.3;
  color: var(--cream);
  text-wrap: balance;
}

.wed-quote-tag {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--rose);
}

/* ---------- Included: editorial split with an overlapping frame ---------- */
.wed-included {
  padding-top: 118px;
  padding-bottom: 118px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 84px;
  align-items: center;
  overflow-x: clip;
}

.wed-included-media { position: relative; }

/* the blush plate the frame sits over */
.wed-included-media::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -13%;
  right: 16%;
  top: 7%;
  bottom: 7%;
  background: var(--blush);
  border: 1px solid var(--border);
}

.wed-included-media .framed { position: relative; z-index: 1; }

.wed-included-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.wed-included-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wed-included-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  text-wrap: pretty;
}

.wed-included-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 56ch;
}

.wed-included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
  line-height: 1.5;
}

.included-item::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Ceremony settings ---------- */
.wed-settings {
  max-width: 1320px;
  margin: 0 auto;
  padding: 104px 40px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.wed-settings-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.wed-settings-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  text-wrap: pretty;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.settings-grid .framed-card-body { text-align: center; }

/* ---------- Events invitation card ---------- */
.wed-events {
  max-width: 1000px;
  margin: 0 auto;
  padding: 112px 40px;
}

.wed-events-card {
  border: 1px solid var(--border);
  box-shadow:
    inset 0 0 0 9px var(--cream),
    inset 0 0 0 10px rgba(168, 133, 63, 0.42);
  padding: 72px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.wed-events-mark {
  width: 62px;
  height: auto;
  opacity: 0.95;
  margin-bottom: 2px;
}

.wed-events-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 2.9vw, 36px);
  line-height: 1.26;
  text-wrap: pretty;
}

.wed-events-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 58ch;
}

.wed-events-card .btn { margin-top: 8px; }

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
  .wed-included { gap: 56px; }
  .suite-inner { padding: 42px 26px 36px; }
}

@media (max-width: 1023px) {
  .wed-intro-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "lede"
      "orn";
    row-gap: 22px;
    align-items: start;
  }
  .wed-intro-inner p { max-width: 62ch; }
  .wed-intro-inner .ornament { margin-top: 12px; justify-content: flex-start; }

  .wed-hero-frame { --framed-ratio: 4 / 3; }

  .collection-grid { grid-template-columns: 1fr; gap: 24px; max-width: 560px; margin: 0 auto; width: 100%; }
  .suite-card.featured { margin-block: 0; }
  .suite-card.featured .suite-inner { padding-top: 48px; }

  .wed-included {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .wed-included-media { max-width: 420px; }
  .wed-included-media::before { left: -22px; right: 22%; top: 6%; bottom: 6%; }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .wed-intro-inner { padding: 68px 24px 44px; }
  .wed-intro-inner h1 { font-size: 31px; }
  .wed-hero { padding-bottom: 60px; }
  .wed-hero-frame { --framed-gap: 12px; }

  .wed-collections { padding: 68px 24px; gap: 40px; }
  .suite-inner { padding: 40px 22px 32px; }
  .suite-card.featured .suite-inner { padding-top: 46px; }
  .collection-badge { font-size: 9.5px; padding: 4px 11px; }

  .wed-quote-inner { padding: 78px 24px; gap: 20px; }
  .wed-quote-mark { width: 60px; }

  .wed-included { padding-top: 68px; padding-bottom: 68px; gap: 36px; }
  .wed-included-media { max-width: none; }
  .wed-included-media::before { left: -40px; right: 28%; }
  .wed-included-grid { grid-template-columns: 1fr; gap: 0; }
  .wed-included-text { gap: 30px; }

  .wed-settings { padding: 68px 24px; gap: 36px; }
  .settings-grid { gap: 38px; }

  .wed-events { padding: 68px 24px; }
  .wed-events-card { padding: 46px 22px; }
  .wed-events-card {
    box-shadow:
      inset 0 0 0 7px var(--cream),
      inset 0 0 0 8px rgba(168, 133, 63, 0.42);
  }
  .suite-card,
  .suite-card:hover {
    box-shadow:
      inset 0 0 0 6px var(--cream),
      inset 0 0 0 7px rgba(168, 133, 63, 0.42);
  }
  .suite-card.featured,
  .suite-card.featured:hover {
    box-shadow:
      inset 0 0 0 6px var(--ink),
      inset 0 0 0 7px rgba(212, 173, 99, 0.55);
  }
}
