/* =============================================================================
   OneMawrid — shared design system
   Palette matches the HR app: gold (#D4AF37 / #FFD700) + indigo-blue
   (#1a237e -> #303f9f) gradients, white background, dark text. RTL, Cairo.
   ============================================================================= */

:root {
  --gold:        #D4AF37;
  --gold-light:  #FFD700;
  --gold-dark:   #B8941F;
  --blue-dark:   #1a237e;
  --blue:        #303f9f;
  --blue-light:  #5c6bc0;
  --white:       #ffffff;
  --light-gray:  #f8f9fa;
  --text:        #2c3340;
  --text-muted:  #5b6472;
  --border:      #e6e8ef;
  --max:         1120px;
  --brand-grad:  linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  --gold-grad:   linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: filter .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold-grad);
  color: var(--blue-dark);
}
.btn-gold:hover { filter: brightness(.94); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }

/* ===== Header & navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-grad);
  box-shadow: 0 2px 10px rgba(26, 35, 126, .25);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { text-decoration: none; }
.brand-mark {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: .5px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color .2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.btn-login { padding: 9px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: var(--brand-grad);
  color: var(--white);
  padding: 96px 0 104px;
  text-align: center;
}
.hero-title {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: rgba(255, 255, 255, .88);
  max-width: 660px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--light-gray); }
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  color: var(--blue-dark);
  margin-bottom: 22px;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--gold-grad);
  border-radius: 4px;
  margin: 14px auto 0;
}
.section-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.section-lead p + p { margin-top: 16px; }

/* ===== Cards (feature / generic) ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 14px rgba(26, 35, 126, .07);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.feature-card {
  border-top: 4px solid var(--gold);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(26, 35, 126, .14);
}
.feature-icon { font-size: 2.4rem; display: block; margin-bottom: 14px; }
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.feature-card p { color: var(--text-muted); font-size: .98rem; }

/* ===== Products grid (home) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.product-card {
  display: block;
  border-top: 4px solid var(--gold);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(26, 35, 126, .14);
}
.product-icon { font-size: 2.6rem; display: block; margin-bottom: 14px; }
.product-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.product-tagline { color: var(--gold-dark); font-weight: 700; margin-bottom: 10px; }
.product-desc { color: var(--text-muted); font-size: 1rem; }
.product-cta {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 700;
}
.product-card--soon {
  border-top: 4px dashed var(--border);
  background: var(--light-gray);
  text-align: center;
  cursor: default;
}
.product-card--soon h3 { color: var(--text-muted); }
.product-card--soon .product-icon { opacity: .6; }

/* ===== Value props (home) ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.value-card { text-align: center; }
.value-icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.value-card p { color: var(--text-muted); font-size: .96rem; }

/* ===== Screenshot frames (product page) ===== */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.shot { margin: 0; }
.shot-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(26, 35, 126, .10);
}
.shot-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  background: var(--brand-grad);
}
.shot-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.shot-body {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--light-gray), var(--light-gray) 12px, #f1f3f8 12px, #f1f3f8 24px);
}
.shot-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 22px;
}
.shot-img { display: block; width: 100%; height: auto; }
.shot figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: .98rem;
}

/* ===== Pricing ===== */
.is-hidden { display: none !important; }
.pricing-wrap { max-width: 560px; margin: 40px auto 0; }
.price-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 28px;
}
.price-toggle-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: .98rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.price-toggle-btn.active {
  background: var(--brand-grad);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(26, 35, 126, .25);
}
.price-toggle-btn .best {
  font-size: .72rem;
  background: var(--gold-grad);
  color: var(--blue-dark);
  padding: 2px 8px;
  border-radius: 999px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--gold);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(26, 35, 126, .12);
}
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.price-num { font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 800; color: var(--blue-dark); line-height: 1; }
.price-cur { font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.price-period { color: var(--text-muted); margin-top: 8px; font-size: 1.02rem; }
.price-monthly { color: var(--blue); font-weight: 700; margin-top: 6px; }
.price-save {
  display: inline-block;
  margin-top: 14px;
  background: rgba(212, 175, 55, .16);
  color: var(--gold-dark);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
}
.price-features {
  list-style: none;
  text-align: start;
  margin: 26px 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.price-features li {
  position: relative;
  padding-inline-start: 30px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-grad);
  color: var(--blue-dark);
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
}
.price-cta { width: 100%; }
.price-note { text-align: center; color: var(--text-muted); font-size: .92rem; margin-top: 18px; }

/* ===== Tax calculator ===== */
.calc-wrap { max-width: 560px; margin: 40px auto 0; }
.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 8px 24px rgba(26, 35, 126, .10);
}
.calc-field { margin-bottom: 20px; text-align: start; }
.calc-field label {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.calc-opt { font-weight: 400; color: var(--text-muted); font-size: .9rem; }
.calc-hint { margin-top: 8px; color: var(--text-muted); font-size: .85rem; line-height: 1.6; }
.calc-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--text);
  background: var(--light-gray);
  transition: border-color .2s ease, background-color .2s ease;
}
.calc-field input:focus {
  outline: none;
  border-color: var(--blue-light);
  background: var(--white);
}
.calc-submit { width: 100%; margin-top: 4px; }

.calc-result { margin-top: 22px; }
.calc-net {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.calc-net-label { color: var(--text-muted); font-size: 1rem; }
.calc-net-value { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; color: var(--blue-dark); }
.calc-rows { display: flex; flex-direction: column; gap: 10px; }
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.02rem;
}
.calc-row span:first-child { color: var(--text-muted); }
.calc-row span:last-child { font-weight: 700; color: var(--text); }
.calc-row--tax span:last-child { color: var(--gold-dark); }
.calc-row--info span:first-child { font-size: .9rem; }
.calc-row--info span:last-child { color: var(--text-muted); font-weight: 600; }
.calc-note {
  background: rgba(212, 175, 55, .14);
  color: var(--gold-dark);
  font-size: .85rem;
  padding: 6px 12px;
  border-radius: 6px;
}

.calc-breakdown { margin-top: 18px; }
.calc-breakdown summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
  padding: 8px 0;
}
.calc-breakdown table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: .92rem;
}
.calc-breakdown th,
.calc-breakdown td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: start;
}
.calc-breakdown th { background: var(--light-gray); color: var(--blue-dark); }
.calc-error { color: #b00020; font-weight: 700; text-align: center; }
.calc-disclaimer {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  text-align: center;
}

/* ===== CTA band (e.g. free tax-calculator teaser) ===== */
.cta-band {
  background: var(--brand-grad);
  color: var(--white);
  padding: 56px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band-text h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 8px; }
.cta-band-text p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; }

/* ===== Contact ===== */
.contact { text-align: center; }
.btn-whatsapp {
  margin-top: 30px;
  font-size: 1.15rem;
  padding: 15px 36px;
}
.wa-icon { font-size: 1.35rem; }
.contact-hours { margin-top: 18px; color: var(--text-muted); font-size: .95rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--brand-grad);
  color: rgba(255, 255, 255, .85);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .95rem;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--gold-light); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    inset-inline-start: 0;
    inset-inline-end: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--brand-grad);
    padding: 8px 0 16px;
    box-shadow: 0 8px 16px rgba(26, 35, 126, .25);
  }
  .site-nav.open { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links a {
    display: block;
    padding: 12px 24px;
  }
  .btn-login { margin: 10px 24px 0; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .hero { padding: 72px 0 80px; }
  .section { padding: 56px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
