/*
Theme Name: Inova Group
Theme URI: https://inovadatamanagement.com
Author: Inova Group
Description: Custom theme for Inova Group — business consultancy site with GDPR cookie consent.
Version: 1.0.0
Text Domain: inova-group
*/

/* ============ TOKENS ============ */
:root{
  --ink:        #0B1220;
  --ink-2:      #121B2E;
  --ink-3:      #1B2740;
  --paper:      #F5F6F8;
  --paper-2:    #EAEDF2;
  --paper-3:    #DDE1E8;
  --text-on-ink:    #F5F6F8;
  --text-on-ink-mut:#AAB2C5;
  --text-on-paper:  #0B1220;
  --text-on-paper-mut:#5C6478;
  --accent:     #C89B3C;
  --accent-hi:  #E0B45A;
  --accent-lo:  #8A6314; /* deep enough to pass WCAG AA (4.5:1) as small text on --paper; the base --accent only meets that on dark (--ink) backgrounds */
  --line-on-ink:   rgba(245,246,248,0.14);
  --line-on-paper: rgba(11,18,32,0.12);
  --danger: #C0463A;
  --ok: #3E8E63;

  /* Client feedback (2026-08-26): the display font (Syne, headings) and
     mono font (IBM Plex Mono, nav/labels/buttons) read as "stretched and
     weird" — unified everything to the body font. Both variables now just
     alias --font-body so every existing font-family:var(--font-display/mono)
     usage across the theme picks it up automatically, no per-selector edits. */
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-display: var(--font-body);
  --font-mono: var(--font-body);

  --container: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
p{ margin:0; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; }
img{ max-width:100%; height:auto; display:block; }

.eyebrow{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  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;
}
/* --accent only meets WCAG AA contrast for text on dark (--ink) backgrounds;
   on light backgrounds, use the deeper --accent-lo instead. The decorative
   line stays --accent everywhere since it's not text. */
.on-paper .eyebrow, .on-paper-2 .eyebrow, .contact-tile .eyebrow{ color: var(--accent-lo); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.tabular{ font-variant-numeric: tabular-nums; }

/* Skip link */
.skip-link{
  position:absolute; left:-999px; top:auto;
  background: var(--accent); color:#000; padding:12px 18px;
  font-family: var(--font-mono); font-weight:600; font-size:13px;
  z-index: 999; border-radius: 0 0 6px 0;
}
.skip-link:focus{ left:0; top:0; }

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

/* ============ NAV ============ */
header.site-nav{
  position: sticky; top:0; z-index: 60;
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-on-ink);
  color: var(--text-on-ink);
}
.nav-row{
  display:grid; grid-template-columns: 1fr auto 1fr; align-items:center;
  padding-top:10px; padding-bottom:10px;
  gap: 24px;
}
.logo{ display:flex; align-items:center; justify-self:start; }
.logo-img{ width:120px; height:auto; display:block; max-height: 100%; }
/* Same size as the header logo, deliberately — so the two look identical
   when the header and footer meet each other during a scroll. */
.footer-brand .logo-img{ width:120px; height:auto; }

/* Middle grid column, bookended by two equal 1fr tracks either side, so the
   nav sits truly centered on the header row regardless of the logo's and
   nav-actions' own widths (a plain flex space-between would skew it toward
   whichever side is narrower). */
nav.primary-links{ display:flex; align-items:center; gap:2px; justify-self:center; }
nav.primary-links a{
  font-family: var(--font-mono); font-size: 13px; font-weight:700; letter-spacing:0.03em;
  color: var(--text-on-ink); padding: 10px 16px; border-radius: 999px;
  transition: color .18s ease, background .18s ease;
}
nav.primary-links a:hover{ color: var(--text-on-ink); }
nav.primary-links a.current,
nav.primary-links a[aria-current="page"]{
  color: var(--ink); background: var(--accent);
}

.nav-actions{ display:flex; align-items:center; gap:14px; justify-self:end; }
.btn{
  -webkit-appearance:none; appearance:none; background:none; margin:0;
  font-family: var(--font-mono); font-size:13px; font-weight:600; letter-spacing:0.03em;
  padding: 12px 22px; border-radius: 999px; border:1px solid transparent;
  display:inline-flex; align-items:center; gap:10px; cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-accent{ background: var(--accent); color:#161005; }
.btn-accent:hover{ background: var(--accent-hi); }
.btn-ghost-ink{ border-color: var(--line-on-ink); color: var(--text-on-ink); }
.btn-ghost-ink:hover{ border-color: var(--accent); color: var(--accent); }
.btn-ghost-paper{ border-color: var(--line-on-paper); color: var(--text-on-paper); }
.btn-ghost-paper:hover{ border-color: var(--accent-lo); color: var(--accent-lo); }
.btn-block{ background: var(--ink); color: var(--text-on-ink); }
.btn-block:hover{ background: var(--ink-3); }

.nav-toggle{
  display:none; background:none; border:1px solid var(--line-on-ink); color:var(--text-on-ink);
  width:42px; height:42px; border-radius:10px; align-items:center; justify-content:center;
}

/* ============ HERO (home) ============ */
.hero{
  position: relative; background: var(--ink); color: var(--text-on-ink);
  overflow: hidden; padding-top: clamp(60px, 10vw, 120px); padding-bottom: clamp(90px,12vw,150px);
}
.hero canvas{ position:absolute; inset:0; width:100%; height:100%; opacity:.85; }
.hero .container{ position:relative; z-index:2; }
.hero-eyebrow{ margin-bottom:22px; }
.hero h1{
  font-size: clamp(40px, 6.6vw, 86px);
  max-width: 15ch;
  background: linear-gradient(180deg, #FFFFFF 10%, #C7CEDD 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{
  margin-top: 26px; max-width: 46ch; font-size: 18px; color: var(--text-on-ink-mut);
}
.hero-ctas{ display:flex; gap:16px; margin-top: 40px; flex-wrap:wrap; }

/* ============ INNER PAGE HERO ============ */
.page-hero{
  position:relative; background: var(--ink); color: var(--text-on-ink);
  padding-top: clamp(64px,9vw,110px); padding-bottom: clamp(70px,9vw,110px);
  overflow:hidden;
}
.page-hero::after{
  content:""; position:absolute; right:-10%; top:-30%; width:60%; height:160%;
  background: radial-gradient(circle at center, rgba(200,155,60,0.16), transparent 62%);
  pointer-events:none;
}
/* Same animated node-network background as the home hero, just lighter
   (fewer nodes, lower opacity) so smaller inner-page heroes don't feel
   flat/static next to the home page. */
.page-hero canvas{ position:absolute; inset:0; width:100%; height:100%; opacity:.55; }
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ font-size: clamp(36px,5.4vw,64px); margin-top:18px; }
.page-hero p{ margin-top:16px; max-width:56ch; color:var(--text-on-ink-mut); font-size:16.5px; }
.crumb{ font-family:var(--font-mono); font-size:12px; color:var(--text-on-ink-mut); letter-spacing:.05em; }
.crumb b{ color: var(--accent); font-weight:600; }

/* ============ GENERIC SECTIONS ============ */
section{ padding: clamp(64px,9vw,108px) 0; }
.on-ink{ background: var(--ink); color: var(--text-on-ink); }
.on-paper{ background: var(--paper); color: var(--text-on-paper); }
.on-paper-2{ background: var(--paper-2); color: var(--text-on-paper); }

.section-head{ max-width: 780px; margin-bottom: 52px; }
.section-head h2{ font-size: clamp(28px,3.6vw,44px); margin-top:18px; }
.section-head p{ margin-top:18px; font-size:17px; color: var(--text-on-paper-mut); }
.on-ink .section-head p{ color: var(--text-on-ink-mut); }

.reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }

/* Twin cards (why-inova) */
.twin{ display:grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items:start; }
.twin-copy p + p{ margin-top:16px; }
.twin-copy{ color: var(--text-on-paper-mut); font-size:16.5px; max-width:52ch; }
.feature-cards{ display:flex; flex-direction:column; gap:18px; }
.feature-card{
  background: var(--ink); color: var(--text-on-ink); border-radius: 14px;
  padding: 28px 30px; border:1px solid var(--line-on-ink);
  position:relative; overflow:hidden;
}
/* Side-by-side variant of the feature-card grid, used where two cards
   should sit next to each other instead of stacked (e.g. Who We Are). */
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap:20px; }
@media (max-width: 700px){ .grid-2{ grid-template-columns: 1fr; } }
.feature-card::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--accent);
}
.feature-card h3{ font-size:19px; font-family: var(--font-body); font-weight:700; }
.feature-card p{ margin-top:10px; color: var(--text-on-ink-mut); font-size:15px; }

/* Services grid */
.svc-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:1px;
  background: var(--line-on-paper); border:1px solid var(--line-on-paper);
}
.svc-card{
  background: var(--paper); padding: 30px 26px; min-height: 190px;
  display:flex; flex-direction:column; justify-content:space-between;
  transition: background .2s ease;
}
.svc-card:hover{ background: var(--paper-2); }
.svc-num{ font-family: var(--font-mono); font-size:12px; color: var(--accent-lo); font-weight:600; }
.svc-card h3{ font-family: var(--font-body); font-weight:700; font-size:17px; margin-top:22px; }
.svc-card p{ margin-top:8px; font-size:14px; color: var(--text-on-paper-mut); }

/* Values band — fixed column counts (not auto-fit) so an odd item count
   (currently 5) never wraps into a lone stretched tile on its own row;
   5 across on desktop, 3 across on tablet (3+2, still balanced), 1 on
   mobile. See the responsive breakpoints below for the step-downs. */
.values-list{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-on-ink); border:1px solid var(--line-on-ink); margin-top: 8px;}
.value-item{ background: var(--ink); padding: 26px 24px; }
.value-item .tick{
  width:26px;height:26px;border-radius:50%;border:1px solid var(--accent); color:var(--accent);
  display:flex;align-items:center;justify-content:center;font-size:13px; margin-bottom:16px;
}
.value-item h3{ font-family: var(--font-body); font-weight:700; font-size:16px; }
.value-item p{ margin-top:8px; font-size:14px; color: var(--text-on-ink-mut); }

/* graphic panel (replaces stock photo) */
.graphic-panel{
  position:relative; border-radius: 18px; overflow:hidden; aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 30% 20%, rgba(200,155,60,0.35), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(60,90,160,0.30), transparent 55%),
    linear-gradient(160deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line-on-ink);
}
.graphic-panel svg{ position:absolute; inset:0; width:100%; height:100%; }

/* Careers photo gallery */
.careers-gallery{
  display:grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px;
  grid-auto-flow: dense; gap: 14px;
}
.careers-gallery-item{ border-radius: 14px; overflow:hidden; }
.careers-gallery-item img{ width:100%; height:100%; object-fit:cover; display:block; }
.careers-gallery-item.span2{ grid-column: span 2; }
@media (max-width: 700px){
  .careers-gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .careers-gallery-item.span2{ grid-column: span 2; }
}

/* Split feature */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }
.split .copy p{ margin-top:16px; color: var(--text-on-paper-mut); font-size:16.5px; }
.on-ink .split .copy p{ color: var(--text-on-ink-mut); }

/* Timeline (about/who-we-are) */
.timeline{ display:flex; flex-direction:column; gap:0; margin-top:8px; }
.timeline-item{ display:grid; grid-template-columns: 22px 1fr; gap: 20px; padding: 22px 0; border-top:1px solid var(--line-on-paper); }
.timeline-item:last-child{ border-bottom:1px solid var(--line-on-paper); }
.timeline-dot{ width:10px;height:10px;border-radius:50%; background: var(--accent); margin-top:6px; }
.timeline-item h3{ font-family: var(--font-body); font-weight:700; font-size:17px; }
.timeline-item p{ margin-top:6px; color: var(--text-on-paper-mut); font-size:15px; max-width: 60ch; }

/* Bullet check list */
.check-list{ display:flex; flex-direction:column; gap:14px; margin-top:22px; }
.check-list li{ display:flex; gap:12px; font-size:15.5px; }
.check-list li::before{ content:"✓"; color: var(--accent); font-weight:700; flex:none; }

/* Accordions (What We Do / Careers / Services detail) */
.acc{ border-top:1px solid var(--line-on-paper); }
.acc-item{ border-bottom:1px solid var(--line-on-paper); }
.on-ink .acc, .on-ink .acc-item{ border-color: var(--line-on-ink); }
.acc-btn{
  width:100%; background:none; border:none; text-align:left; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding: 22px 4px; color:inherit;
}
/* The <h3> now WRAPS the button (valid HTML + reliable screen-reader heading
   navigation), so it must add no box of its own, and the visible title styling
   moves onto the inner span. */
.acc-heading{ margin:0; font:inherit; }
.acc-title{ display:block; font-family: var(--font-body); font-weight:700; font-size:17px; line-height:1.05; letter-spacing:-0.01em; }
.acc-btn .meta{ font-family: var(--font-mono); font-size:12px; color: var(--text-on-paper-mut); margin-top:4px; }
.on-ink .acc-btn .meta{ color: var(--text-on-ink-mut); }
.acc-plus{ font-family: var(--font-mono); font-size:20px; color: var(--accent); flex:none; transition: transform .25s ease; }
.acc-btn[aria-expanded="true"] .acc-plus{ transform: rotate(45deg); }
.acc-panel{ max-height:0; overflow:hidden; transition: max-height .3s ease; }
.acc-panel-in{ padding: 0 4px 24px; color: var(--text-on-paper-mut); font-size:15px; max-width:65ch; }
.on-ink .acc-panel-in{ color: var(--text-on-ink-mut); }
/* Long-form accordion content (e.g. full job listings on the Careers page) —
   restore list bullets and add breathing room between paragraphs/headings,
   since the global reset strips ul styling and wpautop-generated <p>s have
   no spacing of their own here. */
.acc-panel-in p{ margin-top:14px; }
.acc-panel-in p:first-child{ margin-top:0; }
.acc-panel-in strong{ color: var(--text-on-paper); font-family: var(--font-body); font-weight:700; }
.on-ink .acc-panel-in strong{ color: var(--text-on-ink); }
.acc-panel-in ul{ list-style: disc; padding-left: 22px; margin-top: 8px; }
.acc-panel-in ul + p{ margin-top:22px; }
.acc-panel-in li + li{ margin-top:6px; }

/* Contact */
.contact-tiles{ display:grid; grid-template-columns: repeat(3,1fr); gap:1px; background: var(--line-on-paper); border:1px solid var(--line-on-paper); margin-top: 46px; }
.contact-tile{ background: var(--paper); padding: 30px 24px; text-align:center; }
.contact-tile .eyebrow{ margin-bottom:14px; justify-content:center; }
.contact-tile a, .contact-tile p{ display:block; font-size:15.5px; color: var(--text-on-paper-mut); }

.contact-split{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap:0; border-radius:20px; overflow:hidden; border:1px solid var(--line-on-ink); }
.contact-info{ background: var(--ink); color:var(--text-on-ink); padding: clamp(30px,4vw,56px); position:relative; }
.contact-info h2{ font-size: clamp(26px,3vw,36px); }
.contact-info-list{ margin-top:30px; display:flex; flex-direction:column; gap:16px; }
.contact-info-list li{ display:flex; gap:12px; align-items:flex-start; font-size:15px; color:var(--text-on-ink-mut); }
.contact-info-list svg{ flex:none; width:18px; height:18px; margin-top:2px; color: var(--accent); }
.contact-form{ background: var(--paper); padding: clamp(30px,4vw,56px); }
.field{ margin-bottom:20px; }
.field label{ display:block; font-family: var(--font-mono); font-size:12px; letter-spacing:.05em; text-transform:uppercase; margin-bottom:8px; color: var(--text-on-paper-mut); }
.field input, .field textarea{
  width:100%; border:1px solid var(--line-on-paper); background: var(--paper); border-radius:10px;
  padding:13px 15px; font-family: var(--font-body); font-size:15px; color: var(--text-on-paper);
}
.field input:focus, .field textarea:focus{ border-color: var(--accent); }
.field textarea{ resize:vertical; min-height:110px; }
.consent-row{ display:flex; gap:12px; align-items:flex-start; margin: 22px 0; font-size:13.5px; color: var(--text-on-paper-mut); }
.consent-row input{ margin-top:3px; flex:none; width:16px; height:16px; accent-color: var(--accent); }
.consent-row a{ color: var(--text-on-paper); text-decoration: underline; text-underline-offset:2px; }
.form-note{ font-size:12.5px; color: var(--text-on-paper-mut); margin-top:14px; }
.form-status{ font-size:13.5px; margin-top:14px; font-family: var(--font-mono); padding:12px 14px; border-radius:8px; }
.form-status.ok{ color: var(--ok); background: rgba(62,142,99,0.1); }
.form-status.error{ color: var(--danger); background: rgba(192,70,58,0.1); }

/* Footer */
footer{ background: var(--ink); color: var(--text-on-ink-mut); padding-top: 60px; }
.footer-top{ display:grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; border-bottom:1px solid var(--line-on-ink); }
.footer-brand p{ margin-top:16px; font-size:14.5px; max-width:30ch; }
/* h3 (not h4) so the footer's column headings don't skip a heading level
   after a page whose last content heading was an h2 — same visual size. */
.footer-col h3{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--text-on-ink); margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:14.5px; transition: color .15s ease; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{ display:flex; justify-content:center; align-items:center; padding: 26px 0; font-size:12.5px; flex-wrap:wrap; gap:14px; }
.socials{ display:flex; gap:12px; }
.socials a{ width:36px;height:36px;border:1px solid var(--line-on-ink); border-radius:50%; display:flex;align-items:center;justify-content:center; }
.socials a:hover{ border-color: var(--accent); color: var(--accent); }

/* Legal page */
.legal-body{ max-width: 760px; }
.legal-body h2{ font-size:24px; margin-top:44px; margin-bottom:14px; font-family: var(--font-body); font-weight:700; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p, .legal-body li{ color: var(--text-on-paper-mut); font-size:15.5px; margin-top:10px; }
.legal-body ul{ list-style: disc; padding-left:22px; }
.legal-note{
  background: var(--paper-2); border:1px solid var(--line-on-paper); border-radius:12px;
  padding:18px 20px; font-size:14px; color: var(--text-on-paper-mut); margin-bottom:40px;
}
.legal-note b{ color: var(--text-on-paper); }
table.cookie-table{ width:100%; border-collapse:collapse; margin-top:18px; font-size:14px; }
table.cookie-table th, table.cookie-table td{ text-align:left; padding:12px 14px; border:1px solid var(--line-on-paper); }
table.cookie-table th{ background: var(--paper-2); font-family: var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; }

/* ============ COOKIE BANNER ============ */
#cookie-banner{
  position:fixed; left:20px; right:20px; bottom:20px; z-index:200;
  max-width: 720px; margin:0 auto;
  background: var(--ink); color: var(--text-on-ink);
  border:1px solid var(--line-on-ink); border-radius:16px;
  padding: 24px 26px; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display:none;
}
#cookie-banner.show{ display:block; }
#cookie-banner p{ font-size:14px; color: var(--text-on-ink-mut); line-height:1.6; }
#cookie-banner a{ color: var(--accent); text-decoration:underline; }
.cookie-actions{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }
.cookie-actions .btn{ padding:10px 18px; font-size:12.5px; }

#cookie-modal{
  position:fixed; inset:0; z-index:300; display:none;
  align-items:center; justify-content:center; padding:20px;
  background: rgba(6,9,16,0.7); backdrop-filter: blur(4px);
}
#cookie-modal.show{ display:flex; }
.modal-card{
  position: relative;
  background: var(--paper); color:var(--text-on-paper); border-radius:18px; max-width:520px; width:100%;
  padding: 32px; max-height: 86vh; overflow-y:auto;
}
.modal-card h2{ font-size:22px; font-family:var(--font-body); font-weight:700; }
.modal-card > p{ margin-top:10px; font-size:14px; color: var(--text-on-paper-mut); }
.toggle-row{ display:flex; justify-content:space-between; gap:16px; padding: 18px 0; border-top:1px solid var(--line-on-paper); }
.toggle-row:last-of-type{ border-bottom:1px solid var(--line-on-paper); }
.toggle-row h3{ font-family:var(--font-body); font-weight:700; font-size:14.5px; }
.toggle-row p{ font-size:13px; color: var(--text-on-paper-mut); margin-top:4px; max-width:32ch; }
.switch{ position:relative; width:42px; height:24px; flex:none; }
.switch input{ opacity:0; width:100%; height:100%; position:absolute; margin:0; cursor:pointer; }
/* The track and thumb are positioned siblings painted ON TOP of the invisible
   checkbox, so without pointer-events:none they swallow every mouse click and
   the switch cannot be toggled at all (keyboard still worked, which is why this
   hid for so long). The input has no wrapping <label>, so nothing forwards the
   click either. Consent must be togglable by mouse. */
.switch .track, .switch .thumb{ pointer-events:none; }
.switch .track{ position:absolute; inset:0; background: var(--paper-3); border-radius:999px; transition: background .2s ease; }
.switch input:checked + .track{ background: var(--accent); }
.switch input:disabled + .track{ background: var(--accent-lo); opacity:.6; }
.switch .thumb{ position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition: transform .2s ease; }
.switch input:checked + .track + .thumb{ transform: translateX(18px); }
.modal-actions{ display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
.modal-close{ position:absolute; top:18px; right:18px; }

#cookie-fab{
  position:fixed; left:20px; bottom:20px; z-index:150;
  width:44px; height:44px; border-radius:50%; background: var(--ink); color: var(--accent);
  border:1px solid var(--line-on-ink); display:none; align-items:center; justify-content:center;
  cursor:pointer;
}
#cookie-fab.show{ display:flex; }

/* ============ RESPONSIVE ============ */
/* The mobile menu's visibility is driven purely by an inline style set in JS, so
   if it was left open at <=980px and the viewport then crossed the breakpoint
   (phone rotation, tablet split-screen, window drag), it stayed on screen as a
   stray column with the burger now hidden and no way to dismiss it. */
@media (min-width: 981px){
  #mobileMenu{ display:none !important; }
}

@media (max-width: 980px){
  nav.primary-links, .nav-actions .btn-ghost-ink{ display:none; }
  /* The centered nav is display:none here, which removes it from the grid
     entirely — so drop to two columns, otherwise .nav-actions auto-places
     into the leftover middle "auto" track and the burger lands mid-header
     instead of flush right. */
  .nav-row{ grid-template-columns: 1fr auto; }
  .nav-toggle{ display:flex; }
  .twin, .split, .contact-split{ grid-template-columns: 1fr; }
  .svc-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-top{ grid-template-columns: repeat(2,1fr); }
  .contact-tiles{ grid-template-columns: 1fr; }
  .values-list{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px){
  .svc-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .values-list{ grid-template-columns: 1fr; }
}

/* WP core alignment helpers used inside page content areas */
.alignwide{ max-width:1180px; margin-left:auto; margin-right:auto; }

/* ============ BOUNCY CLICKABLES ============
   A springy press/release on everything clickable. The overshoot comes from
   the cubic-bezier (its 3rd control point goes past 1, so the element sails
   slightly past its resting size and settles back).

   The .is-bouncing class is added on click by main.js, so the bounce also
   fires on touch devices, where :hover never happens.

   Nothing here needs a reduced-motion guard of its own — the global
   prefers-reduced-motion block near the top of this file already forces
   every transition/animation to ~0s with !important. */
:root{
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

.btn,
.nav-toggle,
#cookie-fab,
.socials a{
  transition:
    transform .34s var(--spring),
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
  will-change: transform;
}

.btn:hover,
.nav-toggle:hover,
#cookie-fab:hover,
.socials a:hover{ transform: translateY(-2px) scale(1.04); }

/* Press: squash fast so it feels responsive under the finger, then the
   release springs back on the slower --spring timing above. */
.btn:active,
.nav-toggle:active,
#cookie-fab:active,
.socials a:active{
  transform: translateY(1px) scale(.94);
  transition-duration: .08s;
}

@keyframes inova-bounce{
  0%   { transform: translateY(1px) scale(.94); }
  45%  { transform: translateY(-3px) scale(1.06); }
  70%  { transform: translateY(0)    scale(.985); }
  100% { transform: translateY(0)    scale(1); }
}
.is-bouncing{ animation: inova-bounce .42s var(--spring); }

/* Nav links: same idea, dialled right down — these sit in a tight row, so a
   full scale would jostle their neighbours. */
nav.primary-links a{
  transition: color .18s ease, background .18s ease, transform .34s var(--spring);
  display:inline-block;
}
nav.primary-links a:hover{ transform: translateY(-2px); }
nav.primary-links a:active{ transform: translateY(0) scale(.96); transition-duration:.08s; }

/* Accordion rows are full-width bars — scaling the whole bar looks wrong, so
   the +/x icon does the bouncing instead. */
.acc-plus{ transition: transform .34s var(--spring); }
.acc-btn:hover .acc-plus{ transform: scale(1.25); }
.acc-btn[aria-expanded="true"]:hover .acc-plus{ transform: rotate(45deg) scale(1.25); }
.acc-btn:active .acc-plus{ transform: scale(.9); transition-duration:.08s; }
.acc-btn[aria-expanded="true"]:active .acc-plus{ transform: rotate(45deg) scale(.9); transition-duration:.08s; }

/* The consent switch thumb gets the same spring so toggling feels alive. */
.switch .thumb{ transition: transform .34s var(--spring); }
