/* =============================
   BASE & RESET
   ============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================
   HERO
   ============================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, #003f8a 0%, #0057c2 50%, #003f8a 100%);
  color: white;
  text-align: center;
  padding: 80px 20px 60px;
  overflow: hidden;
}

.hero::before {
  content: '✡';
  position: absolute;
  font-size: 400px;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.flag-emoji {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.95;
}

.hero-sub {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  opacity: 0.85;
  margin-bottom: 18px;
}

.hero-memorial {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-quote {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
  opacity: 0.95;
  border-right: 4px solid rgba(255,255,255,0.6);
  padding-right: 16px;
  margin: 0 auto 32px;
  max-width: 640px;
  text-align: right;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background: white;
  color: #003f8a;
  font-family: 'Heebo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.btn-primary:hover {
  background: #e8f0fe;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

/* =============================
   FLAG IMAGES SHOWCASE
   ============================= */
.flag-images-section {
  background: #fff;
  padding: 40px 20px;
  border-bottom: 1px solid #e8eaed;
}

.flag-images-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.flag-showcase-img {
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,63,138,0.15);
  transition: transform 0.3s;
  object-fit: contain;
}
.flag-showcase-img:hover { transform: scale(1.03); }

/* =============================
   ABOUT / VALUES
   ============================= */
.about-section {
  padding: 70px 20px;
  background: #fff;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: #003f8a;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

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

.value-card {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border-radius: 16px;
  padding: 28px 24px;
  border-right: 4px solid #0057c2;
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,63,138,0.15);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #003f8a;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
}

/* =============================
   PRODUCTS
   ============================= */
.products-section {
  padding: 70px 20px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 100%);
}

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

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,63,138,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,63,138,0.2);
}

.product-image-wrap {
  height: 200px;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.product-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.product-info {
  padding: 20px;
  text-align: center;
}
.product-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #003f8a;
  margin-bottom: 4px;
}
.product-size {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 12px;
}
.product-price {
  font-size: 2rem;
  font-weight: 900;
  color: #0057c2;
  margin-bottom: 16px;
}

/* Quantity Control */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #f0f5ff;
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid #0057c2;
  max-width: 140px;
  margin: 0 auto;
}
.qty-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0057c2;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}
.qty-btn:hover { background: #0057c2; color: white; }
.qty-val {
  min-width: 40px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #003f8a;
}

/* ORDER SUMMARY */
.order-summary {
  background: white;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0,63,138,0.1);
  max-width: 520px;
  margin: 0 auto;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  color: #003f8a;
  padding-top: 16px;
  margin-top: 8px;
}
.total-price {
  font-size: 1.5rem;
  color: #0057c2;
}

/* =============================
   ORDER FORM
   ============================= */
.form-section {
  padding: 70px 20px;
  background: #fff;
}

.form-intro {
  text-align: center;
  color: #666;
  margin-bottom: 36px;
  font-size: 1rem;
}

.order-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.required { color: #e63946; }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 2px solid #d0d9f0;
  border-radius: 12px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  color: #222;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fafbff;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0057c2;
  box-shadow: 0 0 0 4px rgba(0,87,194,0.12);
  outline: none;
  background: white;
}

.form-group input.error,
.form-group textarea.error { border-color: #e63946; }

.field-error {
  font-size: 0.8rem;
  color: #e63946;
  margin-top: 4px;
  min-height: 18px;
}

/* Form Qty Summary */
.form-qty-summary {
  background: linear-gradient(135deg, #e8f0fe, #f0f5ff);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-right: 4px solid #0057c2;
}
.form-qty-summary p { margin-bottom: 4px; color: #333; }
.fqs-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: #003f8a;
  margin-top: 8px !important;
}

/* Buttons */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #0057c2, #003f8a);
  color: white;
  font-family: 'Heebo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 18px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0,63,138,0.25);
}
.btn-submit:hover {
  background: linear-gradient(135deg, #0068e1, #004db3);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,63,138,0.35);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: white;
  color: #003f8a;
  border: 2px solid #003f8a;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover { background: #e8f0fe; }

.form-error-msg {
  color: #e63946;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  min-height: 22px;
}

.pickup-info {
  text-align: center;
  margin-top: 20px;
  color: #555;
  font-size: 0.95rem;
}
.pickup-info i { margin-left: 6px; color: #0057c2; }

/* =============================
   MODAL
   ============================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: white;
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: popIn 0.3s ease;
}
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-icon { font-size: 3.5rem; margin-bottom: 12px; }
.modal-box h2 { font-size: 1.8rem; font-weight: 800; color: #003f8a; margin-bottom: 12px; }
.modal-box p { color: #555; margin-bottom: 8px; font-size: 1rem; }
.modal-name { font-weight: 700; color: #003f8a; font-size: 1.1rem; }
.modal-total { font-size: 1.3rem; font-weight: 800; color: #0057c2; margin-bottom: 24px !important; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.modal-actions .btn-primary { text-decoration: none; }

/* =============================
   FOOTER
   ============================= */
.footer {
  background: linear-gradient(135deg, #003f8a, #001a4d);
  color: white;
  text-align: center;
  padding: 50px 20px 30px;
}
.footer-candle { font-size: 2.5rem; margin-bottom: 12px; }
.footer p { font-size: 1rem; opacity: 0.9; margin-bottom: 8px; }
.footer-quote { font-style: italic; opacity: 0.75; font-size: 0.95rem; }
.footer-bless { font-size: 1.1rem; font-weight: 600; margin-top: 16px; }
.admin-link {
  display: inline-block;
  margin-top: 24px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.3s;
}
.admin-link:hover { color: rgba(255,255,255,0.8); }

/* =============================
   STICKY MOBILE BAR
   ============================= */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #003f8a, #0057c2);
  color: white;
  padding: 12px 20px;
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  gap: 12px;
}
.sticky-bar.visible { display: flex; }

.sticky-bar-info { display: flex; flex-direction: column; }
.sticky-items { font-size: 0.8rem; opacity: 0.85; }
.sticky-total { font-size: 1.3rem; font-weight: 900; }

.sticky-btn {
  background: white;
  color: #003f8a;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.sticky-btn:hover { background: #e8f0fe; }

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 640px) {
  .hero { padding: 60px 16px 48px; }
  .hero-quote { font-size: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .flag-images-grid { flex-direction: column; align-items: center; }
  .flag-showcase-img { max-width: 100%; }
  .order-summary { padding: 20px 16px; }
  .modal-box { padding: 28px 20px; }
  .btn-submit { font-size: 1rem; padding: 15px; }
  .modal-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 1.9rem; }
  .section-title { font-size: 1.5rem; }
}
