/*
Theme Name: Uptown Fix It
Theme URI: https://www.uptownfixit.com
Author: Uptown Fix It
Description: Custom child theme for Uptown Fix It — small-job handyman service in Chicago. Based on Twenty Twenty-Five.
Template: twentytwentyfive
Version: 2.0.0
License: GNU General Public License v2 or later
*/

/* ============ Design system (v2 — fixitpeople-style conversion layout) ============ */
:root {
    --uf-accent: #C25B28;
    --uf-accent-dark: #a84a1e;
    --uf-ink: #1C1C1C;
    --uf-slate: #4A6670;
    --uf-paper: #F7F4EF;
    --uf-white: #ffffff;
    --uf-heading-font: 'Poppins', 'Open Sans', sans-serif;
    --uf-body-font: 'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body, .wp-block-post-content {
    font-family: var(--uf-body-font);
}

/* Headings get Poppins everywhere */
h1, h2, h3, h4, h5, h6, .wp-block-site-title {
    font-family: var(--uf-heading-font);
}

/* ============ Header ============ */
.uf-header {
    background: var(--uf-ink);
    padding: 0.8rem 2rem;
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    border-bottom: 3px solid var(--uf-accent);
}
.uf-header .wp-block-site-title a { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.uf-header .wp-block-site-title a:hover { color: #fff; }
.uf-tagline { color: var(--uf-accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; }
.uf-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.uf-nav a { color: #e8e8e8; text-decoration: none; font-size: 0.92rem; font-weight: 600; padding: 0.25rem 0; }
.uf-nav a:hover, .uf-nav a:focus { color: var(--uf-accent); }
.uf-cta {
    display: inline-block;
    background: var(--uf-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.uf-cta:hover { background: var(--uf-accent-dark); color: #fff !important; }

/* Buttons (global) */
.wp-block-button .wp-block-button__link, .wp-block-button__link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
}

/* Services section heading + CTA under grid */
.uf-services-h { color: var(--uf-ink); font-size: 2.2rem; font-weight: 800; text-align: center; margin: 0 0 2rem; }
.uf-services .uf-services-cta { display: flex; justify-content: center; margin-top: 2rem; }

/* ============ Service cards (What I Fix) ============ */
.uf-services {
    background: var(--uf-accent);
    padding: 4rem 2rem;
}
.uf-services .uf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem;
    max-width: var(--uf-max) !important;
    margin: 0 auto;
}
.uf-card {
    background: #fff;
    border-radius: 4px 4px 48px 4px;   /* asymmetric "page curl" corner like the reference */
    padding: 1.6rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.uf-card svg {
    width: 24px; height: 24px;
    display: block; margin-bottom: 0.9rem;
    background: #f8ede4;      /* soft tinted badge circle behind icon */
    border-radius: 50%;
    padding: 10px;            /* 24px glyph + 10px padding = 44px badge */
    box-sizing: content-box;
    color: var(--uf-ink);
}
/* Smart Home: gear reads as "settings" — swap to house-with-signal semantics is a future icon tweak. */
.uf-card h3 { color: var(--uf-accent); font-size: 1.15rem; font-weight: 700; margin: 0 0 0.5rem; }
.uf-card p { color: #262626; font-size: 0.92rem; line-height: 1.65; margin: 0; }

/* ============ Feature rows (two-column, text + list) ============ */
.uf-feature { padding: 4rem 2rem; }
.uf-feature-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.uf-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 0;
    border-top: 1px solid #e5dfd4;
    margin: 0;
}
.uf-feature-list li svg { flex: 0 0 auto; width: 30px; height: 30px; }
.uf-feature-list li strong { font-family: var(--uf-heading-font); font-size: 1rem; color: var(--uf-ink); }

/* ============ Steps ============ */
.uf-steps { background: var(--uf-paper); padding: 4rem 2rem; }
.uf-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}
.uf-step { background: #fff; border-radius: 4px 4px 48px 4px; padding: 1.6rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.uf-step .uf-step-num {
    display: inline-block;
    background: var(--uf-accent);
    color: #fff;
    font-family: var(--uf-heading-font);
    font-weight: 800;
    font-size: 1rem;
    width: 34px; height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 0.6rem;
}
.uf-step h3 { color: var(--uf-ink); font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4rem; }
.uf-step p { color: #262626; font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ============ Global width discipline (v2.1) ============
 * Every section's content container matches the footer's width so the page
 * reads as one canvas on ultrawide monitors. Full-bleed backgrounds stay
 * full-bleed; the CONTENT inside each is capped via these wrappers.
 */
:root {
    --uf-max: 1100px;
}
/* (v2.2: replaced by .uf-band system — bands are full-bleed, .uf-capped holds the width) */
.uf-carousel,
.uf-reviews-grid {
    max-width: var(--uf-max);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Colored full-bleed sections: background spans viewport, inner content capped.
   The covers (hero, CTA band) own their bg via .wp-block-cover — that must stay
   full-bleed, so instead of capping the cover, cap only its inner container.
   .uf-services keeps its own bg capped to 1100 like the footer for consistency
   with footer-as-reference. */

.uf-header .wp-block-site-title,
.uf-header > p { max-width: none; }

/* Cover inner containers are centered by the cover block; constrain width there */
.wp-block-cover__inner-container { margin-left: auto; margin-right: auto; }
/* But the hero wants wider breathing than 1100 — keep hero readable */
.wp-block-cover .wp-block-cover__inner-container { max-width: 900px; }

/* Service cards grid + steps grid + footer cols already cap at 1100/1200/1000;
   align them all to --uf-max */
.uf-cards { max-width: var(--uf-max) !important; }
.uf-footer-cols { max-width: var(--uf-max) !important; }
.uf-steps-grid { max-width: var(--uf-max) !important; }
.uf-footer-base { max-width: var(--uf-max) !important; }
.uf-carousel { max-width: 760px !important; }  /* carousel stays its own size */
.uf-reviews-grid { max-width: var(--uf-max) !important; }

/* Feature sections: content constrained. box-sizing border-box max 1100 includes padding */
.uf-feature { max-width: var(--uf-max); margin-left: auto; margin-right: auto; box-sizing: border-box; }
.uf-steps { max-width: var(--uf-max); margin-left: auto; margin-right: auto; box-sizing: border-box; }
.uf-services { padding-left: 2rem; padding-right: 2rem; }
.uf-header { max-width: var(--uf-max); box-sizing: border-box; }

/* Reviews page H1/desc also constrained (page content is default-constrained by group layouts, this is belt+suspenders) */
.uf-header { max-width: var(--uf-max); }
/* Footer: background full-bleed, content capped to the shared column */
.uf-footer {
    background: var(--uf-ink);
    color: #e8e8e8;
    padding: 3rem 2rem 2rem;
    font-size: 0.9rem;
}
.uf-footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2rem;
    max-width: var(--uf-max);
    margin: 0 auto 2.5rem;
}
.uf-footer-cols h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 0.7rem; font-weight: 700; }
.uf-footer-cols p, .uf-footer-cols a { color: #cfcfcf; margin: 0 0 0.4rem; text-decoration: none; }
.uf-footer-cols a:hover { color: var(--uf-accent); }
.uf-footer-base {
    border-top: 1px solid #333;
    padding-top: 1.4rem;
    max-width: var(--uf-max);
    margin: 0 auto;
}
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: #999;
    font-size: 0.82rem;
}
.uf-footer-base a { color: #999; }

/* ============ Reviews (carousel kept from v1) ============ */
.uf-stars { color: var(--uf-accent); letter-spacing: 2px; font-size: 0.95rem; margin: 0 0 0.4rem; }

.uf-carousel { position: relative; max-width: 760px; margin: 2.5rem auto 0; }
.uf-slides { position: relative; overflow: hidden; }
.uf-slide {
    display: none;
    background: #ffffff;
    border-radius: 4px 4px 48px 4px;
    padding: 1.8rem 2.2rem;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.uf-slide.is-active { display: block; }
.uf-quote { color: var(--uf-ink); font-size: 1.05rem; line-height: 1.55; font-style: italic; margin: 0 0 0.8rem; }
.uf-meta { color: var(--uf-slate); font-size: 0.85rem; margin: 0; }

.uf-prev, .uf-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: #1C1C1C; color: #fff; border: none;
    border-radius: 50%; width: 40px; height: 40px; font-size: 0.85rem;
    cursor: pointer; line-height: 1; z-index: 5;
}
.uf-prev { left: -14px; }
.uf-next { right: -14px; }
.uf-prev:hover, .uf-next:hover { background: var(--uf-accent); }

.uf-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.1rem; }
.uf-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: none; background: #d8d2c8; cursor: pointer; padding: 0;
}
.uf-dot.is-active { background: var(--uf-accent); }

/* Reviews page grid */
.uf-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
    align-items: start;
    margin: 2.5rem 0;
}
.uf-review-card {
    background: #ffffff;
    border: 1px solid #e5dfd4;
    border-radius: 4px 4px 48px 4px;
    padding: 1.4rem 1.5rem;
}
.uf-review-card .uf-quote { color: var(--uf-ink); font-size: 0.95rem; line-height: 1.5; font-style: italic; margin: 0 0 0.7rem; }
.uf-review-card .uf-meta { color: var(--uf-slate); font-size: 0.8rem; margin: 0; }

@media (max-width: 600px) {
    .wp-block-cover h1 { font-size: 2.2rem !important; }
    .wp-block-cover p { font-size: 1.1rem !important; }
    .uf-prev { left: 6px; }
    .uf-next { right: 6px; }
    .uf-reviews-grid { grid-template-columns: 1fr; }
}
/* ============ Full-bleed band system (v2.2) ============
 * Every section = .uf-band (viewport-wide, carries bg) > .uf-capped (1100px content).
 * No two adjacent bands ever share the same bg. Page order guarantees alternation.
 */
.uf-band {
    width: 100%;
    padding: 4rem 2rem;
    box-sizing: border-box;
}
.uf-capped {
    max-width: var(--uf-max);
    margin: 0 auto;
    box-sizing: border-box;
}
.uf-band-paper   { background: var(--uf-paper); }
.uf-band-orange  { background: var(--uf-accent); }
.uf-band-dark    { background: var(--uf-ink); }
.uf-band-dark h2 { color: #ffffff; }
.uf-band-dark p  { color: #e8e8e8; }
.uf-band-dark .uf-muted { color: #aaaaaa; }
.uf-band-orange .uf-cards { max-width: 100%; }  /* capped by .uf-capped already */

/* Headings inside capped sections */
.uf-h2-center { color: var(--uf-ink); font-size: 2.2rem; font-weight: 800; text-align: center; margin: 0 0 0.8rem; text-align: center; }
.uf-subcenter { color: var(--uf-slate); text-align: center; font-size: 0.95rem; margin: 0 0 1rem; }
.uf-capped h2 { color: var(--uf-ink); font-size: 1.9rem; font-weight: 700; margin: 0 0 1rem; }
.uf-capped p  { color: #262626; font-size: 1rem; line-height: 1.7; margin: 0 0 1rem; }
.uf-capped .uf-carousel { margin-top: 1.5rem; }
.uf-capped .uf-services-cta { margin-top: 1.6rem; }

/* Collapse double padding where two same-color bands meet (defensive) */
.uf-band + .uf-band { }

/* Hero cover inner: keep 900 readable cap, drop default cover padding gaps */
.wp-block-cover { padding-top: 0; padding-bottom: 0; }
.wp-block-cover__inner-container { max-width: 900px; }

/* Header: full-bleed dark bar, inner capped */


/* v2.2b: bands touch — no white slivers between full-bleed sections */
.entry-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.entry-content > .wp-block-html + .wp-block-html,
.entry-content .wp-block-cover + .wp-block-html,
.entry-content .wp-block-html + .wp-block-cover { margin-top: 0 !important; }
/* the theme's layout flow spacing between top-level blocks */
.wp-block-html { margin: 0 !important; }
