/* Tony T Handyman demo: custom styles on top of Tailwind */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }

/* Display type: Big Shoulders Display, condensed and very large */
.hero-title { font-size: clamp(3.5rem, 19.5vw, 14rem); line-height: 0.8; letter-spacing: -0.01em; margin-left: -0.03em; }
.section-title { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 0.9; letter-spacing: 0; }
.phone-big { font-size: clamp(3.4rem, 17vw, 14rem); line-height: 0.85; letter-spacing: -0.01em; white-space: nowrap; }

/* Header turns solid once the page scrolls past the hero top */
#site-header.is-solid { background: rgba(14,12,10,0.88); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); border-bottom: 1px solid rgba(255,255,255,0.08); }

/* Curved top edge on the ember band: fixed depth, overlaps the services section by the same amount */
.curve-top { --curve: 64px; border-top-left-radius: 50% var(--curve); border-top-right-radius: 50% var(--curve); margin-top: calc(var(--curve) * -1); }
@media (min-width: 1024px) { .curve-top { --curve: 120px; } }

/* Oversized numbered service list with hairlines */
.job-list li { display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid #D6CDBF; transition: padding-left .4s cubic-bezier(.2,.7,.2,1); }
.job-list li > span { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: #A63C02; }
.job-list li h3 { font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 0.95; transition: color .3s; }
@media (hover: hover) { .job-list li:not(.job-note):hover { padding-left: .6rem; } .job-list li:not(.job-note):hover h3 { color: #D24E05; } }
.job-list li.job-note { display: block; border-bottom: 0; padding-top: 1.75rem; color: #5A5149; }

/* Photo caption tag */
.fig-tag { position: absolute; left: .75rem; bottom: .75rem; padding: .3rem .6rem; border-radius: 999px; background: rgba(14,12,10,0.72); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,0.88); }

/* Frosted glass on a light background */
.glass-light { background: rgba(255,255,255,0.62); border: 1px solid rgba(255,255,255,0.6); -webkit-backdrop-filter: blur(40px) saturate(1.5); backdrop-filter: blur(40px) saturate(1.5); box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 32px -4px rgba(166,60,2,0.18); }

/* Form fields */
.field-label { display: block; font-size: .875rem; font-weight: 600; color: #0E0C0A; }
.field { margin-top: .5rem; display: block; width: 100%; min-height: 3rem; border-radius: .6rem; border: 1px solid rgba(14,12,10,0.15); background: rgba(255,255,255,0.88); padding: .75rem 1rem; color: #0E0C0A; outline: none; transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: rgba(90,81,73,0.6); }
.field:focus { border-color: #F2620F; box-shadow: 0 0 0 3px rgba(242,98,15,0.25); }

/* Scroll reveals (hidden only once JS confirms it is running) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero image slow settle, image hover zoom */
.hero-img { transform: scale(1.07); transition: transform 2.6s cubic-bezier(.2,.7,.2,1); }
.is-loaded .hero-img { transform: scale(1); }
.zoom img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.zoom:hover img { transform: scale(1.04); }

/* Mobile call bar safe area, and room so it never covers the footer */
.call-bar { padding-bottom: calc(0.85rem + env(safe-area-inset-bottom)); }
@media (max-width: 767px) { body { padding-bottom: calc(3.4rem + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img, .is-loaded .hero-img { transform: none; transition: none; }
  .zoom img, .zoom:hover img { transition: none; transform: none; }
  .job-list li { transition: none; }
}
