/* Dr Ian Yuen logo */
.site-header .custom-logo-link img.custom-logo, img.custom-logo{max-width:280px!important;width:280px!important;height:auto!important;}
@media (max-width:921px){.site-header .custom-logo-link img.custom-logo, img.custom-logo{max-width:190px!important;width:190px!important;}}
@media (max-width:400px){.site-header .custom-logo-link img.custom-logo, img.custom-logo{max-width:165px!important;width:165px!important;}}

/* Mobile menu button visible on white header */
.ast-mobile-header-wrap .menu-toggle, .ast-mobile-header-wrap .menu-toggle:hover, .ast-mobile-header-wrap .menu-toggle:focus{color:#345e7d!important;background:transparent!important;}
.ast-mobile-header-wrap .menu-toggle .ast-mobile-svg{fill:#345e7d!important;}
/* Location page title readable */
.page-id-1024 .entry-header{display:none;}
.page-id-1024 .entry-content h1{color:#ffffff;}

/* Locations: 3 across on tablet */
@media (min-width:768px) and (max-width:1024px){
 .elementor-inner-section:has(.elementor-widget-google_maps) > .elementor-container{flex-wrap:nowrap;}
 .elementor-inner-section:has(.elementor-widget-google_maps) > .elementor-container > .elementor-column{width:33.333%!important;}
}
/* Phone link visible in About text */
.elementor-element-59d34b67 a[href^="tel:"]{color:#ffffff;text-decoration:underline;}

/* Homepage About photos: even 2x2 grid on tablet */
@media (min-width:768px) and (max-width:1024px){
 .elementor-element-436f4368 .elementor-element-2bd2c080 .elementor-widget-wrap, .elementor-element-436f4368 .elementor-element-4366ad3c .elementor-widget-wrap{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:10px;}
 .elementor-element-436f4368 .elementor-widget-image{width:100%!important;max-width:100%!important;margin:0!important;position:static!important;transform:none!important;}
 .elementor-element-436f4368 .elementor-widget-image img{width:100%!important;height:200px!important;object-fit:cover;}
}

/* Equal-height cards */
.ihc-cards > .elementor-container{align-items:stretch;}
.ihc-cards > .elementor-container > .elementor-column > .elementor-widget-wrap{display:flex;flex-direction:column;flex-wrap:nowrap;height:100%;}
.ihc-cards .elementor-widget-icon-box{flex:1 1 auto;}
.ihc-cards .elementor-widget-icon-box > .elementor-widget-container{height:100%;}
@media (max-width:767px){.ihc-cards .elementor-widget-icon-box{flex:none;}}

/* Enquiry form styling */
.ihc-form .nf-form-content label, .ihc-form .nf-form-fields-required{font-family:Poppins,sans-serif;font-weight:600;font-size:14px;color:#2F3A3C;}
.ihc-form .nf-form-content input:not([type=button]):not([type=submit]), .ihc-form .nf-form-content textarea{background:#F4F1EC!important;border:1px solid #ddd6cb!important;border-radius:10px!important;font-family:Poppins,sans-serif;}
.ihc-form .nf-form-content input[type=button], .ihc-form .nf-form-content input[type=submit]{background:#345e7d!important;color:#fff!important;border:0!important;border-radius:40px!important;padding:12px 30px!important;font-family:Poppins,sans-serif;font-weight:600;cursor:pointer;}
/* Menu */
.main-header-menu .menu-link{font-family:Poppins,sans-serif;font-weight:500;letter-spacing:.5px;}
.main-header-menu .current-menu-item > .menu-link, .main-header-menu .menu-link:hover{color:#345e7d!important;}
.main-header-menu .current-menu-item > .menu-link{box-shadow:inset 0 -2px 0 #345e7d;}

/* Condition photo cards */
.ihc-cards .elementor-widget-image-box{flex:1 1 auto;}
.ihc-cards .elementor-widget-image-box > .elementor-widget-container{height:100%;overflow:hidden;}
.ihc-imgcard .elementor-image-box-wrapper{display:block;}
.ihc-imgcard .elementor-image-box-img{width:100%!important;margin:0!important;}
.ihc-imgcard .elementor-image-box-img img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:0;display:block;}
.ihc-imgcard .elementor-image-box-content{padding:22px 24px 26px;}
.ihc-imgcard .elementor-image-box-title{margin:0 0 8px;}
@media (max-width:767px){.ihc-cards .elementor-widget-image-box{flex:none;}}

/* 404 page */
body.error404{background:#F4F1EC}
body.error404 .error-404{max-width:720px;margin:0 auto;padding:90px 24px 110px;text-align:center}
body.error404 .page-title{font-family:'Josefin Sans',sans-serif;color:#2F3A3C;font-size:38px;line-height:1.2;margin-bottom:16px}
body.error404 .page-sub-title{font-family:'Poppins',sans-serif;color:#4a5558;font-size:17px;font-weight:400;line-height:1.6;margin-bottom:28px}
body.error404 .search-form{background:#fff;border:1px solid #cfe0ec;border-radius:30px;overflow:hidden}
body.error404 .search-form input[type=search]{border:0;background:#fff;color:#2F3A3C;padding:14px 22px}
body.error404 .search-form .search-submit,body.error404 .search-form button{color:#345e7d}
@media(max-width:544px){body.error404 .page-title{font-size:28px}body.error404 .error-404{padding:60px 20px 80px}}

body.error404 .search-form{display:flex;align-items:center}
body.error404 .search-form label{flex:1;margin:0}
body.error404 .search-form input[type=search]{width:100%;background-image:none!important}
body.error404 .search-form .search-submit{position:static;transform:none;background:none;border:0;padding:0 18px;line-height:1;display:flex;align-items:center}
body.error404 .search-form .search-submit svg{width:16px;height:16px;fill:#345e7d}
body.error404 .search-form label::before,body.error404 .search-form label::after,body.error404 .search-form::before,body.error404 .search-form::after{display:none!important}

body.error404 .search-form label{display:flex!important;align-items:center}
body.error404 .search-form input[type=submit]{display:none!important}

/* mobile cards */
@media(max-width:767px){.ihc-cards .elementor-widget-container{height:auto!important;min-height:0!important}.ihc-cards>.elementor-container>.elementor-column>.elementor-widget-wrap{padding:8px 0!important}.ihc-cards .elementor-widget-container{margin-bottom:0!important}}