/*
 * breakfast-blessings.css — TY Homes For Sale
 * The Breakfast Blessings page (breakfast-blessings.html), carried over from
 * saltyfluids.com/breakfast-blessings/ at Tina's request (2026-11-16) and
 * re-dressed in TY Homes' palette and type. Every rule is scoped under
 * .bb-page so nothing here leaks into the rest of the site.
 */
.bb-page {
  --bb-navy: var(--color-primary);            /* #1B3A5C */
  --bb-navy-deep: var(--color-primary-dark);  /* #0F2440 */
  --bb-blue: var(--color-secondary);          /* #3E6B9E */
  --bb-blue-light: #9FC0E3;                   /* blue that reads on navy */
  --bb-amber: var(--color-accent);            /* #D4862E — invitation moments */
  --bb-amber-strong: #A8641C;                 /* amber with white text (AA) */
  --bb-amber-deep: #8A5216;
  --bb-sun: #F2A65A;                          /* morning-light highlight */
  --bb-ink: var(--color-text);
  --bb-ink-soft: var(--color-text-secondary);
  --bb-on-dark: #F1F6FB;
  --bb-on-dark-dim: #B9C8D8;
  --bb-line-dark: rgba(241,246,251,0.18);
  --bb-paper: #FFFFFF;
  --bb-sand: var(--color-surface);            /* #F5F5F3 */
  --bb-tint: #EAF1F8;
  --bb-section-y: clamp(4.5rem, 9vw, 8rem);
  --bb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bb-fast: 220ms;
  --bb-slow: 420ms;
  --bb-shadow: 0 18px 50px -28px rgba(15,36,64,0.45);
}

/* ---------- Shared pieces ---------- */
.bb-page p { font-size: 1.0625rem; line-height: 1.65; }
.bb-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3.5rem); }
.bb-section { padding-block: var(--bb-section-y); }
.bb-section--sand { background: var(--bb-sand); }
.bb-section--paper { background: var(--bb-paper); }
.bb-section--tint { background: var(--bb-tint); }
.bb-section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.bb-display, .bb-h2 { font-family: var(--font-primary); color: var(--bb-navy); }
.bb-display { font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.015em; }
.bb-h2 { font-weight: 700; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -0.01em; }

.bb-kicker {
  font-family: var(--font-secondary); font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--bb-blue);
  display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem;
}
.bb-kicker::before { content: ""; width: 28px; height: 2px; flex: none; background: var(--bb-amber); }

.bb-on-dark, .bb-on-dark p { color: var(--bb-on-dark); }
.bb-on-dark .bb-display, .bb-on-dark .bb-h2 { color: #fff; }
.bb-on-dark .bb-kicker { color: var(--bb-blue-light); }

.bb-deck { margin: 1.5rem 0 2rem; font-size: 1.25rem; max-width: 46ch; color: var(--bb-on-dark); }

.bb-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-secondary); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: 4px; border: 1.5px solid transparent; text-decoration: none;
  transition: transform var(--bb-fast) var(--bb-ease), background-color var(--bb-fast) var(--bb-ease), color var(--bb-fast) var(--bb-ease);
}
.bb-btn--amber { background: var(--bb-amber-strong); color: #fff; }
.bb-btn--amber:hover { background: var(--bb-amber-deep); color: #fff; transform: translateY(-2px); }

.bb-link {
  font-family: var(--font-secondary); font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; gap: 0.4rem; padding-bottom: 3px;
  background-image: linear-gradient(var(--bb-amber), var(--bb-amber));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px;
  transition: background-size var(--bb-fast) var(--bb-ease), gap var(--bb-fast) var(--bb-ease);
}
.bb-link:hover { color: #fff; background-size: 100% 2px; gap: 0.7rem; }

/* ---------- Hero — navy field, tilted photo, the event badge pinned to its corner ---------- */
.bb-hero { background: var(--bb-navy); color: var(--bb-on-dark); position: relative; overflow: hidden; }
.bb-hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242,166,90,0.22), rgba(242,166,90,0));
}
.bb-hero__grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(4.5rem, 8vw, 7rem);
}
.bb-hero .bb-display span { display: block; color: var(--bb-sun); }
.bb-dates { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; margin-top: 2rem; max-width: 300px; }
.bb-date {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 1.05rem 1.2rem 1rem; border-radius: 6px;
  background: var(--bb-amber-strong); border: 1.5px solid var(--bb-amber-strong); color: #fff; text-decoration: none;
  transition: background-color var(--bb-fast) var(--bb-ease), transform var(--bb-fast) var(--bb-ease);
}
.bb-date:hover, .bb-date:focus-visible { background: var(--bb-amber-deep); border-color: var(--bb-amber-deep); color: #fff; transform: translateY(-2px); }
.bb-date__city { font-family: var(--font-primary); font-weight: 700; font-size: 1.35rem; color: #fff; line-height: 1.15; }
.bb-date__when { font-size: 0.95rem; color: #fff; }
.bb-date__go { margin-top: 0.55rem; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; display: inline-flex; align-items: center; gap: 0.35rem; }
.bb-hero__note { margin-top: 1.1rem; font-size: 0.92rem; color: var(--bb-on-dark-dim); max-width: 52ch; }
.bb-page .bb-hero__note { font-size: 0.92rem; color: var(--bb-on-dark-dim); }
.bb-hero__media { position: relative; }
.bb-hero__photo { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7); transform: rotate(1.6deg); }
.bb-hero__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bb-hero__badge {
  position: absolute; left: -8%; bottom: -14%; width: clamp(130px, 15vw, 200px); height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45)); transform: rotate(-8deg);
}

/* ---------- How it works — written as a diner guest check with a torn bottom edge ---------- */
.bb-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.bb-how .bb-section__head { margin-bottom: 0; }
.bb-how__rules { margin-top: 2rem; display: grid; gap: 1rem; max-width: 46ch; }
.bb-how__rules p { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--bb-ink); }
.bb-how__rules i { color: var(--bb-amber); font-size: 1.25rem; margin-top: 0.2rem; flex: none; }
.bb-check {
  position: relative; background: #FFFDF8; color: #2B2B2B; padding: 1.8rem 1.8rem 2.6rem;
  font-family: 'Courier New', Courier, monospace; box-shadow: var(--bb-shadow); transform: rotate(-1.2deg);
  --tear: 14px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tear) * 2) var(--tear) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tear) * 2) var(--tear) repeat-x;
}
.bb-check::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--bb-blue); }
.bb-check__head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; padding-bottom: 0.9rem; border-bottom: 2px dashed #CFC6B8; }
.bb-check__title { font-family: var(--font-primary); font-size: 1.6rem; font-weight: 700; color: var(--bb-navy); margin: 1.1rem 0 0.4rem; }
.bb-check__lines { list-style: none; margin: 0; padding: 0; }
.bb-check__lines li { padding: 0.95rem 0; border-bottom: 1px dotted #CFC6B8; }
.bb-check__row { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 1rem; }
.bb-check__row span:last-child { text-align: right; white-space: nowrap; }
.bb-check__lines small { display: block; margin-top: 0.3rem; font-size: 0.875rem; line-height: 1.5; color: #555; }
.bb-check__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; font-weight: 700; font-size: 1.15rem; }
.bb-check__total span:last-child { font-family: var(--font-primary); font-size: 1.6rem; color: var(--bb-amber-strong); }
.bb-page .bb-check__foot { margin-top: 1.4rem; text-align: center; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: #555; }

/* ---------- Stories — photo ground, three anonymous mornings, the $1,000 basket goal ---------- */
.bb-stories { position: relative; isolation: isolate; color: #fff; padding-block: var(--bb-section-y); }
.bb-stories__media { position: absolute; inset: 0; z-index: -2; }
.bb-stories__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.bb-stories__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(15,36,64,0.88), rgba(15,36,64,0.80) 55%, rgba(15,36,64,0.93)); }
.bb-stories .bb-h2 { max-width: 20ch; }
.bb-stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.bb-story { border-top: 2px solid var(--bb-blue-light); padding-top: 1.3rem; }
.bb-page .bb-story__setup { font-family: var(--font-primary); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.3; color: #fff; }
.bb-story__turn { margin-top: 0.9rem; font-size: 1.02rem; }
.bb-goal { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem 2.5rem; align-items: center; background: rgba(15,36,64,0.55); border: 1px solid rgba(159,192,227,0.3); border-radius: 6px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.bb-goal__fig { font-family: var(--font-primary); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1; color: var(--bb-sun); }
.bb-goal__copy strong { color: #fff; }
.bb-goal__bar { grid-column: 1 / -1; height: 12px; border-radius: 999px; background: rgba(241,246,251,0.15); overflow: hidden; }
.bb-goal__bar span { display: block; height: 100%; width: var(--pct, 48%); border-radius: inherit; background: linear-gradient(90deg, var(--bb-blue-light), var(--bb-sun)); }
.bb-goal__scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-on-dark-dim); margin-top: -0.6rem; }

/* ---------- Gallery — asymmetric mosaic of real tables ---------- */
.bb-mosaic { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 240px); gap: clamp(0.5rem, 1vw, 0.9rem); }
.bb-mosaic figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--bb-tint); }
.bb-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform var(--bb-slow) var(--bb-ease); }
.bb-mosaic figure:hover img { transform: scale(1.03); }
.bb-mosaic .tall { grid-row: span 2; }
.bb-mosaic .wide { grid-column: span 2; }
.bb-page .bb-mosaic__cap { margin-top: 1.2rem; color: var(--bb-ink-soft); font-size: 0.95rem; }

/* ---------- Tina's why — quote beside her video ---------- */
.bb-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.bb-page .bb-why__quote { font-family: var(--font-primary); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 600; color: var(--bb-navy); }
.bb-why__quote::before { content: "\201C"; display: block; font-size: 4rem; line-height: 0.6; color: var(--bb-amber); margin-bottom: 0.6rem; }
.bb-page .bb-why__cite { margin-top: 1.2rem; font-size: 0.95rem; color: var(--bb-ink-soft); }
.bb-why__body { margin-top: 1.6rem; display: grid; gap: 1rem; max-width: 52ch; }
.bb-video { margin: 0; position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; box-shadow: var(--bb-shadow); background: var(--bb-navy-deep); }
.bb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Closer — "Your seat's saved." over a table photo ---------- */
.bb-closer { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; isolation: isolate; text-align: center; color: #fff; }
.bb-closer__media { position: absolute; inset: 0; z-index: -2; }
.bb-closer__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.bb-closer__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(15,36,64,0.62), rgba(15,36,64,0.80)); }
.bb-closer__inner { max-width: 760px; padding: 6rem 1.5rem; }
.bb-closer .bb-deck { margin-inline: auto; color: #fff; }
.bb-closer__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.bb-closer__call { margin-top: 1.4rem; }

/* ---------- Gallery lightbox (engine's shared mechanism, carried with the page) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: clamp(1rem, 3vw, 2.5rem); }
.lightbox.is-open { display: flex; animation: bb-lightbox-in 220ms var(--bb-ease, ease); }
@keyframes bb-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__scrim { position: absolute; inset: 0; background: rgba(15,36,64,0.9); }
.lightbox__frame { position: relative; z-index: 1; margin: 0; max-width: min(1200px, 92vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.lightbox__img { max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 24px 80px -16px rgba(0,0,0,0.6); }
.lightbox__caption { font-family: var(--font-secondary); font-size: 0.9rem; line-height: 1.5; color: #fff; text-align: center; max-width: 60ch; }
.lightbox__counter { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 1; font-family: var(--font-secondary); font-size: 0.8rem; letter-spacing: 0.08em; color: #fff; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; z-index: 2; width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; background: #fff; color: var(--color-primary); box-shadow: 0 2px 10px rgba(0,0,0,0.25); font-size: 1.15rem; line-height: 1;
}
.lightbox__close:hover, .lightbox__close:focus-visible, .lightbox__prev:hover, .lightbox__prev:focus-visible, .lightbox__next:hover, .lightbox__next:focus-visible { color: var(--color-accent); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption[hidden], .lightbox__counter[hidden], .lightbox__prev[hidden], .lightbox__next[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bb-hero__grid, .bb-how, .bb-why { grid-template-columns: minmax(0, 1fr); }
  .bb-hero__media { max-width: 560px; margin: 0 1rem 2rem auto; }
  .bb-hero__badge { left: -4%; bottom: -16%; }
  .bb-check { max-width: 440px; }
  .bb-stories__grid { grid-template-columns: minmax(0, 1fr); }
  .bb-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .bb-mosaic .wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bb-dates { max-width: none; }
  .bb-goal { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bb-page *, .lightbox.is-open { transition: none !important; animation: none !important; }
}

/* Skip navigation link — WCAG 2.4.1 (managed by fix_ada_safe.py) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface, #ffffff);
  color: var(--color-accent, #005fcc);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--color-accent, #005fcc);
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  left: 0;
}
