/*
Theme Name: NL Remodeling
Theme URI: https://www.nl-remodeling.com/
Author: NL Remodeling
Description: Custom lightweight theme for nl-remodeling.com, built for local SEO and Google Discover.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: nl-remodeling
*/

/* Layout: warm off-white paper, charcoal ink, terracotta accent (Southern California roofs), sage greens.
   Headings in Outfit, body in Manrope. Mobile first, sticky header, call bar on phones. */

@font-face { font-family: "Outfit"; src: url("assets/fonts/outfit.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --ink: #1c2427;
  --ink-2: #39454a;
  --muted: #5d686c;
  --line: #e6ddd0;
  --paper: #fffdf9;
  --sand: #f6f1ea;
  --sand-2: #ece3d6;
  --accent: #c2572b;
  --accent-dark: #a2441d;
  --accent-soft: #f8e7dd;
  --sage: #6f8b5c;

  --display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.75rem);

  --wrap: 1200px;
  --measure: 72ch;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(28 36 39 / .06), 0 8px 24px rgb(28 36 39 / .08);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--step-0); line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
address { font-style: normal; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.3em; border-radius: 999px; border: 2px solid transparent; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.05rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgb(255 255 255 / .7); color: #fff; background: rgb(255 255 255 / .06); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.eyebrow { display: inline-block; margin: 0 0 .6rem; font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); text-decoration: none; }
.eyebrow--light { color: #f3c4a8; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #d8d2c8; font-size: var(--step--1); }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar__item { display: flex; align-items: center; gap: .5em; margin: 0; }
.topbar__item .icon { color: var(--accent); }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
@media (max-width: 700px) { .topbar__item:first-child { display: none; } .topbar__inner { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 253 249 / .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand__logo { width: 222px; height: auto; }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header__cta { min-height: 44px; padding: .55em 1.1em; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a, .nav__sub-toggle { display: flex; align-items: center; gap: .3em; padding: .55em .8em; border-radius: 999px; color: var(--ink); font: 600 .97rem/1.2 var(--sans); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav__list a:hover, .nav__sub-toggle:hover, .nav__list a[aria-current="page"] { background: var(--sand); color: var(--ink); }
.nav__sub-toggle .icon { width: 16px; height: 16px; transition: transform .15s; }
.nav__sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__split { display: flex; align-items: center; }
.nav__list .nav__sub-toggle--icon { padding-inline: .35em; margin-left: -.45em; }
.sub-menu { list-style: none; margin: 0; padding: 8px; }
@media (min-width: 1101px) {
  .sub-menu { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
  .menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu, .nav__sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }
  .menu-item-has-children::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
  .sub-menu a { border-radius: var(--radius-sm); }
  .nav__list > li > a, .nav__list > li > .nav__sub-toggle, .site-header__cta { white-space: nowrap; }
}

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1101px) { .nav-toggle { display: none; } }
/* Narrow desktops: tighter menu so a 7th top-level item still fits */
@media (min-width: 1101px) and (max-width: 1320px) {
  .nav__list { gap: 0; }
  .nav__list > li > a, .nav__list > li > .nav__sub-toggle { padding-inline: .55em; font-size: .92rem; }
  .nav__list .nav__sub-toggle--icon { padding-inline: .25em; margin-left: -.4em; }
  .brand__logo { width: 190px; }
}

@media (max-width: 1100px) {
  .nav-open .site-header { backdrop-filter: none; background: var(--paper); }
  .nav { position: fixed; inset: var(--nav-top, calc(var(--header-h) + 1px)) 0 0 0; background: var(--paper); padding: 16px var(--gutter) 120px; overflow-y: auto; display: none; margin: 0; }
  .nav-open .nav { display: block; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list a, .nav__sub-toggle { width: 100%; padding: 1em .25em; border-radius: 0; font-size: 1.1rem; justify-content: space-between; }
  .sub-menu { display: none; padding: 0 0 12px 12px; }
  .nav__sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }
  .sub-menu a { padding: .55em .25em; font-size: 1rem; font-weight: 500; }
  .nav__split { flex-wrap: wrap; }
  .nav__split > a { flex: 1; width: auto; }
  .nav__list .nav__sub-toggle--icon { width: auto; margin: 0; padding-inline: .75em .25em; }
  .nav__split > .sub-menu { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .brand__logo { width: 178px; }
  .site-header__cta { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #e9e4dc; }
.section--dark .section__title { color: #fff; }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title { font-size: var(--step-3); margin: 0; }
.section__intro { color: var(--muted); font-size: var(--step-1); margin: .8rem 0 0; line-height: 1.55; }
.section__more { margin: 40px 0 0; text-align: center; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(20 26 28 / .88) 0%, rgb(20 26 28 / .66) 45%, rgb(20 26 28 / .2) 100%); }
.hero__inner { padding-block: clamp(80px, 13vw, 168px); max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.hero__title { color: #fff; font-size: var(--step-4); max-width: 15ch; margin: 0 0 1.1rem; font-weight: 700; }
.hero__lead { font-size: var(--step-1); max-width: 34em; margin: 0 0 2rem; color: #ece6dd; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 2.4rem 0 0; padding: 0; font-weight: 600; color: #f1ece4; }
.hero__facts li { display: flex; align-items: center; gap: .5em; }
.hero__facts .icon { color: #f3a77e; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero__inner { display: grid; gap: 32px; padding-block: clamp(36px, 6vw, 72px); align-items: center; }
.page-hero--media .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .page-hero--media .page-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.page-hero__title { font-size: var(--step-4); margin: 0 0 .9rem; font-weight: 700; }
.page-hero__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 38em; margin: 0; line-height: 1.55; }
.page-hero__lead p { margin: 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.page-hero__media { margin: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-hero .search-form { margin-top: 1.5rem; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3em .5em; margin: 0 0 1.2rem; padding: 0; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5em; color: #b9ad9c; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Page content ---------- */
.content { padding-block: clamp(40px, 6vw, 72px); }
.content > * { margin-block: 0; }
.content > * + * { margin-top: 1.1em; }
.content > :where(p, h2, h3, h4, ul:not([class]), ol:not([class]), blockquote) { max-width: var(--measure); }
.content h2 { font-size: var(--step-3); margin-top: 2.2em; }
.content > h2:first-child { margin-top: 0; }
.content h3 { font-size: var(--step-2); margin-top: 1.8em; }
.content h2 + *, .content h3 + * { margin-top: .7em; }
.content ul:not([class]), .content ol:not([class]) { padding-left: 1.3em; }
.content li + li { margin-top: .35em; }
.section .content, .split__text.content { padding: 0; }

.feature-list { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.feature-list li { position: relative; margin: 0; padding: 20px 20px 20px 58px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.6; }
.feature-list li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2441d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.feature-list strong { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 650; margin-bottom: .2em; }
.section--sand .feature-list li { background: var(--paper); }

.checklist { list-style: none; padding: 0; columns: 2 300px; column-gap: 40px; max-width: 900px; }
.checklist li { position: relative; padding-left: 32px; margin: 0 0 .7em; break-inside: avoid; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2572b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 18px no-repeat; }

.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-list a { display: inline-block; padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.link-list a:hover { border-color: var(--accent); color: var(--accent-dark); }
.related-links { color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; position: relative; margin: 0; padding: 28px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 18px; right: 22px; font: 700 1.6rem/1 var(--display); color: var(--sand-2); }
.steps .icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; margin: 0 0 .4em; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.steps--compact li { padding: 22px 22px 20px; }
.steps--compact li::before { position: static; display: block; margin-bottom: 10px; color: var(--accent); font-size: 1.1rem; }

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 650 1.12rem/1.35 var(--display); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font: 600 1.2rem/1 var(--sans); color: var(--accent-dark); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item > div { padding: 0 0 20px; color: var(--ink-2); }
.faq__item p { margin: 0; }

.cta-box { max-width: 860px; padding: 28px 30px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #efcdb9; margin-top: 2.5em !important; }
.cta-box__title { font: 700 1.35rem/1.2 var(--display); margin: 0 0 .4em; }
.cta-box p:last-child { margin: 0; }

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); max-width: none; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--sand-2); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery--single { grid-template-columns: minmax(0, 520px); }
.gallery--home { grid-template-columns: repeat(auto-fill, minmax(min(46%, 300px), 1fr)); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgb(15 18 20 / .88); }
.lightbox__img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--radius-sm); }
.lightbox__close { position: fixed; top: 14px; right: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.service-card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card__body { display: flex; flex-direction: column; gap: .5em; padding: 20px 22px 22px; flex: 1; }
.service-card__title { font-size: 1.3rem; margin: 0; }
.service-card__text { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.service-card__more { margin-top: auto; padding-top: .6em; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--accent-dark); }
.service-card:hover .service-card__more .icon { transform: translateX(3px); }
.service-card__more .icon { transition: transform .15s; }

/* ---------- Split sections ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } .split--form { align-items: start; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.split__media { margin: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__text .section__title { margin-bottom: .8rem; }
.split__text h3 { font-size: 1.35rem; }
.contact-card { margin-top: 1.5rem; padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--sand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.testimonial { margin: 0; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.7; }
.testimonial figcaption { margin-top: 1rem; font-weight: 800; }
.section--dark .testimonial { background: #263034; border-color: #334045; color: #e9e4dc; }
.section--dark .testimonial blockquote p { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.testimonial-list { display: grid; gap: 22px; max-width: 900px; }
.testimonial-list .gallery { grid-template-columns: minmax(0, 420px); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 40px; max-width: none !important; }
@media (min-width: 980px) { .contact-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; } }
.contact-layout__info h2 { font-size: 1.4rem; margin: 0 0 .6em; }
.contact-layout__info h2 + p { margin-top: 0; }
.contact-layout__info .steps { grid-template-columns: 1fr; gap: 12px; }
.form-card, .contact-layout__form { padding: clamp(22px, 4vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Contact Form 7 */
.wpcf7-form { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wpcf7-form > p, .wpcf7-form .cf-full { grid-column: 1 / -1; margin: 0; }
.wpcf7-form .cf-half { margin: 0; }
@media (max-width: 640px) { .wpcf7-form .cf-half { grid-column: 1 / -1; } }
.wpcf7-form label { display: block; font-weight: 700; font-size: .95rem; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form select, .wpcf7-form textarea { width: 100%; min-height: 48px; padding: .7em .85em; border: 1px solid #d5cabb; border-radius: var(--radius-sm); background: var(--paper); font: 400 1rem/1.4 var(--sans); color: var(--ink); }
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wpcf7-form .wpcf7-acceptance label { font-weight: 400; font-size: .92rem; color: var(--muted); display: flex; gap: .6em; align-items: flex-start; }
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form input[type="checkbox"] { width: 18px; height: 18px; margin-top: .2em; accent-color: var(--accent); }
.wpcf7-form .wpcf7-submit { background: var(--accent); color: #fff; border: 0; border-radius: 999px; min-height: 52px; padding: .8em 1.8em; font: 700 1.05rem/1 var(--sans); cursor: pointer; }
.wpcf7-form .wpcf7-submit:hover { background: var(--accent-dark); }
.wpcf7-form .wpcf7-spinner { vertical-align: middle; }
.wpcf7-not-valid-tip { font-size: .88rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { grid-column: 1 / -1; margin: 0; border-radius: var(--radius-sm); padding: .8em 1em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(44px, 6vw, 72px); }
.cta-band .eyebrow--light { color: #ffe1cf; }
.cta-band__title { color: #fff; font-size: var(--step-3); margin: 0 0 .4rem; }
.cta-band__text { margin: 0; color: #fff3ec; max-width: 40em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--accent { background: var(--ink); }
.cta-band .btn--accent:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bfc6c8; font-size: .97rem; padding-top: clamp(48px, 7vw, 80px); }
.site-footer a { color: #e9e4dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 980px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__logo { width: 259px; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 30em; margin: 0; }
.site-footer__title { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; font-family: var(--sans); font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .45em; }
.site-footer__email { font-weight: 700; overflow-wrap: anywhere; }
.site-footer__bottom { margin-top: 48px; padding-block: 22px; border-top: 1px solid #334045; font-size: .88rem; }
.site-footer__bottom p { margin: 0; }

/* Call bar on phones */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgb(255 253 249 / .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .callbar__btn { display: flex; align-items: center; justify-content: center; gap: .45em; min-height: 48px; border-radius: 999px; font-weight: 800; text-decoration: none; background: var(--ink); color: #fff; }
  .callbar__btn--accent { background: var(--accent); }
  .callbar__btn:hover { color: #fff; }
  body { padding-bottom: 72px; }
}

/* ---------- News ---------- */
.news-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.news-card { display: flex; flex-direction: column; }
.news-card__link { display: flex; flex-direction: column; gap: .5em; color: var(--ink); text-decoration: none; }
.news-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: .5em; }
.news-card__cat { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.news-card__title { font: 650 1.3rem/1.25 var(--display); }
.news-card__link:hover .news-card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.news-card__meta { margin: .5em 0 0; color: var(--muted); font-size: .9rem; }

.news__header { padding-top: clamp(28px, 5vw, 56px); max-width: calc(860px + 2 * var(--gutter)); }
.news__cat { display: inline-block; }
.news__title { font-size: var(--step-4); margin: 0 0 1rem; font-weight: 700; }
.news__standfirst { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; margin: 0 0 1.5rem; }
.news__media { margin-block: 8px 0; }
.news__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.news__media figcaption { margin-top: .6em; color: var(--muted); font-size: .9rem; }
.news__body { max-width: calc(760px + 2 * var(--gutter)); padding-block: clamp(32px, 5vw, 56px); }
.news-byline { display: flex; align-items: center; gap: 14px; padding-bottom: 1.5rem; }
.news-byline__avatar { width: 48px; height: 48px; border-radius: 50%; }
.news-byline p { margin: 0; line-height: 1.4; }
.news-byline__author { font-weight: 800; }
.news-byline__meta { color: var(--muted); font-size: .92rem; }

.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding: .4em 0 .4em 1.2em; border-left: 4px solid var(--accent); font-size: 1.1rem; color: var(--ink-2); }
.prose figure { margin-inline: 0; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: .5em; }
.prose img { border-radius: var(--radius-sm); }
.prose .note { padding: 18px 20px; background: var(--sand); border-radius: var(--radius-sm); font-size: .98rem; }

.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 24px; background: var(--sand); border-radius: var(--radius); }
.author-box__avatar { width: 80px; height: 80px; border-radius: 50%; flex: none; }
.author-box p { margin: 0; }
.author-box__label { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.author-box__name { font: 700 1.25rem/1.3 var(--display); margin: .1em 0 .4em !important; }
.author-box__bio { color: var(--ink-2); font-size: .98rem; }

.related { padding-block: 24px clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-2); margin: 32px 0 24px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; min-height: 48px; padding: .6em 1em; border: 1px solid #d5cabb; border-radius: 999px; font: inherit; background: #fff; }
.result-list { list-style: none; padding: 0; display: grid; gap: 18px; max-width: 860px; }
.result-list a { font: 650 1.25rem/1.3 var(--display); }
.result-list p { margin: .3em 0 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .callbar, .cta-band, .site-footer, .lightbox { display: none !important; } }

/* Home: 10 services = 2 featured cards + 2 rows of 4 */
@media (min-width: 1100px) {
  .service-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-grid--home > :nth-child(-n+2) { grid-column: span 2; }
  .service-grid--home > :nth-child(-n+2) .service-card__img { aspect-ratio: 16 / 9; }
  .service-grid--home > :nth-child(n+3) .service-card__title { font-size: 1.15rem; }
  .service-grid--home > :nth-child(n+3) .service-card__body { padding: 16px 18px 18px; }
}
/* About block on the home page: the photo follows the long text */
.split--about { align-items: start; }
@media (min-width: 980px) { .split--about .split__media { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- Mobile : the useful content above the fold ----------
   Breadcrumbs hidden (the BreadcrumbList JSON-LD stays), top bar hidden (the sticky callbar
   already offers "Email us"), smaller titles, tighter heroes and headers. */
@media (max-width: 760px) {
  .topbar, .breadcrumbs { display: none; }
  .hero__inner { padding-block: 40px 44px; }
  .hero__title { font-size: 2rem; margin-bottom: .8rem; }
  .hero__lead { margin-bottom: 1.4rem; }
  .hero__facts { margin-top: 1.5rem; }
  .page-hero__inner { padding-block: 22px 28px; gap: 20px; }
  .page-hero__title, .news__title { font-size: 1.9rem; margin-bottom: .7rem; }
  .page-hero__actions { margin-top: 1.2rem; }
  .news__header { padding-top: 20px; }
  .news__standfirst { margin-bottom: 1rem; }
  .news-byline { padding-bottom: 1rem; }
  .news__body { padding-top: 24px; }
  .section { padding-block: 44px; }
}
