/*
Theme Name: Wesley Flooring
Template: twentytwentyfive
Description: Lightweight child theme of Twenty Twenty-Five for Wesley Custom Flooring.
Version: 1.3.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: wesley-flooring
*/

/* Keep long words from breaking mid-word (IMG Floors lesson) */
body { overflow-wrap: normal; word-break: normal; hyphens: manual; }
h1, h2, h3 { text-wrap: balance; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }

/* Header: horizontal color-on-light logo (round 5 A). Color-on-dark gold logo is used in the dark footer. */
.wcf-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.wcf-logo, .wcf-footer-logo { margin: 0; line-height: 0; flex: 0 0 auto; }
.wcf-logo a, .wcf-footer-logo a { display: inline-block; text-decoration: none; }
.wcf-logo img, .wcf-footer-logo img { display: block; width: auto; height: 48px; max-width: min(100%, 220px); object-fit: contain; object-position: left center; }
@media (min-width: 782px) {
  .wcf-logo img, .wcf-footer-logo img { height: 56px; max-width: 247px; }
}
.wcf-header .wp-block-navigation a { text-decoration: none; }
.wcf-header .wp-block-navigation a:hover { text-decoration: underline; }
.wcf-phone a { white-space: nowrap; text-decoration: none; font-weight: 700; }

/* Cards */
.wcf-card { height: 100%; }
.wcf-card .wp-block-image img { aspect-ratio: 3/2; object-fit: cover; width: 100%; border-radius: 6px; }
.wcf-card h3 a { text-decoration: none; }
.wcf-card h3 a:hover { text-decoration: underline; }

/* Gallery */
.wcf-gallery figure img { aspect-ratio: 4/3; object-fit: cover; }
.wcf-stock-note { font-size: .85rem; opacity: .85; }

/* Check lists */
.wcf-checks { list-style: none; padding-left: 0; }
.wcf-checks li { padding-left: 1.6em; position: relative; margin-bottom: .45em; }
.wcf-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--oak); font-weight: 700; }

/* Areas */
.wcf-areas-note { margin: 0 0 1rem; }
.wcf-city-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
}
@media (min-width: 600px) { .wcf-city-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 782px) { .wcf-city-grid { grid-template-columns: 1fr 1fr 1fr; } }
.wcf-city-group h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--wp--preset--color--walnut); }
.wcf-city-group ul { list-style: none; margin: 0; padding: 0; }
.wcf-city-group li { margin: 0.15rem 0; }

/* Contact Form 7 */
.wpcf7 form { display: grid; gap: 1rem; }
.wpcf7 .wcf-row { display: grid; gap: 1rem; }
@media (min-width: 700px) { .wpcf7 .wcf-row { grid-template-columns: 1fr 1fr; } }
.wpcf7 label { display: block; font-weight: 600; font-size: .95rem; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
  width: 100%; box-sizing: border-box; margin-top: .35rem; padding: .75rem .85rem; font: inherit; font-size: 1rem;
  border: 1px solid #c9bfb3; border-radius: 6px; background: #fff; color: inherit; }
.wpcf7 textarea { min-height: 8rem; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--oak); outline-offset: 1px; border-color: transparent; }
.wpcf7 .wpcf7-list-item { margin: 0 1.25rem 0 0; }
.wpcf7 .wcf-radio-label { font-weight: 600; font-size: .95rem; margin: 0; }
.wpcf7 input[type=submit] { justify-self: start; background: var(--wp--preset--color--oak); color: #fff; border: 0; border-radius: 6px; padding: .9rem 1.6rem; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--walnut); }
.wpcf7 .wcf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wpcf7-not-valid-tip { font-size: .85rem; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 6px; }
.wcf-small { font-size: .85rem; opacity: .85; }

/* Mobile call bar */
.wcf-callbar { display: none; }
@media (max-width: 781px) {
  body { padding-bottom: 64px; }
  .wcf-callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -2px 8px rgba(0,0,0,.15); }
  .wcf-callbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 700; text-decoration: none; color: #fff; font-size: 1rem; }
  .wcf-callbar a.wcf-callbar__call { background: var(--wp--preset--color--walnut); }
  .wcf-callbar a.wcf-callbar__quote { background: var(--wp--preset--color--oak); }
  .wcf-header .wcf-phone { display: none; }
  footer.wp-block-group { padding-bottom: 6rem !important; }
}

/* Tagline under the home hero headline and in the footer */
.wcf-tagline { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; margin: 0.15rem 0 0.85rem; opacity: .95; }
.wcf-footer-tagline { margin: 0.65rem 0 1rem; font-size: 0.95rem; font-style: italic; line-height: 1.4; opacity: .95; }

/* Five flooring-type icons on Home and Services */
.wcf-floors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin: 0.5rem 0 0; }
.wcf-floors__item { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; text-align: center; text-decoration: none; color: var(--wp--preset--color--contrast); padding: 0.85rem 0.4rem; border-radius: 8px; }
.wcf-floors__item:hover { color: var(--wp--preset--color--walnut); background: rgba(0,0,0,.04); text-decoration: none; }
.wcf-floors__item svg { width: 48px; height: 48px; display: block; }
.wcf-floors__item span { font-weight: 600; font-size: 0.9rem; line-height: 1.25; }
@media (max-width: 781px) {
  .wcf-floors { grid-template-columns: repeat(2, 1fr); scroll-margin-bottom: 72px; }
}
