/* ===== Cloud SaaS | كلاود ساس — Marketing Site Styles ===== */

/* لوحة الألوان مطابقة لتطبيق Flutter (sassumer_app) — انظر lib/theme/app_colors.dart */
:root {
  --color-bg: #f0f2f5;         /* AppColors.scaffoldBackground */
  --color-bg-alt: #f8f9fb;     /* AppColors.cardBackground */
  --color-surface: #ffffff;
  --color-surface-alt: #ffffff;
  --color-border: #e2e5ea;     /* AppColors.cardBorder */
  --color-text: #1f2430;       /* AppColors.textPrimary */
  --color-text-muted: #6b7280; /* AppColors.textSecondary */
  --color-primary: #2563eb;    /* AppColors.loginPrimaryBlue */
  --color-primary-hover: #1d4ed8;
  --color-primary-soft: #dbeafe; /* AppColors.dashboardBlueTint */
  --color-accent: #16a34a;     /* AppColors.dashboardGreenAccent */
  --color-white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-md: 0 10px 30px rgba(31, 36, 48, 0.08);
  --shadow-sm: 0 4px 14px rgba(31, 36, 48, 0.06);

  --container-width: 1160px;
  --font-base: "Tajawal", "Segoe UI", "Tahoma", "Cairo", "Noto Sans Arabic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(22, 163, 74, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
}

.logo-icon {
  color: var(--color-primary);
  font-size: 1.3rem;
}

.logo-text-ar {
  color: var(--color-text-muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline-start: auto;
  margin-inline-end: 24px;
}

.main-nav a {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-text);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 30px 0 36px;
  flex-wrap: wrap;
}

/* ---------- Logos strip ---------- */

.logos-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 22px 0;
}

.logos-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.logos-list {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-weight: 700;
  color: var(--color-text);
}

/* ---------- Sections ---------- */

.section {
  padding: 90px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  margin-bottom: 0;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 1.7rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  border-radius: 50%;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- Pricing ---------- */

.pricing-table-wrap {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}

.pricing-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 6px;
  text-align: center;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table thead th {
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 800;
  font-size: 0.72rem;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: var(--color-primary-soft);
}

.pricing-table td.pricing-tier {
  font-weight: 800;
  color: var(--color-primary);
}

.pricing-note {
  text-align: center;
  margin: 20px 0 0;
  font-size: 0.9rem;
}

/* ---------- Services ---------- */

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

.service-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  border-inline-start: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 560px;
  margin: 0 auto 8px;
  font-size: 0.9rem;
}

/* ---------- Contact card ---------- */

.contact-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 22px;
}

.contact-card-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-contact-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */

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

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset-inline: 0;
    top: 68px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

}

@media (max-width: 480px) {
  .pricing-table th,
  .pricing-table td {
    padding: 8px 2px;
    font-size: 0.62rem;
  }

  .pricing-table thead th {
    font-size: 0.56rem;
  }
}
