/* Last-loaded visual polish. Hover movement uses individual transform
   properties so that GSAP's one-time entrance transforms can finish normally. */

/* Hero: the eyebrow and proof are type, not labels or badges. */
.hero .hero-eyebrow {
  padding: 0;
  background: transparent;
  color: var(--tan, #B07A4A);
}
.hero .hero-trust,
.hero .hero-copy > .hero-trust {
  padding: 0;
  background: transparent;
  color: rgba(247, 244, 239, .7);
}

/* About: move the photo frame rather than the reveal's outer wrapper. The
   offset rule has its own translate, independent of the reveal transform. */
.about-main {
  transition: translate .4s ease, scale .4s ease, box-shadow .4s ease;
}
.about-visual::before,
html.js .about-visual::before {
  transition: opacity .7s ease-out, transform .7s ease-out, translate .4s ease;
}
.about-visual .about-main img,
html.js .about-visual.reveal .about-main img {
  transition: clip-path .7s ease-out, transform .7s ease-out, filter .4s ease;
}
.about-visual:is(:hover, :focus-within) .about-main {
  box-shadow: 0 20px 50px rgba(176, 122, 74, .35);
}
.about-visual:is(:hover, :focus-within) .about-main img {
  filter: brightness(1.08);
}

/* Services: unboxed labels, a warmer content panel, and a draw-on link. */
.service-card {
  border: 1px solid rgba(31, 42, 58, .12);
  border-top: 3px solid var(--tan, #B07A4A);
  transition: opacity .7s ease-out, transform .7s ease-out, translate .3s ease,
    box-shadow .3s ease, border-color .3s ease;
}
html.js .service-card.reveal {
  transition: opacity .7s ease-out, transform .7s ease-out, translate .3s ease,
    box-shadow .3s ease, border-color .3s ease;
}
/* The current reveal implementation no longer inserts the separate card line
   used by motion.css; keep the original tan top edge visible at rest. */
html.haro-motion .service-card { border-top-color: var(--tan, #B07A4A); }
.service-number {
  padding: 0;
  background: transparent;
  color: var(--tan, #B07A4A);
  text-transform: uppercase;
}
.service-number::after { content: none; }
.service-info { transition: background-color .3s ease; }
.service-info h3 { transition: color .3s ease; }
.service-image img,
html.js .service-card.reveal .service-image img {
  transition: clip-path .7s ease-out, transform .7s ease-out, scale .3s ease;
}
.service-info > a {
  position: relative;
  border-bottom: 0;
  transition: color .3s ease;
}
.service-info > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--tan, #B07A4A);
  content: "";
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}
.service-info > a span { transition: translate .3s ease, transform .3s ease; }

/* Replace old hover transforms with independent movement; inline reveal
   transforms still take precedence while an entrance is in flight. */
html .service-card:is(:hover, :focus-within),
html.js .service-card.reveal:is(:hover, :focus-within),
html.js.haro-motion .service-card:is(:hover, :focus-within) {
  border-color: var(--tan, #B07A4A);
  box-shadow: 0 18px 34px rgba(31, 42, 58, .2);
  transform: none;
}
html .service-card:is(:hover, :focus-within) .service-info {
  background: #FBF6F0;
}
html .service-card:is(:hover, :focus-within) .service-info h3,
html .service-card:is(:hover, :focus-within) .service-info > a,
.service-info > a:is(:hover, :focus-visible) {
  color: var(--tan, #B07A4A);
}
.service-card:is(:hover, :focus-within) .service-info > a::after,
.service-info > a:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}
html .service-card:is(:hover, :focus-within) .service-image img,
html.js.haro-motion .service-card:is(:hover, :focus-within) .service-image img {
  transform: none;
}
.service-card:is(:hover, :focus-within) .service-info > a span,
.service-info > a:is(:hover, :focus-visible) span {
  transform: none;
}

/* Approach panels use an outset pseudo-element: no reflow or clipping of
   the original grid, and no extra keyboard stops on non-interactive text. */
.craft-points > div {
  position: relative;
  isolation: isolate;
}
.craft-points > div::before {
  position: absolute;
  z-index: -1;
  inset: -10px;
  border-radius: 8px;
  background: rgba(176, 122, 74, .08);
  opacity: 0;
  content: "";
  pointer-events: none;
  transition: opacity .35s ease;
}
.craft-points > div > span {
  display: inline-block;
  transform-origin: center;
  transition: scale .35s cubic-bezier(.34, 1.56, .64, 1),
    rotate .35s cubic-bezier(.34, 1.56, .64, 1),
    color .35s ease, filter .35s ease;
}
.craft-points h3,
.craft-points p {
  color: rgba(247, 244, 239, .82);
  transform-origin: left center;
  transition: scale .35s cubic-bezier(.34, 1.56, .64, 1), color .35s ease;
}
.craft-points > div:is(:hover, :focus-within)::before { opacity: 1; }
.craft-points > div:is(:hover, :focus-within) > span {
  color: #D9A575;
  filter: drop-shadow(0 0 8px rgba(176, 122, 74, .65));
}
.craft-points > div:is(:hover, :focus-within) :is(h3, p) {
  color: var(--off-white, #F7F4EF);
}

/* Contact outlines extend outside the rows rather than adding padding or
   disturbing their existing columns and line wrapping. */
.contact-row {
  position: relative;
  isolation: isolate;
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.contact-row::before {
  position: absolute;
  z-index: -1;
  inset: -9px -10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  content: "";
  pointer-events: none;
  transition: background-color .3s ease, border-color .3s ease, scale .3s ease;
}
.contact-icon {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease,
    box-shadow .3s ease, scale .3s ease, rotate .3s ease;
}
.contact-icon :is(svg, .social-mark) { transition: filter .3s ease; }
.contact-row > div {
  transform-origin: left center;
  transition: scale .3s ease;
}
.contact-row small,
.contact-row a,
.contact-row .hours-text { transition: color .3s ease; }
.contact-row small { color: rgba(247, 244, 239, .82); }
.contact-row:is(:hover, :focus-within)::before {
  border-color: var(--tan, #B07A4A);
  background: rgba(176, 122, 74, .12);
}
.contact-row:is(:hover, :focus-within) .contact-icon {
  border-color: var(--tan, #B07A4A);
  background: var(--tan, #B07A4A);
  color: var(--navy, #1F2A3A);
  box-shadow: 0 0 0 2px rgba(176, 122, 74, .28), 0 0 18px rgba(176, 122, 74, .7);
}
.contact-row:is(:hover, :focus-within) .contact-icon :is(svg, .social-mark) {
  filter: drop-shadow(0 0 3px rgba(247, 244, 239, .8));
}
.contact-row:is(:hover, :focus-within) :is(small, a, .hours-text) {
  color: var(--off-white, #F7F4EF);
}
.form-panel,
html.js .form-panel.reveal {
  transition: opacity .7s ease-out, transform .7s ease-out,
    translate .3s ease, box-shadow .3s ease;
}
.form-panel:is(:hover, :focus-within) {
  box-shadow: 0 20px 48px rgba(10, 18, 29, .24);
}
.form-panel :is(input, select, textarea):focus {
  border-color: var(--tan, #B07A4A);
  box-shadow: 0 0 0 3px rgba(176, 122, 74, .24), 0 0 15px rgba(176, 122, 74, .18);
  outline-color: var(--tan, #B07A4A);
}

/* Keep the stacked logo intact, with its native aspect ratio. */
.footer .brand-footer .brand-logo {
  width: auto;
  height: 130px;
  max-width: 100%;
  object-fit: contain;
}

/* Only move elements for people who have not requested reduced motion.
   Colors, borders, focus indicators and static emphasis remain available. */
@media (prefers-reduced-motion: no-preference) {
  html.haro-motion .form-button:not(:disabled):focus-visible::before {
    animation: haro-sheen .9s ease-out both;
  }
  .about-visual:is(:hover, :focus-within) .about-main {
    translate: 0 -6px;
    scale: 1.03;
  }
  .about-visual:is(:hover, :focus-within)::before { translate: -4px 4px; }
  .service-card:is(:hover, :focus-within) { translate: 0 -8px; }
  .service-card:is(:hover, :focus-within) .service-image img { scale: 1.06; }
  .service-card:is(:hover, :focus-within) .service-info > a span,
  .service-info > a:is(:hover, :focus-visible) span { translate: 4px -4px; }
  .craft-points > div:is(:hover, :focus-within) > span { scale: 1.2; rotate: -10deg; }
  .craft-points > div:is(:hover, :focus-within) :is(h3, p) { scale: 1.04; }
  /* GSAP animates the row itself; scale its layers instead to avoid colliding
     with a reveal that begins while the row is already hovered or focused. */
  .contact-row:is(:hover, :focus-within)::before,
  .contact-row:is(:hover, :focus-within) > div,
  .contact-row:is(:hover, :focus-within) > .contact-icon { scale: 1.03; }
  .contact-row:is(:hover, :focus-within) > .contact-icon { rotate: -7deg; }
  .form-panel:is(:hover, :focus-within) { translate: 0 -4px; }

  /* The legacy fallback suppresses all transitions inside a focused reveal.
     Restore just these interaction transitions after GSAP finishes a target. */
  html.js .service-card.reveal:not(.haro-motion-pending):focus-within {
    transition: opacity .7s ease-out, transform .7s ease-out, translate .3s ease,
      box-shadow .3s ease, border-color .3s ease !important;
  }
  html.js .service-card.reveal:focus-within .service-info,
  html.js .service-card.reveal:focus-within .service-info h3,
  html.js .service-card.reveal:focus-within .service-info > a,
  html.js .service-card.reveal:focus-within .service-info > a span,
  html.js .service-card.reveal:focus-within .service-info > a::after,
  html.js .service-card.reveal:focus-within .service-image img:not(.haro-motion-pending) {
    transition: color .3s ease, background-color .3s ease, transform .3s ease,
      translate .3s ease, scale .3s ease !important;
  }
  html.js .contact-info.reveal:focus-within .contact-row:not(.haro-motion-pending) {
    transition: opacity .7s ease-out, transform .7s ease-out !important;
  }
  html.js .contact-info.reveal:focus-within .contact-row::before,
  html.js .contact-info.reveal:focus-within .contact-icon,
  html.js .contact-info.reveal:focus-within .contact-icon :is(svg, .social-mark),
  html.js .contact-info.reveal:focus-within .contact-row > div,
  html.js .contact-info.reveal:focus-within .contact-row :is(small, a, .hours-text) {
    transition: color .3s ease, background-color .3s ease, border-color .3s ease,
      box-shadow .3s ease, filter .3s ease, scale .3s ease, rotate .3s ease !important;
  }
  html.js .form-panel.reveal:not(.haro-motion-pending):focus-within {
    transition: opacity .7s ease-out, transform .7s ease-out, translate .3s ease,
      box-shadow .3s ease !important;
  }
  html.js .form-panel.reveal:focus-within :is(input, select, textarea) {
    transition: border-color .22s ease, box-shadow .22s ease !important;
  }
}

@media (max-width: 700px) {
  .contact-row::before { inset-inline: -7px; }
}

/* Explain a slow or failed photo request rather than leaving an empty tile.
   The message disappears as soon as the original image loads. */
.service-image { position: relative; }
.haro-photo-status {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--off-white, #F7F4EF);
  color: var(--charcoal, #2B2B2B);
  font: 600 12px/1.5 var(--sans, Arial, sans-serif);
  letter-spacing: .04em;
  text-align: center;
  pointer-events: none;
}
