/*
Theme Name: First Choice Home Inspections
Theme URI: https://firstchoiceinspections.com
Author: First Choice Home Inspections, LLC
Description: A wireframe-styled home inspection theme built on the Industry design system. Barlow Condensed over Barlow, steel accent on a light technical ground, blueprint framing with registration marks. Includes a Service Area custom post type for local SEO landing pages and LocalBusiness / FAQPage schema.
Version: 1.12.1
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: firstchoice
*/

/* ── Layout primitives ───────────────────────────────────────────── */
.fc-wrap { max-width: 1600px; margin: 0 auto; padding: 0 32px; }
.fc-section { border-bottom: 1px solid var(--color-divider); }
.fc-pad { padding-top: 72px; padding-bottom: 72px; }
.fc-pad-sm { padding-top: 64px; padding-bottom: 64px; }
.fc-skip { position: absolute; left: -9999px; }
.fc-skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--color-bg); padding: 10px 14px; }

/* ── Header ──────────────────────────────────────────────────────── */
.fc-header { position: sticky; top: 0; z-index: 30; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
.fc-bar { height: 72px; display: flex; align-items: center; gap: 36px; }
.fc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-text); }
.fc-mark { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--color-accent); color: var(--color-bg); font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.fc-brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.fc-brand-name b { font-family: var(--font-heading); font-weight: 600; font-size: 17px; }
.fc-brand-name span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.fc-nav { margin-left: auto; }
.fc-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.fc-nav a { display: flex; align-items: flex-end; height: 72px; padding: 0 12px 22px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-text); text-decoration: none; border-bottom: 2px solid transparent; }
.fc-nav a:hover { color: var(--color-accent-700); text-decoration: none; }
.fc-nav .current-menu-item > a,
.fc-nav .current_page_parent > a,
.fc-nav .current-menu-parent > a { border-bottom-color: var(--color-accent); }
.fc-nav-toggle { display: none; }

/* ── Type ────────────────────────────────────────────────────────── */
.fc-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-700); margin: 0 0 16px; }
.fc-h1 { font-size: 56px; line-height: 1.02; letter-spacing: -.02em; margin: 0 0 20px; max-width: 16ch; }
.fc-h1-sm { font-size: 48px; line-height: 1.04; margin: 0 0 18px; max-width: 22ch; }
.fc-h2 { font-size: 34px; margin: 0 0 8px; }
.fc-lede { font-size: 17px; line-height: 1.6; max-width: 70ch; margin: 0 0 14px; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.fc-prose p { font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.fc-prose h3 { font-size: 24px; margin: 22px 0 8px; }
.fc-muted { color: color-mix(in srgb, var(--color-text) 70%, transparent); }

/* ── Hero ────────────────────────────────────────────────────────── */
.fc-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; min-height: 520px; }
.fc-hero-copy { padding: 72px 0; }
.fc-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fc-btn-lg { padding: 14px 24px; font-size: 16px; }

/* ── Grids ───────────────────────────────────────────────────────── */
.fc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fc-grid-3-wide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.fc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.fc-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; }
.fc-faq h3 { font-size: 21px; margin: 0 0 8px; }
.fc-faq p { font-size: 15px; line-height: 1.6; margin: 0; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.fc-card { background: transparent; padding: 22px; }
.fc-card .card-title { font-size: 20px; }
.fc-card .card-body { font-size: 14px; }

/* ── Rule list ───────────────────────────────────────────────────── */
.fc-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--color-divider); font-size: 15px; }
.fc-rows > div:last-child { border-bottom: 0; }

/* ── Services cells ──────────────────────────────────────────────── */
.fc-cells { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--color-divider); border-right: 1px solid var(--color-divider); }
.fc-cell { padding: 40px; border-bottom: 1px solid var(--color-divider); }
.fc-cell:nth-child(odd) { border-right: 1px solid var(--color-divider); }
.fc-cell-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.fc-cell-head h2 { font-size: 26px; margin: 0; }
.fc-cell p { font-size: 15px; line-height: 1.65; margin: 0 0 10px; }

/* ── Steps ───────────────────────────────────────────────────────── */
.fc-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-divider); }
.fc-step:last-child { border-bottom: 0; }
.fc-step > span { font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-700); }
.fc-step h3 { font-size: 18px; margin: 0 0 4px; }
.fc-step p { font-size: 14.5px; margin: 0; color: color-mix(in srgb, var(--color-text) 75%, transparent); }

/* ── Service areas ───────────────────────────────────────────────── */
.fc-areas { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--color-divider); border-right: 1px solid var(--color-divider); }
.fc-areas a { padding: 26px; border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); color: var(--color-text); text-decoration: none; display: block; }
.fc-areas a:nth-child(4n) { border-right: 0; }
.fc-areas a:hover { background: color-mix(in srgb, var(--color-accent) 8%, transparent); text-decoration: none; }
.fc-areas h2 { font-size: 22px; margin: 0 0 6px; }
.fc-areas p { font-size: 13.5px; margin: 0; color: color-mix(in srgb, var(--color-text) 65%, transparent); }
.fc-town { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.fc-town h1 { font-size: 40px; line-height: 1.05; margin: 0 0 18px; }
.fc-facts { padding: 24px; margin-bottom: 20px; }
.fc-facts h3 { font-size: 20px; margin: 0 0 12px; }
.fc-facts div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--color-divider); font-size: 14.5px; }
.fc-facts div:last-child { border-bottom: 0; }
.fc-facts span { color: color-mix(in srgb, var(--color-text) 65%, transparent); }

/* ── About ───────────────────────────────────────────────────────── */
.fc-about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.fc-creds { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.fc-creds > div { padding: 18px 22px; border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.fc-creds > div:nth-child(2n) { border-right: 0; }
.fc-creds > div:nth-last-child(-n+2) { border-bottom: 0; }
.fc-creds b { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 19px; }
.fc-creds em { display: block; font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 55%, transparent); margin-bottom: 4px; }

/* ── Booking ─────────────────────────────────────────────────────── */
.fc-book { background: var(--color-accent-900); color: var(--color-bg); }
.fc-book .fc-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; padding-top: 72px; padding-bottom: 72px; }
.fc-book h2 { font-size: 38px; line-height: 1.05; margin: 0 0 16px; color: var(--color-bg); }
.fc-book p { font-size: 16px; line-height: 1.6; margin: 0 0 12px; color: color-mix(in srgb, #f2f2f3 82%, transparent); }
.fc-book .fc-kicker { color: var(--color-accent-300); }
.fc-book a { color: var(--color-accent-300); }
.fc-form { background: var(--color-bg); color: var(--color-text); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fc-form .fc-span2 { grid-column: span 2; }
.fc-form .seg { width: 100%; }
.fc-form .seg-opt { flex: 1; justify-content: center; }
.fc-form button { grid-column: span 2; padding: 14px; font-size: 16px; }

/* ── Image placeholders (delete once real photos are set) ────────── */
.fc-ph { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 16%, transparent) 0 6px, transparent 6px 13px); display: flex; align-items: flex-end; }
.fc-ph > span { font: 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; background: var(--color-bg); border: 1px solid var(--color-divider); padding: 5px 8px; margin: 10px; }
.fc-ratio-43 { aspect-ratio: 4/3; }
.fc-ratio-34 { aspect-ratio: 3/4; }
.fc-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ── Footer ──────────────────────────────────────────────────────── */
.fc-footer { border-top: 1px solid var(--color-divider); }
.fc-footer .fc-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.fc-footer h4 { font-family: var(--font-heading); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.fc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.fc-footer .fc-legal { font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 55%, transparent); padding-bottom: 40px; }
.fc-footer-name { font-family: var(--font-heading); font-weight: 600; font-size: 19px; margin-bottom: 8px; }

/* ── Links ───────────────────────────────────────────────────────── */
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-900); text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fc-areas { grid-template-columns: repeat(2, 1fr); }
  .fc-areas a:nth-child(4n) { border-right: 1px solid var(--color-divider); }
  .fc-areas a:nth-child(2n) { border-right: 0; }
  .fc-grid-3, .fc-grid-3-wide { grid-template-columns: 1fr 1fr; }
  .fc-footer .fc-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .fc-wrap { padding: 0 20px; }
  .fc-h1 { font-size: 40px; }
  .fc-h1-sm { font-size: 34px; }
  .fc-h2 { font-size: 28px; }
  .fc-hero, .fc-two, .fc-faq, .fc-town, .fc-about, .fc-book .fc-inner { grid-template-columns: 1fr; gap: 32px; }
  .fc-hero-copy { padding: 48px 0 0; }
  .fc-cells, .fc-areas, .fc-grid-3, .fc-grid-3-wide, .fc-creds { grid-template-columns: 1fr; }
  .fc-cell, .fc-areas a, .fc-creds > div { border-right: 0; border-bottom: 1px solid var(--color-divider); }
  .fc-form { grid-template-columns: 1fr; }
  .fc-form .fc-span2, .fc-form button { grid-column: span 1; }
  .fc-nav { display: none; }
  .fc-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
  .fc-nav.is-open ul { flex-direction: column; padding: 8px 20px 16px; }
  .fc-nav.is-open a { height: auto; padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
  .fc-nav-toggle { display: inline-flex; margin-left: auto; }
  .fc-pad, .fc-pad-sm { padding-top: 48px; padding-bottom: 48px; }
}

/* ── Readability & accessibility layer ───────────────────────────────
   Larger type, WCAG touch targets, underlined content links, visible
   focus. Loads after industry.css so these win. */

.fc-nav a { font-size: 17px; }
.btn, .wp-block-button__link {
  font-size: 16px;
  min-height: 44px;
  padding: var(--space-3) calc(var(--space-4) * 1.2);
}
.fc-content { font-size: 17px; line-height: 1.7; }
.fc-content .fc-lede { font-size: 19px; }
.fc-content .card-body { font-size: 16px; }
.fc-content .tag { font-size: 15px; padding: 7px 12px; }
.fc-content a:not(.wp-block-button__link):not(.tag) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus-visible, .btn:focus-visible, .wp-block-button__link:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}
/* Long scraped menu labels wrap to 2-3 lines; let the bar grow and
   center items instead of clipping at a fixed 72px. */
.fc-bar { height: auto; min-height: 72px; }
.fc-nav a { height: auto; min-height: 72px; align-items: center; padding: 14px 12px; }

/* ── Nav-only header (no brand, no header CTA) ──────────────────────── */
.fc-nav { margin-left: 0; width: 100%; }
.fc-nav ul { justify-content: space-between; flex-wrap: wrap; }

/* ── Color & CTA layer ───────────────────────────────────────────────
   Warm orange for every call to action (4.9:1 on white), warm kickers,
   and faint section washes so the page has depth. Steel stays the
   structural accent; orange means "act". */
.btn-primary,
.fc-btn-primary .wp-block-button__link {
  background: var(--color-cta);
  border-color: var(--color-cta);
  color: #fff;
}
.btn-primary:hover,
.fc-btn-primary .wp-block-button__link:hover { background: var(--color-cta-600); border-color: var(--color-cta-600); }
.btn-primary:active,
.fc-btn-primary .wp-block-button__link:active { background: var(--color-cta-700); }
.fc-btn-secondary .wp-block-button__link:hover,
.btn-secondary:hover { border-color: var(--color-cta); color: var(--color-cta-700); background: var(--color-cta-100); }

.fc-kicker { color: var(--color-cta); }
.fc-content .card-kicker { color: var(--color-cta); font-weight: 600; }
.fc-book .fc-kicker { color: var(--color-cta-300); }

.fc-content a.tag:hover,
.fc-content a.tag:focus-visible {
  background: var(--color-cta-100);
  border-color: var(--color-cta);
  color: var(--color-cta-700);
  text-decoration: none;
}

/* Section washes: hero gets a faint steel gradient, then every other
   section sits on a whisper of tint. The dark booking band is exempt. */
.fc-content > .fc-section:first-of-type {
  background: linear-gradient(180deg, var(--color-accent-100) 0%, transparent 70%);
}
.fc-content > .fc-section:nth-of-type(even):not(.fc-book) {
  background: color-mix(in srgb, var(--color-accent) 5%, transparent);
}

.fc-content .card:hover { border-color: var(--color-cta); }
.fc-content details summary:hover { color: var(--color-cta-700); }

/* ── Footer contact block ───────────────────────────────────────────── */
.fc-footer-contact { font-style: normal; font-size: 15px; line-height: 1.7; display: flex; flex-direction: column; gap: 2px; }
.fc-footer ul, .fc-footer ul a { font-size: 15px; }
.fc-footer a { color: var(--color-text); }
.fc-footer a:hover { color: var(--color-cta-700); }
@media (max-width: 600px) {
  .fc-footer .fc-cols { grid-template-columns: 1fr; }
}

/* ── Editor toolkit blocks: callout, checklist, CTA strip ───────────── */
.fc-callout {
  background: var(--color-cta-100);
  border-left: 4px solid var(--color-cta);
  padding: 22px 26px;
  margin: 24px 0;
}
.fc-callout h3 { margin: 0 0 8px; font-size: 22px; }
.fc-callout p { margin: 0; font-size: 16px; }

ul.fc-checklist { list-style: none; padding-left: 4px; }
ul.fc-checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
}
ul.fc-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-cta);
}

.fc-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.fc-cta-strip h2 { margin: 0; max-width: 30ch; }
.fc-cta-strip .wp-block-buttons { margin: 0; }

/* ── Imported images: mounted-plate treatment ────────────────────────
   Every media-pass image (.fc-imported-img) renders as a uniform 4/3
   blueprint plate: tinted mat, corner registration ticks, contain-fit
   (photos, diagrams and badges all keep their full frame), soft hover
   lift. Replaces the bare natural-size rectangles. */
.fc-imported-img {
  max-width: 640px;
  margin: 8px 0 24px;
  padding: 12px;
  border: 1px solid var(--color-divider);
  background-color: color-mix(in srgb, var(--color-accent) 6%, transparent);
  background-image:
    linear-gradient(var(--color-accent), var(--color-accent)),
    linear-gradient(var(--color-accent), var(--color-accent)),
    linear-gradient(var(--color-accent), var(--color-accent)),
    linear-gradient(var(--color-accent), var(--color-accent)),
    linear-gradient(var(--color-accent), var(--color-accent)),
    linear-gradient(var(--color-accent), var(--color-accent)),
    linear-gradient(var(--color-accent), var(--color-accent)),
    linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-size: 12px 2px, 2px 12px, 12px 2px, 2px 12px,
                   12px 2px, 2px 12px, 12px 2px, 2px 12px;
  background-position: left top, left top, right top, right top,
                       left bottom, left bottom, right bottom, right bottom;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--color-text) 10%, transparent);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.fc-imported-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: transform .25s ease;
}
.fc-imported-img:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-text) 16%, transparent);
}
.fc-imported-img:hover img { transform: scale(1.02); }

/* ── Review card ────────────────────────────────────────────────────── */
.fc-review {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px 20px 56px;
  margin: 18px 0;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--color-text) 8%, transparent);
}
.fc-review::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 4px;
  font-family: var(--font-heading);
  font-size: 52px;
  line-height: 1;
  color: var(--color-cta);
}
.fc-review-meta {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
}
.fc-review-body { margin: 0; font-size: 16px; line-height: 1.65; }
/* Stars read in the CTA orange wherever they appear inside a review. */
.fc-stars { color: var(--color-cta); letter-spacing: 2px; }

/* ── Image + content section variants ────────────────────────────────
   A small layout family so content sections have rhythm instead of one
   repeated shape. Apply on the outer fc-section group:
   fc-sec-feature       text | image, vertically centered
   fc-sec-feature-flip  image | text (markup stays text-first for a11y)
   fc-sec-aside         text with a slim rail of stacked small images
   fc-sec-banner        tinted band, centered kicker/heading/lede        */
.fc-sec-feature .wp-block-columns,
.fc-sec-feature-flip .wp-block-columns,
.fc-sec-aside .wp-block-columns {
  align-items: center;
  gap: 56px;
}
.fc-sec-feature-flip .wp-block-columns { flex-direction: row-reverse; }
.fc-sec-aside .wp-block-columns { align-items: flex-start; }
.fc-sec-aside .wp-block-column.fc-rail { max-width: 300px; }
.fc-sec-aside .fc-rail .fc-imported-img { margin: 0 0 18px; }
.fc-sec-feature .fc-imported-img,
.fc-sec-feature-flip .fc-imported-img { margin: 0; }
.fc-sec-banner {
  background: linear-gradient(180deg, var(--color-accent-100) 0%, color-mix(in srgb, var(--color-accent) 4%, transparent) 100%);
  text-align: center;
}
.fc-sec-banner .fc-wrap > * { margin-left: auto; margin-right: auto; }
.fc-sec-banner h2 { max-width: 26ch; }
.fc-sec-banner p { max-width: 72ch; }
@media (max-width: 820px) {
  .fc-sec-feature-flip .wp-block-columns { flex-direction: column; }
  .fc-sec-aside .wp-block-column.fc-rail { max-width: none; }
}

/* Review cards read badly at full 1600px width; cap the measure. */
.fc-content .fc-review { max-width: 1100px; }

/* ── Link grid: synthesized index pages' child-page lists ──────────── */
ul.fc-link-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}
ul.fc-link-grid li { margin: 0; }
ul.fc-link-grid a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: var(--color-text);
}
ul.fc-link-grid a:hover { border-color: var(--color-cta); color: var(--color-cta-700); background: var(--color-cta-100); text-decoration: none; }
@media (max-width: 1024px) { ul.fc-link-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { ul.fc-link-grid { grid-template-columns: 1fr; } }

/* ── Footer social row ──────────────────────────────────────────────── */
ul.fc-social { list-style: none; display: flex; flex-direction: row; gap: 10px; padding: 0; margin: 16px 0 0; }
ul.fc-social li { margin: 0; }
ul.fc-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--color-divider);
  color: var(--color-text);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
ul.fc-social a:hover { background: var(--color-cta); border-color: var(--color-cta); color: #fff; }
