/* ═══════════════════════════════════════════════════════
   ALFAJR HYPERMARKET — style.css
   Palette: Blue #1a6fc4 | Orange #f5a623 | Dark #060e1c
   ═══════════════════════════════════════════════════════ */

:root {
  --blue:      #1a6fc4;
  --blue-lt:   #38b6ff;
  --blue-dk:   #0f4a8a;
  --orange:    #f5a623;
  --orange-dk: #d4881a;
  --green:     #25d366;
  --dark:      #060e1c;
  --dark-2:    #0d1b2e;
  --white:     #ffffff;
  --light:     #f4f7fb;
  --light-2:   #e8eef7;
  --text:      #1a2637;
  --muted:     #5a6a80;
  --font:      'Cairo', sans-serif;
  --r:         12px;
  --r-lg:      20px;
  --t:         .28s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--light); color: var(--text); direction: rtl; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hdr-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hdr-brand { display: flex; align-items: center; gap: 10px; }
.hdr-logo  { width: 52px; height: 52px; object-fit: contain; transition: transform var(--t); }
.hdr-logo:hover { transform: scale(1.06); }
.hdr-name   { display: block; font-size: .98rem; font-weight: 800; color: var(--white); }
.hdr-slogan { display: block; font-size: .72rem; font-weight: 700; color: var(--orange); letter-spacing: .05em; }
.hdr-nav    { display: flex; gap: 4px; }
.hn-link {
  color: rgba(255,255,255,.78); font-weight: 700; font-size: .88rem;
  padding: 7px 14px; border-radius: var(--r);
  transition: background var(--t), color var(--t);
}
.hn-link:hover, .hn-link.active { background: rgba(255,255,255,.1); color: var(--white); }
.hdr-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hdr-toggle span { display: block; width: 23px; height: 2px; background: var(--white); border-radius: 2px; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white); text-align: center;
  padding: 60px 24px 50px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: .15; pointer-events: none;
  animation: glow 8s ease-in-out infinite;
}
.g1 { width: 600px; height: 600px; background: var(--blue); top: -200px; right: -80px; }
.g2 { width: 400px; height: 400px; background: var(--orange); bottom: -160px; left: -60px; animation-delay: -4s; }
@keyframes glow {
  0%,100% { transform: scale(1) translate(0,0); }
  50%      { transform: scale(1.1) translate(16px,-24px); }
}
.hero-body { position: relative; z-index: 2; max-width: 780px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-logo {
  width: clamp(170px, 28vw, 250px); height: auto;
  filter: drop-shadow(0 8px 30px rgba(245,166,35,.4));
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { filter: drop-shadow(0 8px 30px rgba(245,166,35,.35)); }
  50%      { filter: drop-shadow(0 12px 44px rgba(245,166,35,.58)); transform: scale(1.02); }
}
.hero-loc {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,166,35,.14); border: 1px solid rgba(245,166,35,.3);
  color: var(--orange); font-size: .82rem; font-weight: 700;
  padding: 5px 16px; border-radius: 20px;
}
.hero-loc svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 900; line-height: 1.22;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--orange), #ffd07a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: clamp(.95rem, 2vw, 1.12rem); opacity: .82; }
.cta-btn.wa   { background: var(--green); color: var(--white); box-shadow: 0 4px 18px rgba(37,211,102,.4); }
.cta-btn.sms  { background: rgba(255,255,255,.1); color: var(--white); border: 1.5px solid rgba(255,255,255,.22); }

/* ═══════════════════════════════════════════
   SHARED SECTION
═══════════════════════════════════════════ */
.sec-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head.light h2 { color: var(--white); }
.sec-chip {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  color: var(--white); font-size: .76rem; font-weight: 800;
  letter-spacing: .08em; padding: 4px 14px; border-radius: 20px;
  margin-bottom: 12px;
}
.sec-head.light .sec-chip { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); }
.sec-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: var(--dark); }

/* ═══════════════════════════════════════════
   PRODUCTS — CATEGORIES
═══════════════════════════════════════════ */
.products-section { background: var(--white); }
.products-section .sec-wrap { padding-top: 80px; padding-bottom: 80px; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--light-2);
  border-radius: var(--r-lg);
  padding: 22px 14px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  font-weight: 700; font-size: .85rem; color: var(--text);
  cursor: default;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  opacity: 0; transform: translateY(20px);
  box-shadow: var(--sh-sm);
}
.cat-card.visible { opacity: 1; transform: translateY(0); }
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
/* Category icon wrapper */
.cat-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-ico svg { width: 24px; height: 24px; }
.cat-ico.blue   { background: rgba(26,111,196,.12); color: #1a6fc4; }
.cat-ico.red    { background: rgba(220,38,38,.1);   color: #dc2626; }
.cat-ico.teal   { background: rgba(13,148,136,.1);  color: #0d9488; }
.cat-ico.indigo { background: rgba(99,102,241,.1);  color: #6366f1; }
.cat-ico.yellow { background: rgba(234,179,8,.12);  color: #ca8a04; }
.cat-ico.purple { background: rgba(124,58,237,.1);  color: #7c3aed; }
.cat-ico.orange { background: rgba(234,88,12,.1);   color: #ea580c; }
.cat-ico.pink   { background: rgba(236,72,153,.1);  color: #ec4899; }
.cat-ico.brown  { background: rgba(120,53,15,.1);   color: #92400e; }
.cat-ico.rose   { background: rgba(225,29,72,.1);   color: #e11d48; }
.cat-ico.green  { background: rgba(22,163,74,.1);   color: #16a34a; }
.cat-ico.steel  { background: rgba(71,85,105,.1);   color: #475569; }
.cat-ico.sky    { background: rgba(14,165,233,.1);  color: #0ea5e9; }
.cat-ico.amber  { background: rgba(245,158,11,.12); color: #d97706; }
.cat-ico.slate  { background: rgba(100,116,139,.1); color: #64748b; }
.cat-ico.gray   { background: rgba(107,114,128,.1); color: #6b7280; }

/* ═══════════════════════════════════════════
   HOURS SECTION
═══════════════════════════════════════════ */
.hours-section {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
}
.hours-section .sec-wrap { padding-top: 48px; padding-bottom: 48px; }
.hours-card {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hours-status {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  background: rgba(37,211,102,.1);
  border-bottom: 1px solid rgba(37,211,102,.2);
  color: #4ade80;
  font-weight: 800; font-size: .95rem;
}
.hours-status svg { width: 18px; height: 18px; }
.status-dot {
  width: 9px; height: 9px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
  50%      { opacity: .7; box-shadow: 0 0 0 5px rgba(74,222,128,.1); }
}
.hours-grid { padding: 10px 0; }
.hours-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  color: var(--white);
  transition: background var(--t);
}
.hours-row:hover { background: rgba(255,255,255,.04); }
.hours-row.highlight { background: rgba(245,166,35,.07); }
.hours-row .day  { font-weight: 700; font-size: .92rem; }
.hours-row .time { font-weight: 600; font-size: .88rem; color: var(--orange); font-variant-numeric: tabular-nums; }
.hours-row.highlight .day { color: var(--orange); }
.hours-divider { height: 1px; background: rgba(255,255,255,.07); margin: 0 24px; }

/* ═══════════════════════════════════════════
   LOCATION
═══════════════════════════════════════════ */
.location-section { background: var(--light); }
.location-section .sec-wrap { padding-top: 48px; padding-bottom: 48px; }
.location-section .sec-head h2 { color: var(--dark); }
.loc-card {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  border: 1.5px solid var(--light-2);
}
.loc-details {
  background: var(--white);
  padding: 28px 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.loc-row { display: flex; align-items: flex-start; gap: 14px; }
.loc-ico {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.loc-ico svg { width: 21px; height: 21px; }
.loc-ico.blue   { background: rgba(26,111,196,.1); color: var(--blue); }
.loc-ico.orange { background: rgba(245,166,35,.12); color: var(--orange-dk); }
.loc-lbl { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .05em; }
.loc-val { display: block; font-size: .98rem; font-weight: 700; color: var(--text); line-height: 1.5; }
.loc-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.loc-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-weight: 800; font-size: .86rem;
  padding: 10px 18px; border-radius: var(--r);
  transition: transform var(--t), filter var(--t);
}
.loc-btn svg { width: 15px; height: 15px; }
.loc-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.loc-btn.primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 14px rgba(26,111,196,.3); }
.loc-btn.outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.loc-btn.outline:hover { background: var(--blue); color: var(--white); }
.loc-map { height: 340px; }
.loc-map iframe { width: 100%; height: 100%; border: 0; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-section {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
}
.contact-section .sec-wrap { padding-top: 48px; padding-bottom: 48px; }
.contact-block { display: flex; flex-direction: column; gap: 0; }
.contact-group { margin-bottom: 24px; }
.cg-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 800; letter-spacing: .08em;
  color: rgba(255,255,255,.45); text-transform: uppercase;
  margin-bottom: 10px;
}
.cg-label svg { width: 14px; height: 14px; }
.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.contact-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border-radius: var(--r-lg);
  font-family: var(--font); color: var(--white);
  transition: transform var(--t), filter var(--t);
}
.contact-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.cb-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.cb-ico svg { width: 20px; height: 20px; }
.contact-btn.call { background: #1a6fc4; box-shadow: 0 4px 16px rgba(26,111,196,.35); }
.contact-btn.wa   { background: #25d366; box-shadow: 0 4px 16px rgba(37,211,102,.35); }
.contact-btn.sms  { background: #6366f1; box-shadow: 0 4px 16px rgba(99,102,241,.35); }
.btn-lbl { display: block; font-size: .7rem; opacity: .75; font-weight: 600; }
.btn-num { display: block; font-size: .85rem; font-weight: 800; }

.email-wrap { margin-top: 8px; }
.email-wrap .contact-btn {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  color: var(--white);
}
.email-wrap .contact-btn:hover { background: rgba(255,255,255,.12); border-color: #6366f1; }
.email-ico { background: rgba(99,102,241,.25) !important; }
.email-wrap .btn-num { font-size: .8rem; }

/* Social */
.social-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  justify-content: center;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 800; font-size: .88rem;
  padding: 10px 20px; border-radius: var(--r);
  color: var(--white); transition: transform var(--t), filter var(--t);
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.fb { background: #1877f2; box-shadow: 0 4px 14px rgba(24,119,242,.3); }
.ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); box-shadow: 0 4px 14px rgba(220,39,67,.25); }
.yt { background: #ff0000; box-shadow: 0 4px 14px rgba(255,0,0,.3); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  border-top: 2px solid var(--orange);
  padding: 20px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ft-logo { width: 100px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(245,166,35,.2)); }
.ft-copy { font-size: .78rem; color: rgba(255,255,255,.35); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 860px) {
  .hdr-nav { display: none; }
  .hdr-toggle { display: flex; }
  .hdr-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; right: 0; left: 0;
    background: var(--dark-2); border-top: 1px solid rgba(255,255,255,.08);
    padding: 10px 16px 14px; gap: 4px; z-index: 99;
  }
  .loc-card { grid-template-columns: 1fr; }
  .loc-map  { height: 260px; }
  .hours-card { max-width: 100%; }
}
@media (max-width: 640px) {
  .hdr-inner { padding: 8px 16px; }
  .hero { min-height: 80vh; padding: 60px 16px 50px; }
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-btn { justify-content: center; }
  .sec-wrap { padding: 36px 16px; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .contact-row { grid-template-columns: 1fr; }
  .loc-details { padding: 28px 20px; }
  .social-row { gap: 8px; }
  .social-btn { padding: 9px 14px; font-size: .82rem; }
}
