/*
Theme Name: My Hearing Doctor
Template: systemstrap
Version: 0.2.3
Description: A SystemStrap child theme for My Hearing Doctor.
Text Domain: my-hearing-doc
*/
.mhd-header,.mhd-footer,.mhd-home-hero,.mhd-home-care,.mhd-home-services,.mhd-home-aids,.mhd-home-reviews,.mhd-home-visit,.mhd-home-contact {
  --mhd-ink: var(--wp--preset--color--contrast);
  --mhd-green: var(--wp--preset--color--secondary);
  color:var(--mhd-ink);
  font-size:1.0625rem;
  line-height:1.65;
}
.mhd-header {padding:1rem clamp(1rem,3vw,2.5rem);border-bottom:1px solid var(--wp--preset--color--border-color)}
.mhd-header-inner,.mhd-footer-inner {display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.mhd-brand {display:flex;align-items:center;gap:1rem;min-width:0}
.mhd-brand .mhd-brand-logo {flex:0 0 64px;width:64px;margin:0}
.mhd-brand-logo img {display:block;width:100%;height:auto;object-fit:contain}
.mhd-brand-copy {min-width:0;margin:0}
.mhd-brand-name {font-size:1.4rem;font-weight:700;line-height:1.25;margin:0}
.mhd-brand-tag {font-size:.95rem;margin:0}
.mhd-nav {margin:0;gap:.5rem;justify-content:center}
.mhd-header .wp-block-button__link,.mhd-home-hero .wp-block-button__link,.mhd-home-care .wp-block-button__link,.mhd-home-services .wp-block-button__link,.mhd-home-aids .wp-block-button__link,.mhd-home-reviews .wp-block-button__link,.mhd-home-visit .wp-block-button__link,.mhd-home-contact .wp-block-button__link {
  box-sizing:border-box;min-height:48px;display:flex;align-items:center;justify-content:center;padding:.7rem 1.15rem;font-size:1rem;font-weight:600;line-height:1.35;text-align:center;
  background:var(--mhd-green);color:#fff;border:1px solid var(--mhd-green);border-radius:var(--wp--custom--border-radius);
}
:is(.mhd-header,.mhd-home-hero,.mhd-home-care,.mhd-home-services,.mhd-home-aids,.mhd-home-reviews,.mhd-home-visit,.mhd-home-contact) .is-style-outline>.wp-block-button__link {background:transparent;color:var(--mhd-green);border:1px solid var(--mhd-green)}
:is(.mhd-header,.mhd-footer,.mhd-home-hero,.mhd-home-care,.mhd-home-services,.mhd-home-aids,.mhd-home-reviews,.mhd-home-visit,.mhd-home-contact) :is(a,button,input,textarea,select):focus-visible {outline:3px solid #195b80;outline-offset:3px}
.mhd-home-hero,.mhd-home-visit,.mhd-home-contact {padding:clamp(2rem,5vw,5rem) clamp(1rem,3vw,2.5rem)}
.mhd-home-hero {background:var(--wp--preset--color--tertiary-bg)}
.mhd-hero-grid,.mhd-visit-grid,.mhd-contact-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:clamp(1.5rem,4vw,4rem)}
.mhd-hero-grid>* ,.mhd-visit-grid>* ,.mhd-contact-grid>* {min-width:0;margin-block:0}
.mhd-hero-image img {width:100%;height:clamp(340px,40vw,580px);object-fit:cover;object-position:70% center;border-radius:var(--wp--custom--border-radius)}
.mhd-home-hero h1 {font-size:clamp(2.5rem,4.3vw,4.5rem);line-height:1.08;letter-spacing:-.025em}
.mhd-eyebrow {font-size:.95rem;font-weight:700;color:var(--mhd-green);letter-spacing:.035em}
.mhd-hero-phone {font-size:1.4rem;font-weight:700}
.mhd-hero-phone a,.mhd-footer a,.mhd-office a {color:var(--mhd-green)}
:is(.mhd-home-care,.mhd-home-services,.mhd-home-aids,.mhd-home-reviews) {padding-block:clamp(2.5rem,5vw,5rem)!important}
:is(.mhd-home-care,.mhd-home-services,.mhd-home-aids,.mhd-home-reviews,.mhd-home-visit,.mhd-home-contact) h2 {font-size:clamp(2rem,3vw,3rem);line-height:1.17}
:is(.mhd-home-care,.mhd-home-services,.mhd-home-aids,.mhd-home-reviews) p.has-medium-font-size {font-size:1.0625rem!important;line-height:1.65}
.mhd-home-care,.mhd-home-services {container-type:inline-size}
.mhd-home-care .mhd-care-grid,.mhd-home-services .is-style-equal-heights {grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.mhd-home-care .mhd-care-grid>.is-style-system-panel,.mhd-home-services .is-style-equal-heights>.is-style-system-panel {background:var(--wp--preset--color--base);border:1px solid var(--wp--preset--color--border-color);box-shadow:0 4px 18px rgba(23,48,40,.06)}
.mhd-home-care .wp-block-image img {width:100%;aspect-ratio:4/3;object-fit:cover}
.mhd-home-care .wp-block-button,.mhd-home-services .wp-block-button {width:100%}
.mhd-home-services .is-style-system-panel-header {align-items:center}
.mhd-service-icon.wp-block-group {box-sizing:border-box;flex:0 0 60px;width:60px;height:60px;min-height:60px;padding:0;display:grid;place-items:center}
.mhd-service-icon>.wp-block-image {margin:0}
.mhd-service-icon img {display:block;width:48px;height:48px;object-fit:contain}
.mhd-home-visit {background:var(--wp--preset--color--secondary-bg)}
.mhd-visit-grid {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
.mhd-portrait {justify-self:center;width:min(100%,360px)}
.mhd-portrait img {width:100%;height:auto;display:block}
.mhd-home-visit h2 {font-size:clamp(2.5rem,4vw,4rem)}
.mhd-contact-grid {align-items:start;margin-top:2rem}
.mhd-office,.mhd-form {padding:clamp(1rem,3vw,2rem);border:1px solid var(--wp--preset--color--border-color);border-radius:var(--wp--custom--border-radius);background:var(--wp--preset--color--tertiary-bg)}
.mhd-form {background:var(--wp--preset--color--base)}
.mhd-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select) {font-size:1rem;min-height:48px;max-width:100%;box-sizing:border-box}
.mhd-form label {font-size:1rem;font-weight:600}
.mhd-form button[type=submit] {min-height:48px;font-size:1rem;background:var(--mhd-green);color:white}
.mhd-footer {padding:2rem clamp(1rem,3vw,2.5rem)}
.mhd-footer .mhd-brand-logo {width:64px;flex-basis:64px}
.mhd-footer-phone {font-weight:700;font-size:1.25rem}
.mhd-copyright {text-align:center;border-top:1px solid var(--wp--preset--color--border-color);padding-top:1rem;font-size:.9rem}
:is(#about,#services,#product-info,#testimonial,#contact) {scroll-margin-top:2rem}
@container (max-width:62rem) {
 .mhd-home-care .mhd-care-grid,.mhd-home-services .is-style-equal-heights {grid-template-columns:repeat(2,minmax(0,1fr))}
 .mhd-home-care .mhd-care-grid {background-image:url("assets/media/my-hearing-doc-logo-redux.webp");background-repeat:no-repeat;background-position:right 2rem bottom 2rem;background-size:calc(35% - 2rem) auto}
}
@container (max-width:40rem) {
 .mhd-home-care .mhd-care-grid,.mhd-home-services .is-style-equal-heights {grid-template-columns:minmax(0,1fr);background-image:none}
}
@media(max-width:900px) {
 .mhd-header-inner,.mhd-footer-inner {flex-direction:column;align-items:center;text-align:center}
 .mhd-brand {justify-content:center;text-align:left}
 .mhd-nav {width:100%}
 .mhd-nav .wp-block-button {flex:1 1 0;min-width:0}
 .mhd-nav .wp-block-button__link {width:100%;padding-inline:.5rem}
}
@media(max-width:781px) {
 .mhd-hero-grid,.mhd-visit-grid,.mhd-contact-grid {grid-template-columns:minmax(0,1fr)}
 .mhd-hero-image {grid-row:1}
 .mhd-hero-image img {height:clamp(220px,65vw,380px)}
 .mhd-home-hero .wp-block-buttons,.mhd-home-visit .wp-block-buttons {display:grid;grid-template-columns:1fr}
 .mhd-home-hero .wp-block-button__link,.mhd-home-visit .wp-block-button__link {width:100%}
 .mhd-portrait {width:min(75%,300px)}
}
@media(max-width:360px) {
 .mhd-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .mhd-brand-name {font-size:1.15rem}
 .mhd-brand-tag {font-size:.85rem}
}

/* Keep navigation labels intact and card headings aligned. */
.mhd-header .mhd-nav .wp-block-button__link {white-space:nowrap;overflow-wrap:normal;word-break:normal}
@media(max-width:900px) {
 .mhd-header .mhd-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.375rem}
 .mhd-header .mhd-nav .wp-block-button__link {padding-inline:.25rem;font-size:clamp(.875rem,2.2vw,1rem)}
}
@media(max-width:400px) {
 .mhd-header .mhd-nav {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (min-width:40.01rem) {
 .mhd-care-grid>.is-style-system-panel>h3 {min-block-size:2.6em}
 .mhd-home-services .is-style-system-panel-header {min-block-size: max(60px,3.8rem)}
 .mhd-home-services .is-style-system-panel-header h3 {min-block-size:2.6em;display:flex;align-items:center}
}
