/*
Theme Name: DF Plastering & Rendering
Theme URI: https://www.df-plastering-rendering.co.uk
Author: Welch Marketing Ltd
Author URI: https://welchmarketing.co.uk
Description: Premium, plugin-free WordPress theme for DF Plastering & Rendering, a Meopham-based plastering and rendering specialist covering Kent. Self-building pages, menus, local SEO location pages, schema, settings panel and contact form built in.
Version: 1.2.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dfplastering
*/

/* =========================================================================
   Self-hosted fonts (drop woff2 files into /assets/fonts to activate).
   A premium fallback stack renders immediately if the files are absent.
   ========================================================================= */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('DM Sans'), url('assets/fonts/dmsans.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local('Inter'), url('assets/fonts/inter.woff2') format('woff2');
}

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
  --brand:        #223240; /* deep slate navy */
  --brand-2:      #2f4658; /* lighter slate for gradients */
  --accent:       #c98a3c; /* warm render ochre */
  --accent-dark:  #ab7128;
  --ink:          #1b2129;
  --body-text:    #414b54;
  --muted:        #6b7580;
  --cream:        #f7f3ec;
  --stone:        #efe9df;
  --line:         #e2ddd3;
  --white:        #ffffff;
  --ok:           #2f8f5b;

  --head-font: 'DM Sans', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --body-font: 'Inter', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 45px rgba(24, 33, 41, 0.12);
  --shadow-sm: 0 8px 22px rgba(24, 33, 41, 0.08);
  --t: 0.25s ease;
}

/* =========================================================================
   Reset and base
   ========================================================================= */
* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--head-font);
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.1rem; }
a { color: var(--accent-dark); text-decoration: none; transition: color var(--t); cursor: pointer; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

/* Inline SVG icon safety net. Every icon also carries width/height attributes,
   so even with no stylesheet at all it can never balloon to the 300x150 SVG
   default. This rule keeps any icon at 1em unless a context rule sets a size;
   context selectors (e.g. .btn svg) are more specific and still win. */
.icon { width: 1em; height: 1em; display: inline-block; flex: none; vertical-align: -0.125em; fill: currentColor; }
ul { margin: 0 0 1.1rem; padding-left: 1.1rem; }
strong { color: var(--ink); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--cream { background: var(--cream); }
.section--stone { background: var(--stone); }
.section--ink { background: var(--brand); color: #d7dee5; }
.section--ink h2, .section--ink h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--accent); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
  line-height: 1;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--block { width: 100%; justify-content: center; }

/* =========================================================================
   Top bar
   ========================================================================= */
.topbar {
  background: var(--ink);
  color: #cfd6dd;
  font-size: 0.86rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar a { color: #eef1f4; font-weight: 600; }
.topbar a:hover { color: var(--accent); }
.topbar__left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 15px; height: 15px; color: var(--accent); }
.topbar__badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.topbar__badge svg { width: 15px; height: 15px; color: var(--accent); }
@media (max-width: 860px) { .topbar__badge { display: none; } }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand-logo { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo svg { display: block; height: 46px; width: auto; }
.brand-logo:hover { color: inherit; }

.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--accent-dark); background: var(--cream); }

.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 8px 0 0;
  display: none;
  flex-direction: column;
  gap: 2px;
}
/* Transparent bridge across the visual gap so the dropdown does not close as the
   pointer travels from the parent link down into the submenu. */
.primary-nav .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.primary-nav .menu-item-has-children:hover > .sub-menu { display: flex; }
.primary-nav .sub-menu a { display: block; padding: 9px 13px; font-weight: 500; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head-font); font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--accent); }
.header-phone:hover { color: var(--accent-dark); }

/* Mobile toggle (pure CSS) */
.nav-toggle-input { display: none; }
.nav-toggle { display: none; }
.nav-close, .nav-mobile-head { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  color: #eaeef2;
  background: linear-gradient(160deg, #1c2a36 0%, #263847 55%, #2f4658 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 85% 12%, rgba(201,138,60,0.22), transparent 70%),
    radial-gradient(closest-side at 10% 90%, rgba(201,138,60,0.10), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 90px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero__sub { font-size: 1.16rem; color: #cdd6de; max-width: 560px; margin-bottom: 26px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 26px 0 30px; padding: 0; list-style: none; }
.hero__badges li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head-font); font-weight: 600; font-size: 0.95rem; color: #eef2f6; }
.hero__badges svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  color: var(--body-text);
}
.hero-card h3 { color: var(--ink); margin-bottom: 6px; }
.hero-card p.small { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 600; color: var(--muted); font-family: var(--head-font); }
.hero-trust svg { width: 16px; height: 16px; color: var(--ok); }

/* Placeholder image blocks (marked, tasteful) */
.imgph {
  position: relative;
  background:
    linear-gradient(135deg, var(--stone), var(--cream));
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--muted);
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
  overflow: hidden;
}
.imgph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(45deg, rgba(201,138,60,0.05) 25%, transparent 25%, transparent 50%, rgba(201,138,60,0.05) 50%, rgba(201,138,60,0.05) 75%, transparent 75%);
  background-size: 22px 22px;
  opacity: 0.7;
}
.imgph span {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.82);
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.imgph svg { width: 15px; height: 15px; }
.imgph--tall { min-height: 420px; }
.imgph--wide { min-height: 320px; }
.imgph--filled { border: none; background: none; }
.imgph--filled::before { display: none; }
.imgph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   Trust strip
   ========================================================================= */
.trust-strip { background: var(--ink); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 46px; padding: 20px 22px; }
.trust-strip__item { display: inline-flex; align-items: center; gap: 11px; color: #eef2f6; font-family: var(--head-font); font-weight: 600; font-size: 0.96rem; }
.trust-strip__item svg { width: 22px; height: 22px; color: var(--accent); }

/* =========================================================================
   Intro / split
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.check-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink); }
.check-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }

/* =========================================================================
   Service cards
   ========================================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { min-height: 190px; border: none; border-radius: 0; }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--cream); color: var(--accent-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.98rem; margin-bottom: 16px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; padding: 0; list-style: none; }
.card__tags li { font-size: 0.78rem; font-weight: 600; font-family: var(--head-font); color: var(--muted); background: var(--stone); padding: 5px 11px; border-radius: 999px; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--head-font); font-weight: 700; color: var(--accent-dark); }
/* Areas page: keep the "Plastering & rendering in <town>" link on one line and
   size the columns so the longest town name never overflows or wraps. */
.tpl-areas .cards { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.tpl-areas .card__link { white-space: nowrap; font-size: 0.9rem; letter-spacing: -0.01em; }
.tpl-areas .card__link svg { flex: none; }
.card__link svg { width: 16px; height: 16px; transition: transform var(--t); }
.card:hover .card__link svg { transform: translateX(4px); }

/* =========================================================================
   Feature (why choose) grid
   ========================================================================= */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: left; }
.feature__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(201,138,60,0.14); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { font-size: 0.96rem; color: var(--muted); margin: 0; }
.section--ink .feature p { color: #b9c4cd; }

/* =========================================================================
   Stats
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--head-font); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3rem); color: #fff; line-height: 1; }
.stat__num span { color: var(--accent); }
.stat__label { font-size: 0.92rem; color: #b9c4cd; margin-top: 8px; }

/* =========================================================================
   Gallery
   ========================================================================= */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery .imgph { min-height: 230px; border-radius: var(--radius-sm); }

/* =========================================================================
   Reviews
   ========================================================================= */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.review__stars { display: inline-flex; gap: 3px; margin-bottom: 14px; }
.review__stars svg { width: 18px; height: 18px; color: var(--accent); }
.review__job { font-family: var(--head-font); font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 1.05rem; }
.review__text { font-size: 0.98rem; color: var(--body-text); margin-bottom: 18px; }
.review__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.review__author { font-family: var(--head-font); font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.review__src { font-size: 0.78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.review__src svg { width: 14px; height: 14px; color: var(--ok); }

/* =========================================================================
   Accreditations
   ========================================================================= */
.accreds { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.accred-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 30px; }
.accred-logo { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 26px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); min-width: 150px; min-height: 96px; }
.accred-logo img { max-height: 68px; max-width: 190px; width: auto; height: auto; object-fit: contain; display: block; }
.accred {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 22px;
  font-family: var(--head-font); font-weight: 700; color: var(--ink);
}
.accred svg { width: 24px; height: 24px; color: var(--accent-dark); }

/* =========================================================================
   Areas
   ========================================================================= */
.area-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.area-links a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; font-family: var(--head-font); font-weight: 600; color: var(--ink);
  transition: all var(--t);
}
.area-links a svg { width: 15px; height: 15px; color: var(--accent); }
.area-links a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.area-links a:hover svg { color: var(--accent); }

/* =========================================================================
   CTA banner
   ========================================================================= */
.cta-banner { background: linear-gradient(150deg, #223240, #2f4658); color: #fff; border-radius: var(--radius); padding: 54px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::after { content:""; position:absolute; inset:0; background: radial-gradient(closest-side at 80% 20%, rgba(201,138,60,0.24), transparent 70%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #cdd6de; max-width: 620px; margin: 0 auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =========================================================================
   Forms
   ========================================================================= */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: var(--head-font); font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  cursor: text;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field select { cursor: pointer; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,138,60,0.16);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.form-alert--ok { background: #e7f5ee; color: #1c6b41; border: 1px solid #b9e0cb; }
.form-alert--err { background: #fdeceb; color: #a3312a; border: 1px solid #f3c9c6; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info__item { display: flex; gap: 15px; align-items: flex-start; }
.contact-info__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--cream); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__item h4 { margin: 0 0 3px; font-size: 1.02rem; }
.contact-info__item a, .contact-info__item p { margin: 0; color: var(--body-text); }
.contact-panel { background: var(--cream); border-radius: var(--radius); padding: 32px; }

/* =========================================================================
   Page hero (inner pages)
   ========================================================================= */
.page-hero {
  background: linear-gradient(155deg, #1f2e3a, #2b4152);
  color: #fff;
  padding: 66px 0 58px;
  position: relative;
  overflow: hidden;
}
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(closest-side at 88% 15%, rgba(201,138,60,0.20), transparent 70%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #cdd6de; max-width: 640px; margin: 0; font-size: 1.1rem; }
.breadcrumb { font-size: 0.86rem; color: #9fb0bd; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.breadcrumb a { color: #cdd6de; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 13px; height: 13px; opacity: 0.7; }

/* =========================================================================
   Article / prose
   ========================================================================= */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }

/* Blog listing */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__date { font-size: 0.8rem; font-weight: 600; font-family: var(--head-font); color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.post-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent-dark); }
.post-card p { font-size: 0.96rem; color: var(--muted); margin-bottom: 18px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-family: var(--head-font); font-weight: 700; color: var(--ink); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 16px 0 20px; margin: 0; color: var(--body-text); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: #aab6c0; padding: 66px 0 0; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.site-footer a { color: #aab6c0; }
.site-footer a:hover { color: var(--accent); }
.footer-brand svg { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact__item { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact__item svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.07); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 19px; height: 19px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #8894a0; }
.footer-bottom a { color: #aab6c0; }

/* =========================================================================
   Inner page layout: article + sticky aside
   ========================================================================= */
.header-quote { white-space: nowrap; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(24, 33, 41, 0.07); }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 46px; align-items: start; }
.with-aside .prose { max-width: none; }
.aside-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: sticky; top: 100px; }
.aside-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.aside-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.aside-list a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head-font); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.aside-list a:hover { color: var(--accent-dark); }
.aside-list svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.check-list a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.check-list a:hover { color: var(--accent-dark); }

/* Pagination */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-family: var(--head-font); font-weight: 600; color: var(--ink); }
.pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Mobile sticky call bar */
.mobile-bar { display: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 64px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split__media { order: 0; }
  .cards, .features, .stats, .gallery, .reviews, .post-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .with-aside { grid-template-columns: 1fr; gap: 34px; }
  .aside-card { position: static; }
}

@media (max-width: 1080px) {
  /* Header collapses to mobile menu */
  .primary-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--brand);
    padding: 90px 26px 40px;
    overflow-y: auto;
  }
  .site-header { backdrop-filter: none; } /* free the fixed menu from the containing block */
  #nav-toggle:checked ~ .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav a { color: #fff; font-size: 1.14rem; padding: 14px 10px; border-radius: 10px; }
  .primary-nav a:hover,
  .primary-nav .current-menu-item > a,
  .primary-nav .current_page_item > a { background: rgba(255,255,255,0.08); color: #fff; }
  .primary-nav .sub-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    background: transparent; /* inherit dark panel */
    padding: 0 0 0 14px;
    margin: 0;
  }
  .primary-nav .sub-menu::before { display: none; }
  .primary-nav .sub-menu a { color: #cdd6de; font-size: 1rem; padding: 11px 10px; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    z-index: 1000;
    padding: 0 11px;
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: "";
    display: block;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
  }
  #nav-toggle:checked ~ .nav-toggle span { opacity: 0; }
  #nav-toggle:checked ~ .nav-toggle::before { transform: translateY(7.5px) rotate(45deg); }
  #nav-toggle:checked ~ .nav-toggle::after { transform: translateY(-7.5px) rotate(-45deg); }
  #nav-toggle:checked ~ .nav-toggle span, #nav-toggle:checked ~ .nav-toggle::before, #nav-toggle:checked ~ .nav-toggle::after { background: #fff; }
  #nav-toggle:checked ~ .nav-toggle { background: transparent; border-color: rgba(255,255,255,0.4); position: fixed; top: 16px; right: 22px; }

  .nav-mobile-head { display: block; position: fixed; top: 26px; left: 26px; z-index: 1001; }
  .nav-mobile-head svg { height: 40px; width: auto; }
  .header-phone--desktop { display: none; }
  .header-cta { margin-left: auto; margin-right: 12px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .cards, .features, .stats, .gallery, .reviews, .post-list, .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 26px; }
  .contact-panel { padding: 24px; }
  .topbar__left { gap: 16px; }
  body { padding-bottom: 66px; }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 300;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  }
  .mobile-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 10px; font-family: var(--head-font); font-weight: 700; font-size: 0.95rem;
  }
  .mobile-bar svg { width: 18px; height: 18px; }
  .mobile-bar__call { background: var(--brand); color: #fff; }
  .mobile-bar__quote { background: var(--accent); color: #fff; }
}

@media (max-width: 640px) {
  .header-quote { display: none; }
}

@media (max-width: 420px) {
  .topbar__left .topbar__item--email { display: none; }
}
