/* ===========================
   VARIABLES & THEME
   (derived from the logo palette)
   =========================== */
:root {
  --primary: #6B1D3A;       /* deep burgundy / maroon */
  --primary-dark: #4A0E26;
  --primary-light: #8C2A50;
  --accent: #C8A951;        /* gold */
  --accent-light: #E0C872;
  --dark: #1A1A2E;
  --text: #333333;
  --text-light: #666666;
  --light: #F9F5F0;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --transition: .3s ease;
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Poppins', sans-serif;
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ===========================
   UTILITY
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.05rem;
}
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===========================
   TOP BAR
   =========================== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-contact {
  display: flex;
  gap: 20px;
  align-items: center;
}
.topbar-contact i {
  margin-left: 6px;
  color: var(--accent);
}
.topbar-social {
  display: flex;
  gap: 12px;
}
.topbar-social a {
  color: rgba(255,255,255,.85);
  transition: var(--transition);
  font-size: .95rem;
}
.topbar-social a:hover { color: var(--accent); }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo img {
  height: 55px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80') center/cover no-repeat;
  color: var(--white);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,14,38,.88), rgba(26,26,46,.82));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  animation: fadeUp .8s ease;
}
.hero-logo {
  width: 130px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}
.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-sub {
  font-family: var(--font-en);
  font-size: 1.25rem;
  letter-spacing: 1px;
  margin-bottom: 28px;
  opacity: .9;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   ABOUT
   =========================== */
.about { background: var(--light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.9;
}
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ===========================
   WHO WE ARE
   =========================== */
.whoweare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.whoweare-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.whoweare-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.9;
}
.stats-row {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--light);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
  min-width: 120px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-card i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
}
.stat-label {
  font-size: .85rem;
  color: var(--text-light);
}

/* ===========================
   PRODUCTS
   =========================== */
.products { background: var(--light); }

.filter-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: var(--transition);
  background: transparent;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-img-wrap {
  overflow: hidden;
  height: 220px;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}
.product-card h3 {
  padding: 14px 16px 4px;
  font-size: 1.1rem;
  color: var(--dark);
}
.product-badge {
  display: inline-block;
  margin: 4px 16px 14px;
  font-size: .78rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
}

/* Hide filtered cards */
.product-card.hidden {
  display: none;
}

/* ===========================
   IMAGE MODAL
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  position: relative;
  max-width: 720px;
  width: 90%;
}
.modal-content img {
  border-radius: var(--radius);
  width: 100%;
}
.modal-close {
  position: absolute;
  top: -40px;
  left: 0;
  font-size: 2rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { color: var(--accent); }
.modal-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.modal-nav button {
  background: var(--accent);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
}
.modal-nav button:hover {
  background: var(--accent-light);
}

/* ===========================
   CONTACT
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-card i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 4px;
  min-width: 28px;
  text-align: center;
}
.contact-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.contact-card p {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Contact Form */
.contact-form {
  margin-top: 12px;
  background: var(--light);
  padding: 24px;
  border-radius: var(--radius);
}
.contact-form h4 {
  margin-bottom: 16px;
  color: var(--primary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: .95rem;
  transition: var(--transition);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,81,.15);
}
.contact-form .btn {
  width: 100%;
  text-align: center;
}
.contact-form .btn i { margin-right: 6px; }
.contact-form .btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* reCAPTCHA → Math CAPTCHA */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  background: var(--white);
  border: 2px dashed var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
}
.captcha-box label {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  white-space: nowrap;
}
.captcha-box input {
  width: 120px !important;
  min-width: 120px;
  margin-bottom: 0 !important;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Form response messages */
.form-msg {
  margin-bottom: 12px;
  padding: 0;
  font-size: .92rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}
.form-msg:empty { display: none; }
.form-msg-success {
  display: block;
  padding: 12px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-msg-error {
  display: block;
  padding: 12px;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  width: 80px;
  margin-bottom: 12px;
}
.footer-brand h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.footer-en {
  font-family: var(--font-en);
  font-size: .85rem;
  opacity: .7;
}
.footer h4 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1rem;
}
.footer-links ul li,
.footer-categories ul li {
  margin-bottom: 10px;
  font-size: .9rem;
}
.footer-links a:hover { color: var(--accent); }
.social-icons {
  display: flex;
  gap: 14px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  color: var(--white);
  transition: var(--transition);
  font-size: 1rem;
}
.social-icons a:hover {
  background: var(--accent);
  color: var(--dark);
}
.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  opacity: .7;
}
.footer-credit {
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: .78rem;
  opacity: .85;
}
.footer-credit a {
  color: var(--accent);
  font-weight: 600;
  transition: var(--transition);
}
.footer-credit a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .about-grid,
  .whoweare-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner { gap: 28px; }
}

@media (max-width: 768px) {
  /* Mobile menu */
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 40px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transition: right .35s ease;
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.7rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
  .topbar-contact { flex-direction: column; gap: 4px; }
  .hero h1 { font-size: 1.6rem; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
}

/* ===========================
   WHATSAPP FLOATING BUTTON
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 4px 28px rgba(37,211,102,.7); }
}
