/* =========================================================================
   Mahmoud Omar Al Masry & Partners Co. — Public site stylesheet
   Design language: navy (--primary-color) + gold (--secondary-color)
   ========================================================================= */

:root {
  --primary-color: #262626;
  --primary-color-dark: #141414;
  --secondary-color: #C9972A;
  --secondary-color-light: #E8C468;
  --text-dark: #26304A;
  --text-muted: #6B7280;
  --bg-soft: #F6F7F9;
  --white: #FFFFFF;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 14px rgba(22, 33, 62, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 33, 62, 0.10);
  --transition: all 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.section { padding: 90px 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } }

.bg-light-soft { background: var(--bg-soft); }
.bg-navy-soft { background: linear-gradient(180deg, #F6F7F9 0%, #EEF1F6 100%); }

.section-header { max-width: 680px; margin-left: auto; margin-right: auto; margin-bottom: 40px; }
.section-eyebrow {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 8px;
}
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-bottom: 0; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: .65rem 1.4rem; transition: var(--transition); white-space: nowrap; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1rem; }
.btn-navy { background: var(--primary-color); color: #fff; border: 1px solid var(--primary-color); }
.btn-navy:hover { background: var(--primary-color-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-navy { background: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-outline-navy:hover { background: var(--primary-color); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-light)); color: var(--primary-color-dark); border: none; }
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-2px); color: var(--primary-color-dark); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--primary-color); }
.btn-whatsapp { background: #25D366; color: #fff; border: 1px solid #25D366; }
.btn-whatsapp:hover { background: #1DA851; color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 rgba(22,33,62,.06);
  z-index: 1030;
  transition: var(--transition);
}
.site-logo { height: 52px; width: auto; object-fit: contain; transition: var(--transition); }
@media (max-width: 1199px) { .site-logo { height: 42px; } }

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: .5rem .65rem !important;
  position: relative;
  white-space: nowrap;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--secondary-color); }
.header-actions { flex-shrink: 0; flex-wrap: nowrap; }
@media (min-width: 1200px) and (max-width: 1350px) {
  .navbar-nav .nav-link { padding: .5rem .45rem !important; font-size: .93rem; }
  .header-actions .btn { padding: .5rem .9rem; font-size: .85rem; }
}
.navbar-toggler {
  border: none; background: transparent; font-size: 1.7rem; color: var(--primary-color);
  padding: 0; line-height: 1;
}
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 1199px) {
  .navbar-collapse {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100vh;
    background: #fff; padding: 90px 24px 24px; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -10px 0 30px rgba(0,0,0,.12);
    display: flex !important; flex-direction: column; z-index: 1040; overflow-y: auto;
  }
  .navbar-collapse.show { transform: translateX(0); }
  .navbar-nav { width: 100%; }
  .header-actions { flex-direction: column; }
  .mobile-menu-backdrop {
    position: fixed; inset: 0; background: rgba(15,20,40,.4); z-index: 1035;
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  .mobile-menu-backdrop.show { opacity: 1; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(14,20,40,.92) 10%, rgba(22,33,62,.72) 55%, rgba(22,33,62,.45) 100%);
}
.hero-content { position: relative; max-width: 700px; padding: 60px 0; }
.hero-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.15; margin-bottom: 18px; }
.hero-subtitle { color: var(--secondary-color-light); font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; }
.hero-desc { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 560px; }

/* ---------- About + stats ---------- */
.about-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.stats-row .stat-card {
  background: #fff; border-radius: var(--radius-md); padding: 26px 14px;
  box-shadow: var(--shadow-sm); height: 100%;
}
.stat-card i { font-size: 1.9rem; color: var(--secondary-color); }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--primary-color); margin-top: 6px; }
.stat-label { color: var(--text-muted); font-size: .92rem; }

/* ---------- Categories ---------- */
.category-card {
  display: block; border-radius: var(--radius-md); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.category-image { aspect-ratio: 4/3; overflow: hidden; }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover .category-image img { transform: scale(1.08); }
.category-info { padding: 14px 16px; text-align: center; }
.category-info h3 { font-size: 1rem; margin-bottom: 4px; }
.category-count { color: var(--text-muted); font-size: .85rem; }

/* ---------- Products toolbar & grid ---------- */
.products-toolbar {
  background: var(--bg-soft); border-radius: var(--radius-md); padding: 18px; margin-bottom: 8px;
}
.search-box { position: relative; }
.search-box i { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--text-muted); }
.search-box input { padding-left: 38px; }
.form-control, .form-select {
  border-radius: var(--radius-sm); border: 1px solid #DDE1E8; padding: .6rem .9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 .2rem rgba(201,162,39,.15); }

.product-card {
  position: relative; background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-image-btn { border: none; background: none; padding: 0; display: block; width: 100%; aspect-ratio: 1/1; overflow: hidden; cursor: pointer; }
.product-image-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-image-btn img { transform: scale(1.06); }
.featured-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-light));
  color: var(--primary-color-dark); font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}
.badge-availability { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: .7rem; padding: 5px 9px; }
.product-info { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-category { color: var(--secondary-color); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.product-name { font-size: 1rem; margin: 4px 0 6px; }
.link-like { background: none; border: none; padding: 0; text-align: left; color: var(--primary-color); font-weight: 700; cursor: pointer; }
.link-like:hover { color: var(--secondary-color); }
.product-desc { color: var(--text-muted); font-size: .85rem; margin-bottom: 10px; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-weight: 700; color: var(--primary-color); }

.empty-state { color: var(--text-muted); }
.empty-state i { font-size: 2.6rem; color: #C9CFDA; margin-bottom: 10px; display: block; }

/* ---------- Product modal ---------- */
.modal-content { border: none; border-radius: var(--radius-lg); overflow: hidden; }
.product-detail-gallery-main { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius-md); background: var(--bg-soft); }
.product-detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-detail-thumbs img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.product-detail-thumbs img.active { border-color: var(--secondary-color); }
.product-detail-meta { list-style: none; padding: 0; margin: 14px 0; }
.product-detail-meta li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #E6E9EF; font-size: .92rem; }
.product-detail-meta li span:first-child { color: var(--text-muted); }

/* ---------- Featured section ---------- */
.featured-section .product-card { border: 1px solid #EEF0F4; }

/* ---------- Why us ---------- */
.feature-card { background: #fff; border-radius: var(--radius-md); padding: 30px 24px; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark)); color: var(--secondary-color-light);
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 0; }

/* ---------- Brands ---------- */
.brands-track {
  display: flex; align-items: center; gap: 48px; overflow-x: auto; padding: 10px 4px;
  scrollbar-width: none;
}
.brands-track::-webkit-scrollbar { display: none; }
.brand-item, .brand-link { flex: 0 0 auto; }
.brand-item img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .7; transition: var(--transition); }
.brand-link:hover img, .brand-item:hover img { filter: grayscale(0); opacity: 1; }
.brand-name-fallback { font-weight: 700; color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Areas ---------- */
.area-card { background: #fff; border-radius: var(--radius-md); padding: 22px 14px; text-align: center; box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition); }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-card i { font-size: 1.6rem; color: var(--secondary-color); }
.area-card h3 { font-size: .98rem; margin: 8px 0 4px; }
.area-card p { color: var(--text-muted); font-size: .82rem; margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-section {
  position: relative; background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
  background-size: cover; background-position: center; color: #fff;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(14,20,40,.72); }
.cta-title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 760px; margin: 0 auto; }
.cta-desc { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-top: 12px; }

/* ---------- Contact ---------- */
.contact-info-card { background: var(--bg-soft); border-radius: var(--radius-md); padding: 24px; }
.contact-info-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #E6E9EF; }
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-item i { color: var(--secondary-color); font-size: 1.2rem; margin-top: 2px; }
.contact-info-item span { display: block; font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.contact-info-item p { margin: 2px 0 0; font-weight: 600; color: var(--text-dark); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--primary-color); color: #fff; transition: var(--transition);
}
.social-links a:hover { background: var(--secondary-color); color: var(--primary-color-dark); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-form { background: #fff; border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-form .form-label { font-weight: 600; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-color-dark); color: rgba(255,255,255,.75); padding: 64px 0 24px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-desc { font-size: .92rem; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--secondary-color-light); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .92rem; align-items: flex-start; }
.footer-contact i { color: var(--secondary-color); margin-top: 3px; }
.site-footer hr { border-color: rgba(255,255,255,.12); margin: 36px 0 20px; }
.footer-bottom p { font-size: .85rem; margin: 0; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; z-index: 1050; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float-right { right: 24px; }
.whatsapp-float-left { left: 24px; }
@media (max-width: 767px) { .whatsapp-float.mobile-hidden { display: none; } }

/* ---------- Scroll reveal ---------- */
[data-aos] { opacity: 0; transition: opacity .6s ease, transform .6s ease; will-change: transform, opacity; }
[data-aos="fade-up"] { transform: translateY(28px); }
[data-aos="fade-left"] { transform: translateX(-28px); }
[data-aos="fade-right"] { transform: translateX(28px); }
[data-aos="zoom-in"] { transform: scale(.92); }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.text-navy { color: var(--primary-color) !important; }
.spinner-border.text-navy { border-color: var(--primary-color); border-right-color: transparent; }
