/* Small motion and color accents shared by the static site. */
:root {
  --warm-paper: #f8f4ed;
  --pale-sage: #e8f1e8;
  --pale-clay: #faeee3;
  --forest-ink: #102f25;
  --motion-ease: cubic-bezier(.22, .75, .25, 1);
}

.home-hero, .company-hero, .quote-section { background: var(--warm-paper); }
.pricing-hero, .support-hero { background: var(--pale-sage); }
.service-scope, .service-specialty { background: #f7f3ec; }
.home-hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.home-hero .eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--orange); }
.home-process { background: var(--dark); color: #e1ebe3; }
.home-process h2, .home-process h3 { color: white; }
.home-process .eyebrow { color: #c2dccb; }
.home-process .step-number { color: #edaf87; }
.home-process .steps > div + div { border-color: #ffffff36; }
.home-examples { background: var(--warm-paper); }
.home-towns { background: var(--pale-sage); }
.home-hero .button.secondary:hover { background: #e8e6da; }
.editorial-grid .service-card-text:nth-child(3n + 1) { background: var(--pale-sage); }
.editorial-grid .service-card-text:nth-child(3n + 2) { background: var(--warm-paper); border-top-color: #857658; }
.editorial-grid .service-card-text:nth-child(3n + 3) { background: var(--pale-clay); border-top-color: #aa5b38; }
.service-visual { margin: 28px 0 0; }
.service-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.service-visual figcaption { color: #58665e; font-size: 12px; margin-top: 8px; }

/* The carousel keeps the original hero proportions and shows its first photo without scripts. */
.hero-carousel { display: flex; flex-direction: column; background: var(--forest-ink); }
.carousel-stage { position: relative; isolation: isolate; overflow: hidden; flex: 1; min-height: 0; }
.carousel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; }
.carousel-slide.is-current { opacity: 1; z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .carousel-slide figcaption {
  inset: 16px auto auto 16px;
  background: #fffef8;
  color: #18352b;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: .035em;
}
.carousel-toolbar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 66px;
  padding: 8px 12px 8px 18px;
  color: white;
  background: var(--forest-ink);
}
.carousel-toolbar[hidden] { display: none; }
.carousel-label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.carousel-index { color: #f4b794; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .08em; white-space: nowrap; }
.carousel-title { font-size: 14px; font-weight: 600; line-height: 1.2; }
.carousel-actions { display: flex; gap: 4px; flex-shrink: 0; }
.carousel-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: transparent;
  color: white;
}
.carousel-button:hover { background: #ffffff20; border-color: #ffffff80; }
.carousel-button svg { width: 18px; height: 18px; }
.carousel-button [data-play-icon],
.carousel-button[aria-pressed="false"] [data-pause-icon] { display: none; }
.carousel-button[aria-pressed="false"] [data-play-icon] { display: block; }
.carousel-button:focus-visible { outline-offset: 2px; }
.carousel-announcement { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

/* Motion supports orientation and feedback. Reduced-motion settings disable it. */
@media (prefers-reduced-motion: no-preference) {
  .home-hero .hero-copy { animation: rise-in 620ms var(--motion-ease) both; }
  .carousel-slide { transition: opacity 650ms var(--motion-ease); }
  .carousel-slide.is-current img { animation: settle-photo 950ms var(--motion-ease) both; }
  .carousel-button { transition: background-color 180ms ease, border-color 180ms ease; }
  .desktop-nav details[open] .dropdown-panel { animation: menu-in 200ms var(--motion-ease) both; }
  .section-heading.reveal-in { animation: rise-in 520ms var(--motion-ease) both; }
  .service-card { transition: background-color 210ms ease, border-color 210ms ease, transform 210ms var(--motion-ease); }
  .gallery-item { transition: border-color 210ms ease, transform 210ms var(--motion-ease); }
  .button { transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--motion-ease); }
  @media (hover: hover) and (pointer: fine) {
    .service-card:hover, .gallery-item:hover { transform: translateY(-3px); border-color: #779988; }
    .button:hover { transform: translateY(-1px); }
    .button:active { transform: translateY(0); }
  }
}
@keyframes rise-in {
  from { opacity: .72; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes settle-photo {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}
@keyframes menu-in {
  from { opacity: .55; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
  .hero-carousel { height: 324px; }
  .carousel-toolbar { min-height: 62px; padding-left: 12px; padding-right: 8px; }
  .carousel-label { display: grid; gap: 3px; }
  .carousel-title { font-size: 13px; }
  .hero-carousel .carousel-slide figcaption { top: 10px; left: 10px; }
}
