/* Interaction polish. Load after site.css and the carousel layout styles. */
:root {
  --ease-settle: cubic-bezier(.22, 1, .36, 1);
  --motion-quick: 180ms;
  --motion-reveal: 680ms;
}

/* Keep the hit area generous without changing the visual language. */
.button,
.menu-toggle,
.season-tabs button,
.finder-choices button {
  min-height: 52px;
  touch-action: manipulation;
}

.rail-controls button,
.quick-dock a,
.back-top {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  touch-action: manipulation;
}

.button,
.menu-toggle,
.rail-controls button,
.quick-dock a,
.back-top,
.season-tabs button,
.finder-choices button {
  transition: background-color var(--motion-quick) ease,
    border-color var(--motion-quick) ease,
    color var(--motion-quick) ease,
    opacity var(--motion-quick) ease,
    transform var(--motion-quick) var(--ease-settle);
}

.field input,
.field select,
.field textarea {
  transition: border-color var(--motion-quick) ease,
    background-color var(--motion-quick) ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  background: #fff;
}

/* A focused descendant remains visible even before an observer callback. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.motion-ready [data-reveal] {
  transition: opacity var(--motion-reveal) ease,
    transform var(--motion-reveal) var(--ease-settle);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}

.motion-ready [data-reveal].is-revealed,
.motion-ready [data-reveal]:focus-within {
  opacity: 1;
  transform: none;
}

.motion-ready [data-reveal]:focus-within {
  transition-delay: 0ms;
  transition-duration: 0ms;
}

/* Briefly settle a result when the visitor changes a choice. */
.season-panel,
.finder-result {
  opacity: 1;
  transform: none;
  transition: opacity 220ms ease, transform 320ms var(--ease-settle);
}

.season-panel.is-switching,
.finder-result.is-switching {
  opacity: .3;
  transform: translateY(5px);
  transition-duration: 120ms;
}

/* Only non-interactive decorative rings move continuously. */
@media (prefers-reduced-motion: no-preference) {
  .hero-signature::before {
    animation: signature-breathe 10s ease-in-out infinite alternate;
  }

  .region-art::before {
    animation: region-breathe 12s ease-in-out infinite alternate;
  }

  .region-art::after {
    animation: region-breathe 15s ease-in-out 2s infinite alternate-reverse;
  }
}

body.menu-open .hero-signature::before,
body.menu-open .region-art::before,
body.menu-open .region-art::after {
  animation-play-state: paused;
}

@keyframes signature-breathe {
  from { transform: scale(1); opacity: .55; }
  to { transform: scale(1.055); opacity: 1; }
}

@keyframes region-breathe {
  from { transform: scale(.98); opacity: .55; }
  to { transform: scale(1.035); opacity: 1; }
}

/* Hover movement belongs to devices with a precise pointing device. */
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .quick-dock a:hover,
  .back-top:hover {
    transform: translateY(-2px);
  }

  .service-card:hover img {
    transform: scale(1.035);
  }

  .menu-toggle:hover {
    background: var(--stone);
  }

  .season-tabs button:hover:not([aria-pressed="true"]) {
    border-color: var(--teal);
    background: #007d830a;
  }

  .finder-choices button:hover:not([aria-pressed="true"]) {
    background: #ffffff0e;
    border-color: var(--mint);
  }
}

@media (hover: none), (pointer: coarse) {
  .button:hover,
  .quick-dock a:hover,
  .back-top:hover,
  .service-card:hover img {
    transform: none;
  }
}

.button:active,
.menu-toggle:active,
.rail-controls button:active:not(:disabled),
.quick-dock a:active,
.back-top:active,
.season-tabs button:active,
.finder-choices button:active {
  transform: scale(.975);
  opacity: .86;
  transition-duration: 80ms;
}

@media (max-width: 1000px) {
  .menu-toggle {
    min-width: 92px;
    min-height: 52px;
    padding: 12px 15px;
    font-size: 12px;
  }

  .nav {
    padding-bottom: max(48px, env(safe-area-inset-bottom));
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
  }

  .nav > a,
  .nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    line-height: 1.4;
    padding-block: 18px;
  }

  .nav-dropdown a {
    display: flex;
    align-items: center;
    min-height: 52px;
    line-height: 1.5;
  }

  .nav summary::after {
    flex-shrink: 0;
    margin-left: 20px;
  }
}

.footer-credit-line {
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.footer-credit-line a,
.footer-credit-line a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit-line a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.footer-rights {
  white-space: nowrap;
}

@media (max-width: 340px) {
  .site-footer > .wrap {
    width: calc(100% - 24px);
  }
}

@media (max-width: 760px) {
  .footer-credit-line {
    font-size: 11px;
  }
  .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    line-height: 1.5;
    padding-block: 10px;
  }

  .hero-content .button,
  .request-summary .button {
    min-height: 54px;
    padding-block: 14px;
  }

  .hero-bottom a {
    min-height: 58px;
    justify-content: center;
  }

  .season-tabs {
    gap: 10px;
    flex-wrap: wrap;
  }

  .season-tabs button {
    flex: 1 1 140px;
    min-height: 52px;
    font-size: 14px;
    padding: 13px 17px;
  }

  .finder-choices {
    gap: 12px 10px;
  }

  .finder-choices button {
    min-height: 52px;
    padding: 13px 17px;
    font-size: 14px;
  }

  .faqs summary {
    min-height: 72px;
    padding: 23px 44px 23px 0;
    font-size: 17px;
    line-height: 1.5;
  }

  .faqs summary::after {
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    line-height: 1;
  }

  .faqs details p {
    padding: 0 20px 26px 0;
    font-size: 16px;
    line-height: 1.75;
  }

  .field label {
    min-height: 24px;
    font-size: 14px;
    line-height: 1.5;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 56px;
    padding: 15px 14px;
    font-size: 16px;
    line-height: 1.5;
  }

  .field select {
    padding-right: 34px;
  }

  .field textarea {
    min-height: 154px;
  }

  .check {
    min-height: 52px;
    gap: 14px;
    padding-block: 12px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.65;
    cursor: pointer;
  }

  .check input {
    width: 24px;
    height: 24px;
    margin-top: 1px;
  }

  .request-form .actions > .button {
    flex: 1 1 180px;
  }

  .request-form fieldset > .actions > .button {
    width: 100%;
  }

  .request-summary pre {
    line-height: 1.85;
  }

  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-block: 11px;
    line-height: 1.5;
  }

  .footer-bottom div {
    gap: 6px 20px;
    align-items: center;
  }

  .footer-bottom > div a,
  .footer-top-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding-block: 10px;
  }

  .quick-dock {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .motion-ready [data-reveal],
  .motion-ready [data-reveal]:not(.is-revealed),
  .season-panel,
  .finder-result,
  .season-panel.is-switching,
  .finder-result.is-switching {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg,
  .hero-signature::before,
  .region-art::before,
  .region-art::after {
    animation: none;
  }

  .button,
  .menu-toggle,
  .rail-controls button,
  .quick-dock a,
  .back-top,
  .season-tabs button,
  .finder-choices button,
  .service-card img,
  .field input,
  .field select,
  .field textarea {
    transition: none;
  }

  .button:hover,
  .button:active,
  .menu-toggle:active,
  .rail-controls button:active:not(:disabled),
  .quick-dock a:hover,
  .quick-dock a:active,
  .back-top:hover,
  .back-top:active,
  .season-tabs button:active,
  .finder-choices button:active,
  .service-card:hover img {
    transform: none;
  }
}

@media print {
  .motion-ready [data-reveal],
  .motion-ready [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media(max-width:760px){.form-intro h1{font-size:clamp(54px,15vw,70px)}}
@media(max-width:380px){.hero-content h1{font-size:clamp(64px,21vw,80px)}.home-hero{min-height:680px}}
/* Portrait tablets and coarse pointers need the same thumb clearance as phones. */
@media(max-width:1000px), (pointer:coarse) {
  .brand { min-height: 52px; }
  .text-link { display: inline-flex; align-items: center; min-height: 48px; padding-block: 10px; line-height: 1.5; }
  .service-card h3 a { display: inline-flex; align-items: center; min-height: 48px; }
  .footer-col a { display: flex; align-items: center; min-height: 48px; padding-block: 11px; line-height: 1.5; }
  .footer-bottom > div a, .footer-top-button { display: inline-flex; align-items: center; min-height: 48px; padding-block: 10px; }
  .breadcrumb { align-items: center; flex-wrap: wrap; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 48px; }
}
@media(max-width:760px){.season-tabs{flex-wrap:nowrap}.season-tabs button{flex:1 1 0;min-width:0;padding-inline:10px;font-size:13px}}
