/* ==========================================================================
   Pixel Summit for Digital Solutions — Production Stylesheet (site.css)
   Look: calm neo-brutalist. Navy ink borders, hard shadows used sparingly,
   one lemon accent for primary actions, teal from the logo for support.
   Theme: light / dark via html[data-theme] (falls back to the OS setting).
   Direction: RTL (Arabic, default) and LTR (English) via logical properties.
   ========================================================================== */

/* --- 1. Fonts (self-hosted) --- */
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-900.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/tajawal-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/tajawal-500.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }

/* --- 2. Design tokens --- */
:root {
  color-scheme: light;
  --paper: #f7f6ed;
  --paper-2: #eeeee3;
  --paper-3: #e5e4d9;
  --card: #fffef7;
  --ink: #102a43;
  --muted: #3b4d5f;
  --line: rgba(16, 42, 67, 0.18);
  --teal: #12b7b2;
  --teal-dark: #087c7a;
  --teal-soft: #dff7f5;
  --lemon: #f4ed42;
  --lemon-soft: #f8f38a;
  --whatsapp: #128c4a;
  --shadow-ink: #102a43;

  /* Fixed colours for surfaces that look the same in both themes */
  --navy: #102a43;
  --cream: #f7f6ed;
  --band-bg: #102a43;
  --band-text: #f7f6ed;
  --band-muted: #c9d3dc;

  --border: 2px solid var(--ink);
  --border-thin: 1.5px solid var(--ink);
  --shadow-sm: 3px 3px 0 var(--shadow-ink);
  --shadow: 5px 5px 0 var(--shadow-ink);
  --shadow-lg: 8px 8px 0 var(--shadow-ink);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --header-height: 76px;
  --container-max: 1200px;

  --font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: 'Tajawal', system-ui, -apple-system, sans-serif;

  /* Legacy aliases still referenced by inline styles in page markup */
  --white: var(--card);
  --bg-surface: var(--paper-2);
  --bg-card: var(--card);
  --border-subtle: var(--line);
  --border-medium: var(--line);
  --brand-teal: var(--teal);
  --brand-teal-text: var(--teal-dark);
  --brand-teal-subtle: var(--teal-soft);
  --teal-subtle: var(--teal-soft);
  --brand-lemon: var(--lemon);
  --brand-lemon-text: #7a5c00;
  --lemon-text: #7a5c00;
  --brand-lemon-subtle: rgba(244, 237, 66, 0.3);
  --lemon-subtle: rgba(244, 237, 66, 0.3);
  --brand-cyan: #0369a1;
  --brand-cyan-subtle: rgba(3, 105, 161, 0.12);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-muted: var(--muted);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #0b1d2e;
  --paper-2: #0f2438;
  --paper-3: #15304a;
  --card: #132c43;
  --ink: #f7f6ed;
  --muted: #c2ced8;
  --line: rgba(247, 246, 237, 0.2);
  --teal: #28cbc4;
  --teal-dark: #62eee7;
  --teal-soft: rgba(40, 203, 196, 0.16);
  --whatsapp: #3ddc84;
  --shadow-ink: #02101c;
  --band-bg: #07131f;
  --brand-lemon-text: #f4ed42;
  --lemon-text: #f4ed42;
  --brand-lemon-subtle: rgba(244, 237, 66, 0.16);
  --lemon-subtle: rgba(244, 237, 66, 0.16);
  --brand-cyan: #7dd3fc;
  --brand-cyan-subtle: rgba(125, 211, 252, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #0b1d2e;
    --paper-2: #0f2438;
    --paper-3: #15304a;
    --card: #132c43;
    --ink: #f7f6ed;
    --muted: #c2ced8;
    --line: rgba(247, 246, 237, 0.2);
    --teal: #28cbc4;
    --teal-dark: #62eee7;
    --teal-soft: rgba(40, 203, 196, 0.16);
    --whatsapp: #3ddc84;
    --shadow-ink: #02101c;
    --band-bg: #07131f;
    --brand-lemon-text: #f4ed42;
    --lemon-text: #f4ed42;
    --brand-lemon-subtle: rgba(244, 237, 66, 0.16);
    --lemon-subtle: rgba(244, 237, 66, 0.16);
    --brand-cyan: #7dd3fc;
    --brand-cyan-subtle: rgba(125, 211, 252, 0.16);
  }
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
}

html[lang='en'] body { line-height: 1.6; }

::selection { background: var(--lemon); color: var(--navy); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}

html[lang='en'] :is(h1, h2, h3) { line-height: 1.15; }

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; transition: color 160ms ease; }

img { max-width: 100%; }

.shell { width: min(100% - 40px, var(--container-max)); margin-inline: auto; }

@media (max-width: 768px) { .shell { width: min(100% - 32px, var(--container-max)); } }

.app-container { min-height: 100vh; display: flex; flex-direction: column; }

.page-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-particles + .app-container { position: relative; z-index: 1; }

main { flex: 1; }

/* --- 4. Header & navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-height);
  background: var(--paper);
  border-bottom: var(--border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }

.brand-wrapper { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); }

.brand-icon-box {
  width: 44px;
  height: 44px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--lemon);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon-box img { width: 32px; height: 18px; object-fit: contain; }

.brand-name-group { display: flex; flex-direction: column; line-height: 1.1; }

.brand-title { font-family: var(--font-heading); font-size: 19px; font-weight: 900; letter-spacing: 0.01em; }

.brand-subtitle { font-size: 13px; color: var(--muted); }

.desktop-nav { display: flex; align-items: center; gap: 4px; }

@media (max-width: 1060px) { .desktop-nav { display: none; } }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
}

.nav-link:hover { color: var(--teal-dark); }

.nav-link.active { font-weight: 700; box-shadow: inset 0 -4px 0 var(--lemon); border-radius: 0; }

:root[data-theme='dark'] .nav-link.active { background: none; color: var(--lemon); }

.nav-item-dropdown { position: relative; }

.nav-dropdown-trigger { cursor: pointer; }

.nav-dropdown-icon { font-size: 12px; transition: transform 200ms ease; }

.nav-item-dropdown:hover .nav-dropdown-icon,
.nav-item-dropdown.is-open .nav-dropdown-icon { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 50%;
  width: 680px;
  padding: 20px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateX(50%) translateY(6px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 120;
}

html[dir='ltr'] .nav-dropdown-menu { transform: translateX(-50%) translateY(6px); }

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(50%) translateY(0);
}

html[dir='ltr'] .nav-item-dropdown:hover .nav-dropdown-menu,
html[dir='ltr'] .nav-item-dropdown.is-open .nav-dropdown-menu { transform: translateX(-50%) translateY(0); }

.dropdown-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--line);
}

.dropdown-header-title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--muted); }

.dropdown-view-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--teal-dark); }

.dropdown-view-all:hover { text-decoration: underline; }

.dropdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }

.dropdown-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); }

.dropdown-item:hover { background: var(--paper-2); }

.dropdown-item-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--ink);
  background: var(--teal-soft);
  border: var(--border-thin);
  border-radius: 10px;
}

.dropdown-item-body { display: flex; flex-direction: column; }

.dropdown-item-title { font-family: var(--font-heading); font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }

.dropdown-item-desc { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 2px; }

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

.btn-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ink);
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.btn-icon:hover { box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.lang-switch:hover { color: var(--teal-dark); }

.menu-toggle-btn { display: none; }

@media (max-width: 1060px) { .menu-toggle-btn { display: grid; } }

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--cream);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.header-cta-btn:hover { color: var(--navy); background: var(--lemon); box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }

:root[data-theme='dark'] .header-cta-btn { color: var(--navy); background: var(--lemon); border-color: var(--lemon); }

@media (max-width: 680px) { .header-cta-btn { display: none; } }

/* Keep brand + actions inside narrow phone viewports */
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .brand-wrapper { gap: 8px; flex-shrink: 1; min-width: 0; }
  .brand-icon-box { width: 40px; height: 40px; }
  .brand-name-group { min-width: 0; }
  .brand-title { font-size: 17px; white-space: nowrap; }
  .brand-subtitle { display: none; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .header-actions .btn-icon { width: 40px; height: 40px; }
  .lang-switch { padding: 0 6px; }
}

/* --- 5. Mobile drawer --- */
.mobile-drawer { position: fixed; inset: 0; z-index: 200; overflow: hidden; visibility: hidden; opacity: 0; transition: visibility 220ms ease, opacity 220ms ease; }

.mobile-drawer.is-open { visibility: visible; opacity: 1; }

.mobile-drawer-backdrop { position: absolute; inset: 0; background: rgba(16, 42, 67, 0.6); }

.mobile-drawer-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(88vw, 380px);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  background: var(--paper);
  border-inline-start: var(--border);
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir='rtl'] .mobile-drawer-panel { transform: translateX(-100%); }

.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }

.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: var(--border); }

.drawer-nav-list, .drawer-subnav-list { list-style: none; }

.drawer-nav-list { display: flex; flex-direction: column; margin-top: 8px; }

.drawer-nav-item { border-bottom: 1.5px solid var(--line); }

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 4px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.drawer-link.active { color: var(--teal-dark); }

.drawer-accordion-btn i { transition: transform 200ms ease; }

.drawer-accordion-btn[aria-expanded='true'] i { transform: rotate(180deg); }

.drawer-subnav-list { display: none; flex-direction: column; padding: 0 0 12px; }

.drawer-subnav-list.is-open { display: flex; }

.drawer-sublink { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; font-size: 15px; font-weight: 500; color: var(--muted); border-radius: 10px; }

.drawer-sublink:hover { color: var(--ink); background: var(--paper-2); }

.drawer-footer { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* --- 6. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
  background: var(--card);
  border: var(--border);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }

.btn:active { transform: translate(1px, 1px); box-shadow: none; }

.btn-primary { font-weight: 900; color: var(--navy); background: var(--lemon); border-color: var(--navy); box-shadow: 4px 4px 0 var(--shadow-ink); }

:root[data-theme='dark'] .btn-primary { border-color: var(--lemon); }

.btn-primary:hover { background: var(--lemon-soft); box-shadow: 6px 6px 0 var(--shadow-ink); }

.btn-secondary, .btn-outline-glass { background: var(--card); color: var(--ink); }

.btn-dark { color: var(--cream); background: var(--navy); border-color: var(--navy); }

.btn-teal { background: var(--teal); color: var(--navy); }

.btn-whatsapp { background: #25d366; color: #042510; }

.btn i { font-size: 1.15em; }

.ph-whatsapp-logo { color: var(--whatsapp); }

.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }

.btn-block { width: 100%; }

html[dir='rtl'] .btn .ph-arrow-right, html[dir='rtl'] .card-footer-link .ph-arrow-right { transform: scaleX(-1); }

/* --- 7. Section scaffolding --- */
.section, .services-section, .workflow-section, .faq-section, .solutions-section, .case-studies-section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-header-center, .section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-header-split > :first-child { max-width: 720px; }

.section-header-split .section-lead { max-width: 400px; margin: 0; }

.section-kicker, .kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

html[lang='ar'] :is(.section-kicker, .kicker) { letter-spacing: 0; }

.section-title {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.section-title:last-child { margin-bottom: 0; }

.section-lead, .section-desc {
  max-width: 64ch;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--muted);
}

/* Lemon marker highlight used in headlines */
.highlight-text, .section-title span, .marker {
  color: inherit;
  /* Cairo's line box is tall, so the band stops well short of the bottom edge */
  background: linear-gradient(transparent 48%, var(--lemon) 48%, var(--lemon) 76%, transparent 76%);
  padding-inline: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* In dark mode a lemon band under light text loses contrast: colour the words instead */
:root[data-theme='dark'] :is(.highlight-text, .section-title span, .marker) { background: none; color: var(--lemon); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) :is(.highlight-text, .section-title span, .marker) { background: none; color: var(--lemon); }
  :root:not([data-theme='light']) .nav-link.active { background: none; color: var(--lemon); }
}

/* --- 8. Homepage --- */
.home-hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px); overflow: hidden; }

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 980px) { .home-hero-grid { grid-template-columns: 1fr; } }

.home-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 700;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-pill);
}

.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.home-hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

html[lang='ar'] .home-hero-title { line-height: 1.3; letter-spacing: 0; }

.home-hero-lead { max-width: 560px; font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--muted); }

.hero-actions-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--muted); }

.hero-checks li { display: inline-flex; align-items: center; gap: 6px; }

.hero-checks i { color: var(--teal-dark); font-size: 18px; }

@media (max-width: 560px) {
  .home-hero .hero-actions-row { flex-direction: column; align-items: stretch; width: 100%; }
}

/* Hero illustration: a WhatsApp enquiry flowing into the sales pipeline */
.hero-scene { position: relative; min-height: 500px; }

.hero-scene-bg {
  position: absolute;
  inset: 24px 0 0 40px;
  background: var(--teal);
  border: var(--border);
  border-radius: var(--radius-lg);
}

html[dir='rtl'] .hero-scene-bg { inset: 24px 40px 0 0; }

.hero-scene-mountain {
  position: absolute;
  inset-inline-end: 24px;
  bottom: 16px;
  width: 240px;
  height: auto;
  opacity: 0.35;
}

.scene-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow-ink);
}

.scene-chat { inset-inline-start: 0; top: 0; width: min(330px, 78%); transform: rotate(-2deg); }

html[dir='rtl'] .scene-chat { transform: rotate(2deg); }

.scene-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }

.scene-meta span:first-child { display: inline-flex; align-items: center; gap: 6px; }

.scene-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: #128c4a; }

.bubble { max-width: 88%; padding: 10px 12px; font-size: 15px; line-height: 1.45; }

.bubble-in { align-self: flex-start; background: var(--paper-2); border-radius: 4px 14px 14px 14px; }

.bubble-out { align-self: flex-end; background: var(--teal-soft); border: 1.5px solid var(--teal); border-radius: 14px 4px 14px 14px; }

html[dir='rtl'] .bubble-in { border-radius: 14px 4px 14px 14px; }

html[dir='rtl'] .bubble-out { border-radius: 4px 14px 14px 14px; }

.bubble-action { align-self: flex-end; padding: 6px 12px; font-size: 14px; font-weight: 700; border: var(--border-thin); border-radius: 10px; }

.scene-pipeline { inset-inline-end: 16px; top: 190px; width: min(420px, 90%); }

.scene-pipeline-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }

.scene-pipeline-head strong { font-family: var(--font-heading); font-size: 16px; font-weight: 900; color: var(--ink); }

.scene-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.scene-col { display: flex; flex-direction: column; gap: 8px; }

.scene-col-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.scene-deal { padding: 8px 10px; font-size: 13px; font-weight: 700; line-height: 1.3; background: var(--card); border: var(--border-thin); border-radius: 10px; }

.scene-deal span { display: block; font-weight: 500; }

.scene-deal.is-new { color: var(--navy); background: var(--lemon); }

.scene-deal.is-won { background: var(--teal-soft); }

.scene-deal.is-empty { height: 40px; border: 1.5px dashed var(--line); background: transparent; }

.scene-sticker {
  position: absolute;
  inset-inline-start: 36px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  color: var(--cream);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 14px;
  transform: rotate(3deg);
}

.scene-sticker strong { font-family: var(--font-heading); font-size: 30px; font-weight: 900; line-height: 1.1; color: var(--lemon); }

.scene-sticker span { font-size: 14px; }

@media (max-width: 560px) {
  .hero-scene { min-height: 440px; }
  .scene-pipeline { top: 200px; inset-inline-end: 0; }
  .scene-sticker { bottom: 0; inset-inline-start: 12px; }
  .hero-scene-mountain { display: none; }
}

/* Trust strip */
.trust-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
}

.trust-strip li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }

.trust-strip li + li { border-inline-start: var(--border); }

.trust-strip-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 10px;
}

.trust-strip strong { display: block; font-size: 16px; line-height: 1.35; }

.trust-strip small { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }

@media (max-width: 980px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip li:nth-child(3) { border-inline-start: none; }
  .trust-strip li:nth-child(n + 3) { border-top: var(--border); }
}

@media (max-width: 560px) {
  .trust-strip li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 14px; }
  .trust-strip small { display: none; }
}

/* Services grid */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; gap: 12px; } }

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  color: var(--ink);
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.svc-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--shadow-ink); }

.svc-card-top { display: flex; align-items: center; justify-content: space-between; }

.svc-icon, .bento-icon-wrapper, .card-icon-wrap, .sector-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--ink);
  background: var(--teal-soft);
  border: var(--border);
  border-radius: var(--radius-sm);
}

.svc-icon.is-lemon { color: var(--navy); background: var(--lemon); }

.svc-num { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--muted); }

.svc-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

.svc-desc { flex-grow: 1; font-size: 16px; line-height: 1.55; color: var(--muted); }

.svc-more { font-size: 15px; font-weight: 700; color: var(--teal-dark); }

@media (max-width: 600px) {
  .svc-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 16px; }
  .svc-card-top { order: 0; }
  .svc-num, .svc-more { display: none; }
  .svc-title { flex: 1; font-size: 1.05rem; }
  .svc-desc { flex-basis: 100%; font-size: 15px; }
}

/* Dark band ("How it works") */
.band-dark {
  width: min(100% - 24px, 1360px);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 80px);
  color: var(--band-text);
  background: var(--band-bg);
  border-radius: clamp(22px, 3vw, 32px);
}

.band-dark .section-kicker { color: var(--lemon); }

.band-dark .section-title { color: var(--band-text); }

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

@media (max-width: 980px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; gap: 12px; } }

.process-step { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 2px solid rgba(247, 246, 237, 0.25); border-radius: var(--radius); }

.process-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  background: var(--lemon);
  border-radius: var(--radius-sm);
}

.process-step h3 { font-size: 1.25rem; font-weight: 700; color: var(--band-text); }

.process-step p { font-size: 16px; line-height: 1.55; color: var(--band-muted); }

.industry-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }

.industry-row-label { font-size: 15px; color: var(--band-muted); margin-inline-end: 6px; }

.industry-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--band-text);
  border: 2px solid var(--band-text);
  border-radius: var(--radius-pill);
}

.industry-chip:hover { color: var(--navy); background: var(--lemon); border-color: var(--lemon); }

/* Results */
.text-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-size: 17px; font-weight: 700; color: var(--teal-dark); }

.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.case-stat-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }

.case-stat-num {
  padding-inline: 6px;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
  background: var(--teal-soft);
  border-radius: 8px;
}

:root[data-theme='dark'] .case-stat-num { color: var(--ink); }

.case-stat-num.is-lemon { color: var(--navy); background: var(--lemon); }

.case-stat-label { font-size: 16px; font-weight: 700; }

/* FAQ split */
.faq-split { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }

@media (max-width: 900px) { .faq-split { grid-template-columns: 1fr; } }

.faq-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.faq-intro .section-title { margin-bottom: 0; }

.faq-intro p { color: var(--muted); }

/* --- 9. Shared components --- */

/* Cards */
.bento-card, .service-preview-card, .step-card, .case-card, .solution-sector-card, .roadmap-step-card,
.contact-card, .hero-visual-card, .contact-form-card, .legal-card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 28px);
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
}

.bento-card, .service-preview-card, .solution-sector-card, .contact-card { transition: transform 180ms ease, box-shadow 180ms ease; }

.bento-card:hover, .service-preview-card:hover, .solution-sector-card:hover, .contact-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--shadow-ink); }

.hero-visual-card, .contact-form-card { box-shadow: 6px 6px 0 var(--shadow-ink); }

/* Inline-styled page grids: let tracks shrink, then stack on small screens.
   !important is needed to override the inline grid-template-columns. */
.m-stack > *, .m-stack-sm > *, .m-cols-3 > * { min-width: 0; }

.m-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

@media (max-width: 900px) { .m-stack { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; } }

@media (max-width: 560px) { .m-stack-sm { grid-template-columns: minmax(0, 1fr) !important; } }

@media (max-width: 400px) { .m-cols-3 { gap: 10px !important; padding: 14px !important; } }

/* Bento grid (service & listing pages) */
.services-bento-grid, .services-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 1000px) { .services-bento-grid, .services-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 640px) { .services-bento-grid, .services-showcase-grid { grid-template-columns: 1fr; } }

.bento-card.span-2, .service-preview-card.span-2 { grid-column: span 2; }

@media (max-width: 1000px) { .bento-card.span-2, .service-preview-card.span-2 { grid-column: auto; } }

.bento-card-top, .card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.bento-service-num, .card-badge {
  padding: 4px 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
}

.bento-card-title, .service-preview-card h3 { margin-bottom: 10px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

.bento-card-desc, .service-preview-card p { margin-bottom: 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.bento-card-desc:last-child { margin-bottom: 0; }

.bento-feature-list, .card-feature-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; margin-bottom: 20px; }

.bento-feature-list { flex-direction: column; }

.bento-feature-item { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }

.bento-feature-item i, .feature-pill i { color: var(--teal-dark); }

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--paper-2);
  border-radius: var(--radius-pill);
}

.bento-card-action, .card-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-dark);
}

.bento-card-action:hover, .card-footer-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.bento-workflow-bar, .bento-seal-badge { font-size: 14px; }

/* Industry cards */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.sector-icon { margin-bottom: 16px; }

.sector-title { margin-bottom: 8px; font-size: 1.2rem; font-weight: 700; }

.sector-desc { margin-bottom: 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.sector-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.sector-badge { padding: 3px 10px; font-size: 13px; font-weight: 500; background: var(--paper-2); border-radius: var(--radius-pill); }

/* Steps */
.workflow-steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

.step-number-badge, .roadmap-step-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  background: var(--lemon);
  border: var(--border);
  border-radius: var(--radius-sm);
}

:root[data-theme='dark'] :is(.step-number-badge, .roadmap-step-num) { border-color: var(--lemon); }

.step-title, .roadmap-step-title { margin-bottom: 8px; font-size: 1.2rem; font-weight: 700; }

.step-desc, .roadmap-step-desc { font-size: 16px; line-height: 1.6; color: var(--muted); }

.roadmap-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 850px) { .roadmap-steps-grid { grid-template-columns: 1fr; } }

/* Case studies */
.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 980px) { .cases-grid { grid-template-columns: 1fr; } }

.case-card { gap: 14px; }

.case-tag { display: block; font-size: 14px; font-weight: 700; color: var(--muted); }

.case-card-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }

.case-card-desc { font-size: 16px; line-height: 1.6; color: var(--muted); }

.case-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
  padding: 14px 16px;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
}

.case-stat-item .val { display: block; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; line-height: 1.2; }

.case-stat-item .sub { font-size: 14px; font-weight: 500; color: var(--muted); }

/* FAQ accordion */
.faq-container, .faq-list { display: flex; flex-direction: column; border-top: var(--border); }

.faq-container { max-width: 900px; }

.faq-item { border-bottom: var(--border); }

.faq-question {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: start;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-question:hover { color: var(--teal-dark); }

.faq-chevron {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: var(--border);
  border-radius: 10px;
  transition: transform 200ms ease, background 200ms ease;
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--navy); background: var(--lemon); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 260ms cubic-bezier(0.16, 1, 0.3, 1); }

.faq-item.is-open .faq-answer { max-height: 600px; }

.faq-answer-inner { padding: 0 0 22px; padding-inline-end: 56px; font-size: 16.5px; line-height: 1.7; color: var(--muted); }

@media (max-width: 600px) { .faq-answer-inner { padding-inline-end: 0; } }

/* CTA block */
.cta-banner-section { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 9vw, 112px); }

.cta-banner-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px 48px;
  padding: clamp(32px, 5vw, 64px) clamp(22px, 5vw, 72px);
  color: var(--navy);
  background: var(--lemon);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) { .cta-banner-card { grid-template-columns: 1fr; } }

.cta-banner-content { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 680px; }

.cta-banner-card h2, .cta-banner-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; line-height: 1.15; color: var(--navy); }

html[lang='ar'] .cta-banner-title { line-height: 1.35; }

html:root .cta-banner-card .highlight-text { background: none; padding: 0; color: var(--navy); }

.cta-banner-card p, .cta-banner-lead { max-width: 60ch; font-size: 18px; line-height: 1.6; color: var(--navy); }

.cta-banner-card .badge-pill { margin-bottom: 0 !important; color: var(--navy); background: var(--cream); border-color: var(--navy); }

.cta-banner-actions { display: flex; flex-direction: column; gap: 12px; min-width: 280px; }

@media (max-width: 900px) { .cta-banner-actions { min-width: 0; } }

.cta-banner-actions .btn { width: 100%; }

.cta-banner-actions .btn-primary { color: var(--cream); background: var(--navy); border-color: var(--navy); box-shadow: none; }

.cta-banner-actions .btn-primary:hover { box-shadow: 5px 5px 0 rgba(16, 42, 67, 0.35); }

.cta-banner-actions .btn-secondary, .cta-banner-actions .btn-outline-glass { color: var(--navy); background: var(--cream); border-color: var(--navy); }

.cta-banner-actions .btn:hover { box-shadow: 5px 5px 0 var(--navy); }

.cta-banner-card .ph-whatsapp-logo { color: #128c4a !important; }

/* Breadcrumbs */
.breadcrumb-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 14px; font-weight: 500; color: var(--muted); }

.breadcrumb-nav a:hover { color: var(--teal-dark); }

.breadcrumb-separator { display: inline-flex; opacity: 0.6; }

html[dir='rtl'] .breadcrumb-separator .ph-caret-right { transform: scaleX(-1); }

.breadcrumb-nav [aria-current='page'] { font-weight: 700; color: var(--ink); }

/* Service / subpage hero */
.service-hero-section, .subpage-hero { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 72px); }

.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: center; }

@media (max-width: 980px) { .service-hero-grid { grid-template-columns: 1fr; } }

.service-hero-title { margin-bottom: 18px; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; }

html[lang='ar'] .service-hero-title { line-height: 1.35; letter-spacing: 0; }

.service-hero-title .highlight-text { display: inline !important; }

.service-hero-lead { max-width: 62ch; margin-bottom: 28px; font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--muted); }

.service-hero-section .hero-actions-row { margin-bottom: 8px; }

/* Pills & dots */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-pill);
}

.badge-pill.teal { background: var(--teal-soft); }

.badge-pill.lemon { color: var(--navy); background: var(--lemon); border-color: var(--navy); }

.badge-pill.cyan { background: var(--brand-cyan-subtle); }

.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.badge-dot.pulse { animation: pulseDot 2s ease-in-out infinite; }

@keyframes pulseDot { 50% { opacity: 0.35; } }

.hero-trust-indicators { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; color: var(--muted); }

.trust-item { display: inline-flex; align-items: center; gap: 6px; }

.trust-item i { font-size: 17px; color: var(--teal-dark); }

/* Product mockups on service pages */
.mockup-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1.5px solid var(--line); }

.mockup-window-controls { display: flex; gap: 6px; }

.mockup-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); }

.mockup-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--paper-2); border-radius: var(--radius-pill); }

.mockup-stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }

.mockup-stat-cell { display: flex; flex-direction: column; padding: 10px 12px; background: var(--paper-2); border-radius: 10px; }

.mockup-stat-cell .label { font-size: 12px; color: var(--muted); }

.mockup-stat-cell .value { font-family: var(--font-heading); font-size: 15px; font-weight: 700; }

.mockup-lead-flow-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--paper-2); border-radius: var(--radius-sm); }

.lead-flow-info { display: flex; align-items: center; gap: 12px; }

.lead-flow-avatar { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; background: var(--card); border: var(--border-thin); border-radius: 10px; flex-shrink: 0; }

.lead-flow-details { display: flex; flex-direction: column; }

.lead-flow-details strong { font-size: 14px; }

.lead-flow-details span { font-size: 12.5px; color: var(--muted); }

.lead-flow-tag { padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--teal-dark); background: var(--teal-soft); border-radius: var(--radius-pill); }

.inbox-channel-pill, .chat-quick-tag, .time-slot-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 13px; font-weight: 500; background: var(--paper-2); border-radius: 10px; }

.inbox-channel-pill.active, .time-slot-btn.selected { font-weight: 700; background: var(--teal-soft); }

.cal-days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }

.cal-day-cell { padding: 4px 0; font-size: 13px; border-radius: 8px; }

.cal-day-cell.selected { font-weight: 700; color: var(--navy); background: var(--lemon); }

.cal-day-cell.available { background: var(--teal-soft); }

/* Contact page */
.contact-layout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }

@media (max-width: 900px) { .contact-layout-grid { grid-template-columns: 1fr; } }

.contact-channels-column { display: flex; flex-direction: column; gap: 16px; }

.contact-card { flex-direction: row; align-items: flex-start; gap: 16px; }

.contact-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--ink);
  background: var(--teal-soft);
  border: var(--border);
  border-radius: var(--radius-sm);
}

.contact-card-icon.wa { color: #128c4a; background: #dcf8e7; }

.contact-card-icon.location { color: var(--navy); background: var(--lemon); }

.contact-card-content { display: flex; flex-direction: column; }

.contact-card-title { margin-bottom: 2px; font-family: var(--font-heading); font-size: 16px; font-weight: 700; }

.contact-card-val { font-size: 15px; line-height: 1.6; color: var(--muted); }

.contact-card-val strong { color: var(--ink); }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.form-label { font-family: var(--font-heading); font-size: 15px; font-weight: 700; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-sm);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 3px var(--teal-soft); }

.form-textarea { min-height: 130px; resize: vertical; }

/* Toast */
#toast-msg {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: all 220ms ease;
}

#toast-msg.show { transform: translateY(0); opacity: 1; visibility: visible; }

/* Legal pages */
.legal-card-shell { display: block; max-width: 880px; margin-inline: auto; margin-bottom: 64px; padding: clamp(24px, 5vw, 56px); }

.legal-card-shell h2 { margin: 36px 0 12px; padding-bottom: 8px; font-size: 1.45rem; font-weight: 900; border-bottom: 1.5px solid var(--line); }

.legal-card-shell h3 { margin: 24px 0 8px; font-size: 1.15rem; font-weight: 700; }

.legal-card-shell p, .legal-card-shell ul { margin-bottom: 16px; font-size: 16.5px; line-height: 1.8; color: var(--muted); }

.legal-card-shell ul { padding-inline-start: 24px; }

.legal-card-shell li { margin-bottom: 6px; }

/* 404 */
.error-page-center { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 60px; text-align: center; }

.error-code-badge { margin-bottom: 16px; font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 7.5rem); font-weight: 900; line-height: 1; color: var(--teal); text-shadow: 5px 5px 0 var(--shadow-ink); }

/* --- 10. Footer --- */
.site-footer { margin-top: auto; padding-block: clamp(48px, 6vw, 72px) 32px; background: var(--paper-2); border-top: var(--border); }

.footer-top-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

@media (max-width: 980px) { .footer-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 560px) { .footer-top-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand-col { display: flex; flex-direction: column; gap: 16px; }

.footer-brand-desc { max-width: 340px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

.footer-contact-items { display: flex; flex-direction: column; gap: 8px; }

.footer-contact-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; color: var(--ink); }

.footer-contact-link i { font-size: 17px; color: var(--teal-dark); }

.footer-col-title { margin-bottom: 14px; font-family: var(--font-heading); font-size: 16px; font-weight: 700; }

.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.footer-link { display: inline-flex; min-height: 32px; align-items: center; font-size: 15px; color: var(--muted); }

.footer-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.footer-trust-item { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; color: var(--muted); }

.footer-trust-item i { color: var(--teal-dark); }

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 20px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1.5px solid var(--line);
}

.footer-legal-links { display: flex; align-items: center; gap: 12px; }

.footer-legal-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

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