/* Longview theme: section + component styles. Tokens come from theme.json. */
:root {
	--lv-maroon: var(--wp--preset--color--maroon);
	--lv-orange: var(--wp--preset--color--orange);
	--lv-line: var(--wp--preset--color--line);
	--lv-section-y: clamp(3.5rem, 7vw, 6rem);
}
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* Sections stack edge to edge */
.lv-main { margin-top: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.lv-sections > .alignfull, .lv-sections > .lv-section { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.lv-section { padding-top: var(--lv-section-y); padding-bottom: var(--lv-section-y); }
.lv-section > * + * { margin-block-start: 1.25rem; }
.lv-section h2.wp-block-heading { margin-block-start: .35rem; }

/* Section color styles */
.is-style-section-dark { background: var(--wp--preset--color--maroon); color: #e8d8c4; }
.is-style-section-dark :is(h1, h2, h3, h4) { color: var(--wp--preset--color--cream); }
.is-style-section-dark a:not(.wp-element-button):not(.lv-btn) { color: #f3a774; }
.is-style-section-sand { background: var(--wp--preset--color--sand); }
.is-style-section-cta { background: var(--wp--preset--color--orange); color: #fff; text-align: center; }
.is-style-section-cta :is(h1, h2, h3) { color: #fff; margin-inline: auto !important; }
.is-style-section-cta p { margin-inline: auto !important; }
.is-style-section-cta .wp-block-buttons { justify-content: center; }
.is-style-section-cta .wp-block-button:not(.is-style-outline-light) .wp-block-button__link { background: var(--wp--preset--color--maroon); }
.is-style-section-cta .wp-block-button:not(.is-style-outline-light) .wp-block-button__link:hover { background: #1f0507; }
.is-style-section-cta .is-style-eyebrow { color: #fff; opacity: .85; }
.lv-inline-cta { border-radius: 8px; padding: 2rem; margin-top: 3rem; }

/* Hero */
.lv-hero { padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(4rem, 9vw, 7.5rem); position: relative; isolation: isolate; }
.lv-hero--image { background-color: var(--wp--preset--color--maroon); }
.lv-hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(45,8,10,.96) 0%, rgba(45,8,10,.86) 45%, rgba(45,8,10,.6) 100%); }
.lv-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.04; max-width: 13em; margin-block: .5rem 0; }
.lv-hero > p:not([class]), .lv-hero .lv-lead-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; color: #f0e8d8; }
.lv-hero .is-style-eyebrow { display: inline-block; border: 1px solid rgba(216,102,42,.6); background: rgba(216,102,42,.12); padding: .45em .9em; border-radius: 3px; }
.lv-hero .is-style-eyebrow::before { content: "● "; color: var(--wp--preset--color--orange); }
.lv-hero .lv-crumbs { color: #e8d8c4; }
.lv-hero .lv-finder { margin-top: 1.75rem; }
.lv-accent { color: var(--wp--preset--color--orange); }
.lv-page-hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* Eyebrow / small labels */
.is-style-eyebrow { font-family: var(--wp--preset--font-family--ui); font-weight: 700; font-size: .75rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--orange); margin-bottom: 0 !important; }
.is-style-eyebrow + h2::after, .is-style-eyebrow + .wp-block-heading:is(h2)::after { content: ""; display: block; width: 48px; height: 2px; background: var(--wp--preset--color--orange); margin-top: .9rem; }
.is-style-section-cta .is-style-eyebrow + h2::after { margin-inline: auto; background: #fff; }

/* Chips */
ul.is-style-chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .45rem; }
ul.is-style-chips li { font: 700 .72rem/1.2 var(--wp--preset--font-family--ui); letter-spacing: .07em; text-transform: uppercase; border: 1px solid var(--wp--preset--color--line); background: #fff; color: var(--wp--preset--color--maroon); padding: .55em .85em; border-radius: 3px; margin: 0; }
.is-style-section-dark ul.is-style-chips li, .is-style-card-dark ul.is-style-chips li { background: transparent; border-color: rgba(232,216,196,.35); color: #f5ede0; }

/* Check lists */
ul.is-style-checks { list-style: none; padding-left: 0 !important; }
ul.is-style-checks li { position: relative; padding-left: 1.75em; margin-bottom: .5em; font-family: var(--wp--preset--font-family--ui); font-weight: 500; color: var(--wp--preset--color--maroon); }
ul.is-style-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wp--preset--color--orange); font-weight: 800; }
.is-style-section-dark ul.is-style-checks li { color: #f5ede0; }
ul.is-style-grid { columns: 2; column-gap: 2rem; }

/* Stats */
ul.is-style-stats { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid rgba(232,216,196,.2); border-radius: 6px; margin-top: 2.5rem !important; max-width: 900px; }
ul.is-style-stats li { padding: 1.1rem 1rem; text-align: center; font: 600 .72rem var(--wp--preset--font-family--ui); letter-spacing: .1em; text-transform: uppercase; color: #e8d8c4; margin: 0; }
ul.is-style-stats li + li { border-left: 1px solid rgba(232,216,196,.2); }
ul.is-style-stats strong { display: inline-block; font: 800 2rem/1.1 var(--wp--preset--font-family--ui); color: var(--wp--preset--color--orange); letter-spacing: 0; margin-bottom: .2rem; }
@media (max-width: 700px) { ul.is-style-stats { grid-template-columns: 1fr 1fr; } ul.is-style-stats li:nth-child(3) { border-left: 0; } ul.is-style-stats li:nth-child(n+3) { border-top: 1px solid rgba(232,216,196,.2); } }
.lv-stat { font-family: var(--wp--preset--font-family--ui); color: var(--wp--preset--color--maroon); }
.lv-stat strong { font-size: 1.4rem; color: var(--wp--preset--color--orange); }

/* Cards & grids */
.lv-grid { gap: 1.25rem !important; }
.lv-stack { gap: 1rem !important; }
.is-style-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; padding: 1.6rem; height: 100%; box-sizing: border-box; }
.is-style-card > * + * { margin-block-start: .75rem; }
.is-style-card > :first-child { margin-top: 0; }
.is-style-card h3 { margin: 0; }
.is-style-card h3 a { color: var(--wp--preset--color--maroon); text-decoration: none; }
.is-style-card h3 a:hover { color: var(--wp--preset--color--orange); }
.is-style-card:has(h3 a) { border-top: 3px solid var(--wp--preset--color--orange); transition: box-shadow .15s, transform .15s; }
.is-style-card:has(h3 a):hover { box-shadow: 0 14px 34px rgba(45,8,10,.1); transform: translateY(-2px); }
.is-style-card-dark { background: rgba(255,255,255,.04); border: 1px solid rgba(232,216,196,.14); border-radius: 6px; padding: 1.6rem; height: 100%; box-sizing: border-box; }
.is-style-card-dark > * + * { margin-block-start: .6rem; }
.is-style-card-dark h3 { margin: 0; }
.lv-card-link { font: 700 .82rem var(--wp--preset--font-family--ui); }
.lv-card-link a { text-decoration: none; }
.is-style-icon { font-size: 1.8rem !important; line-height: 1; margin: 0 0 .25rem !important; }

/* Steps */
.is-style-step-number { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; background: var(--wp--preset--color--maroon); color: var(--wp--preset--color--orange); font: 800 1.15rem var(--wp--preset--font-family--ui); border-radius: 2px; margin: 0 !important; }
.lv-steps .is-style-card { border: 0; background: transparent; padding: 0; }
.lv-steps--list .is-style-card, .lv-steps--list .is-style-card-dark { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1.25rem; align-items: start; }
.lv-steps--list .is-style-card > :not(.is-style-step-number) { grid-column: 2; margin: 0; }
.lv-steps--list .is-style-step-number { grid-row: span 2; }

/* Testimonials */
.lv-testimonial .lv-quote { font-style: italic; font-size: 1.05rem; }
.lv-testimonial .lv-quote::before { content: "★★★★★"; display: block; font-style: normal; color: var(--wp--preset--color--orange); letter-spacing: .15em; margin-bottom: .6rem; }
.lv-cite { font-family: var(--wp--preset--font-family--ui); font-size: .85rem; }
.is-style-section-dark .lv-testimonial { background: rgba(255,255,255,.04); border-color: rgba(232,216,196,.14); }

/* FAQ */
.wp-block-details { padding-top: .9rem; }
.wp-block-details summary { font: 600 1rem/1.4 var(--wp--preset--font-family--ui); color: var(--wp--preset--color--maroon); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--orange); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > p { margin-top: .6rem; }
.is-style-section-dark .wp-block-details { border-color: rgba(232,216,196,.18) !important; }
.is-style-section-dark .wp-block-details summary { color: #fff; }

/* Columns */
.lv-cols { gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.lv-cols > .wp-block-column > * + * { margin-block-start: 1.1rem; }
.lv-cols .wp-block-column:has(> .lv-stack) { align-self: flex-start; }

/* Images */
.wp-block-image.is-style-framed img { border-radius: 6px; box-shadow: 0 20px 50px rgba(45,8,10,.18); }

/* Buttons */
.wp-block-buttons { gap: .75rem; margin-top: 1.75rem !important; }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: inherit; }
.is-style-section-dark .wp-block-button.is-style-outline-light .wp-block-button__link, .lv-hero .wp-block-button.is-style-outline-light .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: rgba(255,255,255,.1); }
.lv-section:not(.is-style-section-dark):not(.is-style-section-cta):not(.lv-hero) .wp-block-button.is-style-outline-light .wp-block-button__link { color: var(--wp--preset--color--maroon); }
.wp-block-button__link[href^="tel:"]::before { content: "☎ "; }

/* Misc */
.lv-address { font-family: var(--wp--preset--font-family--ui); font-style: normal; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-excerpt__more-link { font: 700 .85rem var(--wp--preset--font-family--ui); }
.wp-block-query .is-style-card { padding: 1.25rem; }
.wp-block-query .wp-block-post-featured-image { margin: -1.25rem -1.25rem .75rem; }
.wp-block-query .wp-block-post-featured-image img { border-radius: 6px 6px 0 0; }
:focus-visible { outline: 2px solid var(--wp--preset--color--orange); outline-offset: 2px; }

@media (max-width: 781px) {
	.lv-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 600px) and (max-width: 781px) {
	.lv-grid.lv-steps { grid-template-columns: 1fr 1fr !important; }
}

/* Left-align narrow children inside wide (1200px) sections instead of centering them */
.lv-section.is-layout-constrained:not(.is-style-section-cta) > :not(.alignfull):not(.alignwide) {
	margin-left: max(calc((100% - 1200px) / 2), 0px) !important;
}
ul.lv-list-cols { columns: 3 220px; column-gap: 2rem; }
ul.lv-list-cols li { break-inside: avoid; }
.lv-big-link { font-family: var(--wp--preset--font-family--ui); }
.lv-big-link a { font-size: 1.6rem; text-decoration: none; }
