/*
Theme Name: Dementia@Home
Description: Website theme for Dementia@Home. Every page is built from normal editable blocks: click any text to change it, or any photo to replace it.
Version: 1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Author: Dementia@Home
Text Domain: dementia-at-home
License: GPLv2 or later
*/

:root{--dah-brand:#8e1490;--dah-brand-dark:#6b0c6d;--dah-tint:#f6ecf6;--dah-ink:#2c2230;--dah-soft:#5d5065;--dah-line:#f0e6dc;--dah-shadow:0 1px 2px rgba(44,34,48,.04),0 12px 28px -18px rgba(44,34,48,.22);}
body{-webkit-font-smoothing:antialiased;}
:focus-visible{outline:2px solid var(--dah-brand);outline-offset:3px;}
::selection{background:var(--dah-tint);}

/* Space between page sections */
.wp-block-post-content > *{margin-block-start:0;}
.wp-block-post-content > * + *{margin-block-start:clamp(56px,8vw,96px);}

/* Header */
header.wp-block-template-part{position:sticky;top:var(--wp-admin--admin-bar--height,0);z-index:30;background:rgba(253,249,244,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--dah-line);}
.dah-header{padding:14px 0;gap:24px;}
.dah-logo{margin:0;flex-shrink:0;}
.dah-logo img{height:46px;width:auto;display:block;}
.wp-block-navigation{gap:24px;}
.wp-block-navigation a:hover{color:var(--dah-brand);}
.wp-block-navigation .dah-phone a{color:var(--dah-brand-dark);}
.wp-block-navigation .wp-block-navigation__submenu-container{background:#fff !important;border:1px solid var(--dah-line) !important;border-radius:20px;padding:10px !important;box-shadow:0 18px 40px rgba(44,34,48,.12);}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:9px 12px !important;border-radius:12px;}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover{background:var(--dah-tint);}
.wp-block-navigation .wp-block-button__link{padding:13px 20px;font-size:15px;}
.wp-block-navigation__responsive-container-open{background:var(--dah-tint);color:var(--dah-brand);border-radius:999px;padding:11px;}
.wp-block-navigation__responsive-container.is-menu-open{padding:24px !important;}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{gap:18px;font-size:19px;}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{border:0 !important;box-shadow:none;padding:6px 0 0 16px !important;background:transparent !important;}

/* Text */
.dah-eyebrow{font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--dah-brand);margin-bottom:0;}
.dah-eyebrow + .wp-block-heading{margin-top:12px;}
.dah-center{text-align:center;}
.dah-intro > p{max-width:62ch;}
.dah-intro > .wp-block-heading{max-width:24ch;}
.wp-block-column > p{max-width:54ch;}
.has-large-font-size{line-height:1.6;}
.dah-intro + .dah-grid{margin-top:36px;}

/* Icons */
.dah-icon{width:56px !important;height:56px !important;flex:0 0 56px;border-radius:999px;background:var(--dah-tint);color:var(--dah-brand);font-size:30px;display:flex;align-items:center;justify-content:center;font-style:normal;}
.dah-icon + .wp-block-heading{margin-top:20px;}

/* Cards, bands, sections */
.is-style-card{background:#fff;border-radius:28px;padding:32px;box-shadow:var(--dah-shadow);}
.is-style-card > :first-child{margin-top:0;}
.is-style-card h3{color:var(--dah-ink);}
.is-style-band{background:var(--dah-brand);border-radius:36px;padding:clamp(32px,5vw,56px) clamp(24px,4vw,48px);gap:32px !important;}
.is-style-band > .wp-block-group:first-child{flex:1 1 380px;}
.is-style-band > .wp-block-group > .wp-block-heading{color:#fff;margin:0;max-width:24ch;}
.is-style-band > .wp-block-group > p{color:rgba(255,255,255,.9);max-width:50ch;}
.is-style-band .dah-eyebrow{color:#f3d9f3;}
.is-style-band > .is-style-card{flex:0 1 340px;}
.is-style-tinted{background:var(--dah-tint);padding-top:clamp(48px,7vw,74px);padding-bottom:clamp(48px,7vw,74px);}
.dah-plain{padding:8px 4px;}
.dah-stack .wp-block-column{display:flex;flex-direction:column;gap:20px;}
.dah-stack .wp-block-column > *{margin:0;}

/* Buttons */
.wp-block-button .wp-block-button__link{transition:transform .15s ease,background .15s ease,color .15s ease;}
.wp-block-button .wp-block-button__link:hover{transform:translateY(-1px);}
.wp-block-button.is-style-outline > .wp-block-button__link{background:transparent;color:var(--dah-brand-dark);border:2px solid var(--dah-brand);padding:15px 26px;}
.wp-block-button.is-style-outline > .wp-block-button__link:hover{background:var(--dah-tint);color:var(--dah-brand-dark);}
.wp-block-button.is-style-light > .wp-block-button__link{background:#fff;color:var(--dah-brand-dark);border-color:#fff;}
.wp-block-button.is-style-light > .wp-block-button__link:hover{background:var(--dah-tint);border-color:var(--dah-tint);}
.is-style-band .wp-block-button.is-style-outline > .wp-block-button__link{color:#fff;border-color:rgba(255,255,255,.6);}
.is-style-band .wp-block-button.is-style-outline > .wp-block-button__link:hover{background:rgba(255,255,255,.12);color:#fff;}
.wp-block-buttons{gap:14px;}

/* Images */
.is-style-soft img,.wp-block-gallery .wp-block-image img{border-radius:28px;}
.wp-block-gallery.has-nested-images{gap:16px;}
.dah-hero-badge{position:relative;display:inline-flex;margin:-34px 0 0 -18px !important;background:#fff;border-radius:22px;padding:15px 20px;box-shadow:0 16px 34px -20px rgba(44,34,48,.35);font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:15px;color:var(--dah-ink);}

/* Testimonials & team */
.dah-stars{color:var(--dah-brand);font-size:19px;letter-spacing:3px;margin:0;}
.is-style-card .dah-stars + p{color:var(--dah-ink);}
.dah-name{font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:15px;color:var(--dah-brand);}
.dah-team{gap:24px !important;align-items:stretch !important;}
.dah-team > .is-style-card{flex:0 1 350px;}
.dah-team .wp-block-image{margin:0 0 20px;}
.dah-team h3{margin:0;}
.dah-role{font-family:var(--wp--preset--font-family--heading);font-weight:700;color:var(--dah-brand);margin-top:6px;}
.dah-small{font-size:14.5px;}

/* Lists */
.dah-checks{list-style:none;padding:0;display:flex;flex-direction:column;gap:12px;}
.dah-checks li{position:relative;padding-left:34px;font-weight:600;color:var(--dah-ink);}
.dah-checks li::before{content:"";position:absolute;left:0;top:1px;width:23px;height:23px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23ecd4ec'/%3E%3Cpath d='M7.5 12.5l3 3 6-6' fill='none' stroke='%238e1490' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;}
.dah-steps{padding-left:22px;display:flex;flex-direction:column;gap:10px;color:var(--dah-ink);}
.dah-steps li::marker{color:var(--dah-brand);font-weight:800;}

/* FAQs */
.dah-faqs{display:flex;flex-direction:column;gap:14px;max-width:860px;}
.dah-faqs > *{margin:0 !important;}
.wp-block-details.dah-faq{background:#fff;border-radius:20px;padding:22px 26px;box-shadow:var(--dah-shadow);}
.wp-block-details.dah-faq > summary{cursor:pointer;list-style:none;display:flex;align-items:flex-start;gap:14px;font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:17.5px;line-height:1.4;color:var(--dah-ink);}
.wp-block-details.dah-faq > summary::-webkit-details-marker{display:none;}
.wp-block-details.dah-faq > summary::after{content:"+";margin-left:auto;color:var(--dah-brand);font-size:26px;line-height:1;}
.wp-block-details.dah-faq[open] > summary::after{content:"\2013";}
.wp-block-details.dah-faq > p{margin:14px 0 0;}

/* Quote */
.wp-block-pullquote{border:0;padding:0;text-align:left;margin-left:0;}
.wp-block-pullquote blockquote{max-width:34ch;}
.wp-block-pullquote blockquote::before{content:"\201C";display:block;font-family:var(--wp--preset--font-family--heading);font-weight:800;font-size:90px;line-height:.7;color:var(--dah-brand);}
.wp-block-pullquote p{font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:clamp(23px,2.6vw,32px);line-height:1.3;color:var(--dah-ink);}
.wp-block-pullquote cite{display:block;margin-top:16px;font-family:var(--wp--preset--font-family--heading);font-weight:700;font-style:normal;font-size:15px;text-transform:none;color:var(--dah-brand);}

/* Carers group date card */
.dah-datecard{border-radius:36px;padding:clamp(32px,5vw,52px);}
.dah-datecard p{color:#fff;margin:0;}
.dah-date-big{font-family:var(--wp--preset--font-family--heading);font-weight:800;font-size:clamp(72px,9vw,110px);line-height:1;}
.dah-date-day{font-family:var(--wp--preset--font-family--heading);font-weight:800;font-size:clamp(30px,3.4vw,42px);line-height:1.1;}
.dah-datecard .dah-date-time{display:inline-block;margin-top:20px;background:rgba(255,255,255,.16);border-radius:999px;padding:10px 18px;font-weight:700;}

/* Forms */
.dah-form{display:flex;flex-direction:column;gap:20px;background:#fff;border-radius:28px;padding:32px;box-shadow:var(--dah-shadow);}
.dah-form h2{font-size:22px;color:var(--dah-ink);margin:10px 0 0;}
.dah-form h2:first-child{margin-top:0;}
.dah-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.dah-label{display:block;font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:14.5px;color:var(--dah-ink);margin-bottom:7px;}
.dah-form input[type=text],.dah-form input[type=email],.dah-form input[type=tel],.dah-form textarea{width:100%;box-sizing:border-box;font:16px var(--wp--preset--font-family--body);color:var(--dah-ink);background:#fff;border:2px solid #e7dcdf;border-radius:16px;padding:14px 16px;}
.dah-form input:focus,.dah-form textarea:focus{border-color:var(--dah-brand);outline:none;}
.dah-choices{display:flex;flex-direction:column;gap:10px;}
.dah-choice{display:flex;align-items:center;gap:10px;font-size:16px;color:var(--dah-ink);cursor:pointer;}
.dah-choice input{accent-color:var(--dah-brand);width:20px;height:20px;flex-shrink:0;}
.dah-form button{align-self:flex-start;font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:16px;line-height:1;padding:17px 28px;border-radius:999px;border:0;background:var(--dah-brand);color:#fff;cursor:pointer;}
.dah-form button:hover{background:var(--dah-brand-dark);}
.dah-contactlinks{font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:18px;line-height:1.7;}

/* Footer */
.dah-awards{background:#fff;border-top:1px solid var(--dah-line);padding-top:46px;padding-bottom:44px;}
.dah-awards .dah-eyebrow{color:#8b7f91;margin-bottom:26px;}
.dah-badges{gap:44px !important;}
.dah-badges .wp-block-image{margin:0;}
.dah-badges img{height:84px !important;width:auto !important;display:block;}
.dah-footer{padding-top:52px;padding-bottom:40px;}
.dah-footlogo{margin:0;}
.dah-footlogo img{height:52px;width:auto;}
.dah-footcol > *{margin:0 0 10px !important;font-size:15px;}
.dah-footcol h3{font-size:15px;color:var(--dah-ink);margin-bottom:14px !important;}
.dah-footcol .wp-block-social-links{margin-top:6px !important;}
.dah-cqc{border-radius:28px;padding:30px 34px;margin-top:44px !important;gap:24px !important;}
.dah-cqc .dah-eyebrow{color:#8b7f91;}
.dah-cqc-rating{margin:6px 0 0;color:var(--dah-soft);}
.dah-cqc-rating strong{font-family:var(--wp--preset--font-family--heading);font-weight:800;font-size:38px;line-height:1;color:var(--dah-brand);margin-right:8px;}
.dah-cqc-areas{margin:10px 0 0;font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:14px;color:var(--dah-brand-dark);}
.dah-copy{font-size:13.5px;color:#8b7f91;margin-top:36px !important;}

/* Tablet & mobile */
@media (max-width:781px){
	.dah-hero > .wp-block-column:last-child{order:-1;}
	.dah-hero-badge{margin:16px 0 0 !important;box-shadow:none;}
	.is-style-card,.dah-form{padding:24px;}
	.is-style-band{border-radius:26px;}
	.dah-pair{grid-template-columns:1fr;}
	.dah-badges{gap:26px !important;}
	.dah-badges img{height:66px !important;}
	.dah-cqc{padding:26px;}
}
@media (max-width:640px){
	.wp-block-post-content .wp-block-buttons,.wp-block-post-content .wp-block-button,.wp-block-post-content .wp-block-button__link{width:100%;}
	.wp-block-post-content .wp-block-button__link{text-align:center;justify-content:center;}
	.dah-form button{width:100%;}
}
