/*
 * First Watch Monitoring – Pages
 * Builds on the location plugin's stylesheet (brand tokens, buttons, hero,
 * cards, steps, FAQ, booking). This file adds the section types that only
 * site pages use.
 */

/* Dark sections: Blue 1 with the same grid texture as the location pages */
.fwm-loc .fwp-dark {
	color: #fff;
	background-color: var(--fwm-blue-1);
	background-image:
		radial-gradient(ellipse 70% 90% at 0% 0%, rgba(47, 79, 118, .55) 0%, transparent 60%),
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: auto, 48px 48px, 48px 48px;
	border-top: 4px solid var(--fwm-blue-2);
	--fwm-focus: #fff;
}
.fwm-section.fwp-dark::before { content: none !important; }
.fwp-dark .fwm-h, .fwp-dark h3 { color: #fff; }
.fwp-dark .fwm-lead, .fwp-dark .fwm-prose > p, .fwp-dark .fwp-card__text { color: rgba(255, 255, 255, .8); }
.fwp-dark .fwm-eyebrow { color: var(--fwm-grey-light); }
.fwp-dark .fwm-eyebrow::before { background: var(--fwm-grey); }
.fwm-loc .fwp-dark .fwm-btn:not(.fwm-btn--ghost) { background: #fff; border-color: #fff; color: var(--fwm-blue-1); }
.fwm-loc .fwp-dark .fwm-btn:not(.fwm-btn--ghost):hover { background: var(--fwm-grey-light); border-color: var(--fwm-grey-light); }
.fwm-loc .fwp-dark .fwm-btn--ghost { color: #fff; }

.fwp-head--center { text-align: center; }
.fwp-head--center .fwm-h, .fwp-head--center .fwm-lead { margin-inline: auto; }
.fwp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero extras */
.fwm-loc .fwp-hero__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fwm-grey-light); }
.fwp-trust { list-style: none; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); display: flex; flex-wrap: wrap; gap: 14px 40px; }
.fwp-trust li { display: flex; flex-direction: column; margin: 0; }
.fwp-trust__value { font-size: 26px; font-weight: 800; line-height: 1.1; color: #fff; }
.fwp-trust__label { font-size: 14px; color: var(--fwm-grey-light); }

/* Text + media, comparison */
.fwp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.fwp-split--media-left .fwp-split__media { order: -1; }
.fwp-split--compare { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.fwp-split__text .fwm-head { margin-bottom: 18px; }
.fwp-split__text .fwm-actions { margin-top: 24px; }
.fwp-text .fwp-split__text { max-width: 760px; }

/* Media */
.fwp-media { margin: 0; }
.fwp-media__frame { position: relative; border-radius: 8px; overflow: hidden; background: var(--fwm-tint); }
.fwp-media--16x9 .fwp-media__frame { aspect-ratio: 16 / 9; }
.fwp-media--4x3 .fwp-media__frame { aspect-ratio: 4 / 3; }
.fwp-media--16x10 .fwp-media__frame { aspect-ratio: 16 / 10; }
.fwp-media__img { display: block; width: 100%; height: auto; }
.fwp-media--16x9 .fwp-media__img, .fwp-media--4x3 .fwp-media__img, .fwp-media--16x10 .fwp-media__img { height: 100%; object-fit: cover; }
.fwp-media__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.fwp-media--embed .fwp-media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fwm-loc .fwp-media__caption { margin-top: 10px; font-size: 14px; color: var(--fwm-muted); }
.fwp-dark .fwp-media__caption { color: rgba(255, 255, 255, .7); }
.fwm-book__side .fwp-media { margin: 8px 0 24px; }

/* Cards: numbered and large figures */
.fwp-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--fwm-line); }
.fwp-nums--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fwp-nums--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fwp-num { margin: 0; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--fwm-line); }
.fwm-loc .fwp-num__n { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--fwm-blue-2); }
.fwm-loc .fwp-num__title { margin: 0 0 8px; font-size: 21px; }
.fwp-num .fwp-card__text { margin: 0; color: var(--fwm-muted); font-size: 16px; }
.fwp-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fwp-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fwp-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fwp-stat { margin: 0; background: #fff; border: 1px solid var(--fwm-line); border-radius: 8px; padding: 26px 24px; }
.fwm-loc .fwp-stat__value { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--fwm-blue-1); }
.fwm-loc .fwp-stat__label { margin: 2px 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fwm-blue-2); }
.fwp-stat .fwp-card__text { margin: 0; color: var(--fwm-muted); font-size: 16px; }
.fwm-loc .fwp-note { margin: 28px 0 0; font-size: 15px; color: var(--fwm-muted); }

/* Comparison table — theme table styles (margins, cell borders, stripes) neutralized */
.fwm-loc .fwp-compare table { margin: 0 !important; border: 0 !important; background: transparent !important; }
.fwm-loc .fwp-compare th, .fwm-loc .fwp-compare td { border: 0 !important; box-shadow: none !important; }
.fwm-loc .fwp-compare tr { background: transparent !important; }
.fwm-loc .fwp-compare tbody tr { border-top: 1px solid var(--fwm-line) !important; }
.fwm-loc .fwp-compare thead th { border-bottom: 0 !important; }
/* Vertical column dividers (desktop table only) */
.fwm-loc .fwp-compare th + th, .fwm-loc .fwp-compare th + td, .fwm-loc .fwp-compare td + td { border-left: 1px solid var(--fwm-line) !important; }
.fwm-loc .fwp-compare thead th.fwp-compare__b { border-left-color: var(--fwm-blue-1) !important; }
.fwp-compare { border: 1px solid var(--fwm-line); border-radius: 8px; overflow: hidden; background: #fff; }
.fwp-compare__scroll { overflow-x: auto; }
.fwp-compare table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 16px; }
.fwp-compare th, .fwp-compare td { text-align: left; padding: 16px 20px; vertical-align: top; }
.fwp-compare thead th { background: var(--fwm-tint); font-size: 15px; font-weight: 700; color: var(--fwm-muted); }
.fwp-compare thead th.fwp-compare__b { background: var(--fwm-blue-1); color: #fff; }
.fwp-compare tbody tr { border-top: 1px solid var(--fwm-line); }
.fwp-compare tbody th { font-weight: 700; color: var(--fwm-ink); }
.fwp-compare tbody td { color: var(--fwm-muted); }
.fwp-compare tbody td.fwp-compare__b { background: #f5f7fa; color: var(--fwm-ink); font-weight: 600; }
.fwm-loc .fwp-compare__note { margin: 0; padding: 14px 20px; border-top: 1px solid var(--fwm-line); font-size: 14px; color: var(--fwm-muted); }

/* Cards with photos (photo replaces the icon) */
.fwm-loc .fwp-pcard--photo .fwm-pcard__media { margin: 0 -24px 18px; }
.fwp-photos--4x3 .fwm-pcard__media { aspect-ratio: 4 / 3; }
.fwp-photos--1x1 .fwm-pcard__media { aspect-ratio: 1 / 1; }
.fwm-loc .fwp-pcard--photo .fwm-pcard__media--ph { display: grid; place-items: center; color: #fff; }
.fwm-loc .fwp-pcard--photo .fwm-pcard__media--ph .fwm-svg { width: 40px; height: 40px; opacity: .9; }
.fwm-loc .fwp-pcard--photo .fwm-pcard__title a { color: inherit; }

/* Locations */
.fwp-locs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: stretch; }
.fwp-locs__list { display: flex; flex-direction: column; gap: 12px; }
.fwp-locs__list--solo { max-width: 720px; }
.fwm-loc .fwp-market { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--fwm-line); border-radius: 8px; background: #fff; color: var(--fwm-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.fwm-loc .fwp-market:hover { border-color: var(--fwm-blue-1); box-shadow: 0 10px 28px rgba(21, 43, 63, .1); }
.fwp-market__body { flex: 1; display: flex; flex-direction: column; }
.fwp-market__title { font-size: 20px; font-weight: 700; }
.fwp-market__text { font-size: 15px; color: var(--fwm-muted); }
.fwp-market__arrow { font-size: 22px; font-weight: 700; color: var(--fwm-blue-2); }
.fwp-locs__cta { margin-top: auto; padding: 22px; border-radius: 8px; background: var(--fwm-tint); }
.fwm-loc .fwp-locs__cta-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--fwm-ink); }
.fwp-locs__cta p:not(.fwp-locs__cta-title) { margin: 0 0 14px; color: var(--fwm-muted); }
.fwp-locs__map .fwm-map { height: 100% !important; min-height: 380px; }

/* Call-to-action band */
.fwp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.fwp-cta__text { flex: 1 1 520px; max-width: 760px; }
.fwp-cta .fwm-h { margin-bottom: 8px; }
.fwp-cta .fwm-lead { margin: 0; }
.fwp-cta-section { padding: calc(var(--fwm-gap) * .75) 0; }

/* Gallery */
.fwp-gallery { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.fwp-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fwp-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Steps background media */
.fwm-steps__bg img, .fwm-steps__bg video { width: 100%; height: 100%; object-fit: cover; }

/* Desktop column choice for Cards and Steps (2–5). Tablets and phones keep
   their 2- and 1-column layouts. Step arrows hide at the end of each row. */
@media (min-width: 961px) {
	.fwp-page .fwp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.fwp-page .fwp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.fwp-page .fwp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.fwp-page .fwp-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
	.fwp-page .fwp-cols-5 { gap: 16px; }
	.fwp-page .fwp-cols-5 .fwm-pcard, .fwp-page .fwp-cols-5 .fwp-stat, .fwp-page .fwp-cols-5 .fwm-step { padding-left: 20px; padding-right: 20px; }
	.fwp-page .fwp-cols-5 .fwp-pcard--photo .fwm-pcard__media { margin-left: -20px; margin-right: -20px; }
	.fwp-page .fwp-cols-5 .fwp-stat__value { font-size: 28px; }
	.fwp-page .fwp-cols-5 .fwm-step__num { font-size: 34px; }
	.fwp-page .fwp-cols-5 .fwm-step:not(:last-child)::after { right: -13px; }
	.fwp-page .fwm-steps.fwp-cols-2 > .fwm-step:nth-child(2n)::after,
	.fwp-page .fwm-steps.fwp-cols-3 > .fwm-step:nth-child(3n)::after,
	.fwp-page .fwm-steps.fwp-cols-4 > .fwm-step:nth-child(4n)::after,
	.fwp-page .fwm-steps.fwp-cols-5 > .fwm-step:nth-child(5n)::after { display: none; }
	.fwp-page .fwp-nums.fwp-cols-5 .fwp-num { padding-right: 20px; }
}

@media (max-width: 960px) {
	.fwp-split, .fwp-split--compare, .fwp-locs { grid-template-columns: minmax(0, 1fr); }
	.fwp-split--media-left .fwp-split__media { order: 0; }
	.fwp-nums, .fwp-nums--3, .fwp-stats, .fwp-stats--3, .fwp-gallery, .fwp-gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fwp-locs__map .fwm-map { min-height: 320px; }
}
/* Comparison on phones: each row becomes a labeled card, no sideways scrolling */
@media (max-width: 640px) {
	.fwp-compare { border: 0; border-radius: 0; background: none; overflow: visible; }
	.fwp-compare__scroll { overflow: visible; }
	.fwp-compare table, .fwp-compare tbody, .fwp-compare tr, .fwp-compare th, .fwp-compare td { display: block; }
	.fwp-compare table { min-width: 0; }
	.fwp-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.fwp-compare tbody { display: flex; flex-direction: column; gap: 12px; }
	.fwm-loc .fwp-compare tbody tr { border: 1px solid var(--fwm-line) !important; border-radius: 8px; overflow: hidden; background: #fff !important; }
	.fwp-compare tbody th { padding: 14px 16px 6px; font-size: 17px; }
	.fwp-compare tbody td { padding: 6px 16px 12px; }
	.fwm-loc .fwp-compare th + td, .fwm-loc .fwp-compare td + td { border-left: 0 !important; }
	.fwp-compare tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fwm-muted); }
	.fwm-loc .fwp-compare tbody td.fwp-compare__b { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--fwm-line) !important; }
	.fwp-compare tbody td.fwp-compare__b::before { color: var(--fwm-blue-2); }
	.fwp-compare__note { padding: 12px 2px 0; border-top: 0; }
}

@media (max-width: 640px) {
	.fwp-nums, .fwp-nums--2, .fwp-nums--3, .fwp-stats, .fwp-stats--2, .fwp-stats--3, .fwp-gallery, .fwp-gallery--2, .fwp-gallery--4 { grid-template-columns: 1fr; }
	.fwp-num { padding-right: 0; }
	.fwp-cta .fwm-actions .fwm-btn { width: 100%; }
}
