@import url("../vendor/bootstrap-icons/bootstrap-icons.min.css");

/* ==========================================================================
   Theme: "Ink & Ember"
   Warm paper backgrounds, ink typography and a vermilion accent.
   Selectors are prefixed with `body` where needed so they win over
   uikit.min.css regardless of the (shuffled) stylesheet load order.
   ========================================================================== */

:root {
  --ink: #15131c;
  --ink-2: #221f2b;
  --ink-3: #34303f;
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --white: #ffffff;
  --accent: #ff5a1f;
  --accent-hover: #ff7442;
  --accent-text: #c2410c;
  --sun: #ffc23d;
  --mint: #2f9e6e;
  --rose: #d8434a;
  --muted: #5f5a69;
  --muted-light: #b9b3c4;
  --line: #e2d9ca;
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-soft: 0 18px 40px -22px rgba(21, 19, 28, 0.35);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--font-display);
  color: inherit;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-transform: none;
}
body h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
body h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
body h3 { font-size: 1.35rem; }
body h4 { font-size: 1.1rem; }

body p { margin: 0 0 1em; }
body ul, body ol { margin: 0 0 1em; }

body a { color: var(--accent-text); text-decoration: none; transition: color 0.2s ease; }
body a:hover { color: var(--accent); text-decoration: none; }

body img { max-width: 100%; height: auto; vertical-align: middle; }

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

::selection { background: var(--sun); color: var(--ink); }

.site-main { flex: 1; position: relative; overflow-x: clip; }
.site-footer { flex-shrink: 0; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.section { padding: 110px 0; position: relative; }
@media (max-width: 960px) { .section { padding: 72px 0; } }

.section-soft { background: var(--paper-2); }

.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: var(--muted-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.section-dark .eyebrow, .side-card-ink .eyebrow { color: var(--accent); }

/* Buttons ----------------------------------------------------------------- */
body .btn,
body a.cu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
body .btn strong, body a.cu-button strong { font-weight: 700; }
body .btn:hover,
body a.cu-button:hover {
  background: var(--accent-hover);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
body .btn:active, body a.cu-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

body .btn-ink, body a.cu-button.btn-ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--paper);
}
body .btn-ink:hover, body a.cu-button.btn-ink:hover {
  background: var(--ink-2);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--paper);
}
body .btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 980;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-note { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-light); }
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.25);
}
body .topbar-link { color: var(--paper); font-weight: 600; }
body .topbar-link:hover { color: var(--accent); }
@media (max-width: 640px) { .topbar-note { display: none; } .topbar-row { justify-content: center; } }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

body .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
}
body .logo:hover { color: var(--ink); }
.logo-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--ink);
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  right: -6px;
  bottom: -6px;
}
.logo-mark::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  left: 8px;
  top: 8px;
}
body .logo-light, body .logo-light:hover { color: var(--paper); }
.logo-light .logo-mark { background: var(--accent); }
.logo-light .logo-mark::after { background: var(--ink); }

.nav-area { display: flex; align-items: center; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

body .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
body .nav-links a {
  display: block;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
body .nav-links a:hover { background: var(--paper-2); color: var(--ink); }

.lang-switch { position: relative; }

body .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
body .lang-btn:hover { border-color: var(--ink); }
body .lang-btn a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  pointer-events: none; /* let the click open the dropdown */
}
.lang-btn img, .lang-menu img { width: 21px; height: 21px; border-radius: 50%; object-fit: cover; }
.toggle-dropdown { display: none; }

body .lang-menu.uk-dropdown {
  min-width: 170px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard);
}
body .lang-menu ul { list-style: none; margin: 0; padding: 0; }
body .lang-menu li { margin: 0; }
body .lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
body .lang-menu a:hover { background: var(--paper-2); color: var(--ink); }
body .lang-menu .lang-current a { background: var(--paper); }

body .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}
body .nav-cta:hover { background: var(--accent); color: var(--ink); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-toggle span:nth-child(2) { width: 14px; margin-left: 6px; }

@media (max-width: 1080px) {
  body .nav-links a { padding: 9px 13px; }
}
@media (max-width: 960px) {
  body .nav-links, .main-nav > .lang-switch, body .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile off-canvas */
body .mobile-panel.uk-offcanvas-bar {
  width: min(86vw, 360px);
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-panel-head { display: flex; align-items: center; justify-content: space-between; }
body .mobile-close {
  position: static;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
body .mob-menu { list-style: none; margin: 0; padding: 0; }
body .mob-menu li { border-bottom: 1px solid var(--line-dark); }
body .mob-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--paper);
}
body .mob-menu a:hover { color: var(--accent); }
.lang-mob { position: relative; }
.lang-mob-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 10px;
}
body .lang-mob .lang-btn { background: transparent; color: var(--paper); border-color: var(--line-dark); }
body .lang-mob .lang-menu.uk-dropdown { box-shadow: none; border-color: var(--paper); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  background: var(--paper);
}
.hero-decor,
.page-hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 88% 12%, rgba(255, 90, 31, 0.22) 0, rgba(255, 90, 31, 0) 38%),
    radial-gradient(circle at 8% 92%, rgba(255, 194, 61, 0.28) 0, rgba(255, 194, 61, 0) 34%),
    radial-gradient(rgba(21, 19, 28, 0.13) 1px, transparent 1.5px);
  background-size: auto, auto, 22px 22px;
}
.hero-decor::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -200px;
  border: 2px solid rgba(21, 19, 28, 0.08);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
body .hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}
body .hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Form card --------------------------------------------------------------- */
.form-card,
.hero-form {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 10px 10px 0 var(--ink);
}
.hero-form-wrap { position: relative; }
.hero-form-wrap::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--sun);
  top: -34px;
  right: -26px;
  z-index: 0;
}
.hero-form-wrap .hero-form { z-index: 1; }
@media (max-width: 640px) {
  .form-card, .hero-form { padding: 24px 20px; box-shadow: 6px 6px 0 var(--ink); }
  .hero-form-wrap::before { width: 80px; height: 80px; right: -10px; top: -24px; }
}

body .form-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body .lead-form .form-title {
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .field { grid-column: 1 / -1; min-width: 0; }
.form-grid .field-half { grid-column: span 1; }
@media (max-width: 480px) { .form-grid .field-half { grid-column: 1 / -1; } }

body input.form-control,
body .uk-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
body input.form-control::placeholder { color: #8a8494; }
body input.form-control:focus {
  outline: none;
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18);
}
body input.form-control.error { border-color: var(--rose); }

body .iti { width: 100%; display: block; }
body .iti--separate-dial-code input.form-control,
body .iti input.form-control[type=tel] { padding-left: 96px; }
.iti__selected-dial-code, .iti__country-name { color: var(--muted); }

body .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
body .consent input[type=checkbox] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

body .btn-submit,
body button.btn_1 {
  width: 100%;
  height: 60px;
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
body .btn-submit:hover,
body button.btn_1:hover {
  background: var(--accent-hover);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
body .form-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Validation messages (used by js/main.js) */
.hide { display: none !important; }

.error-message,
#message-home {
  display: none;
  width: 100%;
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #8f1d22;
  background: #fde8e8;
  border: 0;
  border-left: 3px solid var(--rose);
  border-radius: 6px;
}
#message-home { margin: 0 0 14px; }
#error-msg {
  display: block;
  width: 100% !important;
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #8f1d22 !important;
  background: #fde8e8;
  border-left: 3px solid var(--rose);
  border-radius: 6px;
}
.showre, #loadering.showre { display: block !important; }

#loadering {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}
.circle-side2 {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 50%;
  left: 50%;
  margin: -24px 0 0 -24px;
  border: 3px solid rgba(21, 19, 28, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: animate-preloader 0.9s linear infinite;
}
@keyframes animate-preloader {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Disclaimer band
   -------------------------------------------------------------------------- */
.disclaimer-band {
  background: var(--ink);
  color: var(--muted-light);
  padding: 26px 0;
}
.disclaimer-inner { display: flex; gap: 18px; align-items: flex-start; }
.disclaimer-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--ink);
  font: italic 700 16px/1 var(--font-display);
}
.disclaimer-text em { font-size: 13px; line-height: 1.6; font-style: normal; }
body .disclaimer-text em { color: var(--muted-light); }
body .disclaimer-text em a { color: var(--accent); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Services overview (split + numbered tiles)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.split-intro { position: sticky; top: calc(var(--header-h) + 60px); }
.split-intro p { color: var(--muted); }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-intro { position: static; }
}

.tile-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  counter-reset: tile;
}
.value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tile-grid, .value-grid { grid-template-columns: 1fr; } }

.tile {
  counter-increment: tile;
  position: relative;
  padding: 30px 28px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile::before {
  content: counter(tile, decimal-leading-zero);
  display: block;
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 26px;
}
.tile:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-hard); }
body .tile h3 { font-size: 1.4rem; margin-bottom: 10px; }
body .tile p { margin: 0; color: var(--muted); font-size: 15.5px; }

.tile-featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile-featured::before { color: var(--accent); }
body .tile-featured p { color: var(--muted-light); }
.tile-featured:hover { box-shadow: 8px 8px 0 var(--accent); }

/* --------------------------------------------------------------------------
   Partner (copy + framed image)
   -------------------------------------------------------------------------- */
.partner { background: var(--white); }
.partner-grid,
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.community-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.partner-copy p, .community-copy p { color: var(--muted); }
.sec3-meta .btn, .sec3-meta .cu-button { margin-top: 10px; }
@media (max-width: 960px) {
  .partner-grid, .community-grid { grid-template-columns: 1fr; gap: 48px; }
  .partner-grid .media-frame { order: -1; }
}

.media-frame {
  position: relative;
  margin: 0 24px 24px 0;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: var(--radius);
  background: var(--accent);
  border: 2px solid var(--ink);
}
.media-frame::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  left: -28px;
  top: -28px;
  border-radius: 50%;
  background: radial-gradient(var(--ink) 1.6px, transparent 2px) 0 0 / 12px 12px;
  z-index: 2;
}
.media-frame .img-1 {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
}
.media-frame .img-shape { display: none; }
.media-frame-alt::before { background: var(--sun); inset: 24px 24px -24px -24px; }
.media-frame-alt { margin: 0 0 24px 24px; }
.media-frame-alt::after { left: auto; right: -28px; }
@media (max-width: 640px) {
  .media-frame { margin: 0 14px 14px 0; }
  .media-frame::before { inset: 14px -14px -14px 14px; }
  .media-frame-alt { margin: 0 0 14px 14px; }
  .media-frame-alt::before { inset: 14px 14px -14px -14px; }
  .media-frame::after { width: 64px; height: 64px; left: -8px; top: -18px; }
  .media-frame-alt::after { left: auto; right: -8px; }
}

/* --------------------------------------------------------------------------
   Section heads + feature cards
   -------------------------------------------------------------------------- */
.section-head { max-width: 820px; margin-bottom: 56px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: var(--muted-light); }
body .section-sub {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--sun);
  margin-bottom: 16px;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 960px) { .card-row { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--accent); }
body .feature-card h3 { font-size: 1.45rem; margin: 22px 0 12px; }
body .feature-card p { margin: 0; font-size: 15.5px; color: var(--muted-light); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--ink);
}

.card-row-light .feature-card { background: var(--white); border-color: var(--line); color: var(--ink); }
.card-row-light .feature-card:hover { border-color: var(--ink); box-shadow: var(--shadow-hard); }
body .card-row-light .feature-card p { color: var(--muted); }
.card-row-light .feature-card .feature-icon { background: var(--ink); color: var(--accent); }

.section-foot { max-width: 820px; margin: 48px auto 0; text-align: center; }
.section-foot p { color: var(--muted); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: var(--accent);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(21, 19, 28, 0.06) 0 2px, transparent 2px 18px);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}
body .cta-copy h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.05; margin-bottom: 20px; }
body .cta-copy p { color: var(--ink); max-width: 760px; }
body .cta-copy p:last-child { margin-bottom: 0; }
@media (max-width: 960px) {
  .cta-band { padding: 64px 0; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}
.pillars-head { position: sticky; top: calc(var(--header-h) + 60px); }
.pillars-head h2 { margin-bottom: 28px; }
@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars-head { position: static; }
}
.pillar-list { border-top: 2px solid var(--ink); }
.pillar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--sun);
  transition: background-color 0.2s ease;
}
.pillar:hover .pillar-icon { background: var(--accent); }
body .pillar h3 { font-size: 1.4rem; margin: 8px 0 10px; }
body .pillar p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Community
   -------------------------------------------------------------------------- */
.check-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--accent);
}
body .check-item h3 { font-size: 1.2rem; margin: 4px 0 6px; }
body .check-item p { margin: 0; }

/* --------------------------------------------------------------------------
   Review (specs, deep dive, verdict)
   -------------------------------------------------------------------------- */
.review { background: var(--white); }
.review-head { margin-bottom: 30px; }

body .spec-table {
  margin: 0 0 80px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}
body .spec-table table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
body .spec-table td {
  padding: 16px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
}
body .spec-table tr:last-child td { border-bottom: 0; }
body .spec-table td:first-child {
  width: 38%;
  font-weight: 700;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
@media (max-width: 640px) {
  body .spec-table td { display: block; width: 100% !important; border-right: 0 !important; }
  body .spec-table td:first-child { border-bottom: 0; padding-bottom: 4px; }
}

.deep-dive {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 80px;
}
.deep-copy > p { color: var(--muted); }
body .deep-brand {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
body .fact {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}
.fact strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 4px;
}
.fact-wide { grid-column: 1 / -1; }
.deep-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
}
@media (max-width: 960px) {
  .deep-dive { grid-template-columns: 1fr; gap: 40px; }
  .deep-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) { .fact-grid { grid-template-columns: 1fr; } }

.verdict {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.rating-card {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.rating-card strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}
body .rating-score {
  display: block;
  font: 700 88px/0.9 var(--font-display);
  color: var(--accent);
}
.rating-score::after {
  content: "/5";
  font-size: 26px;
  color: var(--muted-light);
  margin-left: 4px;
}
.rank-math-review-result-wrapper img { border-radius: 4px; }

.proscons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.pc {
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
body .pc h4 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.pc h4::before {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 18px/1 var(--font-body);
  background: var(--mint);
  color: var(--white);
}
.pc-cons h4::before { content: "\2212"; background: var(--rose); }
body .pc ul { list-style: none; margin: 0; padding: 0; }
body .pc li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.pc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
.pc-cons li::before { background: var(--rose); }
@media (max-width: 1080px) { .verdict { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .proscons { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
.page-hero,
.post-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap, .post-hero .wrap { position: relative; z-index: 1; }
.page-hero-compact { padding: 64px 0 60px; }
.post-hero { padding: 26px 0; }
.post-hero .page-hero-decor { opacity: 0.5; }
body .page-hero h1 { max-width: 900px; margin-bottom: 18px; }
body .page-hero-sub { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: 640px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 22px;
}
body .crumbs a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.post-hero .crumbs { margin: 0; }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 64px;
  align-items: center;
}
body .page-hero-grid h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
body .page-hero .desc { font-size: 1.1rem; color: var(--muted); max-width: 680px; }
@media (max-width: 960px) {
  .page-hero { padding: 48px 0 56px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.side-card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
body .side-card h3 { font-size: 1.45rem; margin-bottom: 14px; }
body .side-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.side-card-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 10px 10px 0 var(--accent);
}
body .side-card-ink p { color: var(--muted-light); }
/* nav.php is included inside the about hero card; it is already rendered in
   the header (include_once), but hide it here just in case. */
.side-card .main-nav, .side-card .mobile-menu { display: none !important; }
body .side-list { list-style: none; padding: 0; margin: 0 0 22px; }
.side-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15px;
}
.side-list li::before { content: "\2192"; color: var(--accent); font-weight: 700; }
body .side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-top: 1px solid var(--line); }
body .side-links a { display: block; padding: 10px 0; color: var(--ink); font-weight: 600; }
body .side-links a:hover { color: var(--accent-text); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}
body .contact-lead {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}
body .steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  display: grid;
  gap: 2px;
  padding: 18px 0 18px 64px;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  background: var(--sun);
  font: 700 18px/1 var(--font-display);
}
.steps strong { font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: 15px; }
body .contact-form-sec h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.contact-form-sec .form-title { font-family: var(--font-body); font-size: 1rem !important; font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* --------------------------------------------------------------------------
   Blog listing
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-hard); }
.post-img { overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-img img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.post-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body .post-card h2.title { font-size: 1.3rem; line-height: 1.25; margin: 0; }
body .post-card h2.title a { color: var(--ink); }
/* make the whole card clickable through the title link */
.post-card h2.title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.read-more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent-text); }

.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.post-card-featured .post-img { aspect-ratio: auto; min-height: 320px; }
.post-card-featured .post-body { justify-content: center; padding: 44px; gap: 18px; }
.post-card-featured .post-tag { background: var(--accent); color: var(--ink); }
body .post-card-featured h2.title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
body .post-card-featured h2.title a { color: var(--paper); }
.post-card-featured .read-more { margin-top: 8px; color: var(--accent); }
.post-card-featured:hover { box-shadow: 8px 8px 0 var(--accent); }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card-featured { grid-template-columns: 1fr; }
  .post-card-featured .post-img { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card-featured .post-body { padding: 28px 24px; }
}
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Blog post
   -------------------------------------------------------------------------- */
.post-section { padding-top: 56px; }
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1080px) { .post-layout { grid-template-columns: 1fr; } }

.post-content { max-width: 760px; font-size: 18px; line-height: 1.75; }
body .post-content h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; margin-bottom: 28px; }
body .post-content h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 48px 0 14px; }
body .post-content h3 { font-size: 1.35rem; margin: 36px 0 12px; }
body .post-content p { color: #3b3745; }
body .post-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-content .featuredImg {
  display: block;
  width: 100%;
  margin: 0 0 36px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
}
body .post-content ul {
  list-style: none;
  padding: 24px 28px;
  margin: 0 0 1.4em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post-content ul li { position: relative; padding: 6px 0 6px 28px; font-size: 16.5px; }
.post-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.post-aside { display: grid; gap: 22px; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 60px); }
@media (max-width: 1080px) { .side-sticky { position: static; } .post-aside { max-width: 760px; } }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.legal-nav { position: sticky; top: calc(var(--header-h) + 60px); }
body .legal-nav h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
body .legal-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
body .legal-nav a { display: block; padding: 9px 0 9px 18px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); font-weight: 500; }
body .legal-nav .is-active a, body .legal-nav a:hover { border-left-color: var(--accent); color: var(--accent-text); }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-nav { position: static; }
}

.legal-content {
  max-width: 820px;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
}
@media (max-width: 640px) { .legal-content { padding: 26px 20px; } }
body .legal-content h2 { font-size: 1.5rem; margin: 40px 0 12px; }
body .legal-content h2:first-child { margin-top: 0; }
body .legal-content p, body .legal-content li { color: #3b3745; }
.legal-content .pl-3 { padding-left: 18px; border-left: 2px solid var(--paper-2); }
.legal-content table, body .legal-content .table {
  width: 100%;
  margin: 0 0 1.5em;
  border-collapse: collapse;
  font-size: 15px;
}
.legal-content td, .legal-content th { padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal-content thead td, .legal-content thead th { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.legal-content .table-wrap, .legal-content table { display: block; overflow-x: auto; }
@media (min-width: 641px) { .legal-content table { display: table; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-light);
  padding: 0;
}
.footer-cta-strip { border-bottom: 1px solid var(--line-dark); padding: 44px 0; }
.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
body .footer-cta-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 60px 0 50px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 18px; max-width: 340px; color: var(--muted-light); }
body .footer-widget .footer-heaing {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
body .footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { margin-bottom: 10px; }
body .footer-widget li a { color: var(--paper); text-decoration: none; }
body .footer-widget li a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--line-dark); padding: 18px 0; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.copyright { font-size: 14px; color: var(--muted-light); }
body .scroll-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
}
body .scroll-top:hover { color: var(--accent); }
.scroll-top .bi { font-size: 20px; line-height: 1; }

/* --------------------------------------------------------------------------
   RTL + motion
   -------------------------------------------------------------------------- */
[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] .media-frame { margin: 0 0 24px 24px; }
[dir="rtl"] .post-content ul li { padding: 6px 28px 6px 0; }
[dir="rtl"] .post-content ul li::before, [dir="rtl"] .pc li::before { left: auto; right: 0; }
[dir="rtl"] .pc li { padding: 10px 22px 10px 0; }
[dir="rtl"] .steps li { padding: 18px 64px 18px 0; }
[dir="rtl"] .steps li::before { left: auto; right: 0; }
[dir="rtl"] body .legal-nav ul { border-left: 0; border-right: 2px solid var(--line); }
[dir="rtl"] body .legal-nav a { padding: 9px 18px 9px 0; margin: 0 -2px 0 0; border-left: 0; border-right: 2px solid transparent; }
[dir="rtl"] body .legal-nav .is-active a, [dir="rtl"] body .legal-nav a:hover { border-right-color: var(--accent); }
[dir="rtl"] body .iti--separate-dial-code input.form-control { padding-left: 16px; padding-right: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [class*="uk-animation-"] { animation: none !important; }
}
