:root {
  --ink: #10242a;
  --ink-2: #243b42;
  --paper: #ffffff;
  --page: #f5fbfa;
  --soft: #eaf6f3;
  --muted: #60777e;
  --line: rgba(16, 36, 42, 0.12);
  --cyan: #18a9c4;
  --green: #1dbf8f;
  --gold: #c99125;
  --rose: #d94f6a;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --shadow: 0 22px 58px rgba(25, 75, 84, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, "Tahoma", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(24, 169, 196, 0.11), transparent 36%),
    linear-gradient(250deg, rgba(201, 145, 37, 0.10), transparent 34%),
    repeating-linear-gradient(90deg, rgba(16, 36, 42, 0.035) 0 1px, transparent 1px 86px);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(1160px, calc(100% - 32px));
  min-height: 70px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(24, 169, 196, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 42px rgba(25, 75, 84, 0.12);
  padding: 10px 14px;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-color: rgba(24, 169, 196, 0.32);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(24, 169, 196, 0.12);
  color: #08728a;
}

.main-nav .lang-link {
  border: 1px solid rgba(201, 145, 37, 0.28);
  color: var(--gold);
  background: rgba(201, 145, 37, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 169, 196, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: end;
  min-height: 86svh;
  overflow: hidden;
  padding: 160px max(24px, calc((100vw - 1160px) / 2)) 78px;
  background: linear-gradient(135deg, #f7ffff, #e9f7f3 58%, #fff8eb);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94), rgba(255,255,255,0.74) 48%, rgba(255,255,255,0.42)),
    linear-gradient(0deg, rgba(245,251,250,0.98), transparent 42%);
}

html[dir="rtl"] .hero-backdrop::after {
  background:
    linear-gradient(270deg, rgba(255,255,255,0.94), rgba(255,255,255,0.74) 48%, rgba(255,255,255,0.42)),
    linear-gradient(0deg, rgba(245,251,250,0.98), transparent 42%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0c9976;
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 64px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.12;
}

h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.hero-content p {
  max-width: 740px;
  color: #34535b;
  font-size: 17px;
}

.hero-tagline {
  color: var(--gold) !important;
  font-size: 22px !important;
  font-weight: 800;
}

.hero-actions,
.row-heading,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
button.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 12px 18px;
  box-shadow: 0 14px 34px rgba(24, 169, 196, 0.22);
}

.button-ghost,
.button-light {
  border: 1px solid rgba(24, 169, 196, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: #08728a;
  box-shadow: none;
}

.button-danger {
  background: linear-gradient(135deg, var(--rose), #ee8b62);
  color: #ffffff;
}

.hero-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(24, 169, 196, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel div {
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eefaf7);
  padding: 16px;
}

.hero-panel strong {
  display: block;
  color: var(--gold);
  font-size: 26px;
}

.hero-panel span {
  color: var(--muted);
  font-size: 13px;
}

.section,
.page-hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.split-section p,
.page-hero p,
.contact-card p,
.feature-card p,
.item-card p {
  color: #526a71;
}

.section-visual {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 900;
}

.services-band {
  width: 100%;
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(232,246,243,0.72));
  padding-inline: max(16px, calc((100vw - 1160px) / 2));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.row-heading {
  justify-content: space-between;
  max-width: none;
}

.feature-grid,
.item-grid,
.process-grid,
.award-section,
.contact-layout,
.footer-grid,
.admin-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.item-card,
.contact-form,
.contact-card,
.admin-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 22px;
}

.feature-card img {
  width: 100%;
  height: 150px;
  margin-bottom: 18px;
  border-radius: 8px;
  object-fit: cover;
}

.card-number {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  color: var(--gold);
  font-weight: 900;
}

.page-hero {
  padding: 165px 0 42px;
}

.compact-hero,
.portfolio-hero,
.contact-hero {
  max-width: 900px;
}

.process-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(24, 169, 196, 0.10), rgba(201, 145, 37, 0.10));
  padding: 34px;
}

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

.process-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  padding: 18px;
  text-align: center;
}

.award-section {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.award-list {
  display: grid;
  gap: 12px;
}

.award-list article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.award-list span {
  width: 12px;
  height: 12px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(29, 191, 143, 0.12);
}

.link-stack {
  display: grid;
  gap: 12px;
}

.link-stack span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink-2);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(25, 75, 84, 0.08);
}

.item-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-card {
  overflow: hidden;
}

.item-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.item-card div {
  padding: 18px;
}

.item-badge {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(201, 145, 37, 0.13);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.item-card strong {
  display: block;
  color: #0c9976;
  font-size: 18px;
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.contact-form,
.contact-card {
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(16, 36, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(24, 169, 196, 0.18);
  border-color: rgba(24, 169, 196, 0.55);
}

textarea {
  resize: vertical;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input {
  width: 18px;
  margin-top: 6px;
}

.notice {
  border-radius: 8px;
  font-weight: 800;
  padding: 12px 14px;
}

.notice.success {
  background: rgba(29, 191, 143, 0.14);
  color: #0a8a68;
}

.notice.error {
  background: rgba(217, 79, 106, 0.13);
  color: #b83651;
}

.social-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-list.vertical {
  display: grid;
  margin-top: 20px;
}

.social-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink-2);
  font-weight: 800;
  padding: 9px 11px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #eef7f5);
  color: var(--ink);
  padding: 58px max(16px, calc((100vw - 1160px) / 2)) 24px;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
}

.footer-logo {
  width: 56px;
  margin-bottom: 16px;
}

.site-footer p {
  color: #526a71;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 20px;
}

.whatsapp-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 45;
  border-radius: 8px;
  background: #24d366;
  color: #04120a;
  font-weight: 900;
  padding: 13px 16px;
  box-shadow: 0 18px 48px rgba(36, 211, 102, 0.24);
}

.admin-body {
  background: var(--page);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
}

.admin-tabs button.is-active {
  background: var(--gold);
  color: #ffffff;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

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

.admin-card,
.login-card {
  padding: 20px;
}

.login-card {
  width: min(520px, calc(100% - 32px));
  margin: 80px auto;
}

.admin-card form,
.login-card form,
.stack-form {
  display: grid;
  gap: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 12px;
  text-align: start;
  vertical-align: top;
}

.message-box {
  white-space: pre-wrap;
  color: #405b62;
}

.mini-image {
  width: 78px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 920px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    width: 100%;
  }

  .hero-section,
  .split-section,
  .feature-grid,
  .award-section,
  .item-grid,
  .contact-layout,
  .footer-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 128px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

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

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-actions,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  button.button {
    width: 100%;
  }

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

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}


.playbook-hero {
  max-width: 980px;
}

.playbook-byline {
  color: var(--gold) !important;
  font-weight: 900;
}

.playbook-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.playbook-toc {
  position: sticky;
  top: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 20px;
}

.playbook-toc h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.playbook-toc nav {
  display: grid;
  gap: 10px;
}

.playbook-toc a {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(16, 36, 42, 0.11);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
}

.playbook-toc a:hover,
.playbook-toc a.is-active {
  border-color: rgba(24, 169, 196, 0.38);
  background: linear-gradient(135deg, #ffffff, #edf9f6);
}

.playbook-toc a span,
.playbook-chapter-card > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.playbook-toc a strong {
  font-size: 15px;
  line-height: 1.35;
}

.playbook-index-list {
  display: grid;
  gap: 18px;
}

.playbook-chapter-card,
.playbook-page,
.playbook-next-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.playbook-chapter-card {
  padding: 24px;
}

.playbook-chapter-card h2 {
  font-size: 30px;
}

.playbook-chapter-card ol {
  margin: 16px 0 22px;
  padding-inline-start: 22px;
  color: #526a71;
}

.playbook-page {
  padding: 26px;
}

.playbook-page-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.playbook-section {
  scroll-margin-top: 120px;
  padding: 18px 0 30px;
}

.playbook-section + .playbook-section {
  border-top: 1px solid var(--line);
}

.playbook-section > p {
  color: #526a71;
  max-width: 820px;
}

.playbook-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.playbook-note {
  border: 1px solid rgba(16, 36, 42, 0.10);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4fbf9);
  padding: 18px;
}

.playbook-note h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.playbook-note p,
.playbook-note li {
  color: #526a71;
}

.playbook-note ul {
  margin: 12px 0 0;
  padding-inline-start: 20px;
}

.playbook-next-box {
  margin-top: 18px;
  padding: 20px;
}

.playbook-next-box p {
  color: #526a71;
}

.playbook-next-box a:not(.button) {
  color: var(--gold);
  font-weight: 900;
}

@media (max-width: 920px) {
  .playbook-shell,
  .playbook-card-grid {
    grid-template-columns: 1fr;
  }

  .playbook-toc {
    position: static;
  }
}


.playbook-chart-container {
  width: 100%;
  margin: 22px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(25, 75, 84, 0.10);
  overflow: hidden;
  padding: 12px;
}

.playbook-chart-container canvas {
  display: block;
  width: 100%;
  height: 500px;
}

.gigo-chart-wrap canvas {
  height: 384px;
}

.playbook-chart-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--ink-2);
  font-weight: 900;
}

.playbook-chart-toggle span:last-child {
  color: var(--gold);
}

.switch-control {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 30px;
  align-items: center;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-control > span {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #18a9c4;
  box-shadow: inset 0 0 0 1px rgba(16,36,42,0.12);
}

.switch-control > span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(16,36,42,0.24);
  transition: transform 0.2s ease;
}

.switch-control input:checked + span {
  background: var(--gold);
}

.switch-control input:checked + span::after {
  transform: translateX(24px);
}

@media (max-width: 560px) {
  .playbook-chart-container canvas {
    height: 360px;
  }

  .gigo-chart-wrap canvas {
    height: 320px;
  }

  .playbook-chart-toggle {
    flex-wrap: wrap;
  }
}


.chart-legend {
  display: grid;
  gap: 9px;
  margin: -4px 0 20px;
}

.chart-legend span {
  display: grid;
  grid-template-columns: 16px auto 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #526a71;
  padding: 10px 12px;
}

.chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.chart-legend strong {
  color: var(--ink);
}
