/**
 * دليفري مول — Landing Page مستقلة
 * متوافقة مع هوية المنصة (أخضر/تركواز + Lato)
 */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap");

:root {
  --dm-base-1: #00e77b;
  --dm-base-rgb: 0, 231, 123;
  --dm-base-2: #04f485;
  --dm-base-rgb-2: 4, 244, 133;
  --dm-accent: #107980;
  --dm-header-bg: #f2f8f5;
  --dm-title: #2f3934;
  --dm-body: #717c77;
  --dm-border: #e5e5e5;
  --dm-section-bg: #fcfcfc;
  --dm-white: #ffffff;
  --dm-font: "Lato", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--dm-font);
  color: var(--dm-body);
  background: var(--dm-white);
  line-height: 1.7;
}

body.dm-nav-open {
  overflow: hidden;
}

a {
  color: var(--dm-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--dm-base-1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dm-title);
  font-weight: 800;
  line-height: 1.35;
}

/* ----- Header ----- */
.dm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dm-header-bg);
  border-bottom: 1px solid var(--dm-border);
}

.dm-navbar {
  padding: 0.65rem 0;
}

.dm-navbar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dm-logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.dm-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.dm-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.dm-menu a {
  color: var(--dm-title);
  font-weight: 700;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.dm-menu a:hover,
.dm-menu a.active {
  color: var(--dm-accent);
  border-bottom-color: var(--dm-base-1);
}

.dm-nav-toggle {
  margin-inline-start: auto;
  background: transparent;
  border: 0;
  width: 42px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.dm-nav-toggle span {
  display: block;
  height: 3px;
  background: var(--dm-title);
  border-radius: 2px;
}

@media (min-width: 992px) {
  .dm-nav-toggle {
    display: none;
  }

  .dm-nav {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .dm-nav {
    flex-basis: 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .dm-nav.is-open {
    max-height: 480px;
  }

  .dm-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    width: 100%;
  }

  .dm-menu a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--dm-border);
  }
}

/* Buttons */
.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.dm-btn--primary {
  background: linear-gradient(135deg, var(--dm-base-1), var(--dm-base-2));
  color: #063a24 !important;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(var(--dm-base-rgb), 0.35);
}

.dm-btn--primary:hover {
  color: #042818 !important;
}

.dm-btn--outline {
  background: transparent;
  color: var(--dm-accent) !important;
  border-color: var(--dm-accent);
}

.dm-btn--outline:hover {
  background: rgba(var(--dm-base-rgb), 0.08);
}

/* Hero */
.dm-hero {
  padding: 2.5rem 0 1rem;
  text-align: center;
}

.dm-hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.dm-hero-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin-bottom: 1rem;
}

.dm-hero-logo {
  max-width: 200px;
  margin: 0.5rem auto 1rem;
}

.dm-hero-text {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.dm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.dm-hero-banner {
  margin-top: 2rem;
  padding: 0 0.5rem;
}

.dm-hero-banner img {
  max-width: min(920px, 100%);
  height: auto;
}

/* Sections */
.dm-section {
  padding: 3.5rem 0;
}

.dm-section--features {
  background: var(--dm-section-bg);
}

.dm-section--download {
  background: linear-gradient(
    180deg,
    rgba(var(--dm-base-rgb), 0.06),
    var(--dm-white)
  );
}

.dm-section--contact {
  padding-bottom: 4rem;
}

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

.dm-section-head h2 {
  margin-bottom: 0.5rem;
}

.dm-feature-card {
  background: var(--dm-white);
  border: 1px solid var(--dm-border);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dm-feature-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(var(--dm-base-rgb), 0.45);
}

.dm-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.dm-feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.dm-download-block {
  margin-top: 1rem;
}

.dm-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.dm-app-badges a img {
  height: 40px;
  width: auto;
}

.dm-contact-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--dm-section-bg);
  border: 1px solid var(--dm-border);
  border-radius: 16px;
  padding: 2rem;
}

.dm-list-plain {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.dm-list-plain li {
  margin-bottom: 0.5rem;
}

/* Article pages */
.dm-page-hero {
  padding: 2.5rem 0 1rem;
  text-align: center;
  background: var(--dm-header-bg);
  border-bottom: 1px solid var(--dm-border);
}

.dm-page-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.dm-article {
  padding: 2.5rem 0 4rem;
}

.dm-article .dm-prose {
  max-width: 800px;
  margin: 0 auto;
}

.dm-prose h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.dm-prose h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.dm-prose p,
.dm-prose li {
  font-size: 1rem;
}

.dm-prose ul {
  padding-inline-start: 1.25rem;
}

/* Footer */
.dm-footer {
  color: #c8d4ce;
}

.dm-newsletter {
  background: linear-gradient(135deg, #0d4a4f 0%, #0a3538 100%);
  padding: 3rem 0;
  color: var(--dm-white);
}

.dm-newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.dm-newsletter .title,
.dm-newsletter h3 {
  color: var(--dm-white);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.dm-newsletter-sub {
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.dm-input-group {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.dm-input-group .form-control {
  flex: 1 1 220px;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid var(--dm-border);
  padding: 0.65rem 1.1rem;
  font-family: var(--dm-font);
}

.dm-newsletter-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}

.dm-footer-main {
  background: #1a2f2a;
  padding: 3rem 0 1.5rem;
}

.dm-footer-title {
  color: var(--dm-white);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.dm-footer-intro {
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.dm-social {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dm-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.dm-social a:hover {
  background: rgba(var(--dm-base-rgb), 0.35);
}

.dm-social img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.dm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dm-footer-links li {
  margin-bottom: 0.5rem;
}

.dm-footer-links a {
  color: #b8c9c2;
}

.dm-footer-links a:hover {
  color: var(--dm-base-2);
}

.dm-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dm-contact-list li {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.dm-contact-list a {
  color: #b8c9c2;
}

.dm-contact-list a:hover {
  color: var(--dm-base-2);
}

.dm-contact-icon {
  flex-shrink: 0;
}

.dm-copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #8fa39a;
}

.dm-app-badges-wrap .dm-app-badges {
  justify-content: flex-start;
}

code {
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
