/* Ero Pro demo: custom styles on top of Tailwind */

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

.hero-title { font-size: clamp(4.25rem, 26vw, 15rem); line-height: 0.82; letter-spacing: -0.065em; margin-left: -0.04em; }
.display { letter-spacing: -0.045em; line-height: 1.02; }
.phone-big { font-size: clamp(2.5rem, 11.5vw, 9.5rem); line-height: 0.9; letter-spacing: -0.06em; white-space: nowrap; }

/* Hairline grid: thin vertical rules on a 6 or 12 column rhythm */
.hairgrid {
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
@media (min-width: 768px) { .hairgrid { background-size: calc(100% / 12) 100%; } }
.hairgrid-light { background-image: linear-gradient(to right, rgba(255,255,255,0.12) 1px, transparent 1px); }
.hairgrid-ink { background-image: linear-gradient(to right, rgba(10,11,13,0.05) 1px, transparent 1px); }

/* Angled top edge on the cobalt band */
.angle-top { clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%); }

/* Numbered service list with hairline dividers */
.spec-list li { display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid #DDE2EA; transition: padding-left .4s cubic-bezier(.2,.7,.2,1); }
.spec-list li > span { font-family: "Geist Mono", ui-monospace, monospace; font-size: .75rem; letter-spacing: .16em; color: #1638D6; }
.spec-list li h3 { font-size: clamp(1.4rem, 3.4vw, 2.35rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; 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: #1F4BFF; } }
.spec-list li.spec-note { display: block; border-bottom: 0; padding-top: 1.75rem; color: #4A505C; }

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

/* Form fields */
.field-label { display: block; font-size: .875rem; font-weight: 600; color: #0A0B0D; }
.field { margin-top: .5rem; display: block; width: 100%; min-height: 3rem; border-radius: .375rem; border: 1px solid rgba(10,11,13,0.14); background: rgba(255,255,255,0.85); padding: .75rem 1rem; color: #0A0B0D; outline: none; transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: rgba(74,80,92,0.6); }
.field:focus { border-color: #1F4BFF; box-shadow: 0 0 0 3px rgba(31,75,255,0.22); }

/* 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; }
}
