/*
Theme Name: Amber Home Healthcare
Theme URI: https://amberhomehealthcare.com/
Description: A focused child theme for Amber Home Healthcare, based on the Responsive theme.
Author: Amber Home Healthcare
Template: responsive
Version: 1.0.0
Text Domain: amber-responsive
*/

:root {
  --amber-blue: #10659c;
  --amber-blue-dark: #0b4f7c;
  --amber-blue-light: #f0f5fa;
  --amber-text: #404040;
  --amber-muted: #6f7478;
  --amber-border: #dce3e8;
  --amber-background: #eef2f5;
  --amber-white: #ffffff;
  --amber-container: 980px;
}

body.amber-wordpress-site,
body.amber-wordpress-site * {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body.amber-wordpress-site {
  margin: 0;
  padding: 0;
  background: var(--amber-background);
  color: var(--amber-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

body.amber-wordpress-site .amber-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

body.amber-wordpress-site img {
  max-width: 100%;
  height: auto;
}

body.amber-wordpress-site a {
  color: var(--amber-blue);
  text-decoration: none;
}

body.amber-wordpress-site a:hover { color: var(--amber-blue-dark); }

body.amber-wordpress-site a:focus-visible,
body.amber-wordpress-site summary:focus-visible,
body.amber-wordpress-site input:focus-visible,
body.amber-wordpress-site textarea:focus-visible,
body.amber-wordpress-site button:focus-visible {
  outline: 3px solid rgba(16, 101, 156, 0.35);
  outline-offset: 3px;
}

.amber-skip-link {
  position: fixed;
  z-index: 100000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border-radius: 3px;
  background: var(--amber-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-160%);
}

.amber-skip-link:focus { transform: translateY(0); }

.amber-site-header {
  width: 100%;
  background: var(--amber-white);
  border-bottom: 1px solid var(--amber-border);
}

.amber-header-inner {
  width: min(var(--amber-container), calc(100% - 32px));
  min-height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.amber-logo-link {
  display: block;
  flex: 0 0 auto;
  margin-right: auto;
  line-height: 0;
}

.amber-logo-link img {
  display: block;
  width: 260px;
  height: auto;
}

.amber-main-navigation { display: block; }

.amber-main-menu,
.amber-mobile-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.amber-main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.amber-main-menu li,
.amber-mobile-menu li {
  margin: 0;
  padding: 0;
}

.amber-main-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 4px;
  color: var(--amber-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.amber-main-menu a:hover,
.amber-main-menu a:focus-visible,
.amber-main-menu .current-menu-item > a,
.amber-main-menu .current_page_item > a {
  background: var(--amber-blue-light);
  color: var(--amber-blue);
}

.amber-mobile-navigation {
  display: none;
  position: relative;
}

.amber-mobile-navigation summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #8f8f8f;
  border-radius: 4px;
  color: #696969;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.amber-mobile-navigation summary::-webkit-details-marker { display: none; }

.amber-menu-icon {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.amber-mobile-navigation nav {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  width: min(310px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--amber-border);
  border-radius: 6px;
  background: var(--amber-white);
  box-shadow: 0 10px 28px rgba(35, 54, 65, 0.18);
}

.amber-mobile-menu a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--amber-border);
  color: var(--amber-text);
  font-weight: 600;
}

.amber-mobile-menu li:last-child a { border-bottom: 0; }

.amber-mobile-menu .current-menu-item > a,
.amber-mobile-menu .current_page_item > a {
  background: var(--amber-blue-light);
  color: var(--amber-blue);
}

.amber-site-content {
  width: min(var(--amber-container), calc(100% - 32px));
  margin: 30px auto;
  padding: 0;
}

.amber-page-content {
  min-height: 520px;
  margin: 0;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--amber-border);
  border-radius: 6px;
  background: var(--amber-white);
  box-shadow: 0 1px 3px rgba(29, 54, 69, 0.06);
}

.amber-page-title,
.amber-featured-copy h1 {
  margin: 0 0 24px;
  color: #333333;
  font-size: 33px;
  font-weight: 500;
  line-height: 1.25;
}

.amber-page-title {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--amber-border);
}

.amber-entry-content h2 {
  margin: 34px 0 10px;
  color: #333333;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.amber-entry-content p { margin: 0 0 18px; }

.amber-home-content { margin-top: 30px; }

.amber-featured-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--amber-border);
  border-radius: 6px;
  background: var(--amber-white);
  box-shadow: 0 1px 3px rgba(29, 54, 69, 0.06);
}

.amber-featured-copy {
  padding: clamp(30px, 5vw, 52px);
  align-self: center;
}

.amber-featured-copy h1 { margin-bottom: 7px; }

.amber-featured-copy h2 {
  margin: 0 0 20px;
  color: var(--amber-blue);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.amber-featured-copy p { margin: 0; }

.amber-featured-image {
  position: relative;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  background: var(--amber-blue-light);
}

.amber-featured-image img,
.amber-slider-track {
  width: 100%;
  height: 100%;
}

.amber-featured-image img {
  display: block;
  object-fit: cover;
}

.amber-slider-track {
  position: absolute;
  inset: 0;
}

.amber-slider-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.amber-slider-image.is-active { opacity: 1; }

.amber-slider-arrow,
.amber-slider-controls {
  position: absolute;
  z-index: 2;
}

.amber-home-slider button.amber-slider-arrow {
  top: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  background-image: none;
  box-shadow: 0 2px 8px rgba(22, 45, 60, 0.2);
  color: var(--amber-blue-dark);
  cursor: pointer;
  font: inherit;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  opacity: 0.88;
  text-transform: none;
  appearance: none;
}

.amber-home-slider button.amber-slider-arrow:hover,
.amber-home-slider button.amber-slider-arrow:focus,
.amber-home-slider button.amber-slider-arrow:active {
  border-color: rgba(255, 255, 255, 0.9);
  background-color: var(--amber-white);
  background-image: none;
  box-shadow: 0 2px 8px rgba(22, 45, 60, 0.2);
  color: var(--amber-blue-dark);
  opacity: 1;
}

.amber-slider-previous { left: 14px; }
.amber-slider-next { right: 14px; }

.amber-slider-controls {
  right: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  transform: translateX(50%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(22, 45, 60, 0.18);
}

.amber-home-slider button.amber-slider-dot {
  display: block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #9ba9b2;
  background-image: none;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
  font-size: 0;
  letter-spacing: normal;
  line-height: 0;
  text-transform: none;
  appearance: none;
}

.amber-home-slider button.amber-slider-dot:hover,
.amber-home-slider button.amber-slider-dot:focus,
.amber-home-slider button.amber-slider-dot:active {
  border: 0;
  background-color: #7f919c;
  background-image: none;
  box-shadow: none;
  color: transparent;
}

.amber-home-slider button.amber-slider-dot.is-active,
.amber-home-slider button.amber-slider-dot.is-active:hover,
.amber-home-slider button.amber-slider-dot.is-active:focus,
.amber-home-slider button.amber-slider-dot.is-active:active {
  background-color: var(--amber-blue);
}

.amber-home-slider button.amber-slider-pause {
  display: grid;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--amber-blue-dark);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  appearance: none;
}

.amber-home-slider button.amber-slider-pause:hover,
.amber-home-slider button.amber-slider-pause:focus,
.amber-home-slider button.amber-slider-pause:active {
  border: 0;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--amber-blue-dark);
}

.amber-home-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.amber-home-widget {
  min-height: 255px;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--amber-border);
  border-top: 4px solid var(--amber-blue);
  border-radius: 5px;
  background: var(--amber-white);
  box-shadow: 0 1px 3px rgba(29, 54, 69, 0.06);
}

.amber-home-widget h2 {
  margin: 0 0 15px;
  color: #333333;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.amber-home-widget p,
.amber-home-widget ul { margin: 0 0 16px; }

.amber-home-widget ul {
  padding-left: 0;
  list-style: none;
}

.amber-home-widget li {
  position: relative;
  margin-bottom: 2px;
  padding-left: 18px;
}

.amber-home-widget li::before,
.amber-process-summary li::before,
.amber-care-services-list li::before {
  position: absolute;
  top: 0.78em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-blue);
  content: "";
}

.amber-home-widget a {
  display: inline-block;
  font-weight: 600;
}

.amber-process-overview {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: start;
  margin-bottom: 30px;
}

.amber-process-summary {
  margin: 20px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--amber-blue);
  background: var(--amber-blue-light);
  list-style: none;
}

.amber-process-summary li {
  position: relative;
  margin: 0;
  padding-left: 18px;
}

.amber-page-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(34, 55, 68, 0.12);
}

.amber-process-section {
  padding-top: 2px;
  border-top: 1px solid var(--amber-border);
}

.amber-process-section:first-of-type { border-top: 0; }

.amber-care-services-layout,
.amber-mission-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: start;
}

.amber-care-services-layout { margin-top: 24px; }

.amber-care-services-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.amber-care-services-list li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 18px;
}

.amber-mission-list {
  max-width: 780px;
  margin: 0;
  padding-left: 26px;
}

.amber-mission-list li {
  margin-bottom: 18px;
  padding-left: 5px;
}

.amber-mission-list li::marker { color: var(--amber-blue); }

.amber-contact-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
  align-items: start;
}

.amber-contact-sidebar {
  display: grid;
  gap: 22px;
}

.amber-contact-details {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 22px;
  border-left: 4px solid var(--amber-blue);
  background: var(--amber-blue-light);
  font-style: normal;
}

.amber-contact-details strong { margin-bottom: 6px; }
.amber-contact-details a:first-of-type { margin-top: 14px; }

.amber-contact-form .wpcf7-form {
  display: grid;
  gap: 16px;
}

.amber-contact-form .wpcf7-form > p {
  margin: 0;
  color: #333333;
  font-weight: 600;
}

.amber-contact-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

.amber-contact-form input[type="text"],
.amber-contact-form input[type="email"],
.amber-contact-form input[type="tel"],
.amber-contact-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #bfc9cf;
  border-radius: 4px;
  background: var(--amber-white);
  color: var(--amber-text);
  font: inherit;
  line-height: 1.5;
}

.amber-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.amber-contact-form input[type="submit"] {
  width: max-content;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--amber-blue);
  color: var(--amber-white);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.amber-contact-form input[type="submit"]:hover { background: var(--amber-blue-dark); }

.amber-contact-form .wpcf7-not-valid-tip {
  color: #a82626;
  font-size: 14px;
  font-weight: 400;
}

.amber-contact-form .wpcf7-response-output {
  margin: 0;
  font-weight: 400;
}

.amber-site-footer {
  width: 100%;
  margin-top: 36px;
  padding: 0;
  border-top: 1px solid #c9d3d9;
  background: var(--amber-white);
}

.amber-footer-inner {
  width: min(var(--amber-container), calc(100% - 32px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--amber-muted);
  font-size: 14px;
}

.amber-footer-inner p { margin: 0; }

.amber-footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

@media (max-width: 920px) {
  .amber-main-navigation { display: none; }
  .amber-mobile-navigation { display: block; }
  .amber-featured-area { grid-template-columns: 1fr 0.9fr; }
  .amber-home-widgets { gap: 16px; }
  .amber-care-services-layout,
  .amber-process-overview,
  .amber-mission-layout { grid-template-columns: 1fr 330px; gap: 28px; }
  .amber-contact-layout { grid-template-columns: 250px 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .amber-header-inner { min-height: 92px; }
  .amber-logo-link img { width: 225px; }
  .amber-site-content { width: min(100% - 20px, var(--amber-container)); margin-block: 18px; }
  .amber-featured-area { grid-template-columns: 1fr; }
  .amber-featured-copy { padding: 28px; }
  .amber-featured-image { min-height: 300px; max-height: 380px; }
  .amber-home-widgets { grid-template-columns: 1fr; }
  .amber-home-widget { min-height: 0; }
  .amber-page-content { padding: 26px; }
  .amber-care-services-layout,
  .amber-process-overview,
  .amber-mission-layout,
  .amber-contact-layout { grid-template-columns: 1fr; }
  .amber-care-services-layout .amber-page-image { max-width: 400px; }
  .amber-footer-inner {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .amber-header-inner { width: calc(100% - 20px); }
  .amber-logo-link img { width: 195px; }
  .amber-mobile-navigation summary > span:last-child { display: none; }
  .amber-page-title,
  .amber-featured-copy h1 { font-size: 28px; }
  .amber-featured-copy,
  .amber-page-content { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .amber-slider-image { transition: none; }
}
