/* ============================================
   Tooona POS — Shared Stylesheet
   ============================================ */

:root {
  --green-900: #0A2E22;
  --green-800: #0D3B2B;
  --green-700: #114A36;
  --green-600: #166143;
  --gold-500: #C9A227;
  --gold-400: #D9B84A;
  --gold-300: #E8CE7A;
  --cream: #FAF7EF;
  --ink: #101713;
  --muted: #5B6B61;
  --line: #E4DEC9;
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

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

h1, h2, h3, h4 { font-family: 'Cairo', 'Tajawal', sans-serif; margin: 0; }

p { margin: 0; }

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

::selection { background: var(--gold-300); color: var(--green-900); }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--green-900);
  box-shadow: 0 8px 24px rgba(201,162,39,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-dark {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-800);
}
.btn-block { width: 100%; }

/* ===== Pills / tags ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  width: fit-content;
}
.section-tag {
  color: var(--gold-500);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
}
.divider-gold {
  width: 56px;
  height: 4px;
  background: var(--gold-500);
  border-radius: 4px;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,247,239,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(13,59,43,.3);
  flex-shrink: 0;
}
.brand-mark span { color: var(--gold-400); font-weight: 900; font-size: 20px; font-family: 'Cairo', sans-serif; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-weight: 900; font-size: 19px; color: var(--green-900); }
.brand-text .name .accent { color: var(--gold-500); }
.brand-text .tag { font-size: 10px; color: var(--muted); letter-spacing: .5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-900);
}
.nav-links a.active { color: var(--gold-500); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--green-900);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    right: 0; left: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 20px 32px;
    gap: 18px;
    z-index: 60;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201,162,39,.18), transparent),
    linear-gradient(165deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  opacity: .08;
  background-image: repeating-linear-gradient(45deg, var(--gold-400) 0 2px, transparent 2px 40px);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 32px 120px;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  flex-wrap: wrap;
}
.hero-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 28px; min-width: 320px; }
.hero-copy h1 { font-size: 52px; line-height: 1.25; color: var(--white); font-weight: 800; }
.hero-copy h1 .accent { color: var(--gold-400); }
.hero-copy p.lead { font-size: 18px; line-height: 1.9; color: rgba(255,255,255,.8); max-width: 560px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 12px; flex-wrap: wrap; }
.hero-stats .num { color: var(--gold-400); font-size: 28px; font-weight: 900; }
.hero-stats .label { color: rgba(255,255,255,.65); font-size: 13px; }

.page-hero {
  background: linear-gradient(165deg, var(--green-900) 0%, var(--green-800) 100%);
  padding: 72px 32px;
}
.page-hero .section-tag { color: var(--gold-400); }
.page-hero h1 { color: var(--white); font-size: 40px; margin-top: 10px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 16px; margin-top: 14px; max-width: 640px; }

/* ===== Dashboard mock card (home) ===== */
.dash-card {
  width: 100%; max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.dash-head {
  background: var(--green-900);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-head span.title { color: var(--white); font-weight: 700; font-size: 14px; }
.dash-head span.live {
  color: var(--gold-400); font-size: 12px;
  background: rgba(201,162,39,.15);
  padding: 4px 10px; border-radius: 999px;
}
.dash-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.dash-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.dash-tile { background: var(--cream); border-radius: 12px; padding: 14px; }
.dash-tile .tile-label { font-size: 12px; color: var(--muted); }
.dash-tile .tile-value { font-size: 22px; font-weight: 800; color: var(--green-800); }
.dash-chart { background: var(--cream); border-radius: 12px; padding: 16px; }
.dash-chart .chart-label { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.bars > div { flex: 1; border-radius: 4px; background: var(--green-600); }
.bars > div.peak { background: var(--gold-500); }
.dash-license {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--green-900); border-radius: 12px; padding: 14px 16px;
}
.dash-license span.lbl { color: var(--white); font-size: 13px; }
.dash-license span.val { color: var(--gold-400); font-size: 13px; font-weight: 800; }

/* ===== Trust bar ===== */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-bar .container {
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.trust-bar .lead { color: var(--muted); font-size: 14px; font-weight: 700; }
.trust-items { display: flex; gap: 32px; flex-wrap: wrap; color: var(--green-800); font-weight: 800; opacity: .75; font-size: 15px; }

/* ===== Generic sections ===== */
section.block { padding: 100px 32px; }
section.block.tight { padding: 72px 32px; }
.block-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-cream { background: var(--cream); }
.block-green { background: var(--green-900); position: relative; overflow: hidden; }
.block-green::before {
  content: "";
  position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(circle at 20% 20%, var(--gold-400), transparent 40%);
}

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin: 0 auto 48px; text-align: center; align-items: center; }
.section-head h2 { font-size: 36px; color: var(--green-900); line-height: 1.4; }
.section-head p { font-size: 16px; color: var(--muted); line-height: 1.9; }
.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark p { color: rgba(255,255,255,.7); }
.section-head.on-dark .section-tag { color: var(--gold-400); }

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 38px; }
  section.block { padding: 64px 20px; }
  .container { padding: 0 20px; }
}

/* ===== Feature / icon cards ===== */
.icon-tile {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400); font-size: 22px; font-weight: 900;
}
.feature-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-card h3 { font-size: 19px; color: var(--green-900); }
.feature-card p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* ===== Stat cards (about) ===== */
.stat-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.stat-card .num { font-size: 30px; font-weight: 900; color: var(--gold-500); }
.stat-card .label { color: var(--muted); font-size: 14px; }
.offset-down { margin-top: 28px; }

/* ===== Solutions industry tiles ===== */
.industry-tile {
  border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.industry-tile.dark { background: var(--green-900); color: var(--white); }
.industry-tile .idx { font-weight: 900; font-size: 15px; }
.industry-tile.dark .idx { color: var(--gold-400); }
.industry-tile:not(.dark) .idx { color: var(--gold-500); }
.industry-tile h3 { font-size: 17px; }
.industry-tile.dark h3 { color: var(--white); }
.industry-tile:not(.dark) h3 { color: var(--green-900); }
.industry-tile p { font-size: 13.5px; line-height: 1.8; }
.industry-tile.dark p { color: rgba(255,255,255,.7); }
.industry-tile:not(.dark) p { color: var(--muted); }

/* ===== Case study cards ===== */
.case-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.case-card .tag { color: var(--gold-400); font-weight: 800; font-size: 13px; }
.case-card h3 { color: var(--white); font-size: 19px; }
.case-card p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }
.case-metrics { display: flex; gap: 18px; margin-top: 6px; }
.case-metrics .m-val { color: var(--gold-400); font-size: 22px; font-weight: 900; }
.case-metrics .m-label { color: rgba(255,255,255,.55); font-size: 12px; }
.case-disclaimer { color: rgba(255,255,255,.55); font-size: 13px; max-width: 360px; }

/* ===== Pricing ===== */
.price-card { padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.price-card.featured {
  background: var(--green-900); border-radius: var(--radius-lg);
  position: relative; box-shadow: 0 24px 50px rgba(13,59,43,.35);
}
.price-card.featured .badge {
  position: absolute; top: -14px; right: 28px;
  background: var(--gold-500); color: var(--green-900);
}
.price-card h3 { font-size: 20px; color: var(--green-900); }
.price-card.featured h3 { color: var(--white); }
.price-card .desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.price-card.featured .desc { color: rgba(255,255,255,.7); }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 6px 0; }
.price-amount .num { font-size: 34px; font-weight: 900; color: var(--green-900); }
.price-card.featured .price-amount .num { color: var(--gold-400); }
.price-amount .unit { font-size: 14px; color: var(--muted); }
.price-card.featured .price-amount .unit { color: rgba(255,255,255,.7); }
.price-rule { height: 1px; background: var(--line); }
.price-card.featured .price-rule { background: rgba(255,255,255,.15); }
.price-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink); }
.price-card.featured .price-list { color: var(--white); }

/* ===== Why-us icon list ===== */
.why-item { display: flex; flex-direction: column; gap: 10px; }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--cream); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500); font-weight: 900;
}
.why-item h3 { font-size: 16.5px; color: var(--green-900); }
.why-item p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  padding: 80px 32px;
}
.cta-band .inner {
  max-width: 900px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.cta-band h2 { font-size: 32px; color: var(--white); }
.cta-band p { color: rgba(255,255,255,.75); font-size: 16px; max-width: 560px; }

/* ===== Contact ===== */
.contact-wrap { display: flex; gap: 56px; flex-wrap: wrap; }
.contact-info { flex: 1 1 0; min-width: 300px; display: flex; flex-direction: column; gap: 18px; }
.contact-info h2 { font-size: 32px; color: var(--green-900); }
.contact-info p { font-size: 15px; color: var(--muted); line-height: 1.9; max-width: 420px; }
.contact-rows { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-row .ico {
  width: 38px; height: 38px; border-radius: 10px; background: var(--green-900);
  display: flex; align-items: center; justify-content: center; color: var(--gold-400);
  flex-shrink: 0;
}
.contact-row span.val { color: var(--ink); font-size: 14.5px; }

.contact-form { flex: 1 1 0; min-width: 320px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.form-row2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); font-family: inherit; font-size: 14px;
  background: var(--cream); color: var(--ink); width: 100%;
}
.contact-form select { color: var(--muted); }
.contact-form textarea { resize: none; }
.form-status { font-size: 14px; color: var(--green-700); font-weight: 700; display: none; }
.form-status.show { display: block; }

@media (max-width: 620px) {
  .form-row2 { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer { background: var(--green-900); padding: 56px 32px 28px; }
.footer-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.footer-brand .row { display: flex; align-items: center; gap: 10px; }
.footer-brand .mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  display: flex; align-items: center; justify-content: center;
}
.footer-brand .mark span { color: var(--green-900); font-weight: 900; }
.footer-brand .name { color: var(--white); font-weight: 900; font-size: 17px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 13.5px; line-height: 1.9; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .head { color: var(--gold-400); font-weight: 800; font-size: 14px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: 13.5px; }
.footer-rule { height: 1px; background: rgba(255,255,255,.1); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom span { color: rgba(255,255,255,.45); font-size: 12.5px; }

/* ===== Utility ===== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
