/*
Theme Name: Carden Dodson Medical
Theme URI: https://cardendodson.com/
Author: UpsiteGroup LLC
Author URI: https://upsitegroup.com/
Description: Custom block theme for Carden Dodson Medical Associates: internal medicine, infectious disease and travel medicine in West Palm Beach. Includes a one-click setup (Appearance → Carden Dodson Setup) that imports the practice's photos and forms and builds every page as editable blocks, plus schema markup, old-URL redirects and a non-PHI contact form.
Version: 1.5.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carden-dodson
*/

/* ---------- Tokens ---------- */
:root {
	--cd-navy: var(--wp--preset--color--navy, #0E1A2E);
	--cd-navy-2: var(--wp--preset--color--navy-2, #18263F);
	--cd-blue: var(--wp--preset--color--blue, #1F5FD6);
	--cd-blue-dark: var(--wp--preset--color--blue-dark, #174AA8);
	--cd-mint: var(--wp--preset--color--mint, #6FE3C1);
	--cd-soft: var(--wp--preset--color--soft, #F3F7FC);
	--cd-tint: var(--wp--preset--color--tint, #DCE9FA);
	--cd-border: var(--wp--preset--color--border, #E1E8F2);
	--cd-muted: var(--wp--preset--color--muted, #4D5B70);
	--cd-radius: 20px;
	--cd-radius-lg: 24px;
	--cd-shadow: 0 10px 30px rgba(14, 26, 46, 0.08);
	--cd-head: var(--wp--preset--font-family--heading, "Plus Jakarta Sans", sans-serif);

	/* Icons (stroke SVGs used as masks so they take the brand color) */
	--i-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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--i-lock: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
	--i-doc: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E");
	--i-globe: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E");
	--i-pin: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:where(.cd-main) > * { margin-block-start: 0; }
.cd-main .entry-content > * + *, .cd-main .wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }
a:focus-visible, button:focus-visible, .wp-element-button:focus-visible { outline: 3px solid var(--cd-blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Sections ---------- */
.cd-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.cd-bg-soft { background: var(--cd-soft); }
.cd-bg-navy { background: var(--cd-navy); color: #C9D4E5; }
.cd-bg-navy :where(h1, h2, h3, h4) { color: #fff; }
.cd-bg-navy a:not(.wp-element-button) { color: var(--cd-mint); }
.cd-bg-navy .cd-eyebrow { color: var(--cd-mint); }

.cd-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cd-blue); margin-bottom: 4px; }
.cd-eyebrow a { color: inherit; text-decoration: none; }
.cd-eyebrow a:hover { text-decoration: underline; }
.cd-lead { font-size: var(--wp--preset--font-size--large); color: var(--cd-muted); max-width: 40em; }
.cd-bg-navy .cd-lead { color: #C9D4E5; }
.cd-section-head { align-items: flex-end !important; margin-bottom: 40px; }
.cd-section-head h2 { margin-top: 8px; }
.cd-head-aside .cd-lead { margin: 0; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--cd-navy); border: 1.5px solid #C8D4E6; padding: 13px 25px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; border-color: var(--cd-blue); color: var(--cd-blue); }
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.cd-bg-navy .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.cd-card-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--cd-navy); }
.cd-bg-navy .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.cd-card-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--cd-mint); color: var(--cd-navy); }
.cd-bg-navy .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #3B4E6E; }
.cd-bg-navy .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: transparent; border-color: var(--cd-mint); color: var(--cd-mint); }

/* ---------- Top bar & header ---------- */
.cd-topbar { background: var(--cd-navy); color: #C9D4E5; font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.cd-topbar p { margin: 0; }
.cd-topbar a { color: #fff; text-decoration: none; }
.cd-topbar a:hover { color: var(--cd-mint); }
.cd-topbar-addr a { color: #C9D4E5; }
.cd-topbar-links { display: flex; gap: 24px; font-weight: 600; }
.cd-topbar-inner { gap: 6px 24px; }

.cd-header { background: #fff; border-bottom: 1px solid var(--cd-border); padding-top: 14px; padding-bottom: 14px; position: sticky; top: 0; z-index: 50; }
.admin-bar .cd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cd-header { top: 46px; } }
.cd-header-inner { gap: 24px; }
.cd-header-nav { gap: 20px; }
.cd-brand { margin: 0; }
.cd-brand a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cd-navy); }
.cd-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--cd-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--cd-head); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; flex: none; }
.cd-brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.cd-brand-name { font-family: var(--cd-head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.cd-brand-sub { font-size: 12px; font-weight: 600; color: var(--cd-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.cd-nav { font-size: 16px; font-weight: 600; gap: 4px 26px; }
.cd-nav .wp-block-navigation-item__content { color: var(--cd-navy); text-decoration: none; padding: 6px 0; }
.cd-nav .wp-block-navigation-item__content:hover { color: var(--cd-blue); }
.cd-nav .wp-block-navigation__submenu-container { border: 1px solid var(--cd-border) !important; border-radius: 14px; box-shadow: var(--cd-shadow); padding: 8px !important; min-width: 270px !important; }
.cd-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.cd-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--cd-soft); }
.cd-header-cta .wp-block-button__link { padding: 11px 20px; min-height: 44px; font-size: 15px; white-space: nowrap; }
@media (max-width: 599px) {
	.cd-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--cd-border); }
}
.cd-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.cd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 18px; font-size: 20px; }

@media (max-width: 1080px) {
	.cd-header .cd-header-cta { display: none; }
}
@media (min-width: 600px) and (max-width: 900px) {
	.cd-nav { font-size: 15px; gap: 4px 18px; }
	.cd-brand-name { font-size: 18px; }
	.cd-brand-sub { font-size: 11px; }
	.cd-mark { width: 40px; height: 40px; font-size: 16px; }
	.cd-header-inner { gap: 16px; }
}
.cd-nav .wp-block-navigation__container { flex-wrap: nowrap; }
@media (max-width: 600px) {
	.cd-topbar-addr { display: none; }
	.cd-topbar-inner { justify-content: center !important; }
	.cd-brand-name { font-size: 18px; }
	.cd-mark { width: 40px; height: 40px; }
}

/* ---------- Hero ---------- */
.cd-hero { padding-top: clamp(40px, 6vw, 80px); }
.cd-hero-cols { align-items: center !important; gap: clamp(32px, 5vw, 64px) !important; }
.cd-hero h1, .cd-page-hero h1 { margin-top: 12px; margin-bottom: 16px; }
.cd-hero .wp-block-buttons { margin-top: 28px; }
.cd-hero-media { position: relative; }
.cd-hero-img { margin: 0; }
.cd-hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cd-radius-lg); box-shadow: var(--cd-shadow); display: block; }
.cd-hero-img.cd-portrait img { aspect-ratio: 1 / 1; object-position: 50% 20%; }
.cd-hero-badge { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 12px 32px rgba(14, 26, 46, 0.18); max-width: 280px; }
.cd-hero-badge p { margin: 0; }
.cd-badge-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cd-muted); }
.cd-badge-title { font-family: var(--cd-head); font-weight: 700; font-size: 18px; line-height: 1.3; margin: 4px 0 6px !important; }
@media (max-width: 781px) {
	.cd-hero-badge { position: static; margin-top: -40px; margin-left: 16px; margin-right: 16px; position: relative; }
}

.cd-checks { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.cd-checks li { position: relative; padding-left: 32px; }
.cd-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cd-tint); }
.cd-checks li::after { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 12px; background: var(--cd-blue); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.cd-hero .cd-checks { flex-direction: row; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; font-size: 15px; color: var(--cd-muted); }

/* ---------- Quick links ---------- */
.cd-quick-section { padding-top: 0; }
.cd-quick-grid { gap: 16px !important; }
.cd-quick { position: relative; background: #fff; border: 1px solid var(--cd-border); border-radius: 16px; padding: 22px 22px 22px 70px; height: 100%; box-sizing: border-box; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cd-quick:hover { border-color: var(--cd-blue); box-shadow: var(--cd-shadow); transform: translateY(-2px); }
.cd-quick::before { content: ""; position: absolute; left: 22px; top: 24px; width: 28px; height: 28px; background: var(--cd-blue); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.cd-quick p { margin: 0; }
.cd-quick-title { font-weight: 700; }
.cd-quick-title a { color: var(--cd-navy); text-decoration: none; }
.cd-quick-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cd-quick-sub { font-size: 15px; color: var(--cd-muted); }
.cd-ico-lock { --i: var(--i-lock); }
.cd-ico-doc { --i: var(--i-doc); }
.cd-ico-globe { --i: var(--i-globe); }
.cd-ico-pin { --i: var(--i-pin); }

/* ---------- Cards ---------- */
.cd-grid-3 { gap: 24px !important; margin-bottom: 24px; }
.cd-grid-3 > .wp-block-column { display: flex; }
.cd-grid-3 > .wp-block-column > * { flex: 1; }
.cd-card { background: #fff; border: 1px solid var(--cd-border); border-radius: var(--cd-radius); overflow: hidden; display: flex; flex-direction: column; padding-bottom: 28px; transition: box-shadow .2s ease, transform .2s ease; }
.cd-card:hover { box-shadow: var(--cd-shadow); }
.cd-card > * { margin-left: 28px; margin-right: 28px; }
.cd-card > .wp-block-image { margin: 0 0 4px; }
.cd-card > :first-child:not(.wp-block-image) { margin-top: 28px; }
.cd-card .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .4s ease; }
.cd-card:hover .wp-block-image img { transform: scale(1.03); }
.cd-card h3 { margin-top: 20px; margin-bottom: 8px; font-size: 22px; }
.cd-card h3 a { color: var(--cd-navy); text-decoration: none; }
.cd-card h3 a:hover { color: var(--cd-blue); }
.cd-card p { color: var(--cd-muted); font-size: 16px; margin-top: 0; }
.cd-more { margin-top: auto !important; padding-top: 4px; }
.cd-more a { font-weight: 700; text-decoration: none; color: var(--cd-blue) !important; }
.cd-more a:hover { text-decoration: underline; }
.cd-card-dark { background: var(--cd-navy); border-color: var(--cd-navy); justify-content: space-between; }
.cd-card-dark h3 { color: #fff; font-size: 26px; line-height: 1.25; }
.cd-card-dark p { color: #C9D4E5; }
.cd-services { background: #fff; }
.cd-bg-soft .cd-card { border-color: transparent; }

/* Doctors */
.cd-doc .wp-block-image img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
.cd-doc-role { font-size: 14px !important; font-weight: 700; color: var(--cd-blue) !important; margin-bottom: 10px !important; }
.cd-physicians h2 { margin-bottom: 40px; }

/* ---------- Stats ---------- */
.cd-stats-section { padding-top: 48px; padding-bottom: 48px; }
.cd-stats { gap: 24px !important; }
.cd-stats p { margin: 0; }
.cd-stat-num { font-family: var(--cd-head); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); color: #fff; letter-spacing: -0.02em; line-height: 1.2; }
.cd-stat-label { font-size: 15px; color: #B7C3D6; margin-top: 4px !important; }
.cd-stats > .wp-block-column { border-left: 2px solid var(--cd-mint); padding-left: 18px; }

/* ---------- Travel band ---------- */
.cd-travel-cols { gap: clamp(32px, 5vw, 64px) !important; align-items: flex-start; }
.cd-band-img { margin: 0 0 16px; }
.cd-band-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--cd-radius); display: block; }
.cd-tips { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.cd-tips li { background: var(--cd-navy-2); border-radius: 14px; padding: 18px; font-size: 15px; color: #B7C3D6; line-height: 1.5; }
.cd-tips strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
@media (max-width: 600px) { .cd-tips { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cd-cta-section { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.cd-cta { background: linear-gradient(135deg, var(--cd-soft), var(--cd-tint)); border: 1px solid var(--cd-border); border-radius: var(--cd-radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cd-cta > * { margin: 0 !important; }
.cd-cta-text { max-width: 620px; }
.cd-cta-text h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; }
.cd-cta-text p { margin: 0; color: var(--cd-muted); }

/* ---------- Visit / contact ---------- */
.cd-visit-cols, .cd-contact-cols { gap: clamp(32px, 5vw, 56px) !important; }
.cd-info { gap: 20px !important; margin: 24px 0 !important; }
.cd-info p { margin: 0; }
.cd-main .cd-info { flex-wrap: wrap !important; }
.cd-main .cd-info > .wp-block-column { flex: 1 1 170px !important; }
.cd-info a { overflow-wrap: anywhere; }
.cd-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cd-muted); margin-bottom: 6px !important; }
.cd-map { border-radius: var(--cd-radius); overflow: hidden; background: var(--cd-tint); min-height: 320px; height: 100%; }
.cd-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.cd-contact .cd-map { margin-top: 24px; height: 360px; }
.cd-form-wrap { padding: clamp(24px, 3vw, 36px); }
.cd-form-wrap > * { margin-left: 0; margin-right: 0; }
.cd-form-wrap h2 { font-size: 28px; margin-top: 0; }

/* ---------- Content pages ---------- */
.cd-page-hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.cd-page-hero-text { max-width: 760px; }
.cd-page-hero .wp-block-buttons { margin-top: 24px; }
.cd-page-hero .wp-block-post-title { margin: 0; }
.cd-prose { max-width: 760px; }
.cd-prose h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 48px; margin-bottom: 12px; }
.cd-prose h2:first-child { margin-top: 0; }
.cd-prose .cd-checks { margin: 16px 0 24px; }
.cd-pullquote { font-family: var(--cd-head); font-weight: 700; font-size: 22px; line-height: 1.4; color: var(--cd-navy); border-radius: var(--cd-radius); background: var(--cd-soft); padding: 28px 32px; margin-top: 40px; }
.cd-note { background: var(--cd-soft); border: 1px solid var(--cd-border); border-radius: 16px; padding: 18px 22px; margin-top: 32px; }
.cd-note p { margin: 0; }
.cd-bg-soft .cd-note { background: #fff; }
.cd-team-cols { align-items: center !important; gap: clamp(32px, 5vw, 64px) !important; }
.cd-team-img img { border-radius: var(--cd-radius-lg); width: 100%; display: block; }
.cd-form-card { padding-top: 28px; position: relative; }
.cd-form-card::before { content: ""; display: block; width: 36px; height: 36px; margin: 0 28px 0; background: var(--cd-blue); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.cd-form-card h3 { margin-top: 16px; }
.cd-form-card .wp-block-buttons { margin-top: auto; }

/* FAQ */
.wp-block-details { border: 1px solid var(--cd-border); border-radius: 14px; padding: 0; margin-top: 12px !important; background: #fff; }
.wp-block-details summary { cursor: pointer; font-weight: 700; padding: 18px 52px 18px 22px; position: relative; list-style: none; font-size: 17px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--cd-blue); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > p { padding: 0 22px 18px; margin: 0; color: var(--cd-muted); }

/* Blog */
.cd-post-grid { gap: 24px !important; }
.cd-post-card { height: 100%; }
.cd-post-card .wp-block-post-featured-image { margin: 0 0 4px; }
.cd-post-card .wp-block-post-date { font-size: 14px; color: var(--cd-muted); }
.cd-article { padding-top: clamp(40px, 6vw, 72px); }
.cd-article-title { margin-top: 8px; }
.cd-article-date { color: var(--cd-muted); font-size: 15px; }
.cd-article-img img { border-radius: var(--cd-radius); }
.cd-cta-inline { background: var(--cd-soft); border-radius: 16px; padding: 20px 24px; margin-top: 48px !important; }
.cd-cta-inline p { margin: 0; }

/* ---------- Contact form ---------- */
.cdma-form { display: flex; flex-direction: column; gap: 4px; }
.cdma-form p { margin: 0 0 12px; }
.cdma-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 600px) { .cdma-row { grid-template-columns: 1fr; } }
.cdma-field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--cd-navy); }
.cdma-field input, .cdma-field select, .cdma-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; border: 1px solid #BCC9DD; border-radius: 10px; background: #fff; color: var(--cd-navy); }
.cdma-field input:focus, .cdma-field select:focus, .cdma-field textarea:focus { outline: none; border-color: var(--cd-blue); box-shadow: 0 0 0 3px rgba(31, 95, 214, 0.18); }
.cdma-field textarea { resize: vertical; }
.cdma-privacy, .cd-form-note { font-size: 14px !important; color: var(--cd-muted) !important; }
.cdma-submit { border: 0; cursor: pointer; background: var(--cd-blue); color: #fff; border-radius: 999px; padding: 14px 28px; font-weight: 600; font-size: 16px; min-height: 48px; }
.cdma-submit:hover { background: var(--cd-blue-dark); }
.cdma-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cdma-alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; font-weight: 500; }
.cdma-alert-ok { background: #E3F8F0; color: #0B5A43; }
.cdma-alert-err { background: #FDECEC; color: #8A1C1C; }

/* ---------- Footer ---------- */
.cd-footer { background: var(--cd-navy); color: #B7C3D6; font-size: 15px; padding-top: 64px; padding-bottom: 28px; }
.cd-footer a { color: #fff; text-decoration: none; }
.cd-footer a:hover { color: var(--cd-mint); }
.cd-footer-cols { gap: 32px !important; }
.cd-footer-brand { font-family: var(--cd-head); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 8px; }
.cd-footer-head { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cd-mint); margin-bottom: 12px; }
.cd-footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cd-footer-contact { line-height: 1.8; }
.cd-footer-bottom { border-top: 1px solid #24344F; margin-top: 40px !important; padding-top: 20px; font-size: 14px; }
.cd-footer-bottom p { margin: 0; }
.cd-copyright a { margin-left: 16px; }

/* ---------- Mobile column stacking polish ---------- */
@media (max-width: 781px) {
	.cd-section-head { margin-bottom: 24px; }
	.cd-grid-3 { margin-bottom: 0; }
	.cd-stats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cd-quick-grid { display: grid !important; grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 781px) {
	.cd-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
	.cd-card:hover .wp-block-image img, .cd-quick:hover { transform: none; }
}

/* ---------- Tablet (600–1024px) ---------- */
.wp-block-button__link { white-space: nowrap; }
@media (max-width: 1024px) {
	.cd-main .cd-hero-cols, .cd-main .cd-travel-cols, .cd-main .cd-visit-cols, .cd-main .cd-team-cols, .cd-main .cd-contact-cols { flex-wrap: wrap !important; }
	.cd-main .cd-hero-cols > .wp-block-column, .cd-main .cd-travel-cols > .wp-block-column, .cd-main .cd-visit-cols > .wp-block-column, .cd-main .cd-team-cols > .wp-block-column, .cd-main .cd-contact-cols > .wp-block-column { flex-basis: 100% !important; }
	.cd-hero-img img { aspect-ratio: 16 / 9; }
	.cd-hero-img.cd-portrait img { aspect-ratio: 4 / 3; max-width: 560px; }
	.cd-main .cd-quick-grid, .cd-main .cd-stats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cd-main .cd-section-head { flex-wrap: wrap !important; }
	.cd-main .cd-section-head > .wp-block-column { flex-basis: 100% !important; }
}
@media (min-width: 782px) and (max-width: 1024px) {
	.cd-main .cd-grid-3 { gap: 16px !important; }
	.cd-card > * { margin-left: 20px; margin-right: 20px; }
	.cd-card h3 { font-size: 19px; }
}
@media (max-width: 599px) {
	.cd-main .cd-quick-grid { grid-template-columns: 1fr; }
}

/* ---------- Service pages: body + sidebar ---------- */
.cd-body-cols { gap: clamp(32px, 5vw, 64px) !important; align-items: flex-start !important; }
.cd-body-cols .cd-prose { max-width: none; }
.cd-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.cd-aside > * { margin: 0 !important; }
.cd-side-card { padding: 24px 0 26px; }
.cd-side-card > * { margin-left: 24px; margin-right: 24px; }
.cd-side-card > :first-child { margin-top: 0; }
.cd-side-card h3 { font-size: 20px; margin-top: 6px; }
.cd-side-card p { font-size: 16px; color: var(--cd-navy); margin-bottom: 10px; }
.cd-side-card .wp-block-buttons { margin-top: 8px; gap: 10px; }
.cd-side-card .wp-block-button__link { padding: 11px 18px; font-size: 15px; min-height: 44px; }
.cd-small, .cd-card .cd-small { font-size: 14px !important; color: var(--cd-muted) !important; line-height: 1.55; }
@media (max-width: 1024px) {
	.cd-main .cd-body-cols { flex-wrap: wrap !important; }
	.cd-main .cd-body-cols > .wp-block-column { flex-basis: 100% !important; }
	.cd-aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.admin-bar .cd-aside { top: 142px; }

.cd-areas { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cd-areas li { background: var(--cd-soft); border: 1px solid var(--cd-border); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--cd-navy); line-height: 1.3; }

.cd-callout { background: var(--cd-soft); border: 1px solid var(--cd-tint); border-left: 0; border-radius: 16px; padding: 22px 24px; margin: 28px 0 !important; position: relative; overflow: hidden; }
.cd-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cd-blue); }
.cd-callout-title { margin: 0 0 8px; color: var(--cd-blue-dark); font-size: 15px; letter-spacing: 0.02em; }
.cd-callout ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.cd-callout .cd-small { margin: 12px 0 0; }

.cd-sources { border-top: 1px solid var(--cd-border); margin-top: 48px !important; padding-top: 20px; }
.cd-sources-list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--cd-muted); display: flex; flex-direction: column; gap: 6px; }
.cd-sources-list a { color: var(--cd-muted); }
.cd-sources-list a:hover { color: var(--cd-blue); }

/* ---------- Resources page ---------- */
.cd-resources .cd-res-heading { font-size: clamp(24px, 2.6vw, 30px); margin: 48px 0 18px; }
.cd-resources .cd-res-heading:first-child { margin-top: 0; }
.cd-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cd-res-grid > * { margin: 0 !important; }
.cd-res-card { padding: 22px 0 22px; }
.cd-res-card > * { margin-left: 22px; margin-right: 22px; }
.cd-res-card > :first-child { margin-top: 0; }
.cd-res-source { font-size: 13px !important; font-weight: 600; color: var(--cd-blue) !important; margin-bottom: 4px; }
.cd-res-card h3 { font-size: 19px; line-height: 1.3; margin: 0 22px 8px; }
.cd-res-card h3 a::after { content: " ↗"; font-weight: 400; color: var(--cd-blue); }
.cd-res-card p:last-child { font-size: 15px; margin-bottom: 0; }
.cd-resources .cd-note { margin-top: 48px; }

/* ---------- Footer legal + credit ---------- */
.cd-legal { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: baseline; width: 100%; }
.cd-credit { font-size: 12px; color: #8C9AB0; margin: 0; }
.cd-footer .cd-credit a { color: #B7C3D6; text-decoration: underline; text-underline-offset: 2px; }
.cd-footer .cd-credit a:hover { color: var(--cd-mint); }
.cd-footer-bottom > * { flex: 1 1 100%; }
.cd-side-card .cd-areas { margin: 6px 24px 0; }

/* ---------- v1.3: feature grids, steps, about, local ---------- */
.cd-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 28px !important; }
.cd-feature-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cd-feature-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cd-feature-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cd-feature-grid-2, .cd-feature-grid-3 { grid-template-columns: 1fr; } }
.cd-feature-grid > * { margin: 0 !important; }
.cd-feature { background: #fff; border: 1px solid var(--cd-border); border-radius: 16px; padding: 22px 24px; position: relative; }
.cd-feature::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 4px; background: var(--cd-blue); margin-bottom: 14px; }
.cd-feature h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }
.cd-feature p { margin: 0; font-size: 15px; color: var(--cd-muted); line-height: 1.55; }
.cd-bg-soft .cd-feature { border-color: transparent; }
.cd-prose .cd-feature-grid { margin: 20px 0 8px !important; }
.cd-bg-navy .cd-feature { background: var(--cd-navy-2); border-color: transparent; }
.cd-bg-navy .cd-feature p { color: #B7C3D6; }

.cd-about-cols, .cd-local-cols { gap: clamp(32px, 5vw, 64px) !important; align-items: center !important; }
.cd-about-cols .cd-feature-grid { margin-top: 0 !important; }
.cd-about h2, .cd-why h2, .cd-local h2 { margin-top: 8px; }
@media (max-width: 1024px) {
	.cd-main .cd-about-cols, .cd-main .cd-local-cols { flex-wrap: wrap !important; }
	.cd-main .cd-about-cols > .wp-block-column, .cd-main .cd-local-cols > .wp-block-column { flex-basis: 100% !important; }
}

.cd-steps { gap: 18px !important; margin-top: 28px !important; margin-bottom: 28px; }
.cd-steps > .wp-block-column { display: flex; }
.cd-steps > .wp-block-column > * { flex: 1; }
.cd-step { background: #fff; border: 1px solid var(--cd-border); border-radius: 16px; padding: 24px; }
.cd-bg-soft .cd-step { border-color: transparent; }
.cd-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--cd-blue); color: #fff; font-family: var(--cd-head); font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 0 14px; font-size: 16px; }
.cd-step h3 { font-size: 18px; margin: 0 0 6px; }
.cd-step p:last-child { font-size: 15px; color: var(--cd-muted); margin: 0; }
@media (min-width: 782px) and (max-width: 1024px) {
	.cd-main .cd-steps { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cd-checks-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px !important; }
@media (max-width: 600px) { .cd-checks-2 { grid-template-columns: 1fr; } }

.cd-side-accent { background: var(--cd-navy); border-color: var(--cd-navy); }
.cd-side-accent .cd-label { color: var(--cd-mint) !important; }
.cd-side-accent h3, .cd-side-accent p { color: #fff !important; }
.cd-side-accent .cd-small { color: #C9D4E5 !important; }
.cd-side-accent .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--cd-navy); }
.cd-side-accent .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #3B4E6E; }
.cd-side-links { list-style: none; padding: 0; margin: 6px 24px 0 !important; display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }

.cd-intro { padding-bottom: 0; }
.cd-faq-wrap { margin-left: auto; margin-right: auto; }
.cd-faq-wrap h2:first-child { margin-top: 0; }
.cd-res-intro { margin-bottom: 8px; }
.cd-res-checklists { margin-bottom: 24px !important; }
.cd-res-checklists .cd-feature { background: var(--cd-soft); border-color: transparent; }
.cd-nav .cd-nav-concierge > .wp-block-navigation-item__content { color: var(--cd-blue); }

/* Hamburger menu below 782px (WordPress default switches at 600px) */
@media (max-width: 781px) {
	.cd-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.cd-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-flex !important; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--cd-border); }
	.cd-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
}
.cd-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none !important; padding: 4px 0 0 !important; min-width: 0 !important; background: transparent !important; }
.cd-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 6px 0; font-size: 17px; color: var(--cd-muted); }
.cd-topbar-hours { margin-left: 18px; padding-left: 18px; border-left: 1px solid #3B4E6E; color: #C9D4E5; }
@media (max-width: 900px) { .cd-topbar-hours { display: none; } }
.cd-main .cd-info > .wp-block-column { flex: 1 1 calc(50% - 20px) !important; }
