/* ============================================================
   موري للتوصيل — Mauri Delivery — Stylesheet
   style.css
============================================================ */

:root {
      --green: #00804B;
      --green-dark: #005f37;
      --green-light: #00a862;
      --green-pale: #e6f5ee;
      --white: #ffffff;
      --yellow: #FFD23F;
      --yellow-soft: #fff8dc;
      --gray: #f4f6f5;
      --text-dark: #0d2b1d;
      --text-mid: #2d5a42;
    }

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

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Cairo', sans-serif;
      background: var(--white);
      color: var(--text-dark);
      overflow-x: hidden;
    }

    /* ===== NAV ===== */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 40px;
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(12px);
      border-bottom: 2px solid var(--green-pale);
      box-shadow: 0 2px 20px rgba(0,128,75,0.08);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: 'Tajawal', sans-serif;
      font-weight: 800;
      font-size: 1.5rem;
      color: var(--green);
      text-decoration: none;
    }

    .nav-logo-img {
      height: 40px;
      width: auto;
      object-fit: contain;
      /* الشعار أبيض على خلفية سوداء — نعكس الألوان ليظهر على الخلفية البيضاء للنافبار */
      filter: invert(1) sepia(1) saturate(4) hue-rotate(100deg) brightness(0.55);
      transition: filter 0.2s;
    }
    .nav-logo-img:hover {
      filter: invert(1) sepia(1) saturate(6) hue-rotate(110deg) brightness(0.45);
    }

    .nav-links {
      display: flex;
      gap: 30px;
      list-style: none;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--text-mid);
      font-weight: 600;
      font-size: 0.95rem;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--green); }

    .nav-cta {
      background: var(--green);
      color: white;
      padding: 10px 24px;
      border-radius: 50px;
      font-weight: 700;
      text-decoration: none;
      font-size: 0.9rem;
      transition: all 0.2s;
      box-shadow: 0 4px 14px rgba(0,128,75,0.3);
    }
    .nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

    /* ===== HERO ===== */
    .hero {
      min-height: 100vh;
      background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-light) 100%);
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      padding-top: 80px;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: -60px; left: -60px;
      width: 400px; height: 400px;
      background: rgba(255,255,255,0.04);
      border-radius: 50%;
    }
    .hero::after {
      content: '';
      position: absolute;
      bottom: -80px; right: -80px;
      width: 500px; height: 500px;
      background: rgba(255,210,63,0.08);
      border-radius: 50%;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 60px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 80px 40px;
      position: relative;
      z-index: 2;
    }

    .hero-text h1 {
      font-family: 'Tajawal', sans-serif;
      font-size: clamp(2.4rem, 5vw, 3.8rem);
      font-weight: 800;
      color: white;
      line-height: 1.2;
      margin-bottom: 20px;
    }

    .hero-text h1 span {
      color: var(--yellow);
      display: block;
    }

    .hero-text p {
      font-size: 1.1rem;
      color: rgba(255,255,255,0.88);
      line-height: 1.8;
      margin-bottom: 40px;
      max-width: 460px;
    }

    .hero-btns {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: var(--yellow);
      color: var(--green-dark);
      padding: 14px 32px;
      border-radius: 50px;
      font-weight: 800;
      font-size: 1rem;
      text-decoration: none;
      transition: all 0.25s;
      box-shadow: 0 6px 20px rgba(255,210,63,0.4);
      display: flex; align-items: center; gap: 8px;
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,210,63,0.5); }

    .btn-outline {
      background: rgba(255,255,255,0.1);
      color: white;
      padding: 14px 32px;
      border-radius: 50px;
      font-weight: 700;
      font-size: 1rem;
      text-decoration: none;
      border: 2px solid rgba(255,255,255,0.4);
      transition: all 0.25s;
      display: flex; align-items: center; gap: 8px;
    }
    .btn-outline:hover { background: rgba(255,255,255,0.2); border-color: white; }

    .hero-visual {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
    }

    .hero-card {
      background: white;
      border-radius: 28px;
      padding: 36px;
      box-shadow: 0 30px 80px rgba(0,0,0,0.25);
      width: 340px;
      animation: float 4s ease-in-out infinite;
      position: relative;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }

    .hero-card .card-icon {
      width: 64px; height: 64px;
      background: var(--green-pale);
      border-radius: 20px;
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem;
      margin-bottom: 16px;
    }

    .hero-card h3 {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--green-dark);
      margin-bottom: 8px;
    }

    .hero-card p {
      font-size: 0.9rem;
      color: #888;
      margin-bottom: 20px;
    }

    .card-stat {
      display: flex;
      gap: 16px;
    }

    .stat-item {
      flex: 1;
      text-align: center;
      padding: 12px;
      background: var(--green-pale);
      border-radius: 14px;
    }

    .stat-item .num {
      font-size: 1.4rem;
      font-weight: 900;
      color: var(--green);
    }

    .stat-item .lbl {
      font-size: 0.75rem;
      color: var(--text-mid);
      margin-top: 2px;
    }

    .badge {
      position: absolute;
      top: -16px; left: -16px;
      background: var(--yellow);
      color: var(--green-dark);
      font-weight: 800;
      font-size: 0.8rem;
      padding: 8px 16px;
      border-radius: 50px;
      box-shadow: 0 4px 16px rgba(255,210,63,0.4);
      white-space: nowrap;
    }

    /* ===== SECTION BASE ===== */
    section { padding: 90px 40px; }

    .section-tag {
      display: inline-block;
      background: var(--green-pale);
      color: var(--green);
      font-weight: 700;
      font-size: 0.85rem;
      padding: 6px 18px;
      border-radius: 50px;
      margin-bottom: 16px;
      border: 1.5px solid rgba(0,128,75,0.15);
    }

    .section-title {
      font-family: 'Tajawal', sans-serif;
      font-size: clamp(1.8rem, 3.5vw, 2.6rem);
      font-weight: 800;
      color: var(--text-dark);
      margin-bottom: 14px;
      line-height: 1.3;
    }

    .section-title span { color: var(--green); }

    .section-sub {
      font-size: 1.05rem;
      color: #666;
      line-height: 1.7;
      max-width: 560px;
    }

    .section-header { margin-bottom: 56px; }

    .container { max-width: 1200px; margin: 0 auto; }

    /* ===== ABOUT ===== */
    .about { background: var(--white); }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 70px;
      align-items: center;
    }

    .about-features {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-top: 36px;
    }

    .feature-item {
      display: flex;
      gap: 18px;
      align-items: flex-start;
      padding: 20px;
      background: var(--gray);
      border-radius: 18px;
      transition: all 0.25s;
      border: 1.5px solid transparent;
    }

    .feature-item:hover {
      border-color: var(--green);
      background: var(--green-pale);
      transform: translateX(-4px);
    }

    .feat-icon {
      width: 48px; height: 48px;
      background: var(--green);
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
      flex-shrink: 0;
      color: white;
    }

    .feat-text h4 {
      font-weight: 700;
      font-size: 1rem;
      margin-bottom: 4px;
      color: var(--text-dark);
    }

    .feat-text p { font-size: 0.88rem; color: #666; line-height: 1.5; }

    .about-visual {
      position: relative;
    }

    .about-map {
      background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
      border-radius: 28px;
      height: 420px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 6rem;
      position: relative;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,128,75,0.25);
    }

    .about-map::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .about-map .map-content {
      text-align: center;
      color: white;
      position: relative;
    }

    .about-map .map-content p {
      font-size: 1.1rem;
      font-weight: 600;
      opacity: 0.9;
      margin-top: 8px;
    }

    .floating-info {
      position: absolute;
      bottom: -20px; right: -20px;
      background: white;
      padding: 18px 24px;
      border-radius: 20px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.12);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .floating-info .fi-icon {
      width: 44px; height: 44px;
      background: var(--yellow-soft);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
    }

    .floating-info .fi-text .num {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--green);
    }

    .floating-info .fi-text .lbl {
      font-size: 0.78rem;
      color: #888;
    }

    /* ===== HOURS ===== */
    .hours { background: var(--gray); }

    .hours-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 24px;
    }

    .hour-card {
      background: white;
      border-radius: 24px;
      padding: 32px 28px;
      text-align: center;
      border: 2px solid transparent;
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
    }

    .hour-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 4px;
      background: var(--green);
      transform: scaleX(0);
      transition: transform 0.3s;
    }

    .hour-card:hover::before { transform: scaleX(1); }

    .hour-card:hover {
      border-color: var(--green);
      transform: translateY(-6px);
      box-shadow: 0 16px 40px rgba(0,128,75,0.12);
    }

    .hour-card .hc-icon {
      font-size: 2.2rem;
      color: var(--green);
      margin-bottom: 16px;
    }

    .hour-card .day-range {
      font-weight: 700;
      font-size: 1.05rem;
      color: var(--text-dark);
      margin-bottom: 8px;
    }

    .hour-card .time-range {
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--green);
      margin-bottom: 4px;
    }

    .hour-card .status-badge {
      display: inline-block;
      padding: 4px 14px;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .badge-open { background: var(--green-pale); color: var(--green); }
    .badge-closed { background: #ffeaea; color: #d44; }
    .badge-yellow { background: var(--yellow-soft); color: #8a6a00; }

    /* ===== CONTACT ===== */
    .contact { background: white; }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 28px;
    }

    .contact-card {
      border-radius: 24px;
      padding: 36px 28px;
      text-align: center;
      border: 2px solid var(--green-pale);
      transition: all 0.3s;
      cursor: pointer;
      text-decoration: none;
      display: block;
      color: inherit;
    }

    .contact-card:hover {
      border-color: var(--green);
      transform: translateY(-6px);
      box-shadow: 0 20px 50px rgba(0,128,75,0.12);
    }

    .cc-icon-wrap {
      width: 80px; height: 80px;
      border-radius: 24px;
      display: flex; align-items: center; justify-content: center;
      font-size: 2.2rem;
      margin: 0 auto 20px;
    }

    .cc-green { background: var(--green-pale); }
    .cc-wa { background: #e7faf0; }
    .cc-mail { background: var(--yellow-soft); }

    .contact-card h3 {
      font-weight: 700;
      font-size: 1.05rem;
      margin-bottom: 8px;
      color: var(--text-dark);
    }

    .contact-card .cc-value {
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--green);
      direction: ltr;
      display: block;
      margin-bottom: 6px;
    }

    .contact-card .cc-hint {
      font-size: 0.85rem;
      color: #999;
    }

    .cc-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 18px;
      background: var(--green);
      color: white;
      padding: 10px 22px;
      border-radius: 50px;
      font-weight: 700;
      font-size: 0.88rem;
      transition: all 0.2s;
    }

    .contact-card:hover .cc-btn { background: var(--green-dark); }

    .cc-btn-wa {
      background: #25D366;
    }

    .contact-card:hover .cc-btn-wa { background: #1da851; }

    /* ===== APP ===== */
    .app-section {
      background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
      position: relative;
      overflow: hidden;
    }

    .app-section::before {
      content: '';
      position: absolute;
      top: -100px; right: -100px;
      width: 500px; height: 500px;
      background: rgba(255,255,255,0.04);
      border-radius: 50%;
    }

    .app-section::after {
      content: '';
      position: absolute;
      bottom: -80px; left: -80px;
      width: 400px; height: 400px;
      background: rgba(255,210,63,0.06);
      border-radius: 50%;
    }

    .app-inner {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 60px;
    }

    .app-text .section-tag { background: rgba(255,255,255,0.15); color: white; border-color: rgba(255,255,255,0.2); }
    .app-text .section-title { color: white; }
    .app-text .section-title span { color: var(--yellow); }
    .app-text .section-sub { color: rgba(255,255,255,0.82); }

    .app-store-btns {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      margin-top: 36px;
    }

    .store-btn {
      display: flex;
      align-items: center;
      gap: 14px;
      background: white;
      padding: 14px 26px;
      border-radius: 18px;
      text-decoration: none;
      transition: all 0.25s;
      box-shadow: 0 6px 24px rgba(0,0,0,0.15);
      min-width: 200px;
    }

    .store-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.2); }

    .store-btn .sb-icon { font-size: 2rem; }

    .store-btn .sb-text .sb-small {
      font-size: 0.72rem;
      color: #888;
      display: block;
    }

    .store-btn .sb-text .sb-big {
      font-size: 1rem;
      font-weight: 800;
      color: var(--text-dark);
      display: block;
    }

    .app-phones {
      display: flex;
      justify-content: center;
      gap: 24px;
      align-items: flex-end;
    }

    .phone-mock {
      border-radius: 28px;
      overflow: hidden;
      box-shadow: 0 20px 50px rgba(0,0,0,0.35);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      width: 160px;
      flex-shrink: 0;
      border: 3px solid rgba(255,255,255,0.15);
    }

    .phone-mock--center {
      transform: translateY(-24px) scale(1.05);
      box-shadow: 0 30px 70px rgba(0,0,0,0.45);
      z-index: 2;
      border-color: rgba(255,255,255,0.3);
    }

    .phone-mock:hover { transform: translateY(-10px); }
    .phone-mock--center:hover { transform: translateY(-30px) scale(1.05); }

    .phone-screenshot {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 0;
    }

    /* ===== FOOTER ===== */
    footer {
      background: var(--text-dark);
      color: white;
      padding: 50px 40px 30px;
    }

    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 30px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      margin-bottom: 30px;
      flex-wrap: wrap;
      gap: 24px;
    }

    .footer-logo {
      display: flex;
      align-items: center;
    }

    .footer-logo-img {
      height: 44px;
      width: auto;
      object-fit: contain;
      /* الشعار أبيض يظهر مباشرة على خلفية الفوتر الداكنة */
      filter: brightness(0) invert(1);
    }

    .footer-links {
      display: flex;
      gap: 28px;
      list-style: none;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: rgba(255,255,255,0.65);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.2s;
    }

    .footer-links a:hover { color: var(--yellow); }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.45); }

    .footer-bottom .made-with {
      font-size: 0.82rem;
      color: rgba(255,255,255,0.35);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* ===== SCROLL ANIMATIONS ===== */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }


    /* ===== MAP ===== */
    .map-section {
      margin-top: 56px;
    }

    .map-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 20px;
    }

    .map-title-wrap {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .map-icon-badge {
      width: 52px; height: 52px;
      background: var(--green-pale);
      border-radius: 16px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem;
      color: var(--green);
      flex-shrink: 0;
    }

    .map-title-wrap h3 {
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--text-dark);
      margin-bottom: 2px;
    }

    .map-title-wrap p {
      font-size: 0.88rem;
      color: #888;
    }

    .map-open-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--green);
      color: white;
      padding: 10px 22px;
      border-radius: 50px;
      font-weight: 700;
      font-size: 0.88rem;
      text-decoration: none;
      transition: all 0.2s;
      box-shadow: 0 4px 14px rgba(0,128,75,0.25);
      white-space: nowrap;
    }

    .map-open-btn:hover {
      background: var(--green-dark);
      transform: translateY(-2px);
    }

    .map-frame-wrap {
      border-radius: 24px;
      overflow: hidden;
      border: 2px solid var(--green-pale);
      box-shadow: 0 16px 48px rgba(0,128,75,0.1);
    }

    .map-frame-wrap iframe {
      display: block;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      nav { padding: 14px 20px; }
      .nav-links { display: none; }
      section { padding: 60px 20px; }

      .hero-grid,
      .about-grid,
      .app-inner { grid-template-columns: 1fr; }

      .hero-visual { display: none; }
      .hero-grid { padding: 60px 20px; }

      .about-map { height: 280px; }
      .floating-info { right: 0; bottom: -16px; }

      .app-phones { display: none; }

      footer { padding: 40px 20px 24px; }
      .footer-top { flex-direction: column; }
      .footer-bottom { flex-direction: column; text-align: center; }
    }