/*
Theme Name: Fire Safety Plan BC
Theme URI: https://www.firesafetyplan.com/
Description: GeneratePress child theme for firesafetyplan.com
Author: GetFirePlan Fire Safety Inc.
Template: generatepress
Version: 2.1.0
Text Domain: firesafetyplan
*/

:root {
  --fsp-navy: #0f172a;
  --fsp-navy-2: #1e293b;
  --fsp-navy-3: #334155;
  --fsp-red: #dc2626;
  --fsp-red-dark: #b91c1c;
  --fsp-red-soft: #fee2e2;
  --fsp-slate: #475569;
  --fsp-muted: #64748b;
  --fsp-light: #f1f5f9;
  --fsp-light-2: #f8fafc;
  --fsp-line: #e2e8f0;
  --fsp-text: #1e293b;
  --fsp-head: "Plus Jakarta Sans", "Inter", -apple-system, system-ui, sans-serif;
  --fsp-body: "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;
  --fsp-radius: 12px;
  --fsp-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px -12px rgba(15,23,42,.18);
  --fsp-hero-img: url(/wp-content/uploads/2026/11/hero-planner-floor-plans.jpg);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { font-family: var(--fsp-body); font-size: 17px; line-height: 1.7; color: var(--fsp-text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--fsp-head); font-weight: 700; color: var(--fsp-navy); letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-top: 2.25rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1.25rem; }
a { color: var(--fsp-red-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--fsp-red); }
.lead, p.lead { font-size: 1.15rem; color: var(--fsp-slate); }
img { height: auto; max-width: 100%; }

/* GeneratePress wraps every group block in an inner container with 40px padding. Remove it. */
.wp-block-group__inner-container { padding: 0 !important; }
.wp-block-group__inner-container.is-layout-constrained > * { max-width: none; }
.site-content { padding-top: 0; }
.separate-containers .inside-article, .one-container .site-content { padding: 0; }
.site-main { margin: 0; }

/* Buttons */
.button, .wp-block-button__link, button, input[type="submit"], .wp-element-button {
  background: var(--fsp-red) !important; color: #fff !important; border: 2px solid var(--fsp-red) !important;
  border-radius: 8px; font-family: var(--fsp-head); font-weight: 700; font-size: 1rem; padding: 0.8rem 1.5rem; line-height: 1.2;
  text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 6px 16px -8px rgba(220,38,38,.6);
}
.button:hover, .wp-block-button__link:hover, button:hover, input[type="submit"]:hover { background: var(--fsp-red-dark) !important; border-color: var(--fsp-red-dark) !important; transform: translateY(-1px); color: #fff !important; }
.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; color: var(--fsp-navy) !important; border: 2px solid var(--fsp-navy) !important; box-shadow: none; }
.is-style-outline .wp-block-button__link:hover { background: var(--fsp-navy) !important; color: #fff !important; }
.wp-block-buttons { gap: 0.75rem; }

/* ---------- Top bar + header ---------- */
.fsp-topbar { background: var(--fsp-navy); color: #cbd5e1; font-size: 0.85rem; }
.fsp-topbar .inner { max-width: 1100px; margin: 0 auto; padding: 0.45rem 20px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.fsp-topbar a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; }
.fsp-topbar a:hover { color: #fecaca; }
.fsp-topbar .contacts { display: flex; gap: 1.5rem; }
.fsp-topbar svg { width: 14px; height: 14px; fill: currentColor; }
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid var(--fsp-line); box-shadow: 0 2px 12px rgba(15,23,42,.05); }
.inside-header { padding: 0.75rem 20px; }
.site-branding { display: flex; align-items: center; }
.fsp-logo { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--fsp-navy); }
.fsp-mark { display: inline-flex; gap: 3px; flex: none; }
.fsp-mark-tile { width: 48px; height: 48px; background: var(--fsp-red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-indent: 0.04em; line-height: 1; text-transform: uppercase; }
.fsp-logo-text { white-space: nowrap; font-family: var(--fsp-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1; }
.fsp-logo-text .red { color: var(--fsp-red); }
.fsp-logo-text .tld { color: var(--fsp-muted); font-weight: 600; font-size: 0.75em; }
.fsp-logo-tag { display: block; white-space: nowrap; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fsp-muted); margin-top: 0.25rem; }
.main-navigation a { font-family: var(--fsp-head); font-weight: 600; font-size: 0.95rem; color: var(--fsp-navy); }
.main-navigation .main-nav ul li a { line-height: 56px; padding: 0 11px; }
.main-navigation .main-nav ul li.current-menu-item > a, .main-navigation .main-nav ul li:hover > a { color: var(--fsp-red); }
.main-navigation ul ul { box-shadow: 0 10px 30px -10px rgba(15,23,42,.3); border-radius: 10px; overflow: hidden; border: 1px solid var(--fsp-line); }
.main-navigation ul ul li a { font-size: 0.9rem; line-height: 1.4; padding: 10px 16px; }
.main-navigation .menu-item-cta > a {
  background: var(--fsp-red); color: #fff !important; border-radius: 8px; margin-left: 8px;
  padding: 0 20px !important; line-height: 42px !important; margin-top: 7px; margin-bottom: 7px; box-shadow: 0 6px 16px -8px rgba(220,38,38,.6);
}
.main-navigation .menu-item-cta > a:hover { background: var(--fsp-red-dark); }
.menu-toggle { font-family: var(--fsp-head); font-weight: 700; color: var(--fsp-navy); }
.main-navigation.toggled .main-nav > ul { background: #fff; border-top: 1px solid var(--fsp-line); }
.main-navigation.toggled .main-nav ul li a { line-height: 48px; }
.main-navigation.toggled .menu-item-cta > a { margin: 10px 20px; display: inline-block; line-height: 42px !important; }

/* ---------- Front page sections ---------- */
.home .site-content { display: block; }
.home .site-content .content-area, .home .site-content .site-main, .home .inside-article { max-width: 100%; margin: 0; padding: 0; width: 100%; }
.home #page.grid-container { max-width: 100% !important; padding: 0 !important; }
.home .site-content { padding: 0 !important; }
body:not(.home) .site-content { padding: 0 20px 3rem !important; }
.footer-widgets-container.grid-container, .inside-site-info.grid-container { max-width: 1100px !important; margin: 0 auto; padding: 0 20px; }
.inside-footer-widgets { margin-left: -20px; margin-right: -20px; }
.home .entry-header { display: none; }
.home .entry-content { margin-top: 0; }
.home .entry-content > * { margin-top: 0; }
.home .entry-content > .wp-block-group { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: none !important; }
.home .entry-content > .wp-block-group > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.fsp-services, .fsp-who, .fsp-logos, .fsp-cities, .fsp-latest { padding: 4.5rem 20px; }
.fsp-services h2, .fsp-cities h2, .fsp-latest h2, .fsp-logos h2 { margin-top: 0; font-size: 2rem; }
.fsp-services > div > p:first-of-type, .fsp-cities > div > p:first-of-type { color: var(--fsp-slate); font-size: 1.1rem; max-width: 700px; margin-bottom: 2rem; }

/* Hero */
.fsp-hero { position: relative; padding: 6rem 20px 5.5rem; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--fsp-hero-img) center 40% / cover no-repeat, var(--fsp-navy); }
.fsp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(15,23,42,.94) 0%, rgba(15,23,42,.86) 45%, rgba(15,23,42,.55) 100%); }
.fsp-hero .eyebrow { display: inline-block; font-family: var(--fsp-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fecaca; background: rgba(220,38,38,.18); border: 1px solid rgba(252,165,165,.35); border-radius: 999px; padding: 0.35rem 0.9rem; margin-bottom: 1.25rem; }
.fsp-hero h1 { font-size: 3.1rem; max-width: 760px; color: #fff; margin-bottom: 1.25rem; line-height: 1.1; letter-spacing: -0.025em; }
.fsp-hero p.lead { font-size: 1.2rem; max-width: 640px; color: #e2e8f0; margin-bottom: 1.75rem; }
.fsp-hero .wp-block-button__link { font-size: 1.05rem; padding: 0.95rem 1.75rem; }
.fsp-hero .is-style-outline .wp-block-button__link { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.7) !important; color: #fff !important; }
.fsp-hero .is-style-outline .wp-block-button__link:hover { background: #fff !important; color: var(--fsp-navy) !important; }
.fsp-hero .trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.75rem 0 0; font-size: 0.9rem; color: #cbd5e1; font-weight: 500; }
.fsp-hero .trust span::before { content: "✓"; color: #4ade80; font-weight: 800; margin-right: 0.4rem; }

/* Stats */
.fsp-stats { background: #fff; padding: 0 20px; }
.fsp-stats .wp-block-columns { margin: -2.25rem auto 0; background: #fff; border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); box-shadow: var(--fsp-shadow); padding: 1.75rem 1rem; position: relative; z-index: 2; gap: 0; }
.fsp-stats .wp-block-column { text-align: center; padding: 0.5rem 1rem; border-left: 1px solid var(--fsp-line); }
.fsp-stats .wp-block-column:first-child { border-left: 0; }
.fsp-stats h3 { font-size: 2.1rem; color: var(--fsp-red); margin: 0; font-weight: 800; }
.fsp-stats p { margin: 0.2rem 0 0; color: var(--fsp-slate); font-weight: 600; font-size: 0.9rem; }

/* Service cards */
.fsp-services .wp-block-columns { gap: 1.5rem; margin-bottom: 0; }
.fsp-card { background: #fff; border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); padding: 1.75rem 1.75rem 1.5rem; height: 100%; box-shadow: var(--fsp-shadow); transition: transform .2s, box-shadow .2s; position: relative; }
.fsp-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 18px 36px -16px rgba(15,23,42,.3); }
.fsp-card::before { content: ""; display: block; width: 48px; height: 48px; border-radius: 12px; background: var(--fsp-red-soft) center / 26px no-repeat; margin-bottom: 1.1rem; }
.fsp-services .wp-block-column:nth-child(1) .fsp-card::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M12 2c1 4-3 5-3 9a3 3 0 006 0c0-2-1-3-1-3 3 2 5 4 5 7a7 7 0 01-14 0c0-6 6-8 7-13z'/%3E%3C/svg%3E"); }
.fsp-services .wp-block-column:nth-child(2) .fsp-card::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M3 19h18v2H3zM5 17V9l7-5 7 5v8h-4v-5h-6v5z'/%3E%3C/svg%3E"); }
.fsp-services .wp-block-column:nth-child(3) .fsp-card::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M7 3h10a2 2 0 012 2v16l-7-3-7 3V5a2 2 0 012-2zm1.5 5.5l2 2 4-4-1.4-1.4-2.6 2.6-.6-.6z'/%3E%3C/svg%3E"); }
.fsp-card h3 { margin-top: 0; font-size: 1.2rem; }
.fsp-card p { color: var(--fsp-slate); font-size: 0.98rem; margin-bottom: 0.9rem; }
.fsp-card p:last-child { margin-bottom: 0; }
.fsp-card a { font-weight: 700; text-decoration: none; }

/* Who / why */
.fsp-who { background: var(--fsp-light-2); border-top: 1px solid var(--fsp-line); border-bottom: 1px solid var(--fsp-line); }
.fsp-who .wp-block-columns { gap: 3.5rem; margin-bottom: 0; }
.fsp-who h2 { margin-top: 0; font-size: 1.6rem; }
.fsp-who ul { padding-left: 0; list-style: none; margin: 0 0 1.25rem; }
.fsp-who li { position: relative; padding-left: 1.9rem; margin-bottom: 0.65rem; }
.fsp-who li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--fsp-red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 60% no-repeat; }
.fsp-who a { font-weight: 700; text-decoration: none; }

/* Logos */
.fsp-logos { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.fsp-logos h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fsp-muted); text-align: center; font-weight: 700; margin-bottom: 1.75rem; }
.fsp-logo-cols { align-items: center; justify-content: center; margin-bottom: 0; }
.fsp-logo-cols figure { margin: 0; text-align: center; }
.fsp-logos img { filter: grayscale(1); opacity: 0.6; max-height: 64px; width: auto; mix-blend-mode: multiply; transition: opacity .2s, filter .2s; }
.fsp-logos img:hover { filter: none; opacity: 1; }

/* Cities */
.fsp-cities { background: var(--fsp-navy); color: #cbd5e1; }
.fsp-cities h2 { color: #fff; }
.fsp-cities > div > p:first-of-type { color: #94a3b8; }
.fsp-city-cols { gap: 0.75rem; margin-bottom: 1.25rem; }
.fsp-city { margin: 0 0 0.75rem; }
.fsp-city a { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; text-decoration: none; font-family: var(--fsp-head); font-weight: 600; color: #fff; transition: background .15s, border-color .15s; }
.fsp-city a::after { content: "→"; color: #f87171; }
.fsp-city a:hover { background: var(--fsp-red); border-color: var(--fsp-red); }
.fsp-cities > div > p:last-of-type a { color: #fecaca; font-weight: 700; text-decoration: none; }

/* Latest posts */
.fsp-latest .wp-block-latest-posts.is-grid { gap: 1.5rem; margin-bottom: 1.25rem; }
.fsp-latest .wp-block-latest-posts__list li { background: #fff; border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); overflow: hidden; box-shadow: var(--fsp-shadow); margin: 0; display: flex; flex-direction: column; }
.fsp-latest .wp-block-latest-posts__featured-image { margin: 0; }
.fsp-latest .wp-block-latest-posts__featured-image img { width: 100%; height: 180px; object-fit: cover; border-radius: 0; display: block; }
.fsp-latest .wp-block-latest-posts__post-title { display: block; padding: 1.1rem 1.25rem 0; font-family: var(--fsp-head); font-weight: 700; font-size: 1.05rem; line-height: 1.35; text-decoration: none; color: var(--fsp-navy); }
.fsp-latest .wp-block-latest-posts__post-date { padding: 0.35rem 1.25rem 0; font-size: 0.82rem; color: var(--fsp-muted); }
.fsp-latest .wp-block-latest-posts__post-excerpt { padding: 0.5rem 1.25rem 1.25rem; font-size: 0.93rem; color: var(--fsp-slate); margin: 0; }
.fsp-latest > div > p:last-of-type a { font-weight: 700; text-decoration: none; }

/* CTA band */
.fsp-cta { background: linear-gradient(135deg, var(--fsp-navy-2), var(--fsp-navy)); color: #fff; padding: 4.5rem 20px; text-align: center; }
.fsp-cta h2 { color: #fff; margin-top: 0; font-size: 2rem; }
.fsp-cta p { color: #cbd5e1; max-width: 620px; margin: 0 auto 1.75rem; font-size: 1.1rem; }
.fsp-cta .wp-block-buttons { justify-content: center; }
.fsp-cta .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.7) !important; color: #fff !important; background: transparent !important; }
.fsp-cta .is-style-outline .wp-block-button__link:hover { background: #fff !important; color: var(--fsp-navy) !important; }

/* ---------- Inner pages ---------- */
.fsp-page-hero { background: linear-gradient(120deg, var(--fsp-navy) 0%, var(--fsp-navy-2) 100%); color: #fff; padding: 3.25rem 20px 3rem; margin-bottom: 2.5rem; }
.fsp-page-hero .inner { max-width: 1100px; margin: 0 auto; }
.fsp-page-hero .crumbs { font-size: 0.82rem; color: #94a3b8; margin-bottom: 0.75rem; }
.fsp-page-hero .crumbs a { color: #cbd5e1; text-decoration: none; }
.fsp-page-hero .crumbs a:hover { color: #fff; }
.fsp-page-hero .eyebrow { font-family: var(--fsp-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fca5a5; margin-bottom: 0.6rem; }
.fsp-page-hero h1 { color: #fff; font-size: 2.4rem; margin: 0; max-width: 820px; }
.fsp-page-hero .meta { color: #94a3b8; font-size: 0.9rem; margin: 0.75rem 0 0; }
body.page:not(.home) .entry-header, body.single .entry-header, body.blog .page-header, body.archive .page-header { display: none; }
body.page:not(.home) .entry-content, body.single .entry-content { max-width: 800px; margin: 0 auto; }

.entry-content .wp-block-image img { border-radius: var(--fsp-radius); }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content ol.wp-block-list { list-style: none; counter-reset: fsp; padding-left: 0; }
.entry-content ol.wp-block-list > li { counter-increment: fsp; position: relative; padding-left: 3rem; margin-bottom: 0.9rem; }
.entry-content ol.wp-block-list > li::before { content: counter(fsp); position: absolute; left: 0; top: 0.05rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--fsp-red); color: #fff; font-family: var(--fsp-head); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.entry-content h2 { padding-top: 0.5rem; }
.entry-content h3 { color: var(--fsp-navy); }
/* FAQ questions (H3 after an FAQ H2) */
.fsp-faq-q { border-left: 3px solid var(--fsp-red); padding-left: 0.9rem; }

/* Inline quote card appended to pages/posts */
.fsp-inline-cta { background: var(--fsp-navy); color: #fff; border-radius: var(--fsp-radius); padding: 2rem 2rem; margin: 3rem 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.fsp-inline-cta h3 { color: #fff; margin: 0 0 0.35rem; font-size: 1.3rem; }
.fsp-inline-cta p { color: #cbd5e1; margin: 0; font-size: 0.98rem; }
.fsp-inline-cta .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.fsp-inline-cta .actions a { text-decoration: none; }
.fsp-inline-cta .actions .ghost { background: transparent !important; border-color: rgba(255,255,255,.7) !important; box-shadow: none; }
.fsp-inline-cta .actions .ghost:hover { background: #fff !important; color: var(--fsp-navy) !important; }

/* Post meta */
.entry-meta { font-size: 0.85rem; color: var(--fsp-muted); }
.single .entry-meta a, .blog .entry-meta a { color: var(--fsp-slate); }

/* Blog archive cards */
.blog .site-main, .archive .site-main { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; max-width: 1100px; margin: 0 auto; }
.blog .site-main > :not(article), .archive .site-main > :not(article) { grid-column: 1 / -1; }
.blog article, .archive article { background: #fff; border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); overflow: hidden; box-shadow: var(--fsp-shadow); margin: 0; display: flex; flex-direction: column; }
.blog article .post-image, .archive article .post-image { margin: 0; }
.blog article .post-image img, .archive article .post-image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.blog article .inside-article, .archive article .inside-article { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog article .entry-header, .archive article .entry-header { display: block; }
.blog article .entry-title, .archive article .entry-title { font-size: 1.2rem; margin: 0 0 0.4rem; line-height: 1.35; }
.blog article .entry-title a, .archive article .entry-title a { color: var(--fsp-navy); text-decoration: none; }
.blog article .entry-title a:hover, .archive article .entry-title a:hover { color: var(--fsp-red); }
.blog article .entry-summary, .archive article .entry-summary { color: var(--fsp-slate); font-size: 0.95rem; }
.blog article .entry-summary p, .archive article .entry-summary p { margin-bottom: 0.75rem; }
.blog article .read-more, .archive article .read-more { font-weight: 700; text-decoration: none; }
.blog article .entry-meta.post-meta, .archive article .entry-meta.post-meta { margin-top: auto; }
.paging-navigation { grid-column: 1 / -1; }

/* Contact page */
.fsp-contact-form { background: var(--fsp-light-2); border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); padding: 1.75rem; box-shadow: var(--fsp-shadow); }
.fsp-contact-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--fsp-navy); font-size: 0.92rem; }
.fsp-contact-form input, .fsp-contact-form select, .fsp-contact-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0.7rem 0.85rem; background: #fff; font-family: var(--fsp-body); font-size: 1rem; }
.fsp-contact-form input:focus, .fsp-contact-form select:focus, .fsp-contact-form textarea:focus { outline: 2px solid var(--fsp-red); outline-offset: 1px; border-color: var(--fsp-red); }
.fsp-contact-form p { margin-bottom: 1rem; }
.fsp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.fsp-form-notice { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; }
.fsp-form-ok { background: #ecfdf5; border: 1px solid #10b981; }
.fsp-form-err { background: #fef2f2; border: 1px solid var(--fsp-red); }
body.page-id-128 .entry-content { max-width: 1100px; }
.fsp-contact-details h2 { margin-top: 0; }
.fsp-contact-details p { margin-bottom: 0.75rem; }

/* ---------- Footer ---------- */
.footer-widgets { background: var(--fsp-navy-2); color: #cbd5e1; padding: 3.5rem 0 2.5rem; }
.footer-widgets h2, .footer-widgets h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0; }
.footer-widgets p { font-size: 0.95rem; }
.footer-widgets a { color: #e2e8f0; text-decoration: none; }
.footer-widgets a:hover { color: #fff; text-decoration: underline; }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets li { margin-bottom: 0.45rem; font-size: 0.95rem; }
.site-footer { background: var(--fsp-navy); }
.site-info { background: var(--fsp-navy); color: #94a3b8; font-size: 0.85rem; padding: 1.25rem 20px; border-top: 1px solid rgba(255,255,255,.08); }
.site-info a { color: #fff; }

/* ---------- Mobile call bar ---------- */
.fsp-mobilebar { display: none; }

/* ---------- Responsive ---------- */
.fsp-topbar .contacts a { white-space: nowrap; }
@media (max-width: 960px) and (min-width: 769px) { .fsp-topbar .tagline { display: none; } .fsp-topbar .inner { justify-content: flex-end; } }
@media (max-width: 1180px) and (min-width: 769px) { .fsp-logo > span:last-child { display: none; } }
@media (max-width: 960px) and (min-width: 769px) { .main-navigation .main-nav ul li a { padding: 0 8px; font-size: 0.9rem; } .main-navigation .menu-item-cta > a { margin-left: 4px; padding: 0 14px !important; } }
@media (max-width: 1024px) {
  .fsp-hero h1 { font-size: 2.6rem; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.1rem; }
  .fsp-topbar .inner { justify-content: center; }
  .fsp-topbar .tagline { display: none; }
  .fsp-topbar .contacts { gap: 1rem; }
  .fsp-topbar .contacts .email { display: none; }
  .fsp-logo-tag { display: none; }
  .fsp-logo { gap: 0.6rem; }
  .fsp-mark-tile { width: 38px; height: 38px; font-size: 13.5px; }
  .fsp-mark { gap: 2px; }
  .fsp-logo-text { font-size: 1.15rem; }
  .inside-header { padding: 0.5rem 16px; }
  .fsp-hero { padding: 3.5rem 16px 3.5rem; background-position: center; }
  .fsp-hero h1 { font-size: 2.1rem; }
  .fsp-hero p.lead { font-size: 1.05rem; }
  .fsp-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .fsp-hero .wp-block-button, .fsp-cta .wp-block-button { width: 100%; }
  .fsp-hero .wp-block-button__link, .fsp-cta .wp-block-button__link { width: 100%; text-align: center; }
  .fsp-hero .trust { gap: 0.35rem 1rem; font-size: 0.85rem; }
  .fsp-stats { padding: 0 16px; }
  .fsp-stats .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; margin-top: -1.5rem; padding: 0.75rem 0.5rem; }
  .fsp-stats .wp-block-column { flex-basis: auto !important; border-left: 0; padding: 0.75rem 0.5rem; }
  .fsp-stats .wp-block-column:nth-child(even) { border-left: 1px solid var(--fsp-line); }
  .fsp-stats h3 { font-size: 1.6rem; }
  .fsp-services, .fsp-who, .fsp-logos, .fsp-cities, .fsp-latest, .fsp-cta { padding-left: 16px; padding-right: 16px; padding-top: 3rem; padding-bottom: 3rem; }
  .fsp-services h2, .fsp-cities h2, .fsp-latest h2, .fsp-cta h2 { font-size: 1.6rem; }
  .fsp-services .wp-block-columns, .fsp-who .wp-block-columns { gap: 1rem; }
  .fsp-who .wp-block-column + .wp-block-column { margin-top: 1.5rem; }
  .fsp-logo-cols { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1rem; align-items: center; }
  .fsp-logo-cols .wp-block-column { flex-basis: auto !important; }
  .fsp-logos img { max-height: 44px; }
  .fsp-city-cols { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
  .fsp-city-cols .wp-block-column { flex-basis: auto !important; }
  .fsp-latest .wp-block-latest-posts.is-grid li { width: 100%; }
  .fsp-page-hero { padding: 2.25rem 16px 2rem; margin-bottom: 1.75rem; }
  .fsp-page-hero h1 { font-size: 1.75rem; }
  .fsp-inline-cta { padding: 1.5rem; }
  .fsp-inline-cta .actions, .fsp-inline-cta .actions a { width: 100%; text-align: center; }
  .blog .site-main, .archive .site-main { grid-template-columns: 1fr; gap: 1.25rem; }
  .fsp-form-row { grid-template-columns: 1fr; gap: 0 0; }
  .fsp-contact-form { padding: 1.25rem; }
  .footer-widgets { padding: 2.5rem 0 1.5rem; }
  body { padding-bottom: 64px; }
  .fsp-mobilebar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: #fff; border-top: 1px solid var(--fsp-line); box-shadow: 0 -4px 16px rgba(15,23,42,.1); padding: 0.5rem 0.75rem; gap: 0.5rem; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
  .fsp-mobilebar a { display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-family: var(--fsp-head); font-weight: 700; font-size: 0.95rem; border-radius: 8px; padding: 0.7rem; text-decoration: none; }
  .fsp-mobilebar .call { background: var(--fsp-navy); color: #fff; }
  .fsp-mobilebar .quote { background: var(--fsp-red); color: #fff; }
  .fsp-mobilebar svg { width: 16px; height: 16px; fill: currentColor; }
}
@media (max-width: 480px) {
  .fsp-logo-cols { grid-template-columns: repeat(2, 1fr); }
  .fsp-hero h1 { font-size: 1.9rem; }
}

/* ==========================================================================
   Inner pages: photo sizes, service cards, contact grid, desktop side column
   ========================================================================== */
/* ---------- Photos: stop them filling the screen (all sizes) ---------- */
:where(body:not(.home)) .entry-content .wp-block-image { margin: 1.75rem 0; }
:where(body:not(.home)) .entry-content .wp-block-image img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
:where(body:not(.home)) .entry-content .wp-block-image img:not([src*="nsplsh_"]):not([src*="11062b_"]) { width: auto; max-width: 100%; max-height: 440px; object-fit: contain; margin: 0 auto; }
.fsp-featured { margin: 0 0 2rem; }
.fsp-featured img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--fsp-radius); }
@media (max-width: 768px) {
  :where(body:not(.home)) .entry-content .wp-block-image img { max-height: 230px; }
  :where(body:not(.home)) .entry-content .wp-block-image img:not([src*="nsplsh_"]):not([src*="11062b_"]) { max-height: 320px; }
  .fsp-featured img { max-height: 220px; }
}

/* ---------- Blog cards: tighter ---------- */
.blog article .entry-summary, .archive article .entry-summary { margin-top: 0.75rem; }
.blog article .entry-summary p:last-child, .archive article .entry-summary p:last-child { margin-bottom: 0; }
.blog article .entry-header, .archive article .entry-header { margin-top: 1rem; }

/* ---------- Service cards inside pages ---------- */
.fsp-svc-grid { margin: 1.5rem 0 2.25rem; }
.fsp-svc-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.fsp-svc { background: #fff; border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); overflow: hidden; box-shadow: var(--fsp-shadow); }
.fsp-svc > .wp-block-group__inner-container { display: flex; flex-direction: column; height: 100%; }
.fsp-svc .wp-block-image { margin: 0; }
.entry-content .fsp-svc .wp-block-image img[src][class] { border-radius: 0; height: 190px; max-height: none; width: 100%; max-width: none; object-fit: cover; margin: 0; }
.fsp-svc h3 { margin: 1.1rem 1.35rem 0.4rem; font-size: 1.15rem; }
.fsp-svc p { margin: 0 1.35rem 0.9rem; font-size: 0.96rem; color: var(--fsp-slate); }
.fsp-svc p.fsp-svc-link { margin-top: auto; padding-bottom: 0.5rem; }
.fsp-svc p.fsp-svc-link a { font-weight: 700; text-decoration: none; }
@media (min-width: 700px) { .fsp-svc-grid > .wp-block-group__inner-container { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact page: details beside the form ---------- */
.fsp-contact-grid { display: block; }
.fsp-contact-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.fsp-contact-grid h2 { margin-top: 0; }
@media (min-width: 900px) {
  .fsp-contact-grid > .wp-block-group__inner-container { grid-template-columns: 1fr 1.35fr; gap: 3.5rem; align-items: start; }
  .fsp-contact-details { background: var(--fsp-light-2); border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); padding: 1.75rem; }
}

/* ---------- Desktop sidebar ---------- */
.fsp-aside { display: none; }
@media (min-width: 1100px) {
  body.page:not(.home) .entry-content, body.single .entry-content { max-width: 1100px; }
  .fsp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.75rem; }
  .fsp-main > :first-child { margin-top: 0; }
  .fsp-aside { display: block; }
  .fsp-aside-card { border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); padding: 1.4rem 1.5rem; background: #fff; box-shadow: var(--fsp-shadow); margin-bottom: 1.25rem; }
  .fsp-aside-h { margin: 0 0 0.75rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fsp-muted); }
  .fsp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
  .fsp-toc li { margin: 0; padding: 0; border-top: 1px solid var(--fsp-line); }
  .fsp-toc li:first-child { border-top: 0; }
  .fsp-toc a { display: block; padding: 0.5rem 0; font-size: 0.9rem; line-height: 1.4; color: var(--fsp-navy-3); text-decoration: none; font-weight: 500; }
  .fsp-toc a:hover { color: var(--fsp-red); }
  .fsp-aside-quote { position: sticky; top: 104px; background: var(--fsp-navy); border-color: var(--fsp-navy); color: #cbd5e1; }
  .fsp-aside-quote .fsp-aside-h { color: #fca5a5; }
  .fsp-aside-quote .t { font-family: var(--fsp-head); font-weight: 700; font-size: 1.3rem; line-height: 1.25; color: #fff; margin: 0 0 1rem; }
  .fsp-aside-quote ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
  .fsp-aside-quote li { position: relative; padding-left: 1.5rem; margin-bottom: 0.4rem; font-size: 0.93rem; }
  .fsp-aside-quote li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 800; }
  .fsp-aside-quote .button { display: block; text-align: center; }
  .fsp-aside-quote .tel { display: block; text-align: center; margin-top: 0.85rem; color: #fff; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
  .fsp-aside-quote .tel:hover { color: #fecaca; }
  .entry-content h2[id] { scroll-margin-top: 110px; }

  /* Blog list: three across */
  .blog .site-main, .archive .site-main { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .blog article .post-image img, .archive article .post-image img { height: 190px; }
  .blog article .entry-title, .archive article .entry-title { font-size: 1.08rem; }
}

/* ---------- Homepage "Guides & news": three cards in one aligned row ---------- */
.fsp-latest ul.wp-block-latest-posts.is-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.fsp-latest ul.wp-block-latest-posts.is-grid > li { width: auto; margin: 0; }
@media (max-width: 768px) {
  .fsp-latest ul.wp-block-latest-posts.is-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---------- Client logo grid (inner pages) ---------- */
.fsp-client-logos { margin: 1.25rem 0 2.25rem; }
.fsp-client-logos > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.entry-content .fsp-client-logos .wp-block-image { margin: 0; height: 96px; padding: 0.35rem 0.5rem; background: #fff; border: 1px solid var(--fsp-line); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.entry-content .fsp-client-logos .wp-block-image img[src][class] { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 0; margin: 0; }
@media (max-width: 768px) { .fsp-client-logos > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; } .entry-content .fsp-client-logos .wp-block-image { height: 76px; padding: 0.25rem 0.4rem; } }
@media (max-width: 480px) { .fsp-client-logos > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Homepage client logos: slow rotating strip (pauses on hover, static grid if motion is reduced) ---------- */
.fsp-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.fsp-marquee-track { display: flex; align-items: center; width: max-content; list-style: none; margin: 0; padding: 0; animation: fsp-marquee 80s linear infinite; }
.fsp-marquee-track li { flex: none; margin: 0; padding: 0 1.4rem; }
.fsp-marquee img[src] { display: block; width: 216px; height: 72px; max-height: none; object-fit: contain; filter: none; opacity: 1; mix-blend-mode: normal; }
.fsp-marquee:hover .fsp-marquee-track, .fsp-marquee:focus-within .fsp-marquee-track { animation-play-state: paused; }
@keyframes fsp-marquee { to { transform: translateX(-50%); } }
@media (max-width: 768px) { .fsp-marquee-track li { padding: 0 0.9rem; } .fsp-marquee img[src] { width: 168px; height: 56px; } .fsp-marquee-track { animation-duration: 70s; } }
@media (prefers-reduced-motion: reduce) {
  .fsp-marquee { -webkit-mask-image: none; mask-image: none; }
  .fsp-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 1.25rem; }
  .fsp-marquee-track li[aria-hidden="true"] { display: none; }
}

/* ---------- Homepage: bolder "Trusted by" line; nine city buttons (3 x 3, two-up on phones) ---------- */
.fsp-logos h2 { font-size: 1rem; font-weight: 800; color: var(--fsp-navy); letter-spacing: 0.1em; }
@media (max-width: 768px) {
  .fsp-logos h2 { font-size: 0.9rem; }
  .fsp-city-cols .wp-block-column { display: contents; }
  .fsp-city-cols .wp-block-column:last-child .fsp-city:last-child { grid-column: 1 / -1; }
  .fsp-city-cols .fsp-city { display: flex; }
  .fsp-city-cols .fsp-city a { flex: 1; }
}

/* Logo strip inside an inner page column, and numbered lists flush with the text */
.entry-content .fsp-marquee { margin: 1.25rem 0 2.25rem; }
.entry-content .fsp-marquee ul.fsp-marquee-track { margin: 0; padding: 0; }
.entry-content .fsp-marquee ul.fsp-marquee-track li { margin: 0; }
.entry-content ol.wp-block-list { margin-left: 0; }

/* Two logo rows, second one moving the other way */
.fsp-marquee-rows { display: grid; gap: 0.6rem; }
.fsp-marquee-track.is-reverse { animation-direction: reverse; }
.entry-content .fsp-marquee-rows { margin: 1.25rem 0 2.25rem; }
.entry-content .fsp-marquee-rows .fsp-marquee { margin: 0; }

/* ---------- Homepage service cards: red tiles with white line icons (same red squares as the logo) ---------- */
.fsp-services .fsp-card::before { width: 60px; height: 60px; border-radius: 10px; background-color: var(--fsp-red); background-size: 34px; box-shadow: 0 8px 16px -8px rgba(220,38,38,.55); margin-bottom: 1.25rem; }
.fsp-services .wp-block-column:nth-child(1) .fsp-card::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14.5 2.5H7a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7z%22/%3E%3Cpath d=%22M14.5 2.5V7H19%22/%3E%3Cpath d=%22M12 10.2c.5 1.5 2.4 2.5 2.4 4.6a2.4 2.4 0 0 1-4.8 0c0-.8.3-1.5.8-2 .2.6.5.9.9.9.3-1.1-.1-2.3.7-3.5z%22/%3E%3C/svg%3E"); }
.fsp-services .wp-block-column:nth-child(2) .fsp-card::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 15.5h18a1 1 0 0 1 1 1V18a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-1.5a1 1 0 0 1 1-1z%22/%3E%3Cpath d=%22M10 10V5.5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1V10%22/%3E%3Cpath d=%22M4 15.5v-3a6 6 0 0 1 6-6%22/%3E%3Cpath d=%22M14 6.5a6 6 0 0 1 6 6v3%22/%3E%3C/svg%3E"); }
.fsp-services .wp-block-column:nth-child(3) .fsp-card::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%228.5%22 y=%222.5%22 width=%227%22 height=%224%22 rx=%221%22/%3E%3Cpath d=%22M15.5 4.5H17a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-13a2 2 0 0 1 2-2h1.5%22/%3E%3Cpath d=%22m9 14 2.2 2.2L15.2 12%22/%3E%3C/svg%3E"); }

/* ---------- Photo gallery of deliverables (binder, plan box, wall plaques) ---------- */
.fsp-gallery { margin: 1.5rem 0 2.25rem; }
.fsp-gallery > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.entry-content .fsp-gallery .wp-block-image { margin: 0; background: var(--fsp-light-2); border: 1px solid var(--fsp-line); border-radius: var(--fsp-radius); overflow: hidden; }
.entry-content .fsp-gallery .wp-block-image img[src][class] { display: block; width: 100%; max-width: none; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 0; margin: 0; padding: 0.75rem; box-sizing: border-box; }
.fsp-gallery figcaption { margin: 0; padding: 0.6rem 0.9rem 0.7rem; font-size: 0.88rem; font-weight: 600; color: var(--fsp-navy); text-align: left; border-top: 1px solid var(--fsp-line); background: #fff; }
.fsp-gallery-note { font-size: 0.88rem; color: var(--fsp-muted); margin-top: -1.5rem; }
@media (max-width: 480px) { .fsp-gallery > .wp-block-group__inner-container { grid-template-columns: 1fr; } }
