/* Mobile Access theme — details theme.json can't express. Colors come from the palette variables,
   so changing a color in Appearance → Editor → Styles updates these too. */

/* Text size buttons scale everything (sizes are in rem). */
html { font-size: 100%; }
html[data-text-size="large"] { font-size: 112.5%; }
html[data-text-size="xlarge"] { font-size: 125%; }

body { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }

/* Keyboard focus: thick amber ring everyone can see, on light and dark backgrounds. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--amber, #F5B700);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--wp--preset--color--navy, #022752);
	border-radius: 4px;
}

/* "Skip to content" link WordPress adds: make it big and obvious when it appears. */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--amber) !important;
	color: var(--wp--preset--color--navy) !important;
	font-size: 1.25rem !important;
	font-weight: 700;
	padding: 1rem 1.5rem !important;
	z-index: 100000;
}

/* Links in body text stay underlined; thicker underline is easier to see. */
a { text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }

/* Big enough to tap: 48px minimum. */
.wp-element-button, .wp-block-button__link, .wp-block-navigation-item__content, .mads-text-size button {
	min-height: 48px;
}
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; }

/* Outline button style (white background, navy border). */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
}

/* ----- Header ----- */
.mads-topbar { font-size: var(--wp--preset--font-size--small); }
.mads-topbar a { color: inherit; }
.mads-topbar .mads-phone { font-weight: 700; text-decoration: none; }
.mads-topbar .mads-phone:hover { text-decoration: underline; }
.mads-header-logo img { width: 64px; height: auto; }
.mads-header .wp-block-site-title a:hover { text-decoration: underline; }
.mads-header .wp-block-navigation a { text-decoration: none; }
.mads-header .wp-block-navigation a:hover, .mads-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 0.12em; }
.mads-header .wp-block-navigation__responsive-container-open,
.mads-header .wp-block-navigation__responsive-container-close {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	border: 2px solid currentColor;
	border-radius: 10px;
	padding: 0.4rem 0.9rem;
	min-height: 48px;
}
.mads-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.mads-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1rem; font-size: var(--wp--preset--font-size--large); }

/* Text size switcher */
.mads-text-size { display: inline-flex; align-items: center; gap: 0.35rem; }
.mads-text-size-label { margin-right: 0.25rem; }
.mads-text-size button {
	min-width: 48px;
	font: inherit;
	font-weight: 700;
	color: inherit;
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 8px;
	cursor: pointer;
	padding: 0 0.5rem;
	line-height: 1;
}
.mads-text-size button[data-size="large"] { font-size: 1.15em; }
.mads-text-size button[data-size="xlarge"] { font-size: 1.3em; }
.mads-text-size button[aria-pressed="true"] {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

/* Phone number as a button ([mads_phone button="1"]) */
a.mads-call-button {
	display: inline-flex; align-items: center; gap: 0.4em; min-height: 48px;
	background: var(--wp--preset--color--amber); color: var(--wp--preset--color--navy) !important;
	border-radius: 10px; padding: 0.85rem 1.5rem; font-weight: 700; font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3; text-decoration: none;
}
a.mads-call-button:hover { background: var(--wp--preset--color--white); text-decoration: underline; }

/* Online booking button */
.mads-booking .wp-block-button__link { width: auto; }

/* "Call" on a computer: a small box with the number and a Copy button */
.mads-call-pop {
	position: absolute; z-index: 50; margin-top: 0.5rem; max-width: min(26rem, calc(100vw - 2rem));
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink);
	border: 3px solid var(--wp--preset--color--navy); border-radius: 12px; padding: 1rem 1.25rem;
	box-shadow: 0 8px 24px rgba(1, 29, 61, 0.25); font-size: var(--wp--preset--font-size--medium); line-height: 1.5; text-align: left;
}
.mads-call-pop p { margin: 0 0 0.5rem; }
.mads-call-pop strong { white-space: nowrap; }
.mads-call-pop-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.mads-call-pop button, .mads-call-pop .mads-call-app { min-height: 48px; font: inherit; }
.mads-call-copy { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); border: 0; border-radius: 10px; padding: 0 1.1rem; font-weight: 700; cursor: pointer; }
.mads-call-pop .mads-call-app { color: var(--wp--preset--color--teal-dark) !important; display: inline-flex; align-items: center; }
.mads-call-close { margin-left: auto; background: transparent; border: 2px solid currentColor; border-radius: 8px; width: 48px; font-size: 1.5rem; cursor: pointer; color: var(--wp--preset--color--navy); }
.mads-call-pop-status { font-weight: 700; color: var(--wp--preset--color--teal-dark); min-height: 1.5em; margin: 0 !important; }
.mads-topbar .wp-block-group, .mads-footer .wp-block-column { position: relative; }

/* ----- Hero ----- */
.mads-hero { position: relative; overflow: hidden; }
.mads-hero .mads-hero-art img {
	width: 100%;
	height: auto;
	-webkit-mask-image: radial-gradient(ellipse 75% 85% at 55% 45%, #000 60%, transparent 100%);
	mask-image: radial-gradient(ellipse 75% 85% at 55% 45%, #000 60%, transparent 100%);
}
.mads-hero .mads-tagline { font-family: var(--wp--preset--font-family--heading); font-style: italic; letter-spacing: 0.02em; }
.mads-hero .mads-phone { color: inherit; font-weight: 700; }

/* ----- Cards (services, steps) ----- */
.mads-card {
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--sky);
	border-radius: 16px;
	height: 100%;
}
.mads-card .mads-icon img { width: 64px; height: 64px; }
.mads-header-logo img { width: 64px; height: auto; }
.mads-step-number {
	display: inline-flex; align-items: center; justify-content: center;
	width: 3rem; height: 3rem; border-radius: 50%;
	background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.5rem;
}
.mads-check-list { list-style: none; padding-left: 0; }
.mads-check-list li { position: relative; padding-left: 2.25rem; margin-bottom: 0.6rem; }
.mads-check-list li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
	background: var(--wp--preset--color--teal-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ----- Dark sections: links and focus stay visible ----- */
.has-deep-background-color a:not(.wp-block-button__link),
.has-navy-background-color a:not(.wp-block-button__link),
.has-teal-dark-background-color a:not(.wp-block-button__link) { color: var(--wp--preset--color--white); }
.has-deep-background-color :focus-visible,
.has-navy-background-color :focus-visible,
.has-teal-dark-background-color :focus-visible { box-shadow: 0 0 0 6px var(--wp--preset--color--deep); }

/* Full-width colored sections sit flush against each other. */
.wp-block-post-content > .alignfull + .alignfull, .wp-block-post-content > .alignfull:first-child { margin-block-start: 0; }

/* ----- Footer ----- */
header.wp-block-template-part, footer.wp-block-template-part, main + footer.wp-block-template-part { margin-block-start: 0; }
.mads-footer a { color: var(--wp--preset--color--white); }
.mads-footer .mads-footer-links { list-style: none; padding-left: 0; }
.mads-footer .mads-footer-links li { margin-bottom: 0.4rem; }
.mads-footer-logo img { width: 72px; height: auto; }

/* Questions and answers (Details block) */
.wp-block-details { border-bottom: 2px solid var(--wp--preset--color--sky); padding: 0.25rem 0 0.75rem; }
.wp-block-details summary {
	cursor: pointer; font-weight: 700; color: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--large); padding: 0.6rem 0; min-height: 48px;
}
.wp-block-details summary:hover { text-decoration: underline; }

/* Respect "reduce motion" settings. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Windows high-contrast mode: keep buttons and cards outlined. */
@media (forced-colors: active) {
	.wp-block-button__link, .mads-card, .mads-text-size button { border: 2px solid ButtonText; }
}

/* Printing a page: no header, footer or buttons, black on white. */
@media print {
	.mads-topbar, .wp-block-navigation, .mads-text-size, .wp-block-buttons, footer.wp-block-template-part { display: none !important; }
	body { color: #000; background: #fff; }
	a { color: #000; }
}
