/*
  Tolar Creative - Light (Off-White) & Gold Theme (RTL)
  Font: Cairo
*/
:root {
  --color-bg: #ffffff;            /* أبيض أساسي */
  --color-bg-alt: #f8f6f2;        /* أبيض دافئ باهت */
  --color-text: #2c1810;          /* بني داكن للنص */
  --color-gold-1: #caa75a;        /* ذهبي أساسي */
  --color-gold-2: #e3c579;        /* ذهبي أفتح للتدرج */
  --color-gold-3: #b9934b;        /* ذهبي أغمق للتباين */
  --border-gold: rgba(204, 164, 84, 0.25);
  --shadow-soft: 0 8px 28px rgba(0,0,0,0.08);
  --shadow-hero: 0 15px 50px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-fast: 180ms ease;
  --transition-base: 280ms cubic-bezier(.2,.8,.2,1);
}
*:where(*) { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; display: block; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; }
.brand-logo { width: 120px; height: 120px; border-radius: var(--radius-md); object-fit: contain; background: transparent; }
.brand-name { font-weight: 700; letter-spacing: 0.3px; color: var(--color-text); }

.nav-toggle { display: none; background: transparent; border: 0; color: var(--color-text); font-size: 22px; }
.main-nav ul { display: flex; align-items: center; gap: 18px; list-style: none; padding: 0; margin: 0; }
.main-nav a { color: var(--color-text); text-decoration: none; padding: 10px 8px; border-radius: 6px; }
.main-nav a:hover { background: rgba(204, 164, 84, 0.12); }

.header-cta { margin-inline-start: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  min-height: 48px; /* سهل اللمس على الجوال */
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast), background var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn-gold { background: linear-gradient(135deg, var(--color-gold-1), var(--color-gold-2)); color: #3a2a17; box-shadow: 0 6px 16px rgba(202, 167, 90, 0.25); }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 8px 22px rgba(202, 167, 90, 0.32); }
.btn-outline { color: var(--color-text); border-color: rgba(204, 164, 84, 0.35); background: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(232, 215, 166, 0.12); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(227, 197, 121, 0.35); }
.btn-whatsapp { background: #25d366; color: #0a1a0f; }
.btn-whatsapp:hover { filter: brightness(1.05); }
.w-100 { width: 100%; justify-content: center; }
.btn i { color: var(--color-gold-3); }
.btn-whatsapp i { color: inherit; }

/* Click ripple */
.ripple {
  position: absolute;
  inset: 0 auto auto 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(202, 167, 90, 0.35);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 500ms ease-out forwards;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: translate(var(--rx, -50%), var(--ry, -50%)) scale(18); opacity: 0; }
}

/* Hero */
.hero { position: relative; padding: 72px 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--color-bg-alt)); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 28px; }
.hero-content h1 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 44px); line-height: 1.25; color: #2c1810; }
.subtitle { color: #7a5f3b; font-weight: 600; margin-bottom: 16px; }
.hero-bullets { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; color: #5d4a2a; }
.hero-bullets i { color: var(--color-gold-1); margin-inline-start: 4px; }
.hero-media { justify-self: center; }
.hero-media img { width: 400px; height: 400px; border-radius: 20px; object-fit: contain; background: transparent; box-shadow: var(--shadow-hero); }
.hero-overlay { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 40% at 80% 20%, rgba(204, 164, 84, 0.05), transparent 60%); }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 56px 0; }
.section-title { margin: 0 0 24px; font-size: clamp(20px, 3.2vw, 34px); color: var(--color-text); }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 240, 0.95));
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.08); }
.card h3 { margin: 6px 0 8px; color: var(--color-text); }
.card p { margin: 0; color: #5d4a2a; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(204, 164, 84, 0.12); color: var(--color-gold-1); }

.pricing .badge { display: inline-block; background: rgba(231, 199, 117, 0.18); color: #9a7a2e; border: 1px solid rgba(231, 199, 117, 0.28); padding: 4px 10px; border-radius: 999px; font-weight: 800; margin-bottom: 8px; }
.list { padding: 0; margin: 0 0 12px; list-style: none; display: grid; gap: 6px; color: #5d4a2a; }
.note { color: #8b6f47; font-size: 14px; margin: 8px 0 14px; }
.note-label { color: #ff0000; font-weight: 800; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-button { background: rgba(204, 164, 84, 0.08); color: #7a5f3b; border: 1px solid var(--border-gold); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 800; transition: background var(--transition-fast), transform var(--transition-fast); }
.tab-button:hover { transform: translateY(-1px); }
.tab-button.active { background: linear-gradient(135deg, var(--color-gold-1), var(--color-gold-2)); color: #3a2a17; border-color: transparent; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Contact */
.contact-inner { display: grid; justify-content: center; }
.contact-card { max-width: 720px; margin-inline: auto; padding: 22px; border-radius: 18px; border: 1px solid var(--border-gold); background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 240, 0.95)); box-shadow: var(--shadow-soft); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-gold); background: rgba(255, 255, 255, 0.95); padding: 18px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #7a5f3b; }
.footer-brand img { width: 64px; height: 64px; border-radius: 8px; object-fit: contain; background: transparent; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; }
.footer-links a { color: #7a5f3b; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Scroll top */
.scroll-top { position: fixed; bottom: 18px; left: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #3a2a17; background: linear-gradient(135deg, var(--color-gold-1), var(--color-gold-2)); text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.15); opacity: 0; transform: translateY(8px); pointer-events: none; transition: var(--transition-fast); }
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Gold icons globally */
.fa-solid, .fa-brands { color: var(--color-gold-1); }
.site-header .nav-toggle i { color: var(--color-text); }
.main-nav a i { color: inherit; }

/* Instagram icon - same color as "اختر باقتك الآن" button */
.btn-outline[href*="instagram"] i,
.contact-actions a[href*="instagram"] i {
  color: #3a2a17 !important;
  background: linear-gradient(135deg, var(--color-gold-1), var(--color-gold-2));
  border: 2px solid var(--color-gold-3);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-inline-end: 6px;
  box-shadow: 0 6px 16px rgba(202, 167, 90, 0.25);
}

.btn-outline[href*="instagram"]:hover i,
.contact-actions a[href*="instagram"]:hover i {
  background: linear-gradient(135deg, var(--color-gold-2), var(--color-gold-3));
  border-color: var(--color-gold-1);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(202, 167, 90, 0.32);
}

/* Logo: no background or borders for clean SVG */
.brand-logo,
.hero-media img,
.footer-brand img {
  object-fit: contain !important;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: none;
  border: 0 !important;
  box-shadow: none !important;
}

/* NFC Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  background: #f8f6f2;
  padding: 20px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: white;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.gallery-overlay p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-media { order: -1; }
  .header-cta { display: none; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 780px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { justify-content: space-between; }
  .nav-toggle { margin-inline-start: auto; }
  /* Dropdown below header */
  .main-nav { position: absolute; inset-inline: 0; top: 100%; background: rgba(255, 255, 255, 0.98); padding: 8px 0; border-bottom: 1px solid rgba(204, 164, 84, 0.2); transform: translateY(-16px); opacity: 0; pointer-events: none; transition: transform var(--transition-fast), opacity var(--transition-fast); }
  .site-header { position: sticky; top: 0; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: center; text-align: center; }
  .main-nav a { display: block; width: 100%; padding: 14px 12px; }
  .nav-toggle { display: inline-grid; place-items: center; }
}

@media (max-width: 540px) {
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .hero { padding: 56px 0; }
  .hero-content h1 { font-size: clamp(22px, 6.2vw, 34px); }
  .subtitle { font-size: 16px; }
  .btn { min-height: 50px; }
}

/* Scroll reveal animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal.in-view { opacity: 1 !important; transform: none !important; }
}


