/*
  styles.css – Shared stylesheet for policy pages, About page, and injected nav/footer.
  Does NOT affect index.html which has its own inline styles.
*/

/* ── Google Fonts ────────────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&display=swap");

/* ── CSS Variables ───────────────────────────────────────────────────────── */
:root {
  --accent: #2563EB;
  --accent-h: #1e50c8;
  --bg: #F9FAFB;
  --white: #fff;
  --text: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(37, 99, 235, .08);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-btn: 50px;
  --transition: .22s ease;
  --font: "Readex Pro", sans-serif;
}

/* ── Reset / Base ────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: box-shadow var(--transition);
}

#main-nav.nav-scrolled {
  box-shadow: 0 2px 16px rgba(37, 99, 235, .08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

#nav-menu a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

#nav-menu a:hover,
#nav-menu a.active {
  color: var(--accent);
  background: rgba(37, 99, 235, .07);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-radius: var(--radius-btn) !important;
  padding: 8px 18px !important;
}

.nav-cta:hover {
  background: var(--accent-h) !important;
}

#menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-brand-name {
    display: none;
  }

  #menu-toggle {
    display: block;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  }

  #nav-menu.open {
    display: flex;
  }

  #nav-menu li {
    width: 100%;
  }

  #nav-menu a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
  }

  .nav-cta {
    margin: 8px 20px !important;
    display: inline-block;
    border-radius: var(--radius-btn) !important;
    text-align: center;
  }
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: #111827;
  color: #D1D5DB;
  padding-block: 56px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: .9rem;
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.75;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.footer-col h4 {
  font-size: .95rem;
  font-weight: 600;
  color: #F9FAFB;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: .9rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1F2937;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  color: #6B7280;
}

.footer-bottom a {
  color: #6B7280;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #D1D5DB;
}

/* ── FLOATING BUTTONS ────────────────────────────────────────────────────── */
.float-btn {
  position: fixed;
  bottom: 28px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity .3s ease;
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
}

#float-wa {
  left: 28px;
  background: #25D366;
  color: #fff;
}

#float-top {
  right: 28px;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

#float-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── POLICY PAGE CONTENT ─────────────────────────────────────────────────── */
.policy-page {
  max-width: 780px;
  margin-inline: auto;
  padding: 52px 20px 72px;
}

.policy-page h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.policy-page .last-updated {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}

.policy-page h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 10px;
}

.policy-page p {
  font-size: .95rem;
  color: #374151;
  margin-bottom: 14px;
  line-height: 1.8;
}

.policy-page ul {
  padding-right: 24px;
  margin-bottom: 18px;
}

.policy-page ul li {
  font-size: .93rem;
  color: #374151;
  margin-bottom: 7px;
  line-height: 1.75;
}

/* Company info box */
.company-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-right: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.company-box dl {
  display: grid;
  gap: 10px;
}

.company-box dt {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.company-box dt:first-child {
  margin-top: 0;
}

.company-box dd {
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 0;
}

.company-box dd.small {
  font-weight: 400;
  font-size: .9rem;
}

/* Contact info snippet */
.contact-snippet {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-snippet a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: .9rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.contact-snippet a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Btn */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-h);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

/* ── Section label (badge) ──────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  background: rgba(37, 99, 235, .1);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
  letter-spacing: .05em;
}

/* ── SERVICES / PRODUCTS SYSTEM ─────────────────────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  padding: 56px 24px 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  font-size: .95rem;
}

/* Grids */
.services-grid,
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

@media (max-width: 640px) {

  .services-grid,
  .svc-grid {
    grid-template-columns: 1fr;
  }
}

/* Service Card */
.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.svc-card:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, .12);
  transform: translateY(-3px);
}

.svc-card__head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.svc-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

.svc-badge--digital {
  background: #EFF6FF;
  color: #1D4ED8;
}

.svc-badge--service {
  background: #F0FDF4;
  color: #166534;
}

.svc-badge--sector {
  background: #FFF7ED;
  color: #92400E;
}

.svc-badge--featured {
  background: var(--accent);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .2);
}

.svc-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.svc-card__includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 0;
}

.svc-card__includes li {
  font-size: .88rem;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.svc-card__includes li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.svc-card__footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.svc-price-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.svc-price-currency {
  font-size: .85rem;
  color: var(--muted);
  margin-right: 4px;
}

.svc-card__actions {
  display: flex;
  gap: 8px;
}

/* Details Page Specifics */
.svc-wrap {
  max-width: 900px;
  margin: 48px auto 80px;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .svc-wrap {
    grid-template-columns: 1fr;
  }
}

.svc-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
  padding: 32px;
}

.svc-info h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.deliverable-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* Skeletons */
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sk {
  background: #f3f4f6;
  border-radius: 4px;
  animation: pulse 1.4s ease infinite;
}

.sk-badge {
  width: 60px;
  height: 20px;
  border-radius: 50px;
}

.sk-title {
  width: 80%;
  height: 24px;
  margin-bottom: 8px;
}

.sk-line {
  width: 100%;
  height: 14px;
}

.sk-footer {
  width: 100%;
  height: 40px;
  margin-top: auto;
  border-radius: 8px;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

/* Error State */
.svc-error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.svc-error-state p {
  margin-bottom: 16px;
  font-size: .95rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group .required-star {
  color: #EF4444;
}

.form-group input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

/* Filters & Wrappers */
.filters-bar {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-inline: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.filters-bar label {
  font-size: .88rem;
  font-weight: 600;
  color: #374151;
}

.filters-bar select {
  font-family: inherit;
  font-size: .9rem;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition);
}

.filters-bar select:focus {
  outline: none;
  border-color: var(--accent);
}

#clear-filters {
  font-size: .85rem;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.services-wrap {
  max-width: 1200px;
  margin: 32px auto 80px;
  padding-inline: 24px;
}

#no-results {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  display: none;
}

/* Service Info Details */
.svc-info__desc {
  color: #374151;
  margin-bottom: 20px;
  font-size: .95rem;
}

.svc-info__includes {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.svc-info__includes li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .93rem;
  color: #374151;
}

.svc-info__includes li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.svc-price-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-price-box .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.svc-price-box .curr {
  font-size: 1rem;
  color: var(--muted);
}

/* Checkout Card */
.checkout-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
  padding: 28px;
  position: sticky;
  top: 80px;
}

.checkout-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.btn-submit {
  width: 100%;
  height: 50px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-h);
}

.btn-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.checkout-msg {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  display: none;
}

.checkout-msg.show {
  display: block;
}

.checkout-msg--error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.secure-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
}