/*
Theme Name: Westlake Sleep Apnea
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five for westlakesleepapnea.com (Steven C. Greenman, DDS). Colors, fonts, header and footer follow the practice's established look (teal, near-black, Outfit + Lato). Source: C:\Users\mail\westlakesleepapnea-website\site\theme\westlake-sleep
Version: 1.1.3
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: westlake-sleep
*/

/* ---------- Header: white brand strip scrolls away, dark menu bar sticks ---------- */
header.wp-block-template-part { position: sticky; top: -96px; z-index: 50; }
.admin-bar header.wp-block-template-part { top: calc(-96px + var(--wp-admin--admin-bar--height, 32px)); }
.wsa-brandbar { min-height: 96px; box-sizing: border-box; display: flex; align-items: center; }
.wsa-brandbar > .wp-block-group { width: 100%; }
.wsa-navbar { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); }
.wsa-navbar a { text-decoration: none; }
.wsa-navbar .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-1) !important; }
.wsa-navbar .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--contrast) !important; border: 0 !important; min-width: 19rem !important;
	text-transform: none; font-weight: 500;
}
.wsa-navbar .wp-block-navigation__submenu-container a { padding: 0.55rem 1rem !important; }
.wsa-header-cta .wp-block-button__link { background: var(--wp--preset--color--accent-2); outline: 1px solid #ffffff55; outline-offset: -4px; }
.wsa-header-cta .wp-block-button__link:hover { background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--contrast); }

/* Round teal icon + label blocks (header contacts, footer contact column). */
.wsa-ico { position: relative; padding-left: 3.1rem; margin: 0.9rem 0 0; line-height: 1.35; min-height: 2.5rem; }
.wsa-brandbar .wsa-ico { margin-top: 0; }
.wsa-ico a { text-decoration: none; color: inherit; font-weight: 700; }
.wsa-ico a:hover { text-decoration: underline; }
.wsa-ico .wsa-ico-label { font-size: 0.85em; opacity: 0.75; }
.wsa-ico::before {
	content: ""; position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
}
.wsa-ico::after {
	content: ""; position: absolute; left: 0.6rem; top: 0.6rem; width: 1.2rem; height: 1.2rem; background: #fff;
	-webkit-mask: var(--wsa-icon) center / contain no-repeat; mask: var(--wsa-icon) center / contain no-repeat;
}
.wsa-ico-phone { --wsa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.wsa-ico-pin { --wsa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.wsa-ico-clock { --wsa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.6 3.5 2.1-.8 1.3L11 13V7h2z'/%3E%3C/svg%3E"); }
.wsa-brandbar .wsa-ico { color: var(--wp--preset--color--contrast); }
.wsa-brandbar .wsa-ico .wsa-ico-label { color: var(--wp--preset--color--accent-4); opacity: 1; }

/* ---------- Typography details ---------- */
.wsa-eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--accent-2); }
.wsa-eyebrow::after { content: ""; display: inline-block; width: 1.1rem; height: 1px; background: currentColor; vertical-align: middle; margin-left: 0.55rem; }
.has-text-align-center.wsa-eyebrow::after, .wsa-center .wsa-eyebrow::after { display: none; }
.wsa-dark .wsa-eyebrow, .wsa-band .wsa-eyebrow { color: #fff; }
.wsa-hero-title { text-transform: uppercase; letter-spacing: 0.01em; }
.wsa-hero-title .wsa-teal { color: var(--wp--preset--color--accent-2); }

/* ---------- Photos: square corners with a solid teal block offset behind ---------- */
.wsa-offset { position: relative; margin-right: 16px; margin-bottom: 16px; }
.wsa-offset img { border-radius: 0 !important; position: relative; z-index: 1; display: block; }
.wsa-offset::after { content: ""; position: absolute; left: 16px; top: 16px; right: -16px; bottom: -16px; background: var(--wp--preset--color--accent-1); z-index: 0; }

/* Cards (services, topics, testimonials). */
.wsa-card { height: 100%; box-shadow: 0 2px 4px rgba(24, 25, 29, 0.05), 0 10px 30px rgba(24, 25, 29, 0.07); }
.wsa-card .wp-block-image img { border-radius: 0; }
.wsa-card h3 { text-transform: uppercase; font-size: 1.1rem !important; letter-spacing: 0.01em; }

/* Lists with small teal squares, as on the old site. */
ul.wsa-checks { list-style: none; padding-left: 0; }
ul.wsa-checks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.35rem; }
ul.wsa-checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; background: var(--wp--preset--color--accent-1); }

/* Professional memberships strip, logos in teal tone. */
.wsa-logos img { height: 78px !important; width: auto !important; max-width: 150px; object-fit: contain; }
.wsa-logos .wp-block-image { flex: 0 0 auto; }
.wsa-logos figure { margin: 0; }
.wsa-logos-band { box-shadow: 0 10px 30px rgba(24, 25, 29, 0.05) inset; }

/* Bands: teal-overlay photo bands and the New Patient Hotline band. */
.wsa-band .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wsa-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--contrast); color: #fff; outline: 1px solid #ffffff55; outline-offset: -4px; }
.wsa-band .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wsa-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--contrast); }
.wsa-band .wp-block-button.is-style-outline .wp-block-button__link,
.wsa-dark .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.wsa-band h1, .wsa-band h2, .wsa-band p, .wsa-band h1 a, .wsa-band h2 a { color: #fff; }
.wsa-band h2 a { text-decoration: none; }
.wsa-hotline h2 { margin: 0; }

/* Light hero: soft background, photo fades in from the right. */
.wsa-hero-light { position: relative; overflow: hidden; }
.wsa-hero-light .wsa-hero-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 48%; margin: 0; }
.wsa-hero-light .wsa-hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%); mask-image: linear-gradient(to right, transparent 0, #000 35%); }
.wsa-hero-light > .wsa-hero-text { position: relative; z-index: 1; max-width: 1200px !important; }
.wsa-hero-light > .wsa-hero-text > * { max-width: 540px; }

/* Video frame. */
.wsa-video .wp-block-embed__wrapper { border: 12px solid #fff; box-shadow: 0 10px 30px rgba(24, 25, 29, 0.12); }

/* FAQ */
.wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--contrast); }

/* Breadcrumbs on banners */
.wsa-crumbs, .wsa-crumbs a { color: #fff; font-size: 0.85rem; }

/* Forms (WPForms) in brand style. */
.wpforms-container .wpforms-submit {
	background: var(--wp--preset--color--accent-2) !important; color: #fff !important; border: 0 !important;
	border-radius: 0 !important; padding: 0.95rem 1.8rem !important; height: auto !important; width: 100%;
	font-weight: 700 !important; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem !important;
}
.wpforms-container .wpforms-submit:hover { background: var(--wp--preset--color--contrast) !important; }
.wsa-form-card { box-shadow: 0 10px 30px rgba(24, 25, 29, 0.08); }

/* ---------- Footer ---------- */
.wsa-site-footer a { color: inherit; }
.wsa-footer-h::after { content: ""; display: inline-block; width: 0.9rem; height: 2px; background: var(--wp--preset--color--accent-1); vertical-align: middle; margin-left: 0.5rem; }
.wsa-footer-links { line-height: 2.1; }
.wsa-footer-links a { text-decoration: none; }
.wsa-footer-links a:hover { color: var(--wp--preset--color--accent-1); }
.wsa-site-footer .wsa-ico { margin-bottom: 0.9rem; }
.wsa-site-footer .wsa-ico a { font-weight: 400; }
.wsa-site-footer .wsa-ico .wsa-ico-label { color: var(--wp--preset--color--accent-1); opacity: 1; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; }

/* No white strip between the last full-width section and the footer. */
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }
main.wp-block-group > .entry-content > .alignfull:last-child { margin-block-end: 0; }
main.wp-block-group > .entry-content > .alignfull:first-child { margin-block-start: 0; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 1000px) {
	.wsa-header-contacts .wsa-ico-pin { display: none; }
}
@media (max-width: 781px) {
	header.wp-block-template-part { top: -76px; }
	.wsa-brandbar { min-height: 76px; }
	.wsa-brandbar .wp-block-site-logo img { width: 120px !important; }
	.wsa-header-contacts .wsa-ico .wsa-ico-label, .wsa-header-contacts br { display: none; }
	.wp-block-buttons.wsa-header-cta { display: none; }
	.wsa-navbar > .wp-block-group { justify-content: flex-end !important; }
	.wsa-hero-light .wsa-hero-photo { position: static; width: 100%; height: 260px; }
	.wsa-logos img { height: 56px !important; }
	.wsa-hero-light .wsa-hero-photo img { -webkit-mask-image: none; mask-image: none; }
	.wsa-offset { margin-right: 12px; }
	.wsa-offset::after { left: 12px; top: 12px; right: -12px; bottom: -12px; }
}

/* Developer credit: Maxth wordmark with spray dots (light version for the dark footer). */
.wsa-credit { color: #ffffffaa; margin: 0; display: flex; align-items: center; gap: 0.5em; }
.maxth-logo { height: 20px; width: auto; display: block; }
