/* Shared one-page additions, loaded after every theme (theme.css). Only layout the
   themes don't have: the form in the hero, the contact block, the NAP list. Colors
   come from the theme, so a color change follows. */

html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: 90px; }

/* Brand without a logo image */
.cs-one-page .brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.15; }

/* ---- Hero with the form on the right ---- */
.blk-hero.cs-has-form .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    text-align: left;
}
.blk-hero.cs-has-form .hero-inner > * { min-width: 0; }
.blk-hero.cs-has-form .hero-inner h1 { max-width: 18ch; }
@media (max-width: 960px) {
    .blk-hero.cs-has-form .hero-inner { grid-template-columns: 1fr; }
}

/* The form sits on a white card, whatever the hero's colors */
.cs-form-card {
    background: #fff;
    color: #1a1e27;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 50px -22px rgba(0, 0, 0, .45);
    text-align: left;
}
@media (min-width: 768px) { .cs-form-card { padding: 1.9rem; } }
.cs-form-card .cs-form-title { color: #1a1e27; font-size: 1.35rem; margin: 0 0 .35rem; }
.cs-form-card .cs-form-text { color: #4b5563; font-size: .95rem; margin: 0 0 1rem; }

/* ---- Contact block (form at the bottom) ---- */
.cs-contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .cs-contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.cs-contact-call a { font-size: 1.4rem; font-weight: 800; }

/* ---- Name, address, phone, hours ---- */
.cs-nap { display: grid; gap: .9rem 2rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cs-nap-item { display: flex; flex-direction: column; gap: .2rem; }
.cs-nap-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }

/* Phones: the header button says "Call" only; the number is on the call bar. */
.hdr-call { white-space: nowrap; }
@media (max-width: 560px) { .site-header .hdr-call .cs-hdr-num { display: none; } }
