/*
Theme Name: Atlas Cosmetic & Family Dentistry of Plano (NowFrame child)
Template: nowframe
Description: Atlas Cosmetic & Family Dentistry of Plano brand and site-specific code on top of the NowFrame parent theme.
Version: 1.2.1
Update URI: false
Text Domain: nowframe-child
*/

/*
 * Site-specific CSS. Colours, fonts and sizes are in theme.json; this file holds what theme.json can't express.
 * Everything is prefixed atlas-. Breakpoints (min-width): tablet 768px, laptop 1025px, desktop 1401px.
 *
 *  1. Tokens and base      5. Interior sections (split, why, more to explore, lists)
 *  2. Header               6. Home page sections
 *  3. Page hero            7. Page-specific sections (services grid, tour, safety, contact, coupons)
 *  4. Buttons              8. Footer and forms
 */

/* ===== 1. Tokens and base ===== */
:root {
	--atlas-navy: var(--wp--preset--color--primary);
	--atlas-ink: var(--wp--preset--color--contrast);
	--atlas-gold: var(--wp--preset--color--accent);
	--atlas-shadow: 0 18px 40px -24px rgba(14, 31, 51, .45);
	--atlas-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--atlas-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E");
}
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) a:where(:not(.wp-element-button)) { text-underline-offset: .15em; }

/* Small uppercase label above a heading (paragraph style "Eyebrow", and the old site's <small> labels). */
.is-style-atlas-eyebrow,
.atlas-eyebrow {
	margin-bottom: .5rem !important;
	font-size: .75rem !important;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.3;
	text-transform: uppercase;
}
.atlas-eyebrow + :is(h1, h2, h3) { margin-top: 0 !important; }

/* ===== 2. Header ===== */
.atlas-header { box-shadow: 0 1px 0 var(--wp--preset--color--border); }
.atlas-header .nowframe-hb__inner { max-width: none; }
.atlas-header__logo img { width: clamp(9rem, 18.9vw, 17rem) !important; max-width: none; height: auto; }
.atlas-header__logo { flex-shrink: 0; }
.wp-block-button.is-style-text-link.atlas-header__phone .wp-block-button__link {
	display: flex; flex-direction: column; align-items: center; gap: .15rem;
	color: var(--atlas-navy); font-size: 1.6875rem; font-weight: 800; letter-spacing: 0; text-transform: none; text-decoration: none; line-height: 1;
}
.wp-block-button.is-style-text-link.atlas-header__phone .wp-block-button__link::before {
	content: "Call Today"; color: #8F5F00; font-size: .75rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.atlas-header__phone .wp-block-button__link:hover { color: var(--atlas-ink); }

/* The two stacked tabs on the right: gold Request (top row), navy New Patient Forms (main row). */
.atlas-header__tabs { gap: 0; }
.atlas-tab .wp-block-button__link {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
	min-width: 10.25rem; padding: .5rem .75rem; font-size: 1.3125rem; font-weight: 800; letter-spacing: 0; line-height: 1.1; text-align: center;
}
.atlas-tab .wp-block-button__link span { font-size: 1rem; }
.atlas-tab .wp-block-button__link::before {
	content: ""; width: 1.25rem; height: 1.25rem; background: currentColor;
	-webkit-mask: var(--atlas-tab-icon) center / contain no-repeat; mask: var(--atlas-tab-icon) center / contain no-repeat;
}
.atlas-tab--request { --atlas-tab-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-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M12 13v5M9.5 15.5h5'/%3E%3C/svg%3E"); }
.atlas-tab--forms { --atlas-tab-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-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 17v3h16v-3'/%3E%3C/svg%3E"); }
.atlas-tab--forms .wp-block-button__link { background: var(--atlas-navy); color: #fff; }
.atlas-tab--forms .wp-block-button__link:hover { background: var(--atlas-ink); }
.atlas-tab--request .wp-block-button__link:hover { background: var(--atlas-ink); color: #fff; }

/* Menu: uppercase bold, gold chevrons. */
.atlas-header__nav .wp-block-navigation-item__content { font-weight: 800; text-transform: uppercase; text-decoration: none; }
.atlas-header__nav .wp-block-navigation__submenu-icon { color: var(--atlas-gold); }

/* Inline menu (laptops): navy drop-downs, white text, gold on hover (old site). Not the open menu panel, which is white. */
.atlas-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	padding: .25rem 0; border: 0 !important; background: var(--atlas-navy) !important; color: #fff !important; box-shadow: var(--atlas-shadow);
}
.atlas-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .625rem .875rem; font-size: .875rem !important; font-weight: 600; text-transform: none; color: #fff;
}
.atlas-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.atlas-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { background: var(--atlas-ink); color: var(--atlas-gold); }

/* Open menu panel (phones, tablets, or when the menu doesn't fit): white panel, navy text, sub-items indented
   with a gold line; dark gold chevrons and current page (gold on white fails contrast). */
.atlas-header__nav .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important; color: var(--atlas-ink) !important; box-shadow: none;
}
.atlas-header__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--atlas-ink) !important; font-size: 1rem !important; font-weight: 600; text-transform: none;
}
.atlas-header__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.atlas-header__nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: #8F5F00 !important; }
.atlas-header__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container { border-left: 2px solid var(--atlas-gold); }
.atlas-header__nav .is-menu-open .wp-block-navigation__submenu-icon { color: #8F5F00; }

@media (min-width: 1025px) {
	/* Logo cell spans both rows with a hairline on its right; the tabs fill their rows edge to edge. */
	.atlas-header .nowframe-hb__row { padding-block: 0 !important; }
	.atlas-header .nowframe-hb__inner { padding-inline: 0 !important; }
	.atlas-header .nowframe-hb__row--span .nowframe-hb__area--left {
		align-self: stretch; display: flex; align-items: center; padding: .75rem 1.75rem; border-right: 1px solid var(--wp--preset--color--border);
	}
	.atlas-header__top { border-bottom: 1px solid var(--wp--preset--color--border); }
	.atlas-header__top .nowframe-hb__area--right,
	.atlas-header__main .nowframe-hb__area--right { align-self: stretch; }
	.atlas-header__top .atlas-header__tabs,
	.atlas-header__main .atlas-header__tabs,
	.atlas-header__tabs .wp-block-button,
	.atlas-tab .wp-block-button__link { height: 100%; }
	.atlas-header__top .atlas-tab .wp-block-button__link { min-height: 5.6rem; }
	.atlas-header__main .atlas-tab .wp-block-button__link { min-height: 4.8rem; }
	.atlas-header__nav .wp-block-navigation__container { gap: clamp(.5rem, 1.4vw, 1.5rem); }
	.atlas-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-size: clamp(.8125rem, .3rem + .7vw, 1rem); }
}
@media (max-width: 1024.98px) {
	.atlas-tab .wp-block-button__link { min-width: 0; padding: .5rem .75rem; font-size: .9375rem; }
	.atlas-tab .wp-block-button__link span { font-size: .75rem; }
	.wp-block-button.is-style-text-link.atlas-header__phone .wp-block-button__link { font-size: 1.25rem; }
}
@media (max-width: 767.98px) {
	.atlas-header__logo img { width: 9.5rem; }
	.atlas-tab .wp-block-button__link::before { display: none; }
}

/* ===== 3. Page hero: navy box over the page photo (old site's interior banner) ===== */
.atlas-phero.wp-block-cover {
	min-height: 0;
	padding: clamp(2rem, 5vw, 4.75rem) var(--wp--style--root--padding-right, 1.25rem);
	align-items: flex-start;
}
.atlas-phero .wp-block-cover__inner-container { width: 100%; max-width: 80rem; margin-inline: auto; }
.atlas-phero .wp-block-cover__image-background { object-position: center center; }
.atlas-phero__box.wp-block-group {
	max-width: 40.625rem;
	margin-left: 0 !important;
	padding: clamp(1.75rem, 4vw, 3.125rem);
	border-bottom: .375rem solid var(--atlas-gold);
	background: rgba(14, 31, 51, .96);
	color: #fff;
	text-align: center;
}
.atlas-phero__box > * { max-width: none !important; }
.atlas-phero__title.wp-block-post-title {
	margin: 0 0 .75rem;
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: uppercase;
}
.atlas-phero__tagline {
	margin: 0 0 1.25rem !important;
	color: #fff;
	font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem);
	line-height: 1;
}
/* No tagline (privacy policy, sitemap, thank you): the H1 itself is the large heading. */
.atlas-phero__box:not(:has(.atlas-phero__tagline)) .atlas-phero__title {
	margin-bottom: 0; font-family: var(--wp--preset--font-family--heading); font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; text-transform: none;
}
.atlas-phero__box:not(:has(.atlas-phero__tagline)):has(.atlas-phero__text) .atlas-phero__title { margin-bottom: 1.25rem; }
.atlas-phero__text { color: #fff; }
.atlas-phero__text p { margin: 0; }
.atlas-phero__text p + p { margin-top: 1rem; }
.atlas-phero__text a { color: var(--atlas-gold); text-decoration: none; }
.atlas-phero__text a:hover { text-decoration: underline; }
/* No photo: a plain navy band with the box centred. */
.atlas-phero.is-titlebar { background: var(--atlas-navy); }
.atlas-phero.is-titlebar .atlas-phero__box { margin-inline: auto !important; }

/* ===== 4. Buttons ===== */
.wp-element-button { border-radius: 0; }
.wp-block-button.is-style-text-link .wp-block-button__link { letter-spacing: 0; text-transform: none; }
/* Arrow text links ("Find your dental insurance →"). */
.atlas-arrow-link .wp-block-button__link {
	padding: 0; background: none !important; color: var(--atlas-gold) !important; font-size: .8125rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase;
}
.atlas-arrow-link .wp-block-button__link::after {
	content: ""; display: inline-block; width: 1.125rem; height: 1.125rem; margin-left: .25rem; vertical-align: -.3rem; background: currentColor;
	-webkit-mask: var(--atlas-arrow) center / contain no-repeat; mask: var(--atlas-arrow) center / contain no-repeat; transition: transform .2s;
}
.atlas-arrow-link .wp-block-button__link:hover::after { transform: translateX(3px); }
/* Navy button (second button on dark sections, "Tour Our Dental Office"). */
.atlas-btn-ink .wp-block-button__link { background: var(--atlas-ink) !important; color: #fff !important; }
.atlas-btn-ink .wp-block-button__link:hover { background: #fff !important; color: var(--atlas-ink) !important; }
.is-style-section-dark .wp-block-button:not(.is-style-outline, .is-style-text-link, .atlas-btn-ink) > .wp-element-button:hover,
.atlas-dark .wp-block-button:not(.is-style-outline, .is-style-text-link, .atlas-btn-ink) > .wp-element-button:hover { background: #fff; color: var(--atlas-ink); }

/* ===== 5. Interior sections ===== */
.atlas-section { position: relative; }
.atlas-section :is(h2, h3) { margin-top: 0; }
.atlas-section h2 + * { margin-top: 1.5rem; }
.atlas-split .wp-block-column img { width: 100%; height: auto; }
.atlas-split .wp-block-image { margin: 0; }
.atlas-split--sm { margin-top: var(--wp--preset--spacing--50) !important; }
.atlas-split--sm h3 { margin-bottom: .25rem; }
.atlas-split--sm h3 + p { margin-top: 0; }
.atlas-prose { text-align: center; }
.atlas-prose :is(ul, ol) { text-align: left; display: inline-block; }
.atlas-prose .wp-block-buttons { justify-content: center; }
.atlas-prose :is(ul, ol).is-style-atlas-checks-2col { display: block; max-width: 30rem; margin-inline: auto; }

/* Lists with gold checkmarks (list style "Gold checkmarks"; every list in a split section). */
:is(.is-style-atlas-checks, .is-style-atlas-checks-2col, .atlas-split ul:not([class*="is-style-"])) {
	padding-left: 0; list-style: none;
}
:is(.is-style-atlas-checks, .is-style-atlas-checks-2col, .atlas-split ul:not([class*="is-style-"])) > li {
	position: relative; padding-left: 1.5rem; line-height: 1.6;
}
:is(.is-style-atlas-checks, .is-style-atlas-checks-2col, .atlas-split ul:not([class*="is-style-"])) > li + li { margin-top: .5rem; }
:is(.is-style-atlas-checks, .is-style-atlas-checks-2col, .atlas-split ul:not([class*="is-style-"])) > li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 1rem; height: 1rem; background: var(--atlas-gold);
	-webkit-mask: var(--atlas-check) center / contain no-repeat; mask: var(--atlas-check) center / contain no-repeat;
}
@media (min-width: 768px) {
	.is-style-atlas-checks-2col { columns: 2; column-gap: 3rem; }
	.is-style-atlas-checks-2col > li { break-inside: avoid; }
	.is-style-atlas-checks-2col > li + li { margin-top: 0; margin-bottom: .5rem; }
}

/* "Why choose …" band: gold title bar over a navy strip with globe icons. */
.atlas-why { padding-top: 0 !important; padding-bottom: 0 !important; background: var(--atlas-navy); color: #fff; }
.atlas-why__title {
	margin: 0 !important; padding: .9375rem 1rem; background: var(--atlas-gold); color: #fff; color: var(--atlas-ink);
	font-family: var(--wp--preset--font-family--body); font-size: 1.125rem !important; font-weight: 800; letter-spacing: .03em; line-height: 1.2; text-align: center; text-transform: uppercase;
}
.atlas-why__list {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2rem; margin: 0 auto !important; padding: 2rem 1rem !important; list-style: none;
}
.atlas-why__list > li { flex: 1 1 14rem; max-width: 23rem; padding-top: 3.5rem; background: url(assets/img/why-deco.png) center top / 3rem auto no-repeat; font-size: .9375rem; line-height: 1.5; text-align: center; }

/* "More to Explore": navy band of gold buttons (synced patterns). */
.atlas-explore { text-align: center; }
.atlas-explore__title { margin: 0 0 1.25rem !important; color: #fff; font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--xx-large); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.atlas-explore .wp-block-buttons { gap: .625rem; max-width: 67rem; margin-inline: auto; }
.atlas-explore .wp-block-button { flex: 0 1 21.875rem; }
.atlas-explore .wp-block-button__link { width: 100%; padding-inline: .75rem; font-size: .75rem; }
@media (max-width: 767.98px) { .atlas-explore .wp-block-button { flex-basis: 100%; } }

/* Large display line that isn't a heading on the old site ("Your One-Stop Shop…"): keeps the old heading outline. */
.atlas-big {
	margin: 0 0 1.25rem !important; color: var(--atlas-ink); font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large); font-weight: 700; letter-spacing: -.02em; line-height: 1;
}
:is(.atlas-dark, .is-style-section-brand, .is-style-section-dark) .atlas-big { color: #fff; }
.atlas-eyebrow + .atlas-big, .is-style-atlas-eyebrow + .atlas-big { margin-top: 0 !important; }
.atlas-hero-btn { display: inline-block; margin: .375rem; padding: 1.125rem 1.75rem; background: var(--atlas-gold); color: var(--atlas-ink) !important; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-decoration: none !important; text-transform: uppercase; }
.atlas-hero-btn:hover { background: #fff; }

/* Dashed travel-route art (globe / map theme), decorative only. */
/* Same placement as the original site: the art sits on top of the section
   (and spills up into the one above), so later sections must not cover it. */
.atlas-route { position: relative; z-index: 1; }
.atlas-route.wp-block-cover { overflow: visible; }
.atlas-route::before {
	content: ""; position: absolute; z-index: 10; max-width: 95%; pointer-events: none; background: var(--atlas-route-img) left top / contain no-repeat;
}
/* 1: over the ways-to-pay panel. 2: top of the dark Meet section. 3: top right of the office row. */
.atlas-route--1::before { --atlas-route-img: url(assets/img/index-deco-1.png); left: 5%; top: -13.75rem; width: 51.5rem; height: 28.125rem; }
.atlas-route--2::before { --atlas-route-img: url(assets/img/index-deco-2.png); left: 0; top: -7.5rem; width: 51.8125rem; height: 31.0625rem; }
.atlas-route--3::before { --atlas-route-img: url(assets/img/index-deco-3.png); right: 0; top: 0; width: 34.3125rem; height: 18rem; }
@media (max-width: 768px) {
	.atlas-route::before { left: 0; right: 0; width: 100%; max-width: none; background-size: 80% auto; background-position: center; }
	.atlas-route--3::before { top: -6.25rem; }
}
@media (max-width: 590px) { .atlas-route--1::before { top: -11.25rem; } }

/* ===== 6. Home page ===== */
/* Hero: photo, white heading on the left, insurance checker along the bottom. */
.atlas-home-hero.wp-block-cover { min-height: clamp(30rem, 50vw, 44rem); padding: 0; align-items: stretch; }
.atlas-home-hero .wp-block-cover__inner-container { display: flex; flex-direction: column; justify-content: space-between; }
.atlas-home-hero .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, rgba(14, 31, 51, .62) 0%, rgba(14, 31, 51, .3) 38%, rgba(14, 31, 51, 0) 62%) !important; }
.atlas-home-hero__text { max-width: 28rem !important; margin: 0 0 0 clamp(0rem, 5vw, 4.75rem) !important; padding-block: clamp(3rem, 8vw, 9rem) 2.5rem; color: #fff; }
.atlas-home-hero__text h1 { margin: 0 0 .25rem; color: #fff; font-family: var(--wp--preset--font-family--body); font-size: .875rem; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.atlas-home-hero__text h2 { margin: 0 0 1.25rem; color: #fff; font-size: clamp(2.375rem, 1.6rem + 2.6vw, 3.375rem); line-height: 1; }
.atlas-home-hero__text p { max-width: 15.75rem; color: #fff; }
.atlas-home-hero .atlas-ins { width: min(72rem, 100%); margin: 0 auto !important; }
.atlas-home-hero .wp-block-cover__image-background { object-position: 70% center; }
@media (max-width: 767.98px) {
	.atlas-home-hero .wp-block-cover__background { opacity: .35 !important; background: #000; }
	.atlas-home-hero__text { margin-inline: 1.25rem !important; }
}

/* Offers: "Smile now, pay over time" + coupon cards on navy. */
.atlas-offers .wp-block-columns { align-items: stretch !important; }
.atlas-offers__lead { color: #fff; text-align: center; align-self: center; }
.atlas-offers__lead h2 { color: #fff; font-size: clamp(2.375rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1; }
.atlas-cpn.wp-block-column {
	box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; gap: 1rem;
	padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.25rem); background: var(--atlas-ink); color: #fff; text-align: center;
}
.atlas-cpn__title { margin: 0 !important; color: #fff; font-family: var(--wp--preset--font-family--heading); font-size: clamp(2rem, 1.2rem + 1.7vw, 2.875rem); overflow-wrap: normal; word-break: normal; hyphens: manual; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.atlas-cpn__text { margin: 0 !important; font-size: 1.125rem; font-style: italic; font-weight: 300; }
.atlas-cpn .wp-block-buttons { width: 100%; margin-top: auto !important; }
.atlas-cpn .wp-block-button { width: 100%; }
.atlas-cpn .wp-block-button__link { width: 100%; }

/* Split sections with an icon grid ("How can we help you?"). */
.atlas-callouts__label { margin-top: .75rem !important; font-size: 1.125rem; font-weight: 800; letter-spacing: 0; text-align: center; text-transform: uppercase; }
.atlas-callouts.wp-block-columns { flex-wrap: wrap !important; justify-content: center; gap: 1.25rem 0 !important; margin-block: 1.5rem !important; }
.atlas-callouts > .wp-block-column { flex: 0 0 50% !important; text-align: center; }
.atlas-callout { display: block; color: inherit; text-decoration: none; }
.atlas-callouts .wp-block-image { margin: 0 auto .5rem; }
.atlas-callouts .wp-block-image img {
	box-sizing: content-box; width: 3rem; height: 3rem; padding: 1.25rem; object-fit: contain;
	border: .375rem solid #e8ebf0; border-radius: 50%; background: var(--atlas-navy); transition: transform .2s;
}
.atlas-callouts .wp-block-image a:hover img { transform: scale(1.06); }
.atlas-callouts h3 { margin: 0; font-family: var(--wp--preset--font-family--body); font-size: 1.375rem; line-height: 1.1; }
.atlas-callouts h3 a { color: inherit; text-decoration: none; }
.atlas-callouts h3 a:hover { color: var(--atlas-navy); text-decoration: underline; }
.atlas-callouts + .wp-block-buttons { justify-content: center; }

/* Ways to pay: navy gradient list | grey photo panel. */
.atlas-pay.wp-block-cover { padding: 0 !important; align-items: stretch; }
.atlas-pay .wp-block-cover__inner-container { display: flex; }
.atlas-pay .wp-block-cover__inner-container > .wp-block-columns { flex: 1; align-items: stretch !important; }
.atlas-pay > .wp-block-columns { gap: 0 !important; margin: 0 !important; }
.atlas-pay .wp-block-cover__image-background { background-position: 50% 0 !important; }
.atlas-pay__list.wp-block-column { padding: clamp(3rem, 8vw, 10rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 8rem); background: rgba(25, 49, 83, .8); color: #fff; }
.atlas-pay__list h3 { margin: 1.75rem 0 .5rem; color: #fff; font-family: var(--wp--preset--font-family--body); font-size: 1.625rem; }
.atlas-pay__list p { margin: 0; }
.atlas-pay__list .wp-block-buttons { margin-top: .75rem !important; }
.atlas-pay__panel.wp-block-column { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(3rem, 8vw, 10rem) clamp(1.5rem, 7vw, 6.25rem) clamp(3rem, 7vw, 7.5rem); color: #fff; }
.atlas-pay__panel h2 { color: #fff; }
@media (min-width: 768px) { .atlas-pay__list.wp-block-column { flex-basis: 40% !important; } }

/* Welcome: text + signature, team photo, tall office photo. */
.atlas-signature img { width: 14.875rem; height: auto; }
.atlas-signature + p { margin-top: .25rem !important; font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

/* Dark split sections (Meet Dr. Khorasani, A place to get your dental health…). */
.atlas-dark { background: var(--atlas-navy); color: #fff; }
.atlas-dark :is(h1, h2, h3, h4) { color: #fff; }
:is(.atlas-dark, .is-style-section-brand, .is-style-section-dark, .atlas-photo-panel) a:not(.wp-element-button) { color: var(--atlas-gold); }
.atlas-dark .wp-block-buttons { flex-direction: column; align-items: flex-start; }
.atlas-dark .wp-block-button__link { min-width: 17.8rem; text-align: center; }

/* ===== 7. Page-specific sections ===== */
/* Our Services: image cards on navy with a gold base line. */
.atlas-services-grid { gap: 1.25rem !important; }
.atlas-svc.wp-block-columns { gap: 0 !important; margin: 0 !important; border-bottom: .3125rem solid var(--atlas-gold); background: var(--atlas-ink); color: #fff; }
.atlas-svc .wp-block-column:first-child { flex: 0 0 34% !important; }
.atlas-svc .wp-block-image, .atlas-svc .wp-block-image img { height: 100%; margin: 0; object-fit: cover; }
.atlas-svc .wp-block-column:last-child { align-self: center; padding: 1.25rem; text-align: center; }
.atlas-svc h3 { margin: 0 0 .75rem; font-family: var(--wp--preset--font-family--body); font-size: 1rem; }
.atlas-svc h3 a, .atlas-svc li a { color: #fff; text-decoration: none; }
.atlas-svc h3 a:hover, .atlas-svc li a:hover { color: var(--atlas-gold); text-decoration: underline; }
.atlas-svc ul { margin: 0; padding: 0; list-style: none; font-size: .875rem; line-height: 1.6; }
@media (min-width: 768px) {
	.atlas-services-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.atlas-services-grid > * { margin: 0 !important; }
	.atlas-svc.wp-block-columns { flex-wrap: nowrap !important; }
}

/* Tour: photo grid (gallery). */
.atlas-tour .wp-block-image img { aspect-ratio: 677 / 599; object-fit: cover; }

/* Office safety protocol: one column, gold-framed icon beside each step (old site). */
.atlas-safety.wp-block-group { display: grid !important; gap: clamp(1.75rem, 3vw, 2.75rem); max-width: 62rem; margin-inline: auto !important; }
.atlas-safety > * { margin: 0 !important; }
.atlas-safety__item.wp-block-group { display: grid !important; grid-template-columns: 8.75rem minmax(0, 1fr); column-gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
.atlas-safety__item > .wp-block-image { grid-row: 1 / span 3; display: grid; place-items: center; width: 8.75rem; height: 8.75rem; margin: 0; border: 3px solid var(--atlas-gold); background: #fff; }
.atlas-safety__item .wp-block-image img { width: 5.6rem; height: 5.6rem; object-fit: contain; }
.atlas-safety__item h3 {
	position: relative; margin: .25rem 0 1.5rem; padding-bottom: .875rem; font-family: var(--wp--preset--font-family--body); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); font-weight: 400; line-height: 1.15;
}
.atlas-safety__item h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.5rem; height: 2px; background: var(--atlas-gold); }
.atlas-safety__item p { margin: 0; font-size: .9375rem; line-height: 1.75; }
@media (max-width: 767.98px) {
	.atlas-safety__item.wp-block-group { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.atlas-safety__item > .wp-block-image { grid-row: auto; margin-bottom: 1rem; }
	.atlas-safety__item h3::after { left: calc(50% - 1.75rem); }
}

/* Emergency page: the common emergencies, white icons on navy. */
.atlas-common.wp-block-group { gap: 2rem 1rem; max-width: 56rem; margin: 2rem auto 0 !important; }
.atlas-common__item { text-align: center; }
.atlas-common .wp-block-image { margin: 0 0 .5rem; }
.atlas-common .wp-block-image img { width: auto; height: 3.25rem; object-fit: contain; }
.atlas-common h3 { margin: 0; color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .03em; line-height: 1.3; text-transform: uppercase; }
.atlas-common-section { text-align: center; }

/* Full-bleed photo with navy gradient behind the text (Meet Dr. Khorasani: "Outside of the dental office"). */
.atlas-photo-panel.wp-block-cover { padding-block: var(--wp--preset--spacing--70); }
.atlas-photo-panel__text { max-width: 31rem !important; margin-left: 0 !important; color: #fff; }
.atlas-photo-panel__text :is(h2, h3) { color: #fff; }
@media (max-width: 767.98px) { .atlas-photo-panel .wp-block-cover__background { background: rgba(25, 49, 83, .88) !important; } }

/* Contact: details | hours | map. */
.atlas-contact .atlas-hours table { width: auto; }
.atlas-contact iframe { width: 100%; height: 28rem; border: 0; }
.atlas-contact h2 { font-size: var(--wp--preset--font-size--x-large); }

/* Special offers: coupon cards. */
.atlas-coupon.wp-block-columns { gap: 0 !important; max-width: 46rem; margin-inline: auto !important; border: 2px dashed var(--atlas-gold); background: var(--atlas-ink); color: #fff; }
.atlas-coupon .wp-block-column:first-child { flex: 0 0 13rem !important; }
.atlas-coupon .wp-block-image { margin: 0; height: 100%; }
.atlas-coupon .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.atlas-coupon .wp-block-column:last-child { align-self: center; padding: 1.5rem; text-align: center; }
.atlas-coupon .atlas-cpn__title { font-size: clamp(1.625rem, 1.2rem + 1vw, 2.125rem); }
.atlas-coupon .atlas-cpn__title { color: #fff; font-style: normal; }
.atlas-coupon .atlas-cpn__text { font-style: italic; }
.atlas-coupon .wp-block-buttons { justify-content: center; }
@media (max-width: 767.98px) { .atlas-coupon .wp-block-column:first-child { display: none; } }

/* Popups (special offers): heading card above the form. */
.atlas-popup-cpn { padding: 1.25rem; background: var(--atlas-ink); color: #fff; text-align: center; }
.atlas-popup-cpn h2 { color: #fff; font-size: var(--wp--preset--font-size--x-large); }
.atlas-popup-cpn p { margin: .5rem 0 0; font-style: italic; }

/* ===== 8. Footer ===== */
.atlas-footer {
	position: relative; isolation: isolate; border-bottom: .3125rem solid var(--atlas-gold); background: var(--wp--preset--color--base); color: var(--atlas-ink);
}
.atlas-footer::before {
	content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: min(56.375rem, 63%); aspect-ratio: 902 / 558; pointer-events: none;
	background: url(assets/img/footer-deco.jpg) right top / contain no-repeat;
}
.atlas-footer__brand { text-align: center; }
.atlas-footer__logo img { width: min(12.5rem, 60vw) !important; }
.atlas-footer__contact { gap: .25rem !important; }
.atlas-footer__contact .wp-block-button.is-style-text-link .wp-block-button__link { padding: 0; color: var(--atlas-ink); font-size: 1.25rem; font-weight: 400; text-decoration: none; line-height: 1.25; }
.atlas-footer__contact .wp-block-button__link:hover { text-decoration: underline; }
.atlas-footer__contact .wp-block-button.atlas-footer__phone .wp-block-button__link { margin-bottom: .5rem; font-size: clamp(2rem, 1.5rem + 1.3vw, 2.625rem); font-weight: 800; }
.atlas-footer__social { justify-content: center; margin-top: 1rem !important; }
.atlas-footer__social a { color: var(--atlas-gold) !important; }
.atlas-footer__title {
	margin: 0 0 1rem !important; color: var(--atlas-ink); font-family: var(--wp--preset--font-family--heading); font-size: .75rem !important; font-weight: 700; letter-spacing: .2em; line-height: 1.1; text-transform: uppercase;
}
.atlas-footer__ask { max-width: 36rem; padding-top: clamp(0rem, 8vw, 7rem); }
.atlas-footer__lower { margin-top: var(--wp--preset--spacing--60) !important; }
.atlas-hours table { border-collapse: collapse; font-size: .875rem; }
.atlas-hours th { padding: 0 2rem 0 0; font-weight: 800; text-align: left; }
.atlas-hours td { padding: 0; }
.atlas-hours tr.is-today :is(th, td) { color: var(--atlas-navy); text-decoration: underline; text-decoration-color: var(--atlas-gold); text-decoration-thickness: 2px; }
.atlas-emergency { margin: .5rem 0 1rem !important; color: #c8102e; font-size: .875rem; }
.atlas-footer__request .wp-block-button__link { min-width: 17.8rem; }
.atlas-footer__legal { font-size: .875rem; }
.atlas-footer__legal p { margin: 0; }
.atlas-footer__legal a { color: #8F5F00; }
/* Tablets and phones: footer stacked and centred (brand, form, hours, legal). */
@media (max-width: 1024.98px) {
	.atlas-footer__cols.wp-block-columns { flex-wrap: wrap !important; }
	.atlas-footer__cols > .wp-block-column { flex-basis: 100% !important; }
	.atlas-footer__main { max-width: 40rem; margin-inline: auto; text-align: center; }
	.atlas-footer__ask { margin-inline: auto; padding-top: 0; }
	.atlas-footer__lower > .wp-block-column { text-align: center; }
	.atlas-hours table { margin-inline: auto; }
	.atlas-footer__main .wp-block-buttons, .atlas-footer__legal .nowframe-legal-links { justify-content: center; }
	.atlas-footer::before { position: static; display: block; width: min(100%, 40rem); margin: 0 0 1rem auto; }
	.atlas-footer { padding-top: 0 !important; }
}
.atlas-hours :is(th, td) { white-space: nowrap; }
@media (max-width: 767.98px) {
	.atlas-footer::before { position: static; display: block; width: 100%; margin-bottom: 1rem; }
	.atlas-footer { padding-top: 0 !important; }
	.atlas-footer__main, .atlas-footer__legal { text-align: center; }
	.atlas-footer__ask { margin-inline: auto; padding-top: 0; }
	.atlas-hours table { margin-inline: auto; }
	.atlas-footer__main .wp-block-buttons { justify-content: center; }
}

/* Gravity Forms in the footer and on the appointment page: square fields, navy labels. */
.atlas-footer .gform_wrapper input:not([type="checkbox"], [type="radio"], [type="submit"]),
.atlas-footer .gform_wrapper select,
.atlas-footer .gform_wrapper textarea { border-radius: 0; }
.atlas-footer .gform_wrapper textarea { min-height: 6rem; height: 6rem; }
.gform_wrapper .gform_button { border-radius: 0 !important; }

/* Footer form: no "required fields" legend (the asterisks say it), gold submit like every other button. */
.atlas-footer .gform_required_legend { display: none; }
.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform_page_footer .gform_button {
	background: var(--atlas-gold) !important; color: var(--atlas-ink) !important; border: 0 !important; font-size: .8125rem !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase; padding: 1.125rem 2rem !important;
}
.gform_wrapper .gform_footer .gform_button:hover { background: var(--atlas-navy) !important; color: #fff !important; }

/* Drop-downs: wider once open (only while shown, so the parent's "does the menu fit" check isn't affected). */
@media (min-width: 1025px) {
	.atlas-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-container { min-width: 17.5rem !important; }
}

/* Home navy section: room between "Meet Dr. Khorasani" and "A place to get your dental health…" (old site). */
.atlas-dark .atlas-office { margin-top: var(--wp--preset--spacing--80) !important; }
/* Common emergencies: six across on laptops, three on phones. */
@media (min-width: 1025px) { .atlas-common.wp-block-group { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } }
@media (max-width: 767.98px) { .atlas-common.wp-block-group { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }

/* Service cards: white links on navy (old site), photo beside the text on phones too. */
.atlas-services .atlas-svc :is(h3, li) a:not(.wp-element-button) { color: #fff; }
.atlas-services .atlas-svc :is(h3, li) a:not(.wp-element-button):hover { color: var(--atlas-gold); }
.atlas-svc.wp-block-columns { flex-wrap: nowrap !important; }
@media (max-width: 767.98px) {
	.atlas-svc .wp-block-column:first-child { flex: 0 0 34% !important; }
	.atlas-svc .wp-block-column:last-child { padding: 1rem .75rem; }
}
/* Footer form stays left-aligned when the footer centres on phones. */
.atlas-footer .gform_wrapper { text-align: left; }

/* Offers row on tablets: two by two (four across is too narrow for "Comprehensive"). */
@media (min-width: 768px) and (max-width: 1024.98px) {
	.atlas-offers > .wp-block-columns { flex-wrap: wrap !important; }
	.atlas-offers > .wp-block-columns > .wp-block-column { flex: 0 0 calc(50% - .75rem) !important; }
}
/* The last menu item's drop-down (Contact) opens leftwards so it stays on screen. */
.atlas-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation__submenu-container { left: auto !important; right: 0 !important; }

/* Contact on tablets: details and hours side by side, map full width below. */
@media (min-width: 768px) and (max-width: 1024.98px) {
	.atlas-contact.wp-block-columns { flex-wrap: wrap !important; }
	.atlas-contact > .wp-block-column:nth-child(-n+2) { flex: 1 1 calc(50% - 1.5rem) !important; }
	.atlas-contact > .wp-block-column:nth-child(3) { flex: 0 0 100% !important; }
}
.atlas-contact__map { min-height: 22rem; }

/* Light colour schemes (blog sidebar box, page sidebar box): the same gold buttons as everywhere else. */
.is-style-section-light,
.is-style-section-light-alt {
	--nowframe-scheme-button: var(--wp--preset--color--accent);
	--nowframe-scheme-button-text: var(--wp--preset--color--contrast);
	--nowframe-scheme-button-hover: #ffc233;
}
