/* Crown Masterworks: styles only for the service + town pages, the service-areas page and the /lp/ landing pages.
   Everything here reuses the tokens of site.css (colors, type, spacing). site.css itself is untouched. */

/* ---------- local section (what to plan for in this town) ---------- */
.page-local, .page-towns { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.local-copy p { margin: 0 0 1.15rem; color: var(--ink-2); line-height: 1.75; font-size: 1.05rem; max-width: 44rem; }
.local-copy p:first-child { color: var(--ink); font-size: var(--fs-lead); }
.local-copy h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 2rem 0 .7rem; color: var(--ink); }
.trust-line { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--line); max-width: 44rem; }
.trust-line li { padding-block: .95rem; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.45; color: var(--ink); }

/* ---------- link lists: same service in nearby towns, other services in this town ---------- */
.towns-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(2rem, 5vw, 5rem); }
.towns-col .related-title { margin-bottom: 1.2rem; }
.town-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.town-links li { border-bottom: 1px solid var(--line); }
.town-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; font-size: 1.05rem; color: var(--ink); transition: color .3s, padding .3s; }
.town-links a::after { content: ""; width: 1.6rem; height: 1px; background: var(--gold); flex: none; transition: width .3s; }
.town-links a:hover, .town-links a:focus-visible { color: var(--gold-ink); padding-inline-start: .4rem; }
.town-links a:hover::after, .town-links a:focus-visible::after { width: 2.4rem; }
.town-chips { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.town-chips li { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; padding: .55rem 1rem; border: 1px solid var(--line); color: var(--ink-2); }
.town-chips a { color: inherit; }
.town-chips li:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- service-areas page: one block per town ---------- */
.page-hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.page-hero-grid--solo .page-intro, .page-hero-grid--solo .page-intro2 { max-width: 46rem; }
.areas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem clamp(2rem, 4vw, 4rem); }
.areas-town h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 .5rem; }
.areas-town > p { margin: 0 0 1.1rem; color: var(--ink-2); font-size: .98rem; line-height: 1.6; }

/* ---------- static hero photo (pages whose photo is not in the script's media map) ---------- */
.media--static .m-img { opacity: 0; }
html[data-experience="noir"] .media--static .m-noir, html:not([data-experience="ivory"]) .media--static .m-noir { opacity: 1; }
html[data-experience="ivory"] .media--static .m-noir { opacity: 0; }
html[data-experience="ivory"] .media--static .m-ivory { opacity: 1; }

/* ---------- landing pages (/lp/) ---------- */
.lp .main-nav, .lp .menu-btn, .lp .lang, .lp .site-menu, .lp .breadcrumb { display: none !important; }
.lp .brand { pointer-events: none; }
.lp-phone { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: baseline; gap: .5rem; }
.lp-phone small { font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-ink); }
.lp .page-hero { padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.lp .page-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.lp .page-title { font-size: clamp(2.3rem, 4.2vw, 4.1rem); }
.lp-points { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 36rem; }
.lp-points li { display: flex; gap: .9rem; align-items: baseline; padding-block: .85rem; border-bottom: 1px solid var(--line); font-size: 1.02rem; line-height: 1.45; }
.lp-points li::before { content: ""; width: .42rem; height: .42rem; flex: none; background: var(--gold); transform: translateY(-.15rem) rotate(45deg); }
.lp .quote-panel { padding: clamp(1.4rem, 2.4vw, 2.2rem); }
.lp .panel-title { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.lp .panel-steps, .lp .crown-panel { display: none; }
.lp .form { gap: 1.6rem 1.5rem; }
/* short form above the fold: the optional fields stay in the page for the script, hidden from view */
.lp .form .field:has(#f-start), .lp .form .field:has(#f-budget), .lp .form .field--photos, .lp .form .sched { display: none; }
.lp .form textarea { min-height: 5.5rem; }
.lp-form-note { margin: 1rem 0 0; font-size: .86rem; color: var(--ink-3); }
.lp-band { position: relative; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.lp-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2.5rem clamp(3rem, 6vw, 6rem); align-items: center; }
.lp-split--flip > :first-child { order: 2; }
.lp-split .media { aspect-ratio: 4 / 3; }
.lp-split h2 { margin-bottom: 1.2rem; }
.lp-split p { color: var(--ink-2); line-height: 1.75; margin: 0 0 1rem; max-width: 36rem; }
.lp-split .scope-list { margin-top: 1.4rem; }
.lp-split .btn { margin-top: 1.8rem; }
.lp .why-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-final { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(6rem, 12vw, 11rem); }
.lp-final .media { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; }
.lp-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--shade), .92) 0%, rgba(var(--shade), .74) 55%, rgba(var(--shade), .5) 100%); }
.lp-final h2 { font-size: var(--fs-h2); max-width: 18ch; margin: 0 0 1.4rem; }
.lp-final p { font-size: var(--fs-lead); color: var(--ink); max-width: 36rem; margin: 0 0 2rem; line-height: 1.7; }
.lp-final .page-actions { margin-top: 0; }
.lp .footer-grid > div:nth-child(2) { display: none; }
.lp .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }

/* ---------- HighLevel chat bubble ----------
   The chat sits in the bottom right corner, exactly where the site's contact button was. The contact
   button moves one place to the left so both can be used (right-to-left languages keep it on the left). */
html:not([dir="rtl"]) .fab { inset-inline-end: calc(1.25rem + 74px); }

/* ---------- HighLevel form inside the consultation panel ----------
   The site's panel stays exactly as it was (card, title, three steps). The form inside it is transparent
   and has no card of its own; its colors follow the experience through the address ending (ghl-form.js). */
.ghl-form { min-height: 700px; }
/* form_embed.js hides the iframe until it hears "loaded"; from cache that message can be missed.
   color-scheme: the site declares dark/light and the form's document does not; when the two differ the
   browser paints an opaque white backdrop behind the iframe. Matching the form's own scheme keeps it clear. */
.ghl-form iframe[data-form-id] { position: relative !important; left: auto !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; display: block !important; width: 100% !important; color-scheme: light; background: transparent; }

@media (max-width: 1024px) {
  .towns-grid, .lp-split, .lp .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-split--flip > :first-child { order: 0; }
  .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp .why-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-phone small { display: none; }
}
@media (max-width: 720px) {
  .trust-line, .areas-grid { grid-template-columns: minmax(0, 1fr); }
  .lp .why-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .lp .header-cta { display: none; }
  .lp .form { grid-template-columns: minmax(0, 1fr); }
}
