/*
Theme Name: Soliz Med Spa
Template: ams-atlas
Author: Atlas Marketing Solutions
Description: Brand child theme for Soliz Med Spa (Soliz Healthcare Solutions). Colors, fonts, H1 case and button shapes are in theme.json; brand CSS and the client's custom sections (functions.php) are styled here.
Version: 0.3.2
Requires at least: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: soliz-healthcare
*/

/* ==========================================================================
   Soliz Med Spa brand CSS. The Brand Foundations Sheet v1.3 (Visual system
   locked) is the authority: navy #1B3B5A, deep navy #0D1F2D, gold #C7A15B;
   Montserrat headings (800 uppercase H1), Lato body/UI/nav, Cormorant
   Garamond only for labels, treatment names and text links; pill buttons;
   capsule and arch image masks; no drop shadows. Gold is never text on
   white; gold buttons carry deep navy text.
   ========================================================================== */

:root {
	--atlas-shadow: none;
	--atlas-focus: var(--wp--preset--color--primary);
	--soliz-accent-font: var(--wp--preset--font-family--accent);
}

/* ---------- Header: navy, tagline under the logo, uppercase nav ---------- */

.atlas-header-main {
	--atlas-focus: var(--wp--preset--color--accent);
	/* v1.4 two-word logo, shown ~200px wide on desktop (Build Notes v1.0,
	   section 4); the PNG is 1380px wide, so it stays sharp at 2x. */
	--atlas-logo-height: 6.9rem;
	--atlas-logo-height-mobile: 3.75rem;
	border-bottom: 0 !important;
}

.soliz-header__tagline {
	margin: 0;
	font-size: .75rem;
	line-height: 1.3;
	letter-spacing: .05em;
	white-space: nowrap;
	color: rgb(255 255 255 / .88);
}

.atlas-header-main .wp-block-navigation {
	font-family: var(--wp--preset--font-family--body);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.atlas-header-main .wp-block-navigation a {
	color: var(--wp--preset--color--primary-contrast);
	text-decoration: none;
}

.atlas-header-main .wp-block-navigation a:hover,
.atlas-header-main .wp-block-navigation .current-menu-item > a,
.atlas-header-main .wp-block-navigation .current-menu-ancestor > a,
.atlas-header-main .wp-block-navigation a[aria-current="page"] {
	color: var(--wp--preset--color--accent);
}

/* The dropdown sits on white: deep navy text in normal case; the current
   page is marked in bold navy (gold text on white fails contrast). */
.atlas-header-main .wp-block-navigation__submenu-container {
	font-size: .9375rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.atlas-header-main .wp-block-navigation__submenu-container a,
.atlas-header-main .wp-block-navigation__submenu-container a:hover {
	color: var(--wp--preset--color--contrast);
}

.atlas-header-main .wp-block-navigation__submenu-container .current-menu-item > a,
.atlas-header-main .wp-block-navigation__submenu-container a[aria-current="page"] {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.soliz-header__phone {
	margin: 0;
	font-weight: 700;
	white-space: nowrap;
}

.soliz-header__phone a {
	color: var(--wp--preset--color--primary-contrast);
	text-decoration: none;
}

.soliz-header__phone a:hover {
	color: var(--wp--preset--color--accent);
}

@media (max-width: 781px) {
	.soliz-header__tagline {
		font-size: .75rem;
	}
}

/* ---------- Links and labels ---------- */

/* Gold links only on navy/deep-navy grounds (4.8:1 and 6.9:1). */
.is-style-section-primary a:where(:not(.wp-element-button)),
.is-style-section-dark a:where(:not(.wp-element-button)),
.soliz-hero .wp-block-column:last-child:not(:first-child) a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--accent);
}

/* Section labels (eyebrows): accent serif, navy on light, gold on dark. */
.atlas-eyebrow {
	font-family: var(--soliz-accent-font);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: .1em;
	color: var(--wp--preset--color--primary) !important;
}

:where(.is-style-section-primary, .is-style-section-dark, .atlas-photo-hero) .atlas-eyebrow {
	color: var(--wp--preset--color--accent) !important;
}

/* Tertiary text links ("Explore ->", "Book Now ->", "Directions ->"). */
.soliz-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.75rem;
	font-family: var(--soliz-accent-font);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.soliz-links a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.soliz-links a:hover {
	text-decoration-thickness: 2px;
}

:where(.is-style-section-primary, .is-style-section-dark) .soliz-links a {
	color: var(--wp--preset--color--accent);
}

/* ---------- Buttons ---------- */

/* Secondary: navy outline pill; fills navy on hover. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--primary);
	background: transparent;
	color: var(--wp--preset--color--primary);
	padding: calc(.9rem - 2px) calc(2rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: #FFFFFF;
	filter: none;
}

/* On navy grounds the navy hover would vanish: buttons turn white instead. */
:where(.is-style-section-primary, .is-style-section-dark, .atlas-header-main, .atlas-photo-hero) .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: currentColor;
	color: inherit;
}

:where(.is-style-section-primary, .is-style-section-dark, .atlas-header-main, .atlas-photo-hero) .wp-block-button > .wp-block-button__link:hover {
	background: #FFFFFF;
	border-color: #FFFFFF;
	color: var(--wp--preset--color--contrast);
}

/* ---------- Type ---------- */

/* Headings never break mid-word: the H1 shrinks, only when it has to, until
   its longest word fits ("NEUROMODULATORS": 15 capitals of Montserrat 800 are
   about 11.5em wide). */
h1 {
	font-size: min(clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem), (100vw - 2.5rem) / 11.6);
}

h2 {
	line-height: 1.15;
}

/* Only the bottom margin goes: the top one is the block gap between a
   heading, its paragraphs and lists (zeroing both ran paragraphs together). */
.soliz-block > p,
.soliz-block > ul,
.soliz-block > ol {
	margin-block-end: 0;
}

/* Reading columns line up with the left edge of the wide content (cards,
   heroes, columns) instead of centering, so left edges don't jump. */
:is(.soliz-text, .atlas-faq) > :where(:not(.alignwide, .alignfull)) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
}

/* Numbered "what to expect" steps: gold circles with deep navy numbers. */
.soliz-steps {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	padding-left: 0;
	list-style: none;
	counter-reset: soliz-step;
}

.soliz-steps > li {
	position: relative;
	min-height: 2.25rem;
	padding-left: 3.25rem;
	counter-increment: soliz-step;
}

.soliz-steps > li::before {
	content: counter(soliz-step);
	position: absolute;
	left: 0;
	top: -.15em;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	font: 700 1rem/2.25rem var(--wp--preset--font-family--heading);
	text-align: center;
}

.is-style-section-accent .soliz-steps > li::before {
	background: var(--wp--preset--color--contrast);
	color: #FFFFFF;
}

/* ---------- Image masks (the Wix signature shapes) ---------- */

.soliz-capsule img {
	border-radius: 999px !important;
}

/* Arch / tall-oval portrait for providers (4:5 photos). */
.soliz-arch img {
	border-radius: 50% 50% 0 0 / 40% 40% 0 0 !important;
}

/* Two co-providers side by side, each captioned with their name. */
.soliz-provider__pair > .wp-block-image {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.soliz-provider__pair figcaption {
	margin-top: .75rem;
	font-family: var(--soliz-accent-font);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-wrap: balance;
	color: var(--wp--preset--color--contrast);
}

.soliz-rounded img {
	border-radius: 20px !important;
}

/* ---------- Interior hero: gold band, white panel with the giant H1,
   navy panel with a capsule photo and the round booking badge ---------- */

.soliz-hero {
	position: relative;
	overflow: clip;
	padding-block: 0 !important;
	border-top: 14px solid var(--wp--preset--color--accent);
}

.soliz-hero > .wp-block-columns {
	align-items: stretch !important;
	margin-block: 0 !important;
}

.soliz-hero > .wp-block-columns > .wp-block-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: stretch !important;
	padding-block: var(--wp--preset--spacing--60);
}

.soliz-hero > .wp-block-columns > .wp-block-column:last-child:not(:first-child) {
	position: relative;
	isolation: isolate;
	align-items: center;
	color: #FFFFFF;
}

.soliz-hero > .wp-block-columns > .wp-block-column:last-child:not(:first-child)::before {
	content: "";
	position: absolute;
	inset: 0 -100vw 0 0;
	z-index: -1;
	background: var(--wp--preset--color--primary);
}

.soliz-hero > .wp-block-columns > .wp-block-column:first-child {
	container-type: inline-size; /* the H1 below sizes to this column */
}

.soliz-hero h1 {
	color: var(--wp--preset--color--primary);
	font-size: min(clamp(2.125rem, 1.2rem + 3vw, 3.75rem), 100cqi / 11.6);
	overflow-wrap: break-word;
}

.soliz-hero__subhead {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.4;
}

.soliz-hero .wp-block-image {
	width: min(100%, 22rem);
	margin: 0;
}

.soliz-badge {
	position: absolute;
	left: calc(-1 * var(--wp--preset--spacing--60));
	bottom: var(--wp--preset--spacing--60);
	z-index: 2;
	margin: 0 !important;
}

.soliz-badge .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 8.5rem;
	height: 8.5rem;
	padding: 1rem;
	border: 4px solid #FFFFFF;
	border-radius: 50%;
	font-family: var(--soliz-accent-font);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.05;
	text-align: center;
	letter-spacing: 0;
	overflow-wrap: normal; /* never "Treatmen / t" */
	word-break: normal;
}

@media (max-width: 781px) {
	.soliz-hero > .wp-block-columns > .wp-block-column:last-child:not(:first-child)::before {
		inset: 0 -100vw;
	}

	.soliz-hero > .wp-block-columns > .wp-block-column:first-child {
		padding-bottom: var(--wp--preset--spacing--50);
	}

	.soliz-badge {
		left: 0;
		bottom: var(--wp--preset--spacing--40);
	}

	.soliz-badge .wp-block-button__link {
		width: 7rem;
		height: 7rem;
		padding: .5rem;
		font-size: 1.1rem;
	}

	/* Reviews hero: the badge follows the rating instead of covering it. */
	.soliz-hero .wp-block-column:has(.soliz-rating-panel) .soliz-badge {
		position: static;
	}
}

/* ---------- Home hero (full-width photo) ---------- */

.soliz-home-hero h1 {
	font-size: clamp(2.125rem, 1.2rem + 3.2vw, 4rem);
}

.soliz-home-hero__subhead {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--accent);
}

/* Home hero rating badge: gold stars, the copy line, the live review count
   (gold link to /reviews/; gold reads on the photo's navy overlay). */
.soliz-rating .atlas-rating {
	gap: .25rem 1rem;
	font-weight: 700;
	letter-spacing: .02em;
}

.soliz-rating .atlas-rating__stars {
	color: var(--wp--preset--color--accent);
	font-size: 1.125rem;
}

.soliz-rating .atlas-rating__count {
	color: var(--wp--preset--color--accent);
}

/* Reviews hero: the rating takes the photo's place on the navy panel. */
.soliz-rating-panel .atlas-rating--panel {
	gap: .9rem;
	padding-bottom: var(--wp--preset--spacing--40);
}

.soliz-rating-panel .atlas-rating__value {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(5.5rem, 3.5rem + 6vw, 9rem);
	font-weight: 800;
	line-height: .8;
	letter-spacing: -.02em;
}

.soliz-rating-panel .atlas-rating__stars {
	color: var(--wp--preset--color--accent);
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem);
	line-height: 1;
	letter-spacing: .14em;
	margin-right: -.14em;
}

.soliz-rating-panel .atlas-rating__count {
	font-family: var(--soliz-accent-font);
	font-size: 1.5rem;
	font-weight: 600;
}

/* Desktop: the round badge overlaps the panel's left edge, so the rating
   centers in the space to its right. (Phones: the badge moves below it.) */
@media (min-width: 782px) {
	.soliz-hero .wp-block-column:has(.soliz-rating-panel):has(.soliz-badge) {
		padding-left: calc(8.5rem - var(--wp--preset--spacing--60) + 1rem);
	}
}

/* ---------- Google reviews feed (Trustindex widget) in the brand's type
   and colors. Layout, stars and the Google marks stay the plugin's. ---------- */

.atlas-reviews-feed .ti-widget.ti-goog .ti-widget-container,
.atlas-reviews-feed .ti-widget.ti-goog .ti-widget-container * {
	font-family: var(--wp--preset--font-family--body);
}

.atlas-reviews-feed .ti-widget.ti-goog .ti-rating-text strong.ti-rating {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.75rem !important;
	font-weight: 800;
	letter-spacing: .04em;
}

.atlas-reviews-feed .ti-widget.ti-goog :is(.ti-rating-text, .ti-rating-text *, .ti-name, .ti-review-content, .ti-review-content *) {
	color: var(--wp--preset--color--contrast);
}

.atlas-reviews-feed .ti-widget.ti-goog .ti-name {
	font-weight: 700;
}

.atlas-reviews-feed .ti-widget.ti-goog .ti-date {
	color: var(--wp--preset--color--secondary);
}

.atlas-reviews-feed .ti-widget.ti-goog .ti-review-item > .ti-inner {
	border-color: #FFFFFF !important;
	border-radius: var(--wp--custom--radius--medium) !important;
	background-color: #FFFFFF !important;
}

/* "Read more": navy and underlined instead of 50% grey (too faint to read). */
.atlas-reviews-feed .ti-widget.ti-goog .ti-read-more span {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	opacity: 1;
	text-decoration: underline !important;
	text-underline-offset: .2em;
}

.atlas-reviews-feed .ti-widget.ti-goog .ti-controls :is(.ti-next, .ti-prev):is(:hover, :focus) {
	background-color: var(--wp--preset--color--primary) !important;
	outline-color: var(--wp--preset--color--primary) !important;
}

/* ---------- Treatment cards ---------- */

.soliz-card {
	border-color: var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
}

.is-layout-grid > .soliz-card > .soliz-links:last-child {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--10);
}

.soliz-card .soliz-links {
	font-size: 1.1875rem;
}

/* ---------- FAQ: the question is an H3 that looks like the accordion label ---------- */

summary > .soliz-faq__q {
	display: inline;
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}

/* ---------- Visit / map ---------- */

.soliz-visit .atlas-map iframe {
	border-radius: var(--wp--custom--radius--medium);
}

/* ---------- Footer ---------- */

.soliz-footer .wp-block-site-logo img {
	height: 5.5rem;
	width: auto;
}

.soliz-footer__tagline {
	margin-top: .5rem;
	font-size: var(--wp--preset--font-size--small);
	opacity: .88;
}

.soliz-footer .atlas-footer__heading {
	margin-bottom: .75rem;
	font-family: var(--soliz-accent-font);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

.soliz-footer .atlas-business-links a {
	color: #FFFFFF;
	text-decoration: none;
}

.soliz-footer .atlas-business-links a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.soliz-footer__cta {
	margin-top: var(--wp--preset--spacing--30);
}

.soliz-footer__bottom p {
	margin: 0;
}

/* ---------- Mobile bar: navy Call, gold Book ---------- */

@media (max-width: 781px) {
	.atlas-callbar .soliz-callbar__call .wp-block-button__link {
		background-color: var(--wp--preset--color--primary);
		color: #FFFFFF;
	}
}
