/* ===================================
   PUBLIC SITE — Main Styles
   برتكس للتطريز
   =================================== */

/* CSS Variables */
:root {
  --primary-color: #000000;
  --secondary-color: #ffbf00;
  --accent-gold: #d4af37;
  --text-dark: #222;
  --text-muted: #666;
  --bg-light: #f8f9fa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

html,
body {
  font-family: "Cairo", "Tajawal", sans-serif;
  min-height: 100vh;
  color: #000000;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Enforce scroll lock when modals are open */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

html {
  scroll-behavior: smooth;
}

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  padding: 0.7rem 0;
}
.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: white !important;
  transition: color 0.2s ease;
}
.navbar-brand-link:hover .navbar-brand {
  color: var(--secondary-color) !important;
}
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
  background: rgba(255, 191, 0, 0.08);
}
.navbar-toggler {
  padding: 6px 10px;
  color: white;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Hide nav-link icons on desktop — mobile collapse keeps them */
@media (min-width: 992px) {
  .navbar-nav .nav-link i {
    display: none;
  }
}
/* Mobile collapse area */
@media (max-width: 991.98px) {
  #mainNavCollapse {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
  }
  .navbar-nav .nav-link {
    padding: 0.6rem 1rem;
    border-radius: 8px;
  }
  .navbar-socials {
    justify-content: center;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0;
  }
}

/* Order Now button */
.btn-order {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--accent-gold) 100%
  );
  color: #000;
  border: none;
  border-radius: 25px;
  padding: 9px 24px;
  font-weight: 700;
  font-size: 1rem;
  transition:
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 191, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
/* Only apply hover lift on true pointer devices (not touch) */
@media (hover: hover) and (pointer: fine) {
  .btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 191, 0, 0.5);
    background: linear-gradient(
      135deg,
      var(--accent-gold) 0%,
      var(--secondary-color) 100%
    );
    color: #000;
  }
}
.btn-order:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 191, 0, 0.3);
  color: #000;
}
.btn-order:focus {
  color: #000;
}
.btn-order i {
  font-size: 1.05rem;
}
.btn-order-sm {
  padding: 7px 16px;
  font-size: 0.88rem;
}

/* ── Logo ────────────────────────────────────── */
.logo-container {
  position: relative;
  padding: 2rem 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.logo-img {
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
.logo-img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 10px 25px rgba(212, 175, 55, 0.4));
}

/* ── Gallery Cards ───────────────────────────── */
.gallery-card {
  background: white;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
}
.gallery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(255, 191, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.gallery-card:hover::before {
  opacity: 1;
}
.gallery-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.gallery-img {
  height: 320px;
  width: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.1);
}
.card-body {
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 2;
}
.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}
.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.price-tag {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--secondary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(
    135deg,
    rgba(255, 191, 0, 0.1) 0%,
    rgba(212, 175, 55, 0.1) 100%
  );
  border-radius: 12px;
}

/* ── Section Titles ──────────────────────────── */
.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin: 3rem 0 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary-color) 0%,
    var(--accent-gold) 100%
  );
  border-radius: 2px;
}

/* ── Vision Section ──────────────────────────── */
.store-vision {
  background: white;
  border-radius: 25px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
  margin: 2rem auto;
  max-width: 1000px;
}
.store-vision h3 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.store-vision h5 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 1.5rem 0 1rem;
}
.store-vision p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-muted);
}
.store-vision ul {
  list-style: none;
  padding: 0;
}
.store-vision li {
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 0.6rem 0;
  padding-right: 1.5rem;
  position: relative;
}
.store-vision li::before {
  content: "✨";
  position: absolute;
  right: 0;
  font-size: 1.2rem;
}

/* ── Modals ──────────────────────────────────── */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}
.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
  color: white;
  border: none;
  padding: 1.5rem 2rem;
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.modal-body {
  padding: 2rem;
}
.modal-body img {
  border-radius: 15px;
  box-shadow: var(--shadow-md);
}
.btn-close {
  filter: invert(1);
}

/* ── Utilities ───────────────────────────────── */
.main-container {
  background: transparent;
  padding-bottom: 3rem;
}

/* ── Footer ──────────────────────────────────── */
.footer {
  color: #fff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}
.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffbf00;
  margin-bottom: 1.5rem;
}
.footer-text {
  color: #ccc;
  line-height: 1.8;
  font-size: 0.95rem;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: #ffbf00;
  transform: translateX(-5px);
}
.footer-links i {
  color: #ffbf00;
  font-size: 1.1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.9rem;
}
.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}
.copyright-text {
  display: flex;
  align-items: center;
  gap: 5px;
}
.copyright-text i {
  font-size: 1rem;
}
.footer-divider {
  opacity: 0.5;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  left: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}
.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: white;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .logo-img {
    max-width: 180px;
  }
  .section-title {
    font-size: 2rem;
  }
  .store-vision {
    padding: 2rem 1.5rem;
  }
  .store-vision h3 {
    font-size: 1.5rem;
  }
  .gallery-img {
    height: 220px;
  }
  .btn-order {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 20px;
    left: 20px;
  }
}
@media (max-width: 576px) {
  .footer-copyright {
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
  }
  .footer-divider {
    display: none;
  }
}

/* ── Navbar brand + socials ───────────────────────── */
.navbar-brand-link {
  color: white;
  text-decoration: none;
}
.navbar-socials {
  display: flex;
  gap: 18px;
  align-items: center;
}
.navbar-social-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.navbar-social-link:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}
