/* Earworx component styles — Bootstrap 5.3 */

:root {
  --ew-navy: #082744;
  --ew-teal: #009aa9;
  --ew-light: #eef8fa;
  --ew-ink: #193a4e;
}

body {
  color: var(--ew-ink);
  font-family: system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height: 1.65;
}

h1, h2, h3 {
  color: var(--ew-navy);
  font-weight: 750;
  line-height: 1.17;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
}

a {
  color: #006b7c;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid #f4a340;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 9999;
  top: -80px;
  left: 20px;
  background: #fff;
  padding: 12px;
}

.skip-link:focus {
  top: 10px;
}

.ew-topbar {
  background: var(--ew-navy);
  color: #fff;
  font-size: .9rem;
}

.ew-topbar a, .ew-footer a {
  color: #fff;
}

.ew-header {
  background: #fff;
  box-shadow: 0 3px 16px #08274411;
  position: relative;
  z-index: 3;
}

.ew-header .navbar {
  min-height: 90px;
}

.navbar-brand img {
  max-width: 245px;
  width: 100%;
  height: auto;
}

.nav-link {
  color: var(--ew-navy);
  font-weight: 650;
}

.nav-link:hover, .nav-link.active {
  color: #007b8b!important;
}

.ew-btn {
  background: #007f90;
  color: white;
  border: 2px solid #007f90;
  border-radius: 8px;
  font-weight: 700;
  padding: .7rem 1.35rem;
}

.ew-btn:hover {
  background: #005969;
  color: white;
  border-color: #005969;
}

.ew-btn-outline {
  color: #006b7c;
  background: white;
  border: 2px solid #007f90;
  border-radius: 8px;
  font-weight: 700;
  padding: .7rem 1.35rem;
}

.ew-btn-outline:hover {
  background: #e5f6f7;
  border-color: #005969;
  color: #005969;
}

.ew-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e8f3f5;
  padding: clamp(5rem,9vw,9rem) 0;
}

.ew-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../../assets/img/hero-care.jpg?h=acad19b191f6406cbff6f7f2b9c006fa");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  opacity: .50;
}

.ew-hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#eff9fb 0%,#eff9fbee 45%,#eff9fb66 100%);
}

.eyebrow {
  color: #007789;
  font-size: .8rem;
  letter-spacing: .18em;
  font-weight: 800;
}

.ew-hero h1 {
  font-size: clamp(3rem,5.9vw,5.5rem);
  letter-spacing: -.04em;
}

.ew-hero h1 span {
  color: #007f90;
}

.ew-lead {
  font-size: clamp(1.15rem,1.7vw,1.4rem);
  max-width: 650px;
}

.ew-small {
  font-weight: 600;
  font-size: .91rem;
}

.ew-features {
  background: var(--ew-navy);
  color: #fff;
}

.ew-features strong {
  font-size: 1.15rem;
}

.ew-features p {
  margin: 0;
  color: #d8eef0;
}

.section-intro {
  max-width: 760px;
}

.ew-card {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  border: 1px solid #dcebef;
  box-shadow: 0 10px 25px #0827440e;
}

.ew-card h3 {
  font-size: 1.35rem;
}

.ew-card a {
  font-weight: 750;
}

.ew-card-icon {
  font-size: 1.5rem;
  color: #007f90;
  font-weight: 800;
  margin-bottom: 1rem;
}

.ew-about {
  background: #f3f8f9;
}

.ew-about-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ew-callout {
  background: #007789;
  color: #fff;
}

.ew-callout h2 {
  color: #fff;
}

.ew-footer {
  background: #082744;
  color: #e5f2f3;
}

.ew-footer h2 {
  color: white;
}

@media (max-width:767px) {
  .ew-hero {
    padding: 4rem 0;
  }
}

@media (max-width:767px) {
  .navbar-brand img {
    max-width: 190px;
  }
}

@media (max-width:767px) {
  .ew-header .navbar {
    min-height: 75px;
  }
}

/* Reusable Bootstrap Studio additions */

.ew-page-hero {
  position: relative;
  isolation: isolate;
  background: #eaf5f7;
  padding: clamp(4rem,7vw,7rem) 0;
  overflow: hidden;
}

.ew-page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: none;
  opacity: 0;
}

.ew-page-hero h1 {
  font-size: clamp(2.8rem,5vw,4.6rem);
}

.ew-page-hero .ew-lead {
  max-width: 750px;
}

.ew-pale {
  background: #f3f8f9;
}

.ew-reading {
  max-width: 850px;
}

.ew-reading h2:not(:first-child) {
  margin-top: 2rem;
}

.ew-reading p {
  font-size: 1.1rem;
}

.ew-card {
  transition: transform .15s ease,box-shadow .15s ease;
}

.ew-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px #08274418;
}

.ew-card a {
  margin-top: auto;
}

.ew-info-box {
  background: #eef8fa;
  border-left: 5px solid #007f90;
  border-radius: 10px;
  padding: 2rem;
}

.ew-info-box li {
  margin-bottom: .6rem;
}

.ew-note {
  padding: 1rem;
  background: #fff4da;
  border-left: 4px solid #b57200;
}

.ew-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ew-footer-list li {
  margin-bottom: .55rem;
}

.ew-footer-list.two-col {
  columns: 2;
}

.ew-footer-logo {
  background: white;
  border-radius: 6px;
  padding: 5px;
  max-width: 100%;
  height: auto;
}

.ew-legal {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

.ew-hero .ew-lead {
  max-width: 710px;
}

.dropdown-item:focus-visible {
  outline: 3px solid #f4a340;
  outline-offset: -3px;
}

.ew-header .dropdown .btn-link {
  text-decoration: none;
}

.py-lg-6 {
  padding-top: 5.5rem!important;
  padding-bottom: 5.5rem!important;
}

@media (max-width:767px) {
  .ew-footer-list.two-col {
    columns: 1;
  }
}

@media (max-width:767px) {
  .py-lg-6 {
    padding-top: 3rem!important;
    padding-bottom: 3rem!important;
  }
}

.ew-accessibility-hero::before {
  background-image: none;
  opacity: 0;
}

.ew-privacy-hero::before {
  background-image: none;
  opacity: 0;
}

/* Earwax Removal hero: reveal the full operator and ear-care procedure */

.ew-hero-photo.ew-services-photo {
  background-image: url("../../assets/img/Friendly%20Hearing%20Examination%20at%20Earworx.jpg?h=161d776b38aa8baaffe613d5504bbb8f");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.40;
}

.ew-hero-photo.ew-earplugs-photo {
  background-image: url("../../assets/img/Custom%20Moulded%20Ear%20Plugs%20Hero.jpg?h=3c9b8e1609b58cdedcf517f8bcd52509");
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.40;
}

.ew-hero-photo.ew-contact-photo {
  background-image: url("../../assets/img/Gary%20Earworx%20Reception%20Hero.jpg?h=68d1ab6679ad22aea46888eca317ffa7");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.40;
}

.ew-hero-photo.ew-carehome-photo {
  background-image: url("../../assets/img/Care%20Home%20Visits%20Hero.jpg?h=4de977c98ddb13fcdd4839db5e0df0a4");
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.40;
}

.ew-hero-photo.ew-tinnitus-photo {
  background-image: url("../../assets/img/Compassionate%20Hearing%20Consultation.jpg?h=85f506ad3f3fc5769b85ae0a88de0233");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.40;
}

.ew-hero-photo.ew-workplace-photo {
  background-image: url("../../assets/img/Workplace%20Ear%20Health%20Hero.jpg?h=b73c490460a6d5c83d37d0595cde9c5d");
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.40;
}

.ew-hero-photo.ew-about-photo {
  background-image: url("../../assets/img/Friendly%20Hearing%20Clinic%20Consultation.jpg?h=a5f1b37b83a26cd707834b806a7f86ba");
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.40;
}

.ew-page-hero.ew-photo-page-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 2.75rem 0;
}

.ew-hero-photo.ew-ear-checks-photo {
  background-image: url("../../assets/img/Warm%20Ear%20Examination%20in%20a%20Modern%20Clinic.jpg?h=88622ea9abf3026b78981de55f9ce248");
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.40;
}

.ew-hero-photo.ew-earwax-photo {
  background-image: url("../../assets/img/Earwax-Removal-Wide-Hero.jpg?h=b5d87d5dc85071183a42c2b810bd43bc");
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.40;
}

@media (max-width: 767.98px) {
  .ew-page-hero.ew-photo-page-hero {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767.98px) {
  .ew-page-hero.ew-photo-page-hero > .container {
    order: 1;
    min-height: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 767.98px) {
  .ew-page-hero.ew-photo-page-hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
  }
}

@media (max-width: 767.98px) {
  .ew-page-hero.ew-photo-page-hero .ew-lead {
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .ew-page-hero.ew-photo-page-hero > .ew-hero-photo {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #eaf5f7;
    opacity: 0.95;
  }
}

@media (max-width: 767.98px) {
  .ew-hero.ew-feature-hero {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  .ew-hero.ew-feature-hero > .container {
    order: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 767.98px) {
  .ew-hero.ew-feature-hero > .ew-hero-photo {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #e8f3f5;
    opacity: 0.95;
  }
}

@media (max-width: 767.98px) {
  .ew-hero.ew-feature-hero h1 {
    font-size: clamp(2.25rem,9vw,3rem);
    line-height: 1.13;
  }
}

/* Accessible keyboard focus for Earworx buttons */

.ew-btn:focus-visible {
  background-color: #005969;
  color: #ffffff;
  border-color: #005969;
  outline: 3px solid #082744;
  outline-offset: 3px;
}

/* Mobile photo hero: natural image ratios, no forced 16:9 crop or blank text height. Desktop hero rules unchanged. */

@media (max-width: 767.98px) {
  .ew-hero.ew-feature-hero > .ew-hero-photo.ew-services-photo {
    background-image: url("../../assets/img/Earworx%20Mobile%20Our%20Services.jpg?h=161d776b38aa8baaffe613d5504bbb8f");
  }
}

@media (max-width: 767.98px) {
  .ew-page-hero.ew-photo-page-hero > .ew-hero-photo.ew-contact-photo {
    background-image: url("../../assets/img/Earworx%20Mobile%20Contact.jpg?h=68d1ab6679ad22aea46888eca317ffa7");
  }
}

@media (max-width: 767.98px) {
  .ew-page-hero.ew-photo-page-hero > .ew-hero-photo.ew-carehome-photo {
    background-image: url("../../assets/img/Earworx%20Mobile%20Care%20Home%20Visits.jpg?h=4de977c98ddb13fcdd4839db5e0df0a4");
  }
}

@media (max-width: 767.98px) {
  .ew-page-hero.ew-photo-page-hero > .ew-hero-photo.ew-tinnitus-photo {
    background-image: url("../../assets/img/Earworx%20Mobile%20Tinnitus.jpg?h=85f506ad3f3fc5769b85ae0a88de0233");
  }
}

@media (max-width: 767.98px) {
  .ew-page-hero.ew-photo-page-hero > .ew-hero-photo.ew-earwax-photo {
    background-image: url("../../assets/img/Earworx%20Mobile%20Earwax%20Removal.jpg?h=b5d87d5dc85071183a42c2b810bd43bc");
  }
}

/* Earworx Offers - accessible button focus */

a.ew-offers-cta:focus-visible {
  outline: 3px solid #ff9800 !important;
  outline-offset: 4px;
}

/* Earworx Home Hero - consistent keyboard focus */

.ew-hero a.btn:focus-visible {
  outline: 3px solid #ff9800 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 2px #082744 !important;
}

.ew-hero-photo.ew-home-hero-photo {
  background-image: url("../../assets/img/Joyful%20Senior%20Woman%20in%20a%20Clinical%20Setting%20HERO.jpg?h=93dc07a834cf23594265f7175a947175");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

