/* My Handyman X demo: custom styles on top of Tailwind */

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

.font-display { font-variation-settings: "opsz" 96; }
.wordmark { font-stretch: 78%; letter-spacing: -0.01em; white-space: nowrap; }
.display { font-stretch: 80%; letter-spacing: -0.02em; line-height: 0.95; }

/* Hero: name on two lines, a giant X spanning both */
.hero-shade {
  background:
    linear-gradient(0deg, rgba(11,13,14,0.96) 0%, rgba(11,13,14,0.6) 48%, rgba(11,13,14,0.4) 100%),
    linear-gradient(90deg, rgba(11,13,14,0.7) 0%, rgba(11,13,14,0.1) 100%);
}
.hero-name {
  --f: clamp(3.3rem, 18vw, 14rem);
  display: grid; grid-template-columns: auto auto; justify-content: start; align-items: end;
  column-gap: 0.06em; font-size: var(--f); line-height: 0.84; font-weight: 800;
  font-stretch: 75%; letter-spacing: -0.025em; margin-left: -0.03em;
}
.hn-my { grid-column: 1; grid-row: 1; }
.hn-word { grid-column: 1; grid-row: 2; }
.hn-x { grid-column: 2; grid-row: 1 / span 2; font-size: 2.12em; line-height: 0.79; font-stretch: 100%; letter-spacing: 0; text-shadow: 0 0.04em 0.3em rgba(0,0,0,0.25); }

.stars { letter-spacing: 0.12em; }

/* Angled top edge on the teal band, hairline X behind it */
.angle-top { clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%); margin-top: -5vw; }
.band-x {
  pointer-events: none;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(11,13,14,0.14) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(11,13,14,0.14) 50%, transparent calc(50% + 1px));
}
.rating-big { font-size: clamp(8rem, 52vw, 21rem); line-height: 0.8; font-stretch: 75%; letter-spacing: -0.04em; margin-left: -0.04em; }

/* Numbered service list with hairline dividers */
.spec-list li { display: grid; grid-template-columns: 3.25rem 1fr; align-items: baseline; gap: 0.75rem; padding: 1.3rem 0; border-bottom: 1px solid #DAD5CB; transition: padding-left .4s cubic-bezier(.2,.7,.2,1); }
.spec-list li > span { font-family: "DM Mono", ui-monospace, monospace; font-size: .8rem; letter-spacing: .14em; color: #006C62; }
.spec-list li h3 { font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; font-variation-settings: "opsz" 96; font-stretch: 82%; font-size: clamp(1.5rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; transition: color .3s; }
@media (hover: hover) { .spec-list li:not(.spec-note):hover { padding-left: .5rem; } .spec-list li:not(.spec-note):hover h3 { color: #00897C; } }
.spec-list li.spec-note { display: block; border-bottom: 0; padding-top: 1.75rem; color: #4C5459; }

/* Booking steps: big numerals on a vertical hairline */
.steps { position: relative; }
.steps li { position: relative; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-bottom: 2rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 1.375rem; top: 3rem; bottom: 0.5rem; width: 1px; background: rgba(255,255,255,0.18); }
.step-n { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 999px; background: #19D3C0; color: #0B0D0E; font-family: "Bricolage Grotesque", ui-sans-serif, sans-serif; font-weight: 800; font-size: 1.25rem; }

/* Photo caption tag */
.fig-tag { position: absolute; left: .75rem; bottom: .75rem; padding: .3rem .6rem; border-radius: 999px; background: rgba(11,13,14,0.72); font-family: "DM Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.88); }

/* Frosted panels in the contact section */
.glass { border: 1px solid rgba(255,255,255,0.7); background: rgba(255,255,255,0.7); box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 10px 32px -6px rgba(0,108,98,0.22); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); }

/* Form fields */
.field-label { display: block; font-size: .875rem; font-weight: 600; color: #0B0D0E; }
.field { margin-top: .5rem; display: block; width: 100%; min-height: 3rem; border-radius: .75rem; border: 1px solid rgba(11,13,14,0.14); background: rgba(255,255,255,0.88); padding: .75rem 1rem; color: #0B0D0E; outline: none; transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: rgba(76,84,89,0.6); }
.field:focus { border-color: #00897C; box-shadow: 0 0 0 3px rgba(25,211,192,0.3); }

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

/* Hero image slow settle, image hover zoom */
.hero-img { transform: scale(1.06); transition: transform 2.4s 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, .js .reveal.from-left, .js .reveal.from-right { 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; }
  .spec-list li { transition: none; }
}
