/*
Theme Name: Flawless Biometrics
Theme URI: https://flawlessbiometrics.com/
Description: Lightweight custom block theme for Flawless Biometrics. Same look as the previous site (old-site photos behind the mockup layout), no page builder or slider plugins. Pages are built from the "Flawless Biometrics" patterns.
Author: Rodney
Version: 1.11.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flawless-biometrics
*/

/* Cards (Group block style "Card") */
.is-style-fb-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	padding: 1.375rem;
	background-color: var(--wp--preset--color--white);
}
.is-style-fb-card.has-background:not(.has-white-background-color) { border-color: transparent; }
.is-style-fb-card > :first-child { margin-top: 0; }

/* Header */
.fb-topbar p { margin: 0; }
.fb-header { border-bottom: 1px solid #e8e9ec; }
.fb-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; border: 1px solid #d5d8de; border-radius: 4px; justify-content: center; }
.fb-small-button .wp-block-button__link { padding: 0.75rem 1.25rem; font-size: 0.9375rem; }

/* Price and hours tables */
.fb-table table { border-collapse: collapse; width: 100%; }
.fb-table td { border: 0; border-bottom: 1px solid #eceef1; padding: 0.6rem 0; }
.fb-table tr:last-child td { border-bottom: 0; }
.fb-table td:last-child { text-align: right; font-weight: 700; padding-left: 1rem; white-space: nowrap; }

/* Google Map */
.fb-map iframe { display: block; width: 100%; min-height: 360px; border: 1px solid #d5d8de; border-radius: 6px; }

/* "Waiting on Stacy" notes: easy to spot on staging, remove before launch */
.fb-placeholder { background: #fff6d6; border: 2px dashed #c9a227; border-radius: 4px; padding: 0.5rem 0.75rem; color: #5c4700; font-size: 0.875rem; }

/* Sticky Book bar: phones only (under 768px) */
.fb-bookbar { display: none !important; }
@media (max-width: 767px) {
	.fb-bookbar {
		display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; margin: 0 !important;
		gap: 10px; flex-wrap: nowrap; background: #fff; border-top: 1px solid #d5d8de;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
	}
	.fb-bookbar .wp-block-button:first-child { flex: 1 1 auto; }
	.fb-bookbar .wp-block-button__link { width: 100%; padding: 0.85rem 1rem; }
	body { padding-bottom: 84px; }
	.fb-hide-phone { display: none !important; }
}

/* ---- v1.2: first mockup's layout on the old site's photos ---- */

/* Header: bigger logo, blue underline on the current page */
.fb-header .wp-block-navigation-item.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--wp--preset--color--primary); }
.fb-header .wp-block-navigation-item > a { padding: 0.35rem 0; }
.fb-topbar .fb-icon-pin::before, .fb-topbar .fb-icon-phone::before {
	content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; background: currentColor;
	-webkit-mask: var(--fb-icon) center / contain no-repeat; mask: var(--fb-icon) center / contain no-repeat;
}
.fb-topbar .fb-icon-pin { --fb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.1-7-11.5a7 7 0 0 1 14 0C19 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.fb-topbar .fb-icon-phone { --fb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }

/* White outline pill button (Button block style "White outline") */
.wp-block-button.is-style-fb-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.85); }
.wp-block-button.is-style-fb-outline-light .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }

/* Photo sections: headings and links go white on the dark photos (not inside cards) */
.fb-band-dark > .wp-block-cover__inner-container :is(h1, h2, h3):not(.is-style-fb-card *),
.fb-band-dark > .wp-block-cover__inner-container a:not(.wp-block-button__link):not(.is-style-fb-card *):not(.fb-notice *) { color: #fff; }

/* Footer on the fingerprint-swirl photo, darkened so the text reads */
.fb-footer-photo { box-shadow: inset 0 0 0 100vmax rgba(21, 24, 28, 0.82); }

/* "No walk-ins" notice */
.fb-notice { display: flex; gap: 0.875rem; align-items: center; border: 1px solid #efe0b0; border-radius: 4px; padding: 0.875rem 1.125rem; }
.fb-notice::before {
	content: ""; flex: 0 0 26px; height: 24px; background: #222;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm1 15h-2v2h2v-2zm0-7h-2v5h2v-5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm1 15h-2v2h2v-2zm0-7h-2v5h2v-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fb-notice p { margin: 0; }

/* Phones: text covers the busy part of each photo, so tint dark photos more */
@media (max-width: 781px) {
	.fb-photo.fb-band-dark .wp-block-cover__background { opacity: 0.7 !important; }
}

/* Full-width bands sit edge to edge (no white strips between them) */
.wp-site-blocks > *, .wp-block-post-content > .alignfull { margin-block-start: 0; }

/* "Do we offer your fingerprinting?": cards overlap the bottom of the photo band */
.fb-services-band { padding-bottom: calc(var(--wp--preset--spacing--70) + 120px) !important; }
.fb-overlap { position: relative; z-index: 1; margin-top: -120px !important; }
.fb-overlap > .is-style-fb-card, .fb-overlap > .wp-block-group > .is-style-fb-card { box-shadow: 0 6px 20px rgba(13, 22, 66, 0.10); }
.fb-overlap > .wp-block-group:not(.is-style-fb-card) > .is-style-fb-card:last-child { flex-grow: 1; }

/* v1.4: new logo is taller than the old one, so it's sized by width and shrinks on phones */
.fb-logo img { width: 170px; height: auto; }
@media (max-width: 781px) { .fb-logo img { width: 128px; } }
/* Slim photo header on inner pages (WordPress gives photo sections a 430px minimum by default) */
.wp-block-cover.fb-page-header { min-height: 150px !important; }

/* v1.11: red "We've moved!" banner (Home and Location). Delete the red block in the page editor when it's no longer needed. */
.fb-moved p { margin: 0; }
.fb-moved .fb-moved-title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.15; }
.fb-moved .fb-moved-address { font-size: clamp(1.125rem, 2.6vw, 1.375rem); line-height: 1.3; }

/* v1.11: brand red accents (Stacy's logo red), blue stays for buttons and links */
.fb-brand { align-items: center; }
.fb-brand .fb-logo { margin: 0; }
.fb-tagline { margin: 0; color: var(--wp--preset--color--brand-red); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.3px; font-size: 0.74rem; line-height: 1; white-space: nowrap; }
@media (max-width: 781px) { .fb-tagline { font-size: 0.56rem; } }
.fb-topbar .fb-icon-pin::before, .fb-topbar .fb-icon-phone::before { background: var(--wp--preset--color--brand-red); }
.wp-block-cover.fb-page-header { border-bottom: 4px solid var(--wp--preset--color--brand-red); }
.fb-footer-photo { border-top: 4px solid var(--wp--preset--color--brand-red); }
.is-style-fb-card > h2.wp-block-heading::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 0.5rem; border-radius: 2px; background: var(--wp--preset--color--brand-red); }
