/* polish-e.css — final review polish, loaded last */

/* ---------- Call to action ---------- */

/* Keyboard focus on the email link: the ring clears the text instead of touching it */
.cta .text-link:focus-visible { outline-offset: 6px; border-radius: 6px; }

/* ---------- Contact form ---------- */

/* Fields in a two-up row keep their natural height: an error under one field
   no longer stretches the label and input of its neighbour. */
#contact .field { align-content: start; }

/* Error lines: the dot sits on the first line, and a wrapped message breaks evenly */
#contact .field__err { align-items: flex-start; text-wrap: pretty; }
#contact .field__err::before { margin-top: .5em; margin-top: calc(.5lh - 3.5px); }

/* Address and lead copy: no stranded last word */
#contact .ccard__v,
#contact .contact__body { text-wrap: pretty; }

/* "Get directions" focus ring: dark on coral, clearly visible (cream on coral was faint) */
#contact .ccard__directions:focus-visible { outline-color: var(--ink); }

/* ---------- Footer ---------- */

/* Contact column: the email link always starts on its own line. On tablets the
   inline "Contact" heading and the email link sat side by side on one line. */
.site-footer .ft__mail { display: flex; width: fit-content; max-width: 100%; }

/* The hover arrow no longer takes up width, so link labels are not forced to wrap
   by an icon that is invisible until hover. */
.site-footer .ft__links a { position: relative; line-height: 1.2; vertical-align: top; }
.site-footer .ft__links .icon { position: absolute; top: calc(50% - 8px); left: calc(100% + 10px); }

/* Keyboard focus: a neat rounded ring around the label and its arrow,
   instead of a tall box with the text flush against its edge */
.site-footer .ft__links a:focus-visible { outline: none; }
.site-footer .ft__links a:focus-visible::after {
  content: "";
  position: absolute;
  inset: 5px -34px 5px -10px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--cream);
  pointer-events: none;
}

/* Tablets: a long label leaves room for its arrow inside the column */
@media (min-width: 600px) and (max-width: 1099px) {
  .site-footer .ft__links a { max-width: calc(100% - 26px); }
}

@media (min-width: 1100px) {
  /* a little width moves from Explore (short labels) to Services (long labels),
     so "Ultra-bright window screens" sits on one line and both lists share one rhythm */
  .site-footer .ft { grid-template-columns: minmax(0, 1.3fr) minmax(0, .55fr) minmax(0, 1.2fr) minmax(0, 1.55fr); }
  .site-footer .ft__links a { white-space: nowrap; }
}

/* Phones: Services gets the wider column so its labels wrap less */
@media (max-width: 599px) {
  .site-footer .ft { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); column-gap: 20px; }
  /* hover arrows have no room (and no hover) on phones */
  .site-footer .ft__links .icon { display: none; }
  .site-footer .ft__links a:focus-visible::after { inset: 5px -10px; }
}
@media (max-width: 399px) {
  .site-footer .ft__links a { font-size: 16px; }
}

.site-footer .ft__desc,
.site-footer .ft__addr { text-wrap: pretty; }
.site-footer .ft__tag { text-wrap: balance; }
.site-footer__base p { text-wrap: balance; }

/* the small print reads a touch clearer on the dark base (about 5.9:1) */
.site-footer__base { color: rgba(244, 240, 230, .58); }

/* Round 2 */

/* ---------- Call to action: the LED sign hardware and the email link ---------- */

/* the housing gets four small fixing screws in its corners and the panel sits
   behind glass: a recessed bezel edge and a faint reflection across the top */
.cta .ledsign__housing { --hp: clamp(10px, 1.4vw, 18px); }
.cta .ledsign__housing::after {
  content: "";
  position: absolute;
  inset: var(--hp);
  border-radius: 6px;
  pointer-events: none;
  background:
    linear-gradient(174deg, rgba(255, 255, 255, .095) 0%, rgba(255, 255, 255, .035) 34%, rgba(255, 255, 255, 0) 34.4%),
    linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 82%, rgba(255, 255, 255, .03));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .6),
    inset 0 3px 10px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .055),
    0 1px 0 1px rgba(255, 255, 255, .07);
}
@media (min-width: 700px) {
  .cta .ledsign__housing::before {
    content: "";
    position: absolute;
    inset: calc(var(--hp) / 2 - 3px);
    pointer-events: none;
    --screw: radial-gradient(circle at 3px 3px, #7A817D 0, #3C423F 1.6px, #161918 2.6px, rgba(22, 25, 24, 0) 3px);
    background:
      var(--screw) 0 0 / 6px 6px no-repeat,
      var(--screw) 100% 0 / 6px 6px no-repeat,
      var(--screw) 0 100% / 6px 6px no-repeat,
      var(--screw) 100% 100% / 6px 6px no-repeat;
  }
}

/* the email link: a quiet cream rule with a coral line that draws across on hover,
   the same gesture as the footer's email link */
.cta .text-link {
  background:
    linear-gradient(var(--coral), var(--coral)) 0 100% / 0 2px no-repeat,
    linear-gradient(rgba(244, 240, 230, .42), rgba(244, 240, 230, .42)) 0 100% / 100% 1px no-repeat;
  transition: color .25s, background-size .5s var(--ease-out);
}
.cta .text-link:hover,
.cta .text-link:focus-visible { color: #fff; background-size: 100% 2px, 100% 1px; }

/* ---------- Contact ---------- */

/* lead copy: the last line no longer holds just "have one." */
@media (min-width: 1000px) {
  #contact .contact__body { text-wrap: balance; }
}

/* contact card: each part carries its own rounded corners, so the coral bar's
   bottom corners stay rounded even while the card's light drifts (the card's
   clip alone let them show square on phones) */
#contact .ccard > :first-child { border-radius: var(--radius) var(--radius) 0 0; }
#contact .ccard__directions { border-radius: 0 0 var(--radius) var(--radius); }

/* ... a fine lit top edge and a softer, layered shadow */
#contact .ccard {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 1px 2px rgba(18, 53, 43, .16),
    0 18px 34px -24px rgba(18, 53, 43, .55),
    0 42px 72px -44px rgba(18, 53, 43, .7);
}
#contact .ccard__row { border-bottom-color: rgba(244, 240, 230, .11); }
/* the coral bar: a gentle sheen from its top edge instead of a flat fill */
#contact .ccard__directions {
  background-color: var(--coral);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
#contact .ccard__directions:hover { background-color: var(--coral-soft); }

/* form card: a warm paper surface lit from the top right, a crisp white top edge
   and a deeper, softer shadow so it floats above the cream */
#contact .formcard {
  background:
    radial-gradient(90% 55% at 100% 0%, rgba(255, 107, 61, .05), rgba(255, 107, 61, 0) 70%),
    linear-gradient(180deg, #FFFEFA, #FFFCF5);
  border-color: rgba(18, 53, 43, .12);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(18, 53, 43, .06),
    0 24px 48px -34px rgba(18, 53, 43, .32),
    0 60px 100px -64px rgba(18, 53, 43, .5);
}

/* fields: set slightly into the card */
#contact .field input,
#contact .field textarea { box-shadow: inset 0 1px 2px rgba(18, 53, 43, .07); }
#contact .field input:focus-visible,
#contact .field textarea:focus-visible {
  box-shadow: inset 0 1px 2px rgba(18, 53, 43, .05), 0 0 0 4px rgba(255, 107, 61, .24);
}

/* service chips: a soft lift and a warming dot on hover; a ticked chip gets depth */
#contact .chip span { transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s, transform .2s; }
#contact .chip:hover input:not(:checked) + span {
  background: #FBF8F1;
  box-shadow: 0 6px 14px -10px rgba(18, 53, 43, .55);
}
#contact .chip:hover input:not(:checked) + span::before { background: rgba(255, 107, 61, .65); }
#contact .chip input:checked + span {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 16px -10px rgba(18, 53, 43, .8);
}

/* the send row sits on its own, under a fine rule */
#contact .form__foot {
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(18, 53, 43, .1);
}

/* ---------- Footer ---------- */

/* the description breaks evenly, so no line starts with the dash */
@media (min-width: 1100px) {
  .site-footer .ft__desc { text-wrap: balance; }
}

/* the status pill: a faint lit top edge */
.site-footer .ft__status {
  box-shadow: inset 0 0 0 1px rgba(92, 242, 194, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* back to top: the coral circle glows as it lifts */
.site-footer .ft__top:hover .ft__top-ico,
.site-footer .ft__top:focus-visible .ft__top-ico { box-shadow: 0 10px 22px -10px rgba(255, 107, 61, .85); }

/* the two small-print lines are parted by a small coral dot where they share a line */
@media (min-width: 900px) {
  .site-footer__base p + p { position: relative; }
  .site-footer__base p + p::before {
    content: "";
    position: absolute;
    left: -18px;
    top: calc(50% - 2px);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--coral);
    opacity: .75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta .text-link { transition: color .25s; }
  #contact .chip span { transition: background-color .2s, border-color .2s, color .2s; }
}

/* Round 3 */

/* ---------- Call to action: the copy row ---------- */

@media (min-width: 900px) {
  /* the button and the email link stay side by side: at 1440px the pair was 2px wider
     than its column, so the email dropped under the button */
  .cta .cta__actions { column-gap: clamp(16px, 1.5vw, 26px); }
  /* the headline's last baseline sits on the button's bottom edge (optical alignment),
     not its descenders */
  .cta .cta__title { margin-bottom: -.11em; }
}
/* ... and on 1366px laptops too: the copy column gives the side column a little width
   (the headline still breaks after "your") */
@media (min-width: 1300px) {
  .cta .cta__copy { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* ---------- Contact ---------- */

/* the two cards share one corner radius (the address card was 18px beside the form's 26px) */
#contact .ccard { border-radius: var(--radius-lg); }
#contact .ccard > :first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
#contact .ccard__directions { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ... and the text inset grows with it, so the larger corners never crowd the labels */
@media (min-width: 360px) {
  #contact .ccard__row,
  #contact .ccard__directions { padding-inline: clamp(22px, 1.9vw, 30px); }
}
#contact .ccard__row { gap: 6px; }

/* side by side: the address card's foot lines up with the form card's foot, so the
   two columns end on one line instead of a ragged 127px step. Only on wide screens:
   below 1340px the form is taller (its chips wrap more) and the gap would grow too big. */
@media (min-width: 1340px) {
  #contact .contact__intro { grid-template-rows: auto auto auto 1fr; }
  #contact .ccard { align-self: end; }
}

/* the email in the card: the same drawn coral line as the call to action and footer
   email links, instead of a static browser underline */
#contact .ccard__mail .ccard__v {
  justify-self: start;
  padding-bottom: 3px;
  text-decoration: none;
  background:
    linear-gradient(var(--coral), var(--coral)) 0 100% / 0 2px no-repeat,
    linear-gradient(rgba(244, 240, 230, .4), rgba(244, 240, 230, .4)) 0 100% / 100% 1px no-repeat;
  transition: color .25s, background-size .5s var(--ease-out);
}
#contact .ccard__mail:hover .ccard__v,
#contact .ccard__mail:focus-visible .ccard__v { color: #fff; background-size: 100% 2px, 100% 1px; }
/* the hovered row lights from its top edge instead of a flat fill */
#contact .ccard__mail:hover {
  background: linear-gradient(180deg, rgba(244, 240, 230, .06), rgba(244, 240, 230, .02)), var(--green-2);
}

/* "Get directions": stays coral on hover and brightens its sheen, instead of fading to
   a pale peach that read as disabled */
#contact .ccard__directions { transition: background-color .25s, box-shadow .25s; }
#contact .ccard__directions:hover {
  background-color: #FF7A4F;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

@media (prefers-reduced-motion: reduce) {
  #contact .ccard__mail .ccard__v { transition: color .25s; }
}
