/*
Theme Name: Dube & Pottas
Template: twentytwentyfive
Description: Twenty Twenty-Five child theme matching the Dube & Pottas Inc. look (replaces Accu + WPBakery).
Version: 1.0.0
Text Domain: dubepottas
*/

/* Header top bar: icon before the email and phone links */
.dp-topbar p a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; margin-right: 22px; }
.dp-topbar p a:hover { color: #f0f8eb; }
.dp-topbar p a::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--dp-ico) center / contain no-repeat; mask: var(--dp-ico) center / contain no-repeat; }
.dp-topbar a[href^="mailto:"] { --dp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 4h20v16H2zM4 6v.5l8 5 8-5V6zm0 2.8V18h16V8.8l-8 5z'/%3E%3C/svg%3E"); }
.dp-topbar a[href^="tel:"] { --dp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }

/* Main menu: uppercase, dark, underline on the current page */
.dp-mainnav .wp-block-navigation-item__content { padding: 8px 4px; border-bottom: 2px solid transparent; text-decoration: none !important; }
.dp-mainnav .current-menu-item > .wp-block-navigation-item__content,
.dp-mainnav .wp-block-navigation-item__content:hover { border-bottom-color: #2a2929; }

/* Page title band with the lotus above the title */
.dp-band .wp-block-post-title, .dp-band h1 { color: #fff; margin: 0; }
.dp-band::before { content: ""; display: block; width: 43px; height: 26px; margin: 0 auto 14px; background: url("assets/lotus.svg") center / contain no-repeat; }

/* Section headings: small script line, short rule, green title */
.dp-kicker { font-family: var(--wp--preset--font-family--courgette); font-size: 18px; color: #1c1c1c; margin-bottom: 0; }
.dp-kicker::after { content: ""; display: block; width: 20px; height: 2px; background: #ccc; margin: 10px 0 12px; }
.dp-kicker.has-text-align-center::after { margin-left: auto; margin-right: auto; }

/* Rotating hero and quotes: one child visible at a time */
.dp-rotator { position: relative; }
.dp-rotator > .dp-slide { display: none; }
.dp-rotator > .dp-slide.is-active { display: flex; animation: dp-fade .6s ease; }
.dp-rotator > p.dp-slide.is-active { display: block; }
@keyframes dp-fade { from { opacity: 0 } to { opacity: 1 } }
.dp-rotator-nav { z-index: 3; position: absolute; inset: 50% 0 auto; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); padding: 0 20px; }
.dp-rotator-nav button { pointer-events: auto; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 6px 10px; }
.dp-rotator button:focus:not(:focus-visible) { outline: none; }
.dp-rotator-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.dp-rotator-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.dp-rotator-dots button.is-active { background: #fff; }
.dp-hero .dp-rotator-dots { z-index: 3; position: absolute; bottom: 20px; left: 0; right: 0; }
.dp-hero .wp-block-cover { min-height: 600px; }
.dp-hero h2 { text-shadow: 0 2px 8px rgba(0,0,0,.45); }
@media (max-width: 781px) {
	.dp-hero .wp-block-cover { min-height: 420px; }
	.dp-hero h2 { font-size: 32px !important; }
	.dp-rotator-nav { padding: 0 2px; }
	.dp-rotator-nav button { font-size: 30px; }
	.dp-rotator > p.dp-slide { padding: 0 30px; }
}

/* Service tiles */
.dp-service img { height: 75px; width: auto; }
.dp-service h3::after { content: ""; display: block; width: 20px; height: 2px; background: var(--wp--preset--color--primary); margin: 14px auto 0; }

/* Framed portrait on About */
.dp-portrait img { border: 6px solid #fff; box-shadow: 0 0 0 1px #eee; }

/* WPForms: brand the submit button */
.wpforms-container button[type=submit], .wpforms-container .wpforms-submit { background: var(--wp--preset--color--primary) !important; border-color: var(--wp--preset--color--primary) !important; border-radius: 0 !important; font-family: var(--wp--preset--font-family--quicksand) !important; }

/* Contact list on Contact Info */
.dp-contact-list p { border-bottom: 1px dashed #333; padding: 14px 0 14px 40px; margin: 0; position: relative; }
.dp-contact-list p:last-child { border-bottom: 0; }
.dp-contact-list p::before { content: ""; position: absolute; left: 0; top: 14px; width: 24px; height: 24px; background: #555; -webkit-mask: var(--dp-ico) center / contain no-repeat; mask: var(--dp-ico) center / contain no-repeat; }
.dp-contact-list .dp-tel { --dp-ico: 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.3'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.dp-contact-list .dp-mail { --dp-ico: 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.3'%3E%3Cpath d='M2.5 5.5h19v13h-19zM2.5 5.5l9.5 7 9.5-7'/%3E%3C/svg%3E"); }
.dp-contact-list .dp-pin { --dp-ico: 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.3'%3E%3Cpath d='M12 22s7-7.3 7-12.5a7 7 0 0 0-14 0C5 14.7 12 22 12 22z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.dp-contact-list .dp-time { --dp-ico: 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.3'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l3 2M10 2h4M12 2v3'/%3E%3C/svg%3E"); }
.dp-rule { width: 30px; height: 2px; background: var(--wp--preset--color--primary); border: 0; margin: 0 0 20px; }

/* Blog cards */
.dp-card { background: #f4f4f4; height: 100%; }
.dp-card .wp-block-post-title a { color: #535353; text-decoration: none; }
.dp-card .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }

/* Footer menu and links */
.dp-footer a { color: #fff; text-decoration: none; }
.dp-footer a:hover { color: #f0f8eb; }

/* Quote credit on About sits under the quote, centred */
.wp-block-quote.is-style-plain cite { display: block; text-align: center; font-family: Georgia, serif; font-style: italic; }

/* Phone menu overlay: keep the links off the screen edge */
.dp-mainnav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px 28px; }

/* Contact: hospital list that re-points the map */
.dp-hospitals { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 24px; }
.dp-hospitals li { break-inside: avoid; margin: 0 0 6px; }
.dp-hospitals button { all: unset; cursor: pointer; display: block; padding: 6px 10px; border-left: 3px solid transparent; color: #333; }
.dp-hospitals button:hover, .dp-hospitals button:focus-visible { color: var(--wp--preset--color--primary); border-left-color: var(--wp--preset--color--primary); outline: none; }
.dp-hospitals button[aria-pressed="true"] { color: var(--wp--preset--color--primary); border-left-color: var(--wp--preset--color--primary); font-weight: 600; }
