/* page CSS for the DFW Mobile Detailers build: only what the kit lacks */
/* picture-develops frame (from the kit's in-page-service demo) */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit, 560px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7, 48px); } }

.rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); margin-top: 4px; }
.rows a.rows__name { color: inherit; text-decoration: none; }
.rows a.rows__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.rows--steps .rows__name { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; }
.rows--steps .step-num { width: 32px; height: 32px; margin: 0; color: var(--p-accent); font-variant-numeric: tabular-nums; font-size: 13px; }
.rows--steps small { grid-column: 2; }

/* the type moment: cities set large */
.city-list { list-style: none; margin: var(--s-6, 32px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.city-list :is(a, span) { font-family: var(--font-display); font-size: clamp(40px, 6.2vw, 92px); line-height: 1.06; letter-spacing: var(--display-tracking-xl); color: var(--p-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s ease, color .2s; }
.city-list a:hover, .city-list a:focus-visible { color: var(--p-accent); background-size: 100% 2px; }
.city-list li { display: inline-flex; align-items: center; white-space: nowrap; }
.city-list li:not(:last-child)::after { content: "/"; margin-left: 28px; font-family: var(--font-display); font-size: clamp(40px, 6.2vw, 92px); color: color-mix(in srgb, var(--p-ink) 22%, transparent); }
.city-list--sm a, .city-list--sm li::after { font-size: clamp(28px, 3.6vw, 52px) !important; }

.menu-cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin-top: 12px; }
.menu-cities a { padding: 8px 0; font-size: 18px; color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--p-ink) 10%, transparent); }
.menu-cities a:hover { color: var(--p-accent); }

.hood-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hood-list li { padding: 10px 16px; border: 1px solid color-mix(in srgb, var(--p-ink) 16%, transparent); border-radius: 999px; font-size: 16px; background: var(--p-bg); }

.grid--cards { row-gap: var(--s-6, 32px); }
.card-link { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; padding: 12px 12px 20px; border-radius: var(--r-lg); background: var(--p-surface); transition: transform .2s ease, box-shadow .2s ease; }
.card-link:hover { transform: translateY(-2px); }
.card-link .panel { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md, 12px); margin-bottom: 8px; }
.card-link .panel img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .panel img { transform: scale(1.025); }
.card-link h3 { margin: 0; padding: 0 8px; font-size: 22px; }
.card-link p, .card-link > span { margin: 0; padding: 0 8px; color: var(--muted); }

.why { display: grid; gap: 24px; }
.why--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why__item h3 { margin: 0 0 6px; font-size: 20px; }
.why__item p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .why--row { grid-template-columns: 1fr; } }

.section--first { padding-top: calc(var(--nav-h, 72px) + 64px); }
.article { padding-top: calc(var(--nav-h, 72px) + 56px); }
.article .wrap > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.article__head h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; margin: 12px 0 16px; }
.article__head a { color: inherit; }
.article__media { margin: 40px auto; max-width: 1040px !important; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.article__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prose { font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: 30px; line-height: 1.15; margin: 48px 0 12px; }
.prose h3 { font-size: 21px; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose--flush { font-size: 17px; }
.prose--flush p:first-child { margin-top: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 4px; }
.contact-big { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--p-ink); text-decoration: none; letter-spacing: var(--display-tracking); }
.contact-big:hover { color: var(--p-accent); }
.contact-mid { font-size: 20px; color: var(--p-ink); word-break: break-word; }
.contact-card { background: var(--p-surface); border-radius: var(--r-lg); padding: 32px; }
.footer__contact { line-height: 1.8; }
.footer .hours { margin-top: 8px; }

/* phones: the action bar never covers the last line of the footer */

/* long reading sections (articles, legal, contact, indexes) grow with their content at every width,
   never overlapping the next section; they still take at least their screens */
main > :is(section, .section).article, main > :is(section, .section).flow {
  height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
}
main > :is(section, .section):is(.article, .flow) > .wrap { height: auto; }

/* gate fixes: FAQ photo, phone-width photo frames, 44px row links */
.faq-photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
.faq-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .frame--fill { height: 260px; min-height: 0; width: 100%; max-width: 100%; } }
@media (max-width: 360px) { .nav__logo { font-size: 15px; letter-spacing: -0.01em; } .nav__bar { gap: 6px; } }
.rows a.rows__name { display: inline-flex; align-items: center; min-height: 44px; }

/* section labels above lists ("Add-ons", "Before we arrive", "Before you book") */
#extras h3.t-label, #local h3.t-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--p-accent); margin: 0 0 4px; }
#extras h3.t-label:not(:first-child) { margin-top: 24px; }

/* one primary button size everywhere (gate: button-styles, same-action) */
@media (min-width: 1024px) { .nav__actions .btn { height: 44px; font-size: 16px; } }

/* the close button keeps its own width, like every other primary button */
.closing__cta > .btn { width: auto; align-self: flex-start; justify-self: start; }

/* phone review fixes */
.btn-row > .btn--secondary { text-decoration: none; }
.footer__legal > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
@media (max-width: 1279px) { main > section#faq { min-height: 0; } }

/* inner-page review fixes */
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; }
.prose li { padding-left: .25rem; }
.prose li::marker { color: var(--p-accent); }
.prose .prose__q { font-size: 20px; margin: 28px 0 6px; }
.article__media { max-width: 960px !important; }
main > section:is(#faq, #values, #nearby) { height: auto; min-height: 0; }
main > section:is(#faq, #values, #nearby) > .wrap { height: auto; }

/* ---- spacing pass (client feedback 2026-11-24): sections size to their content ----
   The kit pins every section to a full screen; on this content that left large empty bands.
   Every section now takes its content height plus one consistent padding; only the
   pinned-chapters section keeps its height, because its scroll moment needs it. */
main > :is(section, .section):not([data-moment="pinned-chapters"]):not(.hero),
footer.closing {
  height: auto !important; min-height: 0 !important;
  padding-top: clamp(80px, 9vw, 128px) !important; padding-bottom: clamp(80px, 9vw, 128px) !important;
}
main > :is(section, .section):not([data-moment="pinned-chapters"]) > :is(.wrap, .container),
footer.closing > .wrap { height: auto !important; }
footer.closing .closing__links { margin-top: clamp(48px, 6vw, 80px); }

/* hero: content height, the photo in its own landscape shape (no zoom) */
main > .hero { height: auto !important; min-height: min(86svh, 820px) !important; display: grid; align-content: center; padding-top: calc(72px + clamp(40px, 5vw, 72px)) !important; padding-bottom: clamp(64px, 7vw, 104px) !important; }
.section-head { margin-bottom: clamp(28px, 3vw, 44px); }
main > .hero > .wrap { height: auto !important; }
.hero--split .hero__grid { align-items: center; }
.hero--split .hero__media { height: auto !important; aspect-ratio: 3 / 2; min-height: 0 !important; flex: none !important; }
@media (max-width: 1023px) { .hero--split .hero__media { margin-top: 32px; width: 100%; align-self: stretch; } }

/* frames that used to fill the pinned screen get their own shape */
.frame--fill { height: auto !important; min-height: 0 !important; aspect-ratio: 4 / 3; flex: none !important; }
.develop { height: auto !important; aspect-ratio: 4 / 3; }
@media (max-width: 639px) { .hero__media .ly-float { display: none; } }

/* shared additions for the lead sites */
.nav__logo--img img { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 639px) { .nav__logo--img img { height: 32px; max-width: 160px; } }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.footer__cols .span-2 { grid-column: auto; }
.prose--wide { max-width: 820px; }
.article-body { padding-top: 0 !important; }

/* enquiry form */
.form-card { background: var(--p-surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.contact-card .enquiry-form { margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .field--wide { grid-column: 1 / -1; }
@media (max-width: 639px) { .form-grid { grid-template-columns: 1fr; } }
.enquiry-form .field { display: grid; gap: 6px; }
.enquiry-form label { font-size: 15px; font-weight: 500; }
.enquiry-form :is(input, select, textarea) { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--p-ink); background: var(--p-bg); border: 1px solid color-mix(in srgb, var(--p-ink) 22%, transparent); border-radius: var(--r-sm, 8px); }
.enquiry-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--p-accent); outline-offset: 1px; }
.enquiry-form [aria-invalid="true"] { border-color: #b42318; }
.enquiry-form .field__error { color: #b42318; font-size: 14px; margin: 0; }
.enquiry-form .btn-row { margin-top: 20px; }
.enquiry-form .form__status { margin: 12px 0 4px; font-size: 15px; }
.enquiry-form .form__status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form .field, .enquiry-form :is(input, select, textarea) { max-width: none; box-sizing: border-box; }
.enquiry-form .field { min-width: 0; }

/* the home page form is the target of every main button (#quote) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#quote { scroll-margin-top: 72px; }
.form.enquiry-form { display: block; }

