/* v189 — Phones: "What we do" as one lead card and six photo tiles.
   Seven full-width 4:3 cards ran about 2.7 screens; this is about 1.3, with every photo
   still showing. The first card keeps a full-width photo (16:10): storm damage on the
   homepage, roof replacement on the city pages. The other six sit two to a row as square
   tiles, the way the desktop grid pairs its smaller cards. Every card shows just its name,
   low on the photo (the whole card is the link). Shared by the homepage and the city pages.
   641px and up is unchanged (tablets already show two columns).
   v193: bold names, each with an arrow so the cards read as links, and the homepage's
   heading stands alone, like the city pages'. */
@media (max-width:640px){
  /* The homepage's line under "Our Services" listed the same services as the cards, so
     phones skip it. The heading then sits 40px above the first card, as on the city pages. */
  html body #services .services-header .sec-desc{display:none}
  html body .svc-grid{grid-template-columns:1fr 1fr;gap:12px}
  html body .svc-grid > .svc-photo-card{grid-column:span 1;aspect-ratio:1 / 1 !important}
  html body .svc-grid > .svc-photo-card:first-child{grid-column:1 / -1;aspect-ratio:16 / 10 !important}
  html body .svc-grid .svc-photo-cta{display:none}
  html body .svc-grid > .svc-photo-card:first-child .svc-photo-content{padding:20px 20px 16px}
  html body .svc-grid > .svc-photo-card:not(:first-child) .svc-photo-content{padding:14px}
  /* Names: bold with slightly open letter spacing, so the caps read as labels rather than
     blocks. A tight shadow keeps them legible over the photo without darkening it. */
  html body .svc-grid .svc-photo-content h3{font-weight:700;letter-spacing:0.03em;text-shadow:0 1px 2px rgba(0,0,0,0.6),0 0 10px rgba(0,0,0,0.35)}
  /* Arrow: a thin white arrow at the right end of the name's line, centered on it, 20px on
     the lead card and 15px in the tiles. Below 300px (folding phones) the tiles drop it, so
     a long single word like "Replacement" still fits. */
  html body .svc-grid .svc-photo-content{display:flex;align-items:center;justify-content:space-between;gap:10px}
  html body .svc-grid .svc-photo-content::after{
    content:"";flex:none;width:20px;height:20px;filter:drop-shadow(0 1px 2px rgba(0,0,0,0.6));
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
  html body .svc-grid > .svc-photo-card:not(:first-child) .svc-photo-content{gap:7px}
  html body .svc-grid > .svc-photo-card:not(:first-child) .svc-photo-content::after{width:15px;height:15px}
  /* Tiles show the short name only ("Storm Damage", "Repairs", "Metal"...). The rest of the
     name (class svc-long in the markup) is hidden visually but still read by screen readers
     and search engines. */
  html body .svc-grid > .svc-photo-card:not(:first-child) .svc-long{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  /* Sizes follow the screen width, so the longest names always fit one line beside their
     arrow: "Storm Damage & Insurance" on the lead card, "Storm Damage" in a tile (city
     pages). About 24px and 19.6px on a 375px phone, 19.3px and 15px at 320px. At 280px the
     lead still fits; a two-word tile name may wrap. */
  html body .svc-grid > .svc-photo-card:first-child .svc-photo-content h3{font-size:clamp(0.95rem,8.85vw - 9px,1.75rem)}
  html body .svc-grid > .svc-photo-card:not(:first-child) .svc-photo-content h3{font-size:clamp(0.875rem,8.47vw - 12.2px,1.5rem)}
  /* Shade: full strength up to the top of the name, then an eased fade over the next ~35px,
     so the photo above it stays clear. The tops of the capitals sit at most 36px (tiles) and
     41px (lead) up. */
  html body .svc-grid > .svc-photo-card:first-child .svc-photo-overlay{background:linear-gradient(to top,rgba(29,31,34,0.82) 0,rgba(29,31,34,0.72) 42px,rgba(29,31,34,0.54) 49px,rgba(29,31,34,0.35) 57px,rgba(29,31,34,0.18) 65px,rgba(29,31,34,0.06) 72px,rgba(29,31,34,0) 78px)}
  html body .svc-grid > .svc-photo-card:not(:first-child) .svc-photo-overlay{background:linear-gradient(to top,rgba(29,31,34,0.9) 0,rgba(29,31,34,0.8) 36px,rgba(29,31,34,0.6) 43px,rgba(29,31,34,0.38) 51px,rgba(29,31,34,0.2) 59px,rgba(29,31,34,0.07) 66px,rgba(29,31,34,0) 72px)}
}
@media (max-width:299px){
  html body .svc-grid > .svc-photo-card:not(:first-child) .svc-photo-content::after{display:none}
}

/* v195 — Desktop: the seven cards in two rows instead of three. The 2/3/2 rows ran about
   1,500px at 1440 wide (1.7 screens); this is about 850. The first three cards (storm,
   replacement, repairs) share the top row, the other four sit below, and every card keeps
   the 3:2 shape of its photo. Tablets (769–1024px) keep their two columns. */
@media (min-width:1025px){
  html body #services .services-header{max-width:720px;margin-bottom:40px}
  html body #services .services-header .sec-desc{max-width:none}
  html body .svc-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
  html body .svc-grid > .svc-photo-card{grid-column:span 3;aspect-ratio:3 / 2}
  html body .svc-grid > .svc-photo-card:nth-child(-n+3){grid-column:span 4}
  html body .svc-grid .svc-photo-content{padding:18px 20px}
  html body .svc-grid .svc-photo-content h3{font-size:1.2rem}
  html body .svc-grid > .svc-photo-card:nth-child(-n+3) .svc-photo-content h3{font-size:1.375rem}
  html body .svc-grid .svc-photo-cta{margin-top:8px}
}

/* v198 — 641px and up: no "Learn More" line. Each card shows just its name at the bottom,
   with a gold arrow right after the last word (the whole card is the link), so more of the
   photo shows and the link reads as just the service name. The arrow sits in the padding
   of a no-break space, so it always stays on the same line as the last word, even when
   a long name wraps on tablets. On hover it moves 4px to the right. */
@media (min-width:641px){
  html body .svc-grid .svc-photo-cta{display:none}
  /* v199: with "Learn More" gone the names stood alone and read heavy. One weight lighter,
     the same as phones, and smaller: 22px / 19px on desktop (set above), 24px on tablets. */
  html body .svc-grid .svc-photo-content h3{font-weight:700;letter-spacing:0.035em;text-shadow:0 1px 2px rgba(0,0,0,0.5)}
  html body .svc-grid .svc-photo-content h3::after{
    content:"\00a0";padding-right:calc(1.1em + 4px);
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2a94e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") right 4px center / 0.85em no-repeat;
    transition:background-position 0.3s cubic-bezier(0.22,1,0.36,1)}
  html body .svc-grid .svc-photo-card:hover .svc-photo-content h3::after{background-position:right 0 center}
}
@media (min-width:641px) and (max-width:1024px){
  html body .svc-grid .svc-photo-content h3{font-size:1.5rem}
}
