/*
Theme Name: Rove Networking
Theme URI: https://rovenet.co.uk
Author: Rove Networking
Description: Bespoke theme for Rove Networking — enterprise-grade, resilient connectivity for demanding environments. Industrial, understated, fast and accessible.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rove
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  /* Brand palette — sampled from the Rove logo */
  --ink:        #1b2530;   /* headings / near-black slate */
  --slate:      #2b3d54;   /* logo navy */
  --body:       #434f5d;   /* body copy */
  --muted:      #6a7682;   /* secondary text, labels */
  --faint:      #98a2ac;   /* captions, meta */

  --accent:     #1466b0;   /* deep blue — primary accent */
  --accent-700: #0f4e88;   /* hover / pressed */
  --accent-900: #0a3a66;
  --accent-50:  #eaf1f8;   /* tint surfaces */

  --bg:         #ffffff;
  --paper:      #f5f6f7;   /* off-white section surface */
  --paper-2:    #eceff1;
  --line:       #e2e6ea;   /* hairline borders */
  --line-2:     #cfd5db;   /* stronger hairline */
  --ink-overlay:#11181f;

  /* Type */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  --maxw: 1200px;
  --maxw-text: 720px;
  --radius: 3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(20,32,46,.06);
  --shadow:    0 12px 32px -16px rgba(20,32,46,.20);

  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-700); }
strong { font-weight: 600; color: var(--slate); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.1vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p  { text-wrap: pretty; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px;
  font: 600 14px/1 var(--mono);
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ============================================================
   3. Layout primitives
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #c7cfd8; }
.section--ink h1,.section--ink h2,.section--ink h3 { color: #fff; }

.measure { max-width: var(--maxw-text); }
.center { margin-inline: auto; text-align: center; }

/* Mobile-first: ascending breakpoints so the largest wins (source order). */
.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 720px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   4. Typographic helpers
   ============================================================ */
.eyebrow {
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--accent);
  display: inline-block;
}
.section--ink .eyebrow { color: #5aa0e0; }
.section--ink .eyebrow::before { background: #5aa0e0; }

.lede { font-size: clamp(1.12rem, 1rem + .5vw, 1.32rem); line-height: 1.55; color: var(--slate); }
.muted { color: var(--muted); }
.index-no { font: 500 .8rem/1 var(--mono); color: var(--faint); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; font-size: 1.1rem; color: var(--muted); }

/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
  --bg: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.98rem/1 var(--sans);
  letter-spacing: .005em;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg);
  color: #fff;
  cursor: pointer;
  transition: background .15s var(--ease), transform .1s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-700); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ink { background: var(--ink); }
.btn--ink:hover { background: #000; }

.btn--ghost {
  background: transparent; color: var(--slate);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--slate); }

.btn--onink { background: #fff; color: var(--ink); }
.btn--onink:hover { background: #e9eef3; color: var(--ink); }
.btn--onink-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--onink-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }

.btn--lg { padding: 18px 32px; font-size: 1.05rem; }

.textlink {
  font: 500 .95rem/1 var(--sans);
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.textlink .arrow { transition: transform .2s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }

/* ============================================================
   6. Top utility bar + header
   ============================================================ */
.topbar {
  background: var(--ink);
  color: #aeb8c2;
  font: 500 .8rem/1 var(--mono);
  letter-spacing: .02em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar a { color: #d4dbe2; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 22px; }
.topbar__status { display: inline-flex; align-items: center; gap: 8px; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: #3fb27f; box-shadow: 0 0 0 0 rgba(63,178,127,.6); animation: pulse 2.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(63,178,127,.5)} 70%{box-shadow:0 0 0 7px rgba(63,178,127,0)} 100%{box-shadow:0 0 0 0 rgba(63,178,127,0)} }
@media (max-width: 760px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
@media (max-width: 520px){ .brand img { height: 38px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { display: contents; }
.nav li { list-style: none; margin: 0; }
.nav a {
  font: 500 .96rem/1 var(--sans);
  color: var(--slate);
  padding: 10px 14px;
  border-radius: var(--radius);
  position: relative;
}
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav .current-menu-item > a,
.nav a[aria-current="page"] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line-2); background: #fff;
    border-radius: var(--radius); cursor: pointer; color: var(--ink);
  }
  .mobile-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    background: #fff; border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .28s var(--ease);
    z-index: 200; padding: 88px 28px 28px; display: flex; flex-direction: column; gap: 4px;
    box-shadow: var(--shadow);
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav ul { display: contents; }
  .mobile-nav li { list-style: none; margin: 0; }
  .mobile-nav a { display: block; font: 500 1.05rem/1 var(--sans); color: var(--slate); padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 20px; justify-content: center; }
  .mobile-backdrop { position: fixed; inset: 0; background: rgba(17,24,31,.4); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 150; }
  .mobile-backdrop.open { opacity: 1; visibility: visible; }
  .mobile-close { position: absolute; top: 22px; right: 22px; background: none; border: none; cursor: pointer; color: var(--ink); }
}
@media (min-width: 941px) { .mobile-nav, .mobile-backdrop { display: none; } }

/* ============================================================
   7. Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 100% at 80% 0%, #000 0%, transparent 70%);
  opacity: .55;
}
.hero .container { position: relative; z-index: 1; }
.hero__inner {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 7vw, 104px);
}
@media (min-width: 940px) { .hero__inner { grid-template-columns: 1.05fr 1fr; } }

.hero h1 { margin-top: 22px; }
.hero__lede { margin-top: 26px; max-width: 30ch; font-size: clamp(1.12rem, 1rem + .55vw, 1.34rem); color: var(--slate); line-height: 1.55; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__meta div { font: 400 .9rem/1.4 var(--sans); color: var(--muted); }
.hero__meta b { display: block; font: 600 1.7rem/1 var(--sans); color: var(--ink); letter-spacing: -.02em; margin-bottom: 6px; }
.hero__visual { position: relative; }

/* ============================================================
   8. Cards & feature blocks
   ============================================================ */
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card__icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 22px; }
.card__no { font: 500 .8rem/1 var(--mono); color: var(--faint); margin-bottom: 18px; display: block; }

/* Step (How it works) */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 30px; border-top: 2px solid var(--ink); }
.step__no { font: 500 .82rem/1 var(--mono); color: var(--accent); letter-spacing: .1em; }
.step h3 { margin: 18px 0 12px; }
.step p { color: var(--muted); }
.step__icon { width: 40px; height: 40px; color: var(--slate); margin-top: 22px; }

/* Solution rows */
.solution {
  display: grid; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line);
}
@media (min-width: 860px) { .solution { grid-template-columns: 1fr 1fr; } .solution--flip .solution__media { order: -1; } }
.solution__no { font: 500 .82rem/1 var(--mono); color: var(--accent); letter-spacing: .12em; }
.solution h3 { font-size: clamp(1.5rem,1.2rem+1.2vw,2rem); margin: 16px 0 16px; }
.solution__list { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.solution__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); font-size: .98rem; }
.solution__list svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.solution__media {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.solution__media svg { width: 100%; height: 100%; }

/* Why — feature list */
.feature { padding: 28px 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
@media (min-width: 760px) { .feature { grid-template-columns: 56px 1fr; gap: 28px; align-items: start; } }
.feature__icon { width: 44px; height: 44px; color: var(--accent); }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* Stat band */
.statband { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px){ .statband { grid-template-columns: repeat(4,1fr); } }
.stat { background: var(--bg); padding: 32px 28px; }
.stat b { display: block; font: 600 2.4rem/1 var(--sans); color: var(--ink); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; font: 400 .92rem/1.4 var(--sans); color: var(--muted); }

/* ============================================================
   9. CTA band
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px){ .cta-grid { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #aeb8c2; margin-top: 16px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 820px){ .cta-actions { justify-content: flex-end; } }
.cta-band__rule {
  position:absolute; inset:0; z-index:0; opacity:.5;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 100%;
}

/* ============================================================
   10. Blog / Insights
   ============================================================ */
.page-hero { border-bottom: 1px solid var(--line); padding-block: clamp(48px,6vw,84px); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { max-width: 16ch; }
.page-hero p { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.blog-layout { display: grid; gap: clamp(36px,5vw,64px); }
@media (min-width: 1000px){ .blog-layout { grid-template-columns: 1fr 300px; } }

.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); height: 100%; }
.post-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { aspect-ratio: 16/10; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font: 500 .76rem/1 var(--mono); letter-spacing: .04em; color: var(--faint); text-transform: uppercase; display: flex; gap: 14px; margin-bottom: 14px; }
.post-card__meta .cat { color: var(--accent); }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 12px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.post-card__foot { margin-top: auto; font: 500 .85rem/1 var(--sans); color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }

.post-grid { display: grid; gap: 28px; }
@media (min-width: 640px){ .post-grid { grid-template-columns: repeat(2,1fr); } }

/* Featured */
.featured { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 44px; background: #fff; }
@media (min-width: 760px){ .featured { grid-template-columns: 1.2fr 1fr; } }
.featured__media { background: var(--paper); min-height: 280px; overflow: hidden; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__body { padding: clamp(28px,3vw,44px); display: flex; flex-direction: column; justify-content: center; }
.featured__tag { font: 500 .76rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.featured h2 { font-size: clamp(1.5rem,1.2rem+1.3vw,2.1rem); margin-bottom: 16px; }
.featured h2 a { color: var(--ink); }
.featured h2 a:hover { color: var(--accent); }
.featured p { color: var(--muted); margin-bottom: 22px; }

/* Sidebar */
.widget { margin-bottom: 40px; }
.widget__title { font: 500 .8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.widget ul { list-style: none; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--slate); font-weight: 500; font-size: .96rem; }
.cat-list a:hover { color: var(--accent); }
.cat-list .count { font: 400 .8rem/1 var(--mono); color: var(--faint); }
.recent li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.recent a { color: var(--slate); font-weight: 500; font-size: .95rem; line-height: 1.4; display: block; }
.recent a:hover { color: var(--accent); }
.recent time { display: block; font: 400 .76rem/1 var(--mono); color: var(--faint); margin-top: 8px; }

/* Search form */
.searchform { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.searchform input[type=search] { flex: 1; border: 0; padding: 13px 16px; font: 400 .96rem var(--sans); color: var(--ink); background: transparent; }
.searchform input[type=search]:focus { outline: none; }
.searchform button { border: 0; background: var(--ink); color: #fff; padding: 0 16px; cursor: pointer; display: flex; align-items: center; }
.searchform button:hover { background: var(--accent); }

/* Single post */
.article-head { border-bottom: 1px solid var(--line); padding-block: clamp(40px,5vw,72px); }
.article-head .breadcrumb { font: 500 .8rem/1 var(--mono); color: var(--faint); margin-bottom: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.article-head .breadcrumb a { color: var(--muted); }
.article-head h1 { font-size: clamp(2rem,1.5rem+2vw,3.1rem); max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; font: 500 .85rem/1 var(--mono); color: var(--muted); }
.article-meta .cat { color: var(--accent); }
.article-figure { margin-block: clamp(28px,4vw,44px); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }

.prose { max-width: var(--maxw-text); margin-inline: auto; }
.prose > * + * { margin-top: 1.35em; }
.prose p, .prose li { font-size: 1.12rem; line-height: 1.75; color: #3c4855; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h3 { font-size: 1.32rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: .5em; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 26px; font-size: 1.28rem; line-height: 1.5; color: var(--slate); font-weight: 500; }
.prose img { border-radius: var(--radius-lg); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose code { font: .9em var(--mono); background: var(--paper); padding: 2px 6px; border-radius: 3px; color: var(--slate); }
.prose pre { background: var(--ink); color: #d7dee6; padding: 22px; border-radius: var(--radius-lg); overflow-x: auto; font: .9rem var(--mono); }
.prose pre code { background: none; color: inherit; padding: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.tags a { font: 500 .82rem/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); padding: 8px 12px; border-radius: 100px; }
.tags a:hover { border-color: var(--accent); color: var(--accent); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; 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-2); border-radius: var(--radius); color: var(--slate); font: 500 .95rem var(--sans); }
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============================================================
   11. Contact / forms
   ============================================================ */
.contact-layout { display: grid; gap: clamp(36px,5vw,72px); }
@media (min-width: 920px){ .contact-layout { grid-template-columns: 1fr 360px; } }

.form-row { display: grid; gap: 22px; }
@media (min-width: 600px){ .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font: 500 .82rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font: 400 1rem var(--sans); color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50);
}
.field--error input, .field--error textarea { border-color: #c0392b; }
.field .err { color: #c0392b; font-size: .85rem; }
.form-note { font-size: .85rem; color: var(--faint); margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

.form-alert { padding: 18px 22px; border-radius: var(--radius); margin-bottom: 28px; font-size: .98rem; border: 1px solid; }
.form-alert--ok { background: #eef8f2; border-color: #bfe3cd; color: #1d6b40; }
.form-alert--err { background: #fdeeec; border-color: #f3c7c0; color: #a02c1c; }

.contact-aside { display: flex; flex-direction: column; gap: 4px; }
.contact-block { padding: 26px 0; border-top: 1px solid var(--line); }
.contact-block:first-child { border-top: 0; padding-top: 0; }
.contact-block .label { font: 500 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.contact-block .big { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.contact-block a.big:hover { color: var(--accent); }
.contact-block p { color: var(--muted); font-size: .96rem; }
.area-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li { font: 500 .82rem/1 var(--mono); color: var(--slate); border: 1px solid var(--line); padding: 7px 11px; border-radius: 3px; background: var(--paper); }

/* ============================================================
   12. Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #97a2ad; padding-block: clamp(56px,6vw,80px) 32px; }
.site-footer a { color: #c3ccd5; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (min-width: 760px){ .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { font-size: .95rem; max-width: 34ch; color: #8c97a2; }
.footer-col h4 { font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-col a { font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 28px; font: 400 .85rem var(--sans); color: #707b86; }
.footer-bottom .mono { font-family: var(--mono); }

/* ============================================================
   13. Utilities & motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

.divider-label { display: flex; align-items: center; gap: 18px; font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.divider-label::before, .divider-label::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.mt-0{margin-top:0}.mt-2{margin-top:var(--sp-5)}.mt-3{margin-top:var(--sp-6)}
.text-center{text-align:center}

/* ============================================================
   FAQ (answer-engine friendly accordion)
   ============================================================ */
.faq__head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.faq__head h2 { margin-top: 14px; }
.faq__head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.faq__list { max-width: 860px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  cursor: pointer; list-style: none; padding: 22px 4px;
  font: 600 clamp(1.05rem, 1rem + .35vw, 1.22rem)/1.4 var(--sans);
  color: var(--ink); letter-spacing: -.01em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__chev { color: var(--accent); flex-shrink: 0; transform: rotate(90deg); transition: transform .25s var(--ease); }
.faq__item[open] .faq__chev { transform: rotate(-90deg); }
.faq__a { padding: 0 4px 24px; max-width: 70ch; }
.faq__a p { color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.faq__cta { margin-top: 36px; font: 500 1rem var(--sans); color: var(--slate); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Accessibility helper — visible only to screen readers */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; white-space: nowrap; word-wrap: normal;
}
.screen-reader-text:focus {
  background: #fff; color: var(--ink); clip: auto; clip-path: none;
  height: auto; width: auto; padding: 12px 18px; z-index: 100000;
  left: 12px; top: 12px;
}

/* WP alignment + caption defaults inside prose */
.entry-content .alignleft { float: left; margin: 6px 28px 18px 0; }
.entry-content .alignright { float: right; margin: 6px 0 18px 28px; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content .alignwide { width: min(1000px, 92vw); margin-inline: auto; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.wp-caption-text, .wp-element-caption { font: 400 .85rem var(--mono); color: var(--faint); margin-top: 10px; }
.page-links { margin-top: 32px; font-family: var(--mono); font-size: .9rem; display: flex; gap: 8px; }
.page-links a { border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 3px; }
