.home-page {
  --home-dark: #102e30;
  --home-accent: #d7d34d;
  background: radial-gradient(ellipse at 12% 0%, #e7f3ef 0, transparent 38rem), #f7f9f6;
}
.home-page .wrap { width: min(1200px, calc(100% - 72px)); }
.home-page .bar { min-height: 88px; }
.home-page .bar nav { margin-left: auto; }
.home-page .bar .client-login { padding: 9px 14px; }
.home-page .button { background: var(--home-accent); border-radius: 6px; }
.home-page .button:hover { background: #e7e364; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  padding-block: clamp(38px, 7vw, 90px);
}
.home-greeting {
  margin: 0 0 18px;
  color: #236169;
  font-weight: 600;
}
.home-welcome h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.06em;
}
.home-welcome h1 em { display: block; color: #236169; font-style: normal; }
.home-intro { max-width: 440px; margin-top: 22px; font-size: clamp(1rem, 1.7vw, 1.16rem); }
.home-outline {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid #aac3be;
  border-radius: 9px;
  color: #164b51;
  font-weight: 600;
}
.home-outline:hover { background: #e7f1ef; }
.home-carousel {
  overflow: hidden;
  background: var(--home-dark);
  border-radius: 20px;
  box-shadow: 0 16px 36px #102e3022;
}
.home-stage { position: relative; min-height: clamp(285px, 36vw, 470px); overflow: hidden; touch-action: pan-y pinch-zoom; }
.home-slide { position: absolute; inset: 0; isolation: isolate; display: flex; align-items: flex-end; }
.home-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0a2426 0%, #0a2426db 21%, #0a24262e 66%, transparent 86%);
  z-index: -1;
}
.home-slide-copy { padding: clamp(18px, 3vw, 34px); color: #fff; }
.home-slide-copy h2 { font-size: clamp(1.45rem, 2.7vw, 2.25rem); line-height: 1.12; }
.home-slide-copy p { margin: 8px 0 0; color: #eef6f4; }
.home-slide-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px clamp(10px, 2vw, 22px);
  border-top: 1px solid #ffffff24;
}
.home-slide-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; flex: 1; }
.home-slide-controls button {
  min-height: 44px;
  padding: 6px 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #e3f0ee;
  cursor: pointer;
  font: 600 clamp(.875rem, 1.5vw, .95rem)/1.25 Poppins, sans-serif;
}
.home-slide-controls .home-rotation { min-width: 44px; border-color: #8da4a3; }
.home-slide-controls button[aria-pressed="true"] { background: var(--home-accent); color: #173233; }
.home-slide-controls button:hover:not([aria-pressed="true"]) { background: #ffffff20; }
.home-slide-controls button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.home-slide[aria-hidden="true"] { opacity: 0; visibility: hidden; }
.home-slide[aria-hidden="false"] { z-index: 1; }
.home-step { min-width: 38px; }
.home-step span { font: 500 1.65rem/1 system-ui, sans-serif; }
.home-slide-controls .home-rotation { margin-right: 3px; }
.home-slide-copy {
  width: 100%;
  padding-top: 48px;
}
.home-slide-copy h2 { letter-spacing: -.035em; }
@media (prefers-reduced-motion: no-preference) {
  .home-slide { transition: opacity 380ms ease, visibility 0s; }
  .home-slide[aria-hidden="true"] { transition-delay: 0s, 380ms; }
  .home-slide[aria-hidden="false"] .home-slide-copy { animation: home-copy-in 380ms ease-out; }
  @keyframes home-copy-in {
    from { opacity: .4; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .home-page .button, .home-outline { transition: background-color 160ms ease, border-color 160ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.home-page) { scroll-behavior: auto; }
}
.home-page .market { background: #fff; }
.home-page .market-inner { min-height: 84px; }
.home-page .market li { color: #24494a; }
.home-services { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(24px, 6vw, 82px); align-items: start; }
.home-section-heading { max-width: 570px; }
.home-section-heading h2 { font-size: clamp(2rem, 4.3vw, 3.6rem); }
.home-services .cards { margin: 0; display: block; border-top: 1px solid #cadbd5; }
.home-services .cards article { padding: 22px 0; background: transparent; border: 0; border-bottom: 1px solid #cadbd5; border-radius: 0; }
.home-services .cards article p { margin-top: 7px; }
.home-transport { background: #e7f1ef; }
.home-transport .times { gap: 14px; }
.home-transport .times > div { border: 0; border-radius: 10px; padding: 25px; }
.home-transport .times strong { font-size: clamp(1.6rem, 3.3vw, 2.55rem); color: #174d52; }
.home-page footer { padding-block: 44px; }
.home-phones { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.home-phones a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .home-page .wrap { width: calc(100% - 40px); }
  .home-hero, .home-services { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-page .bar { min-height: 74px; }
  .home-page .bar nav { margin-left: 0; flex-wrap: wrap; column-gap: 16px; row-gap: 6px; }
  .home-page .bar .client-login { padding: 5px 7px; }
  .home-page .top { padding-inline: 10px; }
  .home-welcome h1 { font-size: clamp(2.3rem, 9.2vw, 3.5rem); }
  .home-greeting, .home-intro { margin-block: 0 14px; }
  .home-intro { margin-top: 14px; }
  .home-carousel { border-radius: 16px; }
  .home-slide-controls { gap: 2px; padding-inline: 6px; }
  .home-slide-controls .home-rotation { min-width: 36px; }
  .home-step { min-width: 30px; }
  .home-slide-controls button { font-size: .83rem; }
  .home-transport .times > div { padding: 18px; }
}

.home-page .market-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 28px;
  padding-block: 20px;
}
.home-page .market p { margin: 0; font-weight: 600; }
.home-page .market ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.home-page .market li {
  display: grid;
  grid-template-rows: 30px auto;
  justify-items: center;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .875rem;
}
.home-page .market img {
  width: min(100%, 92px);
  height: 30px;
  object-fit: contain;
}
@media (max-width: 820px) {
  .home-page .market-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .home-page .market ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

#order-estimate { padding: 16px; border-radius: 12px; background: #eef5f3; }
#order-estimate dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
#order-estimate dd { margin: 0; text-align: right; font-weight: 600; }
#order-estimate dt:last-of-type, #order-estimate dd:last-of-type {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-weight: 700;
}

.order-photo { margin-block: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #eef5f3; }
.order-photo h3 { margin: 0 0 8px; }
.order-photo button { padding: 8px 0; font: inherit; font-weight: 600; }
.order-photo button:disabled { opacity: .55; cursor: default; }
#photo-read-status { margin: 0; }

.photo-price-option:not([hidden]) { display: flex; align-items: baseline; gap: 8px; }
.photo-price-option input { width: auto; margin: 0; }

.quote-method { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.quote-method legend { font-weight: 700; }
.quote-method label { display: inline-flex; align-items: center; gap: 7px; margin: 2px 0; }
.quote-method input { width: auto; margin: 0; }

.quote-product-form { margin-bottom: 14px; }
.product-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-heading h3 { margin-top: 0; }
.quote-product-form [id^="order-estimate-"] { padding: 12px; background: #eef5f3; border-radius: 10px; }
.quote-product-form [id^="order-estimate-"] dd { margin: 0 0 8px; font-weight: 600; }

.quote-product-form [name="estimateSandals"] { width: auto; margin: 0 6px 0 0; }

.freight-client { margin: 16px 0; background: #f5f9f8; }
.freight-client h3 { margin: 0 0 6px; }
.freight-result { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }

.order-confirmation { margin-top: 16px; padding: 16px; background: #eef5f3; border: 1px solid var(--line); border-radius: 12px; }
.order-confirmation h3 { margin: 0; }
.order-confirmation .actions { margin-top: 10px; }

.home-page .bar nav { row-gap: 9px; }
.home-page .button, .home-outline { border-radius: 9px; }
.home-page .button { background: #d7d34d; color: #173233; }
.home-transport .times > div { border: 1px solid #d4e4e0; border-radius: 14px; }
.home-section-heading h2 { letter-spacing: -.04em; line-height: 1.13; }
@media (max-width: 600px) {
  .home-page .market-inner { padding-block: 18px; }
  .home-page .home-transport .times { gap: 12px; }
}

#managed-client-search h2 { margin-bottom: 18px; }
.managed-client-add { margin-top: 16px; }
.managed-client-add > summary { color: var(--teal); cursor: pointer; font-weight: 700; }
.managed-client-add > form { margin-top: 12px; }
#managed-email-hint { margin: -6px 0 15px; }
