/*
Theme Name: Digify365 v2
Theme URI: https://digify365.com/
Author: Digify365 Solutions
Description: Lightweight block theme for Digify365 Solutions. No page builder, no jQuery, no block-library CSS on the front end. City-first lead generation site for Islamabad, Riyadh and Dallas.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: digify365-v2
*/
/* Layout concept: "the lead path". Every page reads as a route from a search to a booked customer:
   wide, sturdy Archivo Expanded headlines, soft rounded blocks, one deep-blue band per page that carries the core offer,
   and a thin blue route line that links steps, stages and cities. Palette carried over from the brand; everything else is new. */
:root {
  --paper: #F2F1ED;      /* page ground */
  --card: #FFFFFF;       /* raised blocks */
  --mist: #E8E6E0;       /* quiet fills */
  --line: #DAD8D1;       /* borders */
  --ink: #0B0D11;        /* text */
  --soft: #5D6470;       /* secondary text */
  --blue: #1559A8;       /* brand accent */
  --navy: #0E3C75;       /* deep band */
  --sky: #E7EEF8;        /* blue tint */
  --green: #1F8F63;      /* "lead arrived" */
  --green-tint: #E1F1E9;
  --ph: #8A5A00; --ph-tint: #FFF3D1;
  --on-navy: #FFFFFF;
  --on-navy-soft: #B9CBE6;
  --navy-hl: #8FBAF3;
  --btn-text: #FFFFFF;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --logo: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --pad: clamp(0px, 3.5vw, 48px);
  --sect: clamp(72px, 9vw, 132px);
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C0E12; --card: #14171D; --mist: #1A1E25; --line: #272C35; --ink: #EEECE6; --soft: #9AA2AE;
    --blue: #6FA6EE; --navy: #10294C; --sky: #142339; --green: #4CC292; --green-tint: #11271E;
    --ph: #F2C45C; --ph-tint: #2A2312; --on-navy: #F3F6FB; --on-navy-soft: #A9BEDC; --navy-hl: #8FBAF3; --btn-text: #07111E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C0E12; --card: #14171D; --mist: #1A1E25; --line: #272C35; --ink: #EEECE6; --soft: #9AA2AE;
  --blue: #6FA6EE; --navy: #10294C; --sky: #142339; --green: #4CC292; --green-tint: #11271E;
  --ph: #F2C45C; --ph-tint: #2A2312; --on-navy: #F3F6FB; --on-navy-soft: #A9BEDC; --navy-hl: #8FBAF3; --btn-text: #07111E;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- frame ---------- */
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sect); }

/* ---------- type ---------- */
.d1, .d2, .d3 { font-family: var(--display); font-stretch: 118%; letter-spacing: -.025em; }
.d1 { font-weight: 800; font-size: clamp(34px, 4.6vw, 76px); font-size: clamp(34px, 8.4cqi, 80px); line-height: 1; text-wrap: balance; }
.d1.mega { font-size: clamp(44px, 6.4vw, 112px); font-size: clamp(44px, 11.6cqi, 118px); line-height: .92; letter-spacing: -.04em; }
.d2 { font-weight: 800; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.02; }
.d3 { font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.2; letter-spacing: -.01em; font-stretch: 108%; }
.hl { color: var(--blue); }
.d1 .hl { font-style: italic; font-weight: 900; padding-right: .06em; }
.over { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 600; font-size: 14.5px; letter-spacing: .01em; }
.over::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.lede { font-size: clamp(18px, 1.55vw, 20.5px); line-height: 1.55; color: var(--soft); max-width: 58ch; }
.lede b, .lede strong { color: var(--ink); font-weight: 600; }
.body-copy { display: grid; gap: 16px; max-width: 64ch; }
.body-copy p { color: var(--soft); }
.body-copy strong { color: var(--ink); }
.soft { color: var(--soft); }
.small { font-size: 14.5px; }
.num { font-variant-numeric: tabular-nums; }
.answer { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; max-width: 62ch; color: var(--soft); }

.ph { background: var(--ph-tint); color: var(--ph); border: 1px dashed currentColor; border-radius: 6px; padding: 0 6px; font-size: .86em; font-weight: 600; white-space: nowrap; }

/* ---------- demo note ---------- */
.demo-note { background: var(--mist); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.demo-note .container { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; align-items: center; padding-block: 8px; }
.demo-note a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; position: relative; }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; flex: none; }
.brand svg { height: 32px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 100px; padding: 5px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 16px; border-radius: 100px; color: var(--ink); }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--sky); color: var(--blue); }
.nav .nav-cta { display: none; }
.head-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 100px; padding: 10px 16px; font: 600 14px var(--text); cursor: pointer; }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); flex-direction: column; align-items: stretch; border-radius: var(--r-md); padding: 8px; box-shadow: 0 24px 50px -24px rgba(11,13,17,.35); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 12px; }
  .nav .nav-cta { display: block; background: var(--blue); color: var(--btn-text); text-align: center; margin-top: 6px; }
  .head-cta .btn { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; font: 600 15.5px/1 var(--text); padding: 15px 20px 15px 22px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); background: var(--card); transition: transform .18s, background .18s, border-color .18s; }
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--mist); font-size: 14px; transition: transform .18s; }
.btn:hover .ic { transform: translateX(2px); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: var(--btn-text); }
.btn-blue .ic { background: color-mix(in srgb, var(--btn-text) 18%, transparent); }
.btn-blue:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 88%, var(--ink)); }
.btn-green { background: var(--green); border-color: var(--green); color: var(--btn-text); }
.btn-green .ic { background: color-mix(in srgb, var(--btn-text) 18%, transparent); }
.btn-green:hover { border-color: var(--green); }
.btn-sm { padding: 11px 14px 11px 16px; font-size: 14.5px; border-radius: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 26px; min-width: 0; container-type: inline-size; }
.where { display: flex; flex-wrap: wrap; gap: 8px; }
.where span { font-size: 14px; font-weight: 500; border-radius: 100px; padding: 6px 13px; background: var(--card); border: 1px solid var(--line); }
.where span.hq { background: var(--sky); border-color: transparent; color: var(--blue); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

/* the lead path (hero visual) */
.path { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 6px; position: relative; overflow: hidden; min-width: 0; }
.path::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 55%, transparent), transparent); opacity: .6; pointer-events: none; }
.path h2 { font-size: 15px; font-weight: 600; color: var(--on-navy-soft); position: relative; z-index: 1; margin-bottom: 10px; }
.path ol { list-style: none; margin: 0; padding: 0; display: grid; position: relative; z-index: 1; }
.path li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; position: relative; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--on-navy-soft) 0 4px, transparent 4px 9px); opacity: .55; }
.path li:last-child::before { display: none; }
.path .node { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--on-navy) 12%, transparent); font-weight: 700; font-size: 14px; }
.path li:last-child .node { background: var(--green); color: var(--btn-text); }
.path b { display: block; font-family: var(--display); font-stretch: 110%; font-size: 18px; letter-spacing: -.01em; }
.path span.s { color: var(--on-navy-soft); font-size: 14.5px; }

/* ---------- section heads ---------- */
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 4.5vw, 60px); max-width: 820px; }
.head.split-head { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: end; gap: 18px 56px; }
@media (max-width: 860px) { .head.split-head { grid-template-columns: 1fr; } }

/* ---------- city switcher ---------- */
.city-switch { display: block;  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tabs { display: flex; gap: 6px; padding: 8px; background: var(--mist); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { flex: 1 0 auto; border: 0; background: transparent; color: var(--soft); cursor: pointer; border-radius: 14px; padding: 14px 18px; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: clamp(17px, 2vw, 24px); letter-spacing: -.015em; text-align: left; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tab small { font-family: var(--text); font-stretch: normal; font-weight: 500; font-size: 13px; letter-spacing: 0; }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(11,13,17,.06); }
.tab[aria-selected="true"] small { color: var(--blue); }
.panel-city { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 3.5vw, 44px); }
.panel-city .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.fact { background: var(--paper); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.fact span { font-size: 13px; color: var(--soft); }
.fact b { font-weight: 600; }
@media (max-width: 820px) { .panel-city { grid-template-columns: 1fr; } .tab small { display: none; } }
@media (max-width: 420px) { .panel-city .facts { grid-template-columns: 1fr; } }

/* ---------- navy band (core offer) ---------- */
.navy { background: var(--navy); color: var(--on-navy); }
.navy .over { color: var(--on-navy-soft); }
.navy .lede { color: var(--on-navy-soft); }
.navy .hl { color: var(--navy-hl); }
.core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.core { border-radius: var(--r-md); padding: 26px; display: grid; gap: 14px; align-content: start; text-decoration: none; min-width: 0; background: color-mix(in srgb, var(--on-navy) 7%, transparent); border: 1px solid color-mix(in srgb, var(--on-navy) 14%, transparent); transition: background .2s, transform .2s; }
.core:hover { background: color-mix(in srgb, var(--on-navy) 12%, transparent); transform: translateY(-2px); }
.core p { color: var(--on-navy-soft); font-size: 15.5px; }
.core .more { font-weight: 600; font-size: 14.5px; }
.core .more::after { content: " →"; }
.support { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--on-navy-soft); }
.support a { text-decoration: none; color: var(--on-navy); border: 1px solid color-mix(in srgb, var(--on-navy) 25%, transparent); border-radius: 100px; padding: 8px 14px; font-size: 14.5px; font-weight: 500; }
.support a:hover { background: color-mix(in srgb, var(--on-navy) 10%, transparent); }
@media (max-width: 900px) { .core-grid { grid-template-columns: 1fr; } }

/* ---------- reasons (2x2) ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reason { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
.reason .mark { width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.reason .mark svg { width: 24px; height: 24px; }
.reason p { color: var(--soft); margin-top: 6px; font-size: 15.5px; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- route (process) ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: r; }
.route::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--blue); opacity: .3; }
.route li { position: relative; display: grid; gap: 10px; align-content: start; counter-increment: r; min-width: 0; }
.route li::before { content: counter(r); width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 700; position: relative; z-index: 1; margin-bottom: 8px; }
.route li:last-child::before { background: var(--blue); color: var(--btn-text); }
.route .when { font-size: 13.5px; font-weight: 600; color: var(--blue); }
.route p { color: var(--soft); font-size: 15.5px; }
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .route li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; padding-bottom: 26px; }
  .route li::before { grid-row: 1 / span 3; margin: 0; }
  .route li > * { grid-column: 2; }
}

/* ---------- split / cards ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card h3 { font-family: var(--display); font-stretch: 110%; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.rows { display: grid; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.rows div:last-child { border-bottom: 0; }
.rows span:first-child { color: var(--soft); font-size: 15px; }
.rows span:last-child { font-weight: 600; text-align: right; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--soft); }
.checks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 7px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.checks strong { color: var(--ink); font-weight: 600; }

/* service tiles on light */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: grid; gap: 10px; align-content: start; text-decoration: none; transition: border-color .2s, transform .2s; min-width: 0; }
.tile:hover { border-color: var(--blue); transform: translateY(-2px); }
.tile .tag { justify-self: start; font-size: 12.5px; font-weight: 600; color: var(--blue); background: var(--sky); border-radius: 100px; padding: 4px 10px; }
.tile .tag.alt { color: var(--soft); background: var(--mist); }
.tile p { color: var(--soft); font-size: 15.5px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* table */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15.5px; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; font-weight: 600; color: var(--soft); background: var(--mist); }
tr:last-child td { border-bottom: 0; }
td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { color: var(--soft); font-size: 14px; margin-top: 12px; }

/* crumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-weight: 600; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--mist); display: grid; place-items: center; font-size: 18px; color: var(--blue); }
.faq details[open] summary::after { content: "−"; background: var(--sky); }
.faq .a { padding: 0 22px 20px; color: var(--soft); max-width: 72ch; }

/* closing CTA */
.closer { padding-block: 0 var(--sect); }
.closer-box { background: var(--blue); color: var(--btn-text); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 56px; align-items: end; position: relative; overflow: hidden; }
.closer-box::after { content: ""; position: absolute; right: -80px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid color-mix(in srgb, var(--btn-text) 10%, transparent); pointer-events: none; }
.closer-box > * { position: relative; z-index: 1; min-width: 0; }
.closer-box .d2 .hl { color: var(--btn-text); font-style: italic; }
.closer-box p { color: color-mix(in srgb, var(--btn-text) 82%, var(--blue)); font-size: 18px; }
.closer-box .btn { background: var(--btn-text); color: var(--blue); border-color: var(--btn-text); }
.closer-box .btn .ic { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.closer-box .btn.ghost { background: transparent; color: var(--btn-text); border-color: color-mix(in srgb, var(--btn-text) 45%, transparent); }
.closer-box .line { font-size: 14.5px; user-select: all; }
@media (max-width: 860px) { .closer-box { grid-template-columns: 1fr; } }

/* map stand-in */
.mapbox { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r-lg); background-color: var(--sky); border: 1px solid var(--line); background-image: radial-gradient(color-mix(in srgb, var(--blue) 25%, transparent) 1.2px, transparent 1.2px); background-size: 20px 20px; display: grid; place-items: center; text-align: center; padding: 24px; }
.mapbox .pin { width: 46px; height: 46px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: var(--blue); margin: 0 auto 18px; }
.mapbox .addr { background: var(--card); border-radius: var(--r-sm); padding: 14px 18px; display: grid; gap: 4px; }

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky); }
.form-ok { background: var(--green-tint); color: var(--green); border-radius: 12px; padding: 14px 16px; font-weight: 500; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* demo map */
.smap { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.smap section { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: grid; gap: 10px; align-content: start; }
.smap ul { list-style: none; margin: 0; padding: 0; }
.smap li { display: grid; gap: 3px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.smap li:last-child { border-bottom: 0; }
.smap .url { font-weight: 600; font-size: 15px; word-break: break-word; }
.smap .url a { color: var(--blue); }
.smap .kw { color: var(--soft); font-size: 14px; }
.status { justify-self: start; font-size: 12px; font-weight: 600; border-radius: 100px; padding: 3px 9px; }
.status.built { background: var(--green-tint); color: var(--green); }
.status.tpl { background: var(--mist); color: var(--soft); }

/* footer */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding-block: 60px 36px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; color: var(--soft); }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--blue); }
.foot .about { display: grid; gap: 16px; align-content: start; color: var(--soft); font-size: 15px; max-width: 34ch; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14px; color: var(--soft); }
.selectable { user-select: all; }
@media (max-width: 960px) { .foot { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; height: 52px; padding: 0 18px 0 14px; border-radius: 100px; background: var(--green); color: var(--btn-text); display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(31,143,99,.7); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { width: 52px; padding: 0; justify-content: center; } }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles.four { grid-template-columns: 1fr; } }
.tiles.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- WordPress integration ---------- */
.wp-site-blocks, .wp-block-template-part { display: contents; }
.wp-block-post-content { display: block; }
.brand-logo { height: 32px; width: auto; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- contact cards (closing CTA) ---------- */
.contact-cards { display: grid; gap: 10px; }
.cc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--btn-text); background: color-mix(in srgb, var(--btn-text) 10%, transparent); border: 1px solid color-mix(in srgb, var(--btn-text) 22%, transparent); transition: background .18s, transform .18s; }
.cc:hover { background: color-mix(in srgb, var(--btn-text) 18%, transparent); transform: translateY(-1px); }
.cc-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--btn-text); color: var(--blue); }
.cc-ic svg { width: 20px; height: 20px; }
.cc-t { display: grid; gap: 2px; min-width: 0; }
.cc-k { font-size: 13px; font-weight: 600; opacity: .8; }
.cc-v { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.cc-note { font-size: 13px; opacity: .8; }
.cc-audit { color: var(--btn-text); font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 6px 2px; opacity: .9; }
.cc-audit:hover { opacity: 1; text-decoration: underline; }

/* ---------- sticky contact bar ---------- */
.cta-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(880px, calc(100% - 32px)); display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 24px; border-radius: 18px; background: #0E3C75; color: #FFFFFF; box-shadow: 0 22px 44px -18px rgba(11, 13, 17, .6); transform: translate(-50%, 150%); opacity: 0; visibility: hidden; transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s; }
.cta-bar.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .35s ease, opacity .35s ease; }
.cta-line { margin: 0 auto 0 0; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: #FFFFFF; }
.cta-actions { display: flex; gap: 8px; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; color: #FFFFFF; background: rgba(255, 255, 255, .12); transition: background .18s; }
.cta-btn:hover { background: rgba(255, 255, 255, .2); }
.cta-btn.primary { background: #FFFFFF; color: #0E3C75; }
.cta-btn svg { width: 18px; height: 18px; flex: none; }
.cta-x { flex: none; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, .75); font-size: 22px; line-height: 1; cursor: pointer; }
.cta-x:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
@media (max-width: 680px) {
  .cta-bar { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 16px); padding: 8px; gap: 6px; border-radius: 16px; }
  .cta-line { display: none; }
  .cta-actions { flex: 1; }
  .cta-btn { flex: 1; padding: 0 6px; font-size: 14px; gap: 6px; }
  .cta-x { width: 32px; }
}
@media (prefers-reduced-motion: reduce) { .cta-bar, .cta-bar.on { transition: none; } }
@media print { .cta-bar { display: none; } }
