/* =========================================================
   جمال فون — Visual Polish Layer
   Static visual upgrades only. No data / admin / Supabase logic.
   ========================================================= */

:root {
  --gold: #c8a465;
  --gold-dark: #ad8845;
  --gold-soft: #e8d5b0;
  --ink: #171613;
  --muted: #77736b;
  --line: #e9e4dc;
  --paper: #fff;
  --soft: #f4f1eb;
  --green: #2e7a55;
  --shadow: 0 18px 48px rgba(27, 24, 18, 0.08);
  --shadow-hover: 0 20px 45px rgba(32, 26, 15, 0.14);
  --radius-card: 16px;
  --radius-btn: 11px;
}

/* ---------- Global polish ---------- */
body {
  background: linear-gradient(180deg, #faf9f6 0%, #f7f4ee 100%);
}

::selection {
  background: #ead8b6;
  color: #211a10;
}

/* Smoother focus */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(200, 164, 101, 0.45);
  outline-offset: 2px;
}

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: linear-gradient(90deg, #0f0e0c, #1a1814 50%, #0f0e0c);
  letter-spacing: 0.2px;
}

.announcement-dot {
  box-shadow: 0 0 0 3px rgba(200, 164, 101, 0.25);
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(20, 19, 16, 0.04), 0 8px 28px rgba(20, 19, 16, 0.04);
}

.brand-logo {
  border-radius: 14px;
  border: 1px solid #ece5d6;
  box-shadow: 0 4px 14px rgba(27, 24, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-lockup:hover .brand-logo {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(27, 24, 18, 0.12);
}

.header-search {
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 164, 101, 0.18);
}

.contact-header {
  border-radius: 11px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.contact-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 164, 101, 0.2);
}

/* Nav underline polish */
.main-nav a:after {
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

/* ---------- Hero ---------- */
.hero-section {
  padding-top: 20px;
}

.hero-banner-image {
  height: clamp(320px, 36vw, 420px);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(17, 16, 12, 0.18);
  overflow: hidden;
}

.hero-banner-image > img {
  transition: transform 8s ease;
}

.hero-banner-image:hover > img {
  transform: scale(1.03);
}

.hero-shade {
  background: linear-gradient(
    100deg,
    rgba(10, 9, 8, 0.78) 0%,
    rgba(12, 11, 9, 0.45) 42%,
    rgba(12, 11, 9, 0.08) 100%
  );
}

.hero-kicker {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(222, 192, 134, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-copy h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.6px;
}

.hero-actions .button {
  min-height: 46px;
  padding-inline: 20px;
  font-size: 13px;
  border-radius: 12px;
}

.button-gold {
  background: linear-gradient(135deg, #d4b06e 0%, var(--gold) 50%, #b8924a 100%);
  border-color: transparent;
  color: #17130b;
  box-shadow: 0 6px 20px rgba(200, 164, 101, 0.35);
  font-weight: 800;
}

.button-gold:hover {
  background: linear-gradient(135deg, #dfc08a 0%, #d5b579 50%, #c8a465 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 164, 101, 0.42);
}

.button-dark {
  background: #1a1916;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.button-dark:hover {
  background: #2a2824;
  transform: translateY(-2px);
}

/* ---------- Trust row (already exists – enhance) ---------- */
.trust-row {
  margin-top: 20px;
  border-radius: 16px;
  border: 1px solid rgba(233, 228, 220, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%);
  box-shadow: 0 8px 28px rgba(27, 24, 18, 0.04);
  padding: 18px 24px;
}

.trust-row > div {
  gap: 12px;
}

.trust-row strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.trust-row small {
  font-size: 11px;
  color: #8d877c;
  margin-top: 2px;
}

/* ---------- Section headings ---------- */
.section-heading h2,
.services-copy h2,
.bottom-promo h2 {
  letter-spacing: -0.4px;
}

.section-heading p {
  color: #8b857a;
}

.section-action {
  font-weight: 700;
  transition: color 0.15s, gap 0.15s;
}

.section-action:hover {
  color: var(--gold-dark);
  gap: 7px;
}

/* ---------- Category tiles ---------- */
.category-tile {
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  border-color: #d5bd92;
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(37, 30, 18, 0.1);
}

.category-tile strong {
  font-weight: 800;
}

/* ---------- Product cards – main visual upgrade ---------- */
.product-card {
  border: 1px solid #e9e4dc;
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #d4be96;
}

.product-image-wrap {
  background: linear-gradient(180deg, #f7f4ee 0%, #f0ebe3 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image-wrap > img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image-wrap > img {
  transform: scale(1.06);
}

/* Subtle gold top accent on hover */
.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-soft));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.product-card:hover::after {
  opacity: 1;
}

.product-card-content {
  padding: 14px 15px 14px;
}

.product-category-label {
  font-size: 10px;
  color: #a08c6a;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.product-title-link h3 {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.55;
  color: #1f1d19;
  transition: color 0.15s;
}

.product-card:hover .product-title-link h3 {
  color: #2a2318;
}

.product-card-bottom {
  border-top: 1px solid #f1ede6;
  padding-top: 10px;
  margin-top: 2px;
}

/* Price more prominent */
.product-price-wrap strong {
  font-size: 15px;
  font-weight: 800;
  color: #1a1814;
  letter-spacing: -0.2px;
}

.product-price-wrap del {
  font-size: 11px;
  color: #a39c90;
}

/* Round arrow button */
.round-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f6f1e7;
  border: 1px solid #e8dfc8;
  color: #73552a;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover .round-arrow {
  background: linear-gradient(135deg, #d4b06e, var(--gold));
  border-color: transparent;
  color: #17130b;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(200, 164, 101, 0.35);
}

/* Badge polish (متوفر / منتج / مميز) */
.product-card [class*="badge"],
.product-card span[class*="tag"],
.product-card .product-badge {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ---------- Services / digital section ---------- */
.services-copy h2 {
  font-weight: 800;
}

/* Service cards if they share product-card styles */
[class*="service-card"],
[class*="category-card"] {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

[class*="service-card"]:hover,
[class*="category-card"]:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* ---------- Bottom promo ---------- */
.bottom-promo {
  position: relative;
}

.bottom-promo-inner {
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f4eb 0%, #f0e9db 50%, #ebe3d2 100%);
  border: 1px solid #e4d9c0;
  box-shadow: 0 12px 36px rgba(40, 32, 18, 0.06);
}

.bottom-promo h2 {
  font-weight: 800;
  letter-spacing: -0.3px;
}

.bottom-promo .button {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 800;
}

/* ---------- Floating WhatsApp contact ---------- */
.floating-contact {
  bottom: 24px;
  inset-inline-start: 24px;
  background: linear-gradient(135deg, #1f1c17 0%, #2a2620 100%);
  color: #f3dfb0;
  border: 1px solid #9a7d4a;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(21, 19, 14, 0.35), 0 0 0 1px rgba(200, 164, 101, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  z-index: 50;
}

.floating-contact:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(21, 19, 14, 0.42), 0 0 0 1px rgba(200, 164, 101, 0.2);
  background: linear-gradient(135deg, #2a2620 0%, #352f27 100%);
  color: #f8e8c0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #12110e;
}

.footer-grid h3 {
  color: #e8dcc0;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.footer-grid a:not(.brand-lockup),
.footer-link-button {
  transition: color 0.15s, padding-inline-start 0.15s;
}

.footer-grid a:hover,
.footer-link-button:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Buttons general ---------- */
.button {
  border-radius: var(--radius-btn);
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1.5px);
}

.button-outline {
  border-width: 1.5px;
}

.button-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(200, 164, 101, 0.06);
}

/* Request / CTA buttons on product detail */
.request-main-button {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* ---------- Empty states ---------- */
.empty-products {
  border-radius: 18px;
  border: 1px dashed #ddd4c4;
  background: #faf8f4;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 768px) {
  .hero-banner-image {
    border-radius: 18px;
    height: clamp(280px, 55vw, 360px);
  }

  .trust-row {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .product-card:hover {
    transform: translateY(-3px);
  }

  .product-price-wrap strong {
    font-size: 14px;
  }

  .floating-contact {
    bottom: 16px;
    inset-inline-start: 16px;
    padding: 11px 14px;
    font-size: 12px;
  }

  .button-gold,
  .button-dark {
    min-height: 44px;
  }
}

/* ---------- Subtle entrance feel (no JS needed) ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section,
.trust-row,
.section-heading {
  animation: fadeUp 0.5s ease both;
}

.trust-row {
  animation-delay: 0.08s;
}

/* ---------- Scrollbar polish (desktop) ---------- */
@media (min-width: 900px) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #f0ebe3;
  }
  ::-webkit-scrollbar-thumb {
    background: #c8b89a;
    border-radius: 8px;
    border: 2px solid #f0ebe3;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
  }
}

/* =========================================================
   Services page showcase (static UI – data still from DB)
   ========================================================= */

body.page-services {
  background: linear-gradient(180deg, #f6f3ec 0%, #f3efe6 40%, #faf9f6 100%);
}

body.page-services .inner-page-heading h1 {
  letter-spacing: -0.5px;
}

/* Showcase shell */
.svc-showcase {
  margin: 8px 0 28px;
  animation: fadeUp 0.45s ease both;
}

.svc-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #12110e 0%, #1c1914 45%, #2a2318 100%);
  color: #f5edd9;
  padding: 32px 28px 30px;
  margin-bottom: 22px;
  isolation: isolate;
  box-shadow: 0 20px 50px rgba(18, 16, 12, 0.22);
}

.svc-hero-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(200, 164, 101, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.svc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.svc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #e8d4a8;
  border: 1px solid rgba(232, 212, 168, 0.35);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.svc-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #fffaf0;
}

.svc-subtitle {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #d9ceb6;
  max-width: 520px;
}

/* Pillars */
.svc-pillars-head {
  margin: 6px 0 14px;
}

.svc-pillars-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.svc-pillars-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.svc-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.svc-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.svc-pillar:hover {
  transform: translateY(-4px);
  border-color: #d4be96;
  box-shadow: 0 16px 36px rgba(32, 26, 15, 0.1);
}

.svc-pillar-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f8f1e3, #efe4ce);
  color: #8a6a32;
  border: 1px solid #e5d6b4;
}

.svc-pillar-icon svg {
  width: 22px;
  height: 22px;
}

.svc-pillar-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}

.svc-pillar-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #7a746a;
}

.svc-pillar-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #8a6a32;
  background: #f5edd9;
  border-radius: 6px;
  padding: 2px 7px;
  margin-bottom: 6px;
}

/* How steps */
.svc-how {
  background: linear-gradient(180deg, #fff 0%, #fcfaf6 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.svc-how h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.svc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.svc-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svc-step-num {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(135deg, #d4b06e, var(--gold));
  color: #17130b;
  box-shadow: 0 4px 12px rgba(200, 164, 101, 0.3);
}

.svc-step strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.svc-step small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.svc-grid-note {
  margin: 0 0 8px;
  font-size: 11.5px;
  color: #8b857a;
  text-align: center;
  padding: 8px 12px;
  background: rgba(200, 164, 101, 0.08);
  border-radius: 10px;
  border: 1px dashed rgba(200, 164, 101, 0.35);
}

/* On services page, make product cards feel slightly more “service” */
body.page-services .product-card {
  border-radius: 16px;
}

body.page-services .product-category-label {
  color: #8a6a32;
}

body.page-services .product-price-wrap strong {
  color: #1a1814;
}

/* Responsive */
@media (max-width: 900px) {
  .svc-pillars {
    grid-template-columns: 1fr;
  }
  .svc-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .svc-hero {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .svc-title {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .svc-pillar {
    padding: 14px;
  }
  .svc-pillar-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}
