/* =========================================================
   Deve: visual identity v2
   Calm teal + warm ivory, readable Arabic type, soft shadows.
   All colors are tokens. Change them here only.
   ========================================================= */

:root {
  /* White base + blue taken from the logo */
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0b76b8;          /* buttons & links (white text 5:1) */
  --brand-strong: #075a8f;
  --brand-soft: #e7f4fc;
  --brand-rgb: 11, 118, 184;
  --on-brand: #ffffff;
  --accent: #12bcf5;         /* the logo's cyan */
  --accent-soft: #dcf4fd;
  --success: #16a34a;
  --danger: #dc2626;
  --whatsapp: #1f9d55;
  --footer-bg: #0f1b2d;
  --hero-grad: radial-gradient(900px 480px at 85% -10%, rgba(18, 188, 245, 0.12), transparent 60%),
    radial-gradient(700px 420px at 0% 30%, rgba(11, 118, 184, 0.06), transparent 60%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --header-h: 72px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.35;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -60px;
  right: 16px;
  z-index: 200;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-light {
  background: var(--surface);
  color: var(--brand-strong);
}

.btn-light:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

.link-arrow i {
  transition: transform 0.2s;
  font-size: 0.85em;
}

.link-arrow:hover i {
  transform: translateX(-4px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.main-nav {
  margin-inline-start: auto;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.main-nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  margin-bottom: 0.9rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--muted);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  background: var(--hero-grad);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 1rem;
  max-width: 820px;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  list-style: none;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  opacity: 0.6;
}

/* ---------- Home hero ---------- */
.hero {
  padding: 72px 0 88px;
  background: var(--hero-grad);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.hero h1 {
  position: relative;
  z-index: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.08em;
  height: 0.22em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.97rem;
  color: var(--text);
}

.check-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.check-list i {
  color: var(--success);
}

/* Hero visual: browser mock-up built with HTML/CSS */
.hero-visual {
  position: relative;
  padding: 20px;
}

.mock-browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.mock-url {
  flex: 1;
  margin-inline-start: 10px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding-inline: 12px;
  direction: ltr;
}

.mock-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.mock-hero {
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  position: relative;
  overflow: hidden;
}

.mock-hero::before,
.mock-hero::after {
  content: "";
  position: absolute;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  right: 20px;
}

.mock-hero::before {
  top: 34px;
  width: 55%;
}

.mock-hero::after {
  top: 56px;
  width: 35%;
  opacity: 0.6;
}

.mock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-card {
  height: 86px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.mock-card:nth-child(2) {
  background: var(--accent-soft);
}

.mock-lines span {
  display: block;
  height: 9px;
  border-radius: 6px;
  background: var(--bg-alt);
  margin-bottom: 8px;
}

.mock-lines span:nth-child(1) {
  width: 90%;
}

.mock-lines span:nth-child(2) {
  width: 70%;
}

.mock-lines span:nth-child(3) {
  width: 80%;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  animation: floaty 6s ease-in-out infinite;
}

.float-chip i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.85rem;
}

.chip-1 {
  top: 0;
  left: -8px;
}

.chip-2 {
  bottom: 70px;
  right: -14px;
  animation-delay: -2s;
}

.chip-3 {
  bottom: -6px;
  left: 30px;
  animation-delay: -4s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  margin-top: -36px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat {
  padding: 26px 24px;
  text-align: center;
}

.stat + .stat {
  border-inline-start: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--brand);
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.icon-box.warm {
  background: var(--accent-soft);
  color: #0784b3;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
}

.card .link-arrow {
  margin-top: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .link-arrow {
  margin-top: auto;
  padding-top: 1rem;
}

/* Sectors */
.sector {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
}

.sector .icon-box {
  margin: 0;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
}

.sector h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.sector p {
  font-size: 0.95rem;
}

/* Process */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Why / feature split */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.feature-list li {
  display: flex;
  gap: 14px;
}

.feature-list .icon-box {
  margin: 0;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
}

.feature-list h3 {
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.feature-list p {
  color: var(--muted);
  font-size: 0.98rem;
}

.quote-box {
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.quote-box::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  left: -80px;
  bottom: -120px;
  background: rgba(255, 255, 255, 0.08);
}

.quote-box h3 {
  color: inherit;
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.quote-box p {
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.quote-box ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.quote-box li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

/* ---------- Project cards ---------- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.media {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}

.project-card:hover .media img,
.post-card:hover .media img {
  transform: scale(1.03);
}

.media.is-loading {
  background: linear-gradient(90deg, var(--bg-alt) 0%, var(--surface-2) 50%, var(--bg-alt) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 25% 20%, rgba(var(--brand-rgb), 0.16), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(18, 188, 245, 0.14), transparent 55%), var(--brand-soft);
  color: var(--brand);
  font-size: 2.6rem;
}

.card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.pill {
  align-self: flex-start;
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
}

.card-body h3 {
  font-size: 1.18rem;
}

.card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--brand);
}

.card-body p {
  color: var(--muted);
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  direction: ltr;
}

.card-foot {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Post cards ---------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* whole card clickable through the title link */
.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.post-meta i {
  color: var(--brand);
  margin-inline-end: 0.3rem;
}

.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.post-card.featured .media {
  aspect-ratio: auto;
  min-height: 300px;
}

.post-card.featured .card-body {
  padding: 36px;
  justify-content: center;
}

.post-card.featured h3 {
  font-size: 1.6rem;
}

/* ---------- Filters / search ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font: inherit;
  font-size: 0.93rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box i {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}

.state-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}

.state-msg i {
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: 0.75rem;
  display: block;
}

.state-msg .btn {
  margin-top: 1rem;
}

.skeleton-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.skeleton-card .media {
  aspect-ratio: 16 / 10;
}

.skeleton-lines {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.skeleton-lines span {
  height: 12px;
  border-radius: 6px;
  background: var(--bg-alt);
}

.skeleton-lines span:nth-child(1) {
  width: 35%;
}

.skeleton-lines span:nth-child(2) {
  width: 85%;
  height: 16px;
}

.skeleton-lines span:nth-child(3) {
  width: 70%;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: rgba(var(--brand-rgb), 0.4);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.07rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.15rem;
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 20px;
  color: var(--text);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: var(--on-brand);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  left: -100px;
  top: -160px;
  background: rgba(255, 255, 255, 0.08);
}

.cta-band h2 {
  color: inherit;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  opacity: 0.9;
  max-width: 560px;
}

.cta-band .actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  position: relative;
}

.cta-band .btn-ghost {
  color: var(--on-brand);
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Services page ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail h2 {
  font-size: 1.85rem;
  margin-bottom: 0.8rem;
}

.service-detail .lead {
  font-size: 1.08rem;
  margin-bottom: 1.25rem;
}

.service-detail .icon-box {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.detail-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.detail-box + .detail-box {
  margin-top: 16px;
}

.detail-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.ticks {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.ticks li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.ticks li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--success);
}

.ticks.two {
  grid-template-columns: 1fr 1fr;
}

.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.package {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.package.popular {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}

.package .badge {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
}

.package h3 {
  font-size: 1.35rem;
}

.package .for {
  color: var(--muted);
  font-size: 0.98rem;
}

.package .ticks {
  flex: 1;
}

.package .btn {
  width: 100%;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.tech-list span {
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-list i {
  color: var(--brand);
}

/* ---------- Article page ---------- */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.article-header {
  max-width: 820px;
}

.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0.75rem 0 1rem;
}

.article-header .excerpt {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0 8px;
  aspect-ratio: 16 / 8;
  background: var(--bg-alt);
}

.article-cover img,
.article-cover .cover-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text);
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.4rem;
  padding-top: 0.5rem;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
}

.prose ul {
  padding-inline-start: 1.4rem;
  display: grid;
  gap: 0.5rem;
}

.prose li::marker {
  color: var(--brand);
}

.prose p:first-child {
  font-size: 1.18rem;
  color: var(--ink);
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 16px;
}

.aside-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.aside-box h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.toc {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  line-height: 1.6;
}

.toc a:hover {
  color: var(--brand);
}

.share {
  display: flex;
  gap: 0.5rem;
}

.share a,
.share button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
}

.share a:hover,
.share button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.aside-cta {
  background: var(--brand);
  color: var(--on-brand);
  border: none;
}

.aside-cta h2 {
  color: inherit;
  font-size: 1.1rem;
}

.aside-cta p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.article-state {
  text-align: center;
  padding: 120px 20px;
  color: var(--muted);
}

.article-state i {
  font-size: 2.2rem;
  color: var(--brand);
  margin-bottom: 1rem;
  display: block;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

a.contact-item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.contact-item .icon-box {
  margin: 0;
  width: 46px;
  height: 46px;
  font-size: 1.15rem;
}

.contact-item .icon-box.wa {
  background: rgba(31, 157, 85, 0.12);
  color: var(--whatsapp);
}

.contact-item strong {
  display: block;
  color: var(--ink);
}

.contact-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.form-card > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field .req {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.8rem;
  text-align: center;
}

.btn-submit {
  width: 100%;
  padding: 0.95rem;
}

.btn-loader i {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hours {
  margin-top: 8px;
}

.hours h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.hours p {
  color: var(--muted);
  font-size: 0.97rem;
}

.mini-steps {
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: ms;
}

.mini-steps li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--text);
}

.mini-steps li::before {
  counter-increment: ms;
  content: counter(ms);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Footer (dark blue, shows the original white logo) ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #cbd5e1;
  padding: 72px 0 28px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer .brand img {
  height: 44px;
}

.footer-about p {
  color: #94a3b8;
  margin-top: 1rem;
  font-size: 0.98rem;
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.site-footer ul a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.97rem;
}

.site-footer ul a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: #94a3b8;
  font-size: 0.97rem;
}

.footer-contact i {
  color: var(--accent);
  width: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #94a3b8;
  font-size: 0.92rem;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 157, 85, 0.35);
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.06);
}

/* ---------- Notifications ---------- */
.notification-container {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: grid;
  gap: 10px;
  width: min(440px, calc(100% - 32px));
  pointer-events: none;
}

.notification {
  pointer-events: all;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.success {
  border-inline-start-color: var(--success);
}

.notification.error {
  border-inline-start-color: var(--danger);
}

.notif-icon {
  color: var(--brand);
  padding-top: 2px;
}

.notification.success .notif-icon {
  color: var(--success);
}

.notification.error .notif-icon {
  color: var(--danger);
}

.notif-body {
  flex: 1;
}

.notif-title {
  font-weight: 700;
  color: var(--ink);
}

.notif-message {
  color: var(--muted);
  font-size: 0.95rem;
}

.notif-message a {
  font-weight: 700;
}

.notif-progress {
  height: 3px;
  background: var(--bg-alt);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.notif-progress i {
  display: block;
  height: 100%;
  background: var(--brand);
}

.notif-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-wrap {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 72px 0;
  }

  .menu-toggle {
    display: flex;
    margin-inline-start: auto;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .main-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    padding: 0.8rem 1rem;
    border-radius: 12px;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .grid-3,
  .packages {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-inline-start: none;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .post-card.featured {
    grid-template-columns: 1fr;
  }

  .post-card.featured .media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .post-card.featured .card-body {
    padding: 24px;
  }

  .cta-band {
    padding: 40px 28px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .grid-3,
  .grid-4,
  .steps,
  .packages,
  .footer-grid,
  .form-row,
  .ticks.two {
    grid-template-columns: 1fr;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .form-card {
    padding: 24px 20px;
  }

  .float-chip {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
  }

  .float-chip i {
    width: 24px;
    height: 24px;
  }

  .chip-2 {
    right: -4px;
  }

  .prose {
    font-size: 1.04rem;
  }

  .wa-float {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Cookie consent ---------- */
.cookie-bar {
  position: fixed;
  z-index: 150;
  inset-inline: 16px;
  bottom: 16px;
  margin-inline: auto;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
  animation: cookieIn 0.35s ease;
}

@keyframes cookieIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.cookie-text {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  flex: 1;
}

.cookie-text i {
  color: var(--brand);
  font-size: 1.4rem;
  margin-top: 0.15rem;
}

.cookie-text p {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.7;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    inset-inline: 10px;
    bottom: 10px;
  }

  .cookie-actions .btn {
    flex: 1;
  }

  .cookie-bar:not(.hidden) ~ .wa-float {
    bottom: 190px;
  }
}
