/* #region Imports & Variables */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Inter:wght@400;700&display=swap');

/* CSS Variables for theme */
:root {
  --primary: #2e8bcc;
  --accent: #41b883;
  --background: #f5f8fa;
  --card: #ffffff;
  --text: #222;
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 2rem;
}
/* #endregion */

/* #region Global Styles */
@media (max-width: 650px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
  }

  .nav a {
    display: block;
    width: 100%;
  }

  .delivery-photo {
    width: 100%;
    height: auto;
  }
}
/* Prevent form inputs from overflowing on mobile */
*, *::before, *::after {
  box-sizing: border-box;
}

input, select, textarea {
  width: 100%;
  max-width: 100%;
  display: block;
}

html, body {
  overflow-x: hidden;
}
/* #endregion */

/* #region Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Cairo', sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  direction: ltr;
  transition: direction 0.4s;
}

body[lang="ar"] {
  font-family: 'Cairo', 'Inter', sans-serif;
  direction: rtl;
}
/* #endregion */

/* #region Header */
.header {
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  gap: 0.6rem;
  padding: 0.2rem 0;
}

.logo img {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: none;
  box-shadow: 0 2px 8px #3476b32a;
  padding: 0;
  display: inline-block;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-right: 0;
}

.logo span {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.15em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--accent);
}

.lang-switch {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 1rem;
  font-size: 1rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 1.5rem;
}
.lang-switch:hover {
  background: var(--primary);
}
/* #endregion */

/* #region Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 2rem 1rem;
  background: linear-gradient(rgba(46,139,204,0.14),rgba(65,184,131,0.07)), url('../img/gaza-hero.jpg') no-repeat center center/cover;
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: var(--shadow);
  min-height: 320px;
  animation: fadeIn 1.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(60px);}
  to { opacity: 1; transform: translateY(0);}
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  text-shadow: 1px 2px 10px #fff8;
  text-align: center;
}

.hero-desc {
  font-size: 1.15rem;
  color: #244;
  margin-bottom: 1.7rem;
  text-align: center;
  max-width: 600px;
}

.hero-icons {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.1rem;
  justify-content: center;
}

.hero-icon-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 120px;
  margin-bottom: 0.4rem;
}
.hero-icon-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(65, 184, 131, 0.17);
}
.hero-icon-card i {
  font-size: 2.3rem;
  margin-bottom: 0.7rem;
  color: var(--accent);
}
.hero-icon-label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}
/* #endregion */

/* #region Main Section & Card */
.main-section {
  margin: 2.5rem auto 2rem auto;
  max-width: 900px;
  padding: 2rem 1.2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeIn 1.5s;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  margin: 1rem 0;
  animation: fadeIn 1.3s;
}
.card-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}
.register-btn-wrapper {
  text-align: center; 
}
.main-register-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.5rem;      
  background: var(--primary, #2e8bcc);
  color: #fff;
  font-size: 1rem;             
  font-weight: 600;
  border: none;
  border-radius: var(--radius, 1.2rem);
  box-shadow: 0 2px 12px #2e8bcc18;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-align: center;
}
.main-register-btn:hover {
  background: #244e6b;
  transform: translateY(-2px) scale(1.04);
  opacity: 0.93;
}
/* #endregion */

/* #region Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}
label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1.2px solid #dae3e9;
  border-radius: 0.6rem;
  font-size: 1rem;
  margin-top: 0.15rem;
  margin-bottom: 0.7rem;
  outline: none;
  background: #fafdff;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #b4edc8;
}
.btn-main {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 1rem;
  font-size: 1.1rem;
  padding: 0.7rem 2.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
  margin-top: 0.7rem;
}
.btn-main:hover {
  background: var(--accent);
  transform: scale(1.04);
}
/* #endregion */

/* #region Delivery Section */
.delivery-section {
  margin: 2.6rem auto 2.8rem auto;
  max-width: 1080px;
  background: #fff;
  border-radius: 1.8rem;
  box-shadow: 0 3px 28px #bedff52b;
  padding: 2.5rem 1.6rem 1.5rem 1.6rem;
  text-align: center;
}
.delivery-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2e8bcc;
  margin-bottom: 1.3rem;
}
.delivery-gallery {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.delivery-photo {
  background: #f6f8fa;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1.5px 12px #a9d4fc25;
  width: 305px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.delivery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s;
}
.delivery-photo:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 4px 16px #a4cdfd45;
}
.delivery-text b {
  position: relative;
}

/* Base icon style */
.delivery-text b::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

/* 1) Intro claim */
.delivery-text b:nth-of-type(1)::before { content: "\f05a"; } /* circle-info */

/* 2) 12,000 families */
.delivery-text b:nth-of-type(2)::before { content: "\f0c0"; } /* users */

/* 3) 98% satisfaction */
.delivery-text b:nth-of-type(3)::before { content: "\f295"; } /* percent */

/* 4) transparency, speed, dignity */
.delivery-text b:nth-of-type(4)::before { content: "\f00c"; } /* check */

/* 5) when they need it most */
.delivery-text b:nth-of-type(5)::before { content: "\f017"; } /* clock */
/* #endregion */

/* #region Footer */
.main-footer {
  background: #f8fafc;
  border-top: 2.5px solid #e5e9ef;
  margin-top: 3.3rem;
  padding-top: 1.9rem;
  font-size: 1.07rem;
}
.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.3rem;
  max-width: 1120px;
  margin: 0 auto 1.6rem auto;
  padding: 0 1.3rem;
}
.footer-col h3 {
  color: #2182b7;
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.7em;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-col li {
  margin-bottom: 0.38em;
}
.footer-col a {
  color: #3a4356;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #2e8bcc;
  text-decoration: underline;
}

/* Footer Logos */
.footer-logos-title {
  text-align: center;
  font-weight: 700;
  font-size: 1.23em;
  color: #333;
  letter-spacing: 0.03em;
  margin-top: 30px;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px #f5f5f5;
  position: relative;
  padding-bottom: 8px;
}
.footer-logos-title:after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background: #4EC3E0;
  margin: 8px auto 0 auto;
  border-radius: 2px;
  opacity: 0.8;
}
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  margin-top: 10px;
  padding: 1.1rem 0 1.3rem 0;
  border-bottom: 1px solid #e4eaf2;
}
.footer-logos img {
  width: 80px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px #f6f6f6;
  padding: 6px 10px;
  transition: transform 0.18s, filter 0.18s;
  display: block;
  filter: grayscale(0.12) brightness(1.08);
}
.footer-logos img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px #ddeffd;
  background: #f8fcff;
  filter: none;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.3rem 0.5rem 1.3rem;
  max-width: 1120px;
  margin: 0 auto;
  flex-wrap: wrap;
  font-size: 0.98em;
  color: #557;
}
.footer-social a {
  color: #3a4356;
  font-size: 1.22em;
  margin-left: 0.66em;
  transition: color 0.16s;
}
.footer-social a:hover {
  color: #ef2957;
}
/* #endregion */

/* #region App Download Section */
.footer-apps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 1rem 0;
    flex-wrap: wrap;
}

.footer-apps-title {
    color: #222;
    font-size: 1.25rem;
    font-weight: bold;
    margin-left: 1rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.app-badge {
    height: 60px;      /* Set a fixed height */
    /* Set a specific height for the Apple app badge */
    &.apple {
      height: 42px;
    }
    width: auto;       /* Keep aspect ratio */
    display: inline-block;
    object-fit: contain;
    background: none;
    box-shadow: none;
    transition: transform 0.2s;
    vertical-align: middle;
}

.app-badge:hover {
    transform: scale(1.07);
}
/* #endregion */

/* #region Responsive Styles */
@media (max-width: 900px) {
  .delivery-gallery { flex-direction: column; align-items: center; }
  .footer-columns { flex-direction: column; gap: 0.8rem; }
  .footer-bottom { flex-direction: column; gap: 0.7rem; align-items: flex-start; }
}
@media (max-width: 650px) {
  .main-section, .hero {
    padding: 1rem 0.3rem;
    max-width: 98vw;
    border-radius: 0.9rem;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
  }
  .hero-icons {
    flex-direction: column;
    gap: 1.2rem;
  }
  .card {
    padding: 1.1rem 0.4rem;
  }
}
/* #endregion */

/* #region Arabic Font Adjustments */
body[lang="ar"] .hero-title,
body[lang="ar"] .card-title,
body[lang="ar"] .hero-desc,
body[lang="ar"] .hero-icon-label {
  font-family: 'Cairo', 'Inter', sans-serif;
  letter-spacing: 0.3px;
}
/* #endregion */

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #e3eaf2; /* <-- slightly darker than #fff */
  color: var(--text, #222);
  padding: 1.1rem 2.2rem;
  border-radius: var(--radius, 1.2rem);
  box-shadow: 0 4px 24px #2e8bcc22;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 9999;
  font-size: 1.08rem;
  border: 1.5px solid #e5e9ef;
  min-width: 320px;
  max-width: 90vw;
  animation: fadeIn 0.7s;
}

.cookie-consent span {
  flex: 1;
  font-size: 1.08em;
  color: var(--text, #222);
}

.cookie-consent button {
  margin-left: 0.5rem;
  padding: 0.45rem 1.3rem;
  border: none;
  border-radius: 0.7rem;
  background: var(--primary, #2e8bcc);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  box-shadow: 0 2px 8px #2e8bcc18;
  transition: background 0.18s, transform 0.18s;
  outline: none;
}

.cookie-consent button:last-child {
  background: var(--accent, #41b883);
}

.cookie-consent button:hover {
  background: #244e6b;
  transform: translateY(-2px) scale(1.04);
  opacity: 0.93;
}

@media (max-width: 600px) {
  .cookie-consent {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem;
    min-width: 0;
    font-size: 0.98rem;
    gap: 0.7rem;
  }
  .cookie-consent button {
    width: 100%;
    margin-left: 0;
  }
}
