/*
Theme Name: Limestone & Oak
Theme URI: https://limestoneoak.com
Author: Limestone & Oak Contractors
Description: Custom block theme for Limestone & Oak Contractors. Warm limestone palette, editable homepage sections as block patterns.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: limestone-oak
*/

/* Section rhythm */
.lo-section { padding-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.lo-band { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }

/* Small labels above section headings */
.lo-eyebrow { font-size: 0.8125rem !important; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--wp--preset--color--brass); margin: 0; }
.lo-dark .lo-eyebrow { color: var(--wp--preset--color--brass-light); }

.lo-lede { color: var(--wp--preset--color--oak-soft); font-size: 1.1875rem; max-width: 34rem; }
.lo-muted { color: var(--wp--preset--color--oak-soft); font-size: 0.9375rem; }

.lo-hero-title { font-size: clamp(2.75rem, 5.4vw, 4.5rem) !important; line-height: 1.05 !important; letter-spacing: -0.01em; }

/* Photo placeholders: replace with an Image block */
.lo-photo { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--oak-soft); display: flex; align-items: flex-end; padding: 1.25rem !important; font-size: 0.875rem; border-radius: 2px; }
.lo-photo-tall { aspect-ratio: 4 / 5; }
.lo-photo-square { aspect-ratio: 1 / 1; background: #D9CDB9; }
.lo-photo-wide { aspect-ratio: 4 / 3; }
.lo-photo p { margin: 0; }

/* Trust strip */
.lo-trust-item p { margin: 0; }
.lo-trust-item p:first-child { font-weight: 600; }

/* Service cards */
.lo-card { background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); padding: clamp(1.75rem, 3vw, 2.5rem) !important; }
.lo-service { border-top: 1px solid var(--wp--preset--color--line); padding-top: 0.875rem; }
.lo-service p { margin: 0; }
.lo-service p:first-child { font-weight: 600; }

/* Process steps */
.lo-step { border-top: 2px solid var(--wp--preset--color--oak); padding-top: 1.25rem; }
.lo-step p { margin: 0; }
.lo-step-num { font-family: var(--wp--preset--font-family--display); font-size: 2.75rem !important; line-height: 1; color: var(--wp--preset--color--brass); }
.lo-step-title { font-weight: 600; font-size: 1.1875rem; }

/* Owner quote */
.lo-quote { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.625rem; line-height: 1.3; }

/* Commercial band */
.lo-dark { color: var(--wp--preset--color--limestone); }
.lo-dark .lo-lede { color: #E5DACA; }
.lo-tiles { gap: 1px !important; background: #5A4636; border: 1px solid #5A4636; }
.lo-tile { background: var(--wp--preset--color--oak); padding: 1.75rem !important; }
.lo-tile p { margin: 0; }
.lo-tile p:first-child { font-weight: 600; }
.lo-tile p + p { color: var(--wp--preset--color--brass-light); font-size: 0.9375rem; }
.lo-dark .wp-block-button__link { background: var(--wp--preset--color--limestone); color: var(--wp--preset--color--oak); }

/* Text-style button (secondary action) */
.wp-block-button.is-style-lo-text .wp-block-button__link { background: transparent; color: var(--wp--preset--color--brass); padding: 0.75rem 0.25rem; border-bottom: 1px solid currentColor; border-radius: 0; }

/* Header */
.lo-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.lo-logo { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.625rem; letter-spacing: 0.18em; line-height: 1.1; margin: 0; }
.lo-logo a { text-decoration: none; color: inherit; }
.lo-logo-sub { font-size: 0.6875rem; letter-spacing: 0.3em; color: var(--wp--preset--color--oak-soft); margin: 0; }
.lo-header .wp-block-navigation a { text-decoration: none; }
.lo-header .wp-block-button__link { padding: 0.75rem 1.25rem; }

/* Footer */
.lo-footer { border-top: 1px solid var(--wp--preset--color--line); font-size: 0.875rem; color: var(--wp--preset--color--oak-soft); }
.lo-footer p { margin: 0; }
.lo-footer .lo-logo { font-size: 1.375rem; color: var(--wp--preset--color--oak); }

/* Form card (holds your form plugin block) */
.lo-form-card { background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); padding: clamp(1.75rem, 3vw, 2.5rem) !important; }
.lo-form-card input, .lo-form-card select, .lo-form-card textarea { border: 1px solid #C9BBA6 !important; border-radius: 2px !important; background: #fff !important; color: var(--wp--preset--color--oak) !important; font: inherit; min-height: 44px; }

/* Accessibility */
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--brass); outline-offset: 3px; }

/* Layout helpers */
.lo-section-sm { padding-top: 2rem; padding-bottom: 2rem; }
.lo-stack > * + * { margin-block-start: clamp(2rem, 4vw, 3rem) !important; }
.lo-intro { max-width: 40rem; }
.lo-intro > * + * { margin-block-start: 0.75rem !important; }
.lo-cols-gap { gap: clamp(2rem, 5vw, 4rem) !important; }
.lo-header-inner { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.lo-footer-inner { padding-top: 3rem; padding-bottom: 3rem; }
.lo-dark h1, .lo-dark h2, .lo-dark h3 { color: var(--wp--preset--color--limestone); }
.lo-contact-lines p { margin: 0; }
.lo-contact-lines a { color: var(--wp--preset--color--oak); text-decoration: none; }
.lo-contact-lines p:first-child a { font-weight: 600; }

/* 1.0.1: grids stretch to fill the row instead of leaving empty columns */
.lo-section-sm .is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)) !important; }
#services .lo-stack > .is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)) !important; }
.lo-card .is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)) !important; }
#process .lo-stack > .is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)) !important; }
#work .lo-stack > .is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)) !important; }
.lo-header-inner > .wp-block-group:first-child { gap: 0.2rem !important; }
