/* ================================================
   TABARK WEBSITE - STYLES
   Premium Arabic RTL Website
   ================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --gold: #C8A84B;
  --gold-light: #E2C97E;
  --gold-dark: #9E7C28;
  --navy: #0A1628;
  --navy-mid: #112040;
  --navy-light: #1A2F55;
  --white: #FFFFFF;
  --off-white: #F8F6F0;
  --gray-100: #F2F0EC;
  --gray-200: #E8E4DC;
  --gray-400: #9E9880;
  --gray-600: #6B6550;
  --text-dark: #1A1710;
  --text-mid: #3D3925;
  --accent-red: #C0392B;
  --shadow-sm: 0 2px 8px rgba(10,22,40,0.08);
  --shadow-md: 0 8px 32px rgba(10,22,40,0.15);
  --shadow-lg: 0 20px 60px rgba(10,22,40,0.25);
  --shadow-gold: 0 8px 32px rgba(200,168,75,0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --font-display: 'Tajawal', 'Cairo', sans-serif;
  --font-body: 'Cairo', 'Tajawal', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Section base */
.main-site { min-height: 100vh; }
.site-section { width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== UTILITIES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }
.section-padding { padding: 100px 0; }

.bg-dark-alt { background: var(--navy-mid); }
.bg-accent-dark { background: var(--navy-light); }

.accent-text { color: var(--gold); }

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-logo {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-t {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--gold);
  position: relative;
  z-index: 2;
  animation: logoPulse 1.5s ease-in-out infinite;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 4px;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: fillBar 2s ease-in-out forwards;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logoPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes fillBar { from { width: 0; } to { width: 100%; } }

/* ===== LANDING PAGE ===== */
.landing-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy);
  opacity: 0;
}

.landing-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,168,75,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(17,32,64,0.9) 0%, transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  z-index: 0;
}

.landing-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: floatParticle var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.landing-header {
  position: relative;
  z-index: 10;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  animation: fadeInDown 0.8s ease both;
}

.brand-icon {
  width: 52px;
  height: 52px;
  background: var(--gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.landing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  position: relative;
  z-index: 10;
  gap: 60px;
}

.landing-title-block {
  text-align: center;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.landing-subtitle {
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.landing-main-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.landing-desc {
  font-size: 18px;
  color: var(--gray-400);
}

.landing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  width: 100%;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.landing-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  height: 380px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200,168,75,0.15);
}

.landing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(200,168,75,0.25);
  border-color: rgba(200,168,75,0.4);
}

.card-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.landing-card:hover .card-bg-img {
  transform: scale(1.08);
}

.store-bg {
  background-image: url('Media/Hero.png');
}

.company-bg {
  background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=800&q=80');
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.4) 60%, transparent 100%);
  transition: background var(--transition);
}

.landing-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(10,22,40,0.98) 0%, rgba(10,22,40,0.6) 60%, rgba(200,168,75,0.1) 100%);
}

.card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 32px;
  z-index: 2;
}

.card-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.landing-card:hover .card-icon-wrap {
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}

.card-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  transition: gap var(--transition);
}

.card-cta i {
  transition: transform var(--transition);
}

.landing-card:hover .card-cta { gap: 14px; }
.landing-card:hover .card-cta i { transform: translateX(-4px); }

.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity var(--transition);
  opacity: 0;
}

.landing-card:hover .card-shine { opacity: 1; }

.landing-footer-info {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  animation: fadeIn 0.8s ease 0.8s both;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.info-item i { color: var(--gold); }
.info-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.2); }

.landing-exit {
  animation: landingExit 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes landingExit {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); pointer-events: none; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  max-width: 1400px;
  margin: 0 auto;
  transition: padding var(--transition);
}

.navbar.scrolled .nav-container { padding: 14px 32px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--navy);
}

.nav-switcher {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
}

.switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.switcher-btn.active {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 2px 12px rgba(200,168,75,0.4);
}

.switcher-btn:hover:not(.active) {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(200,168,75,0.08);
}

.nav-contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(200,168,75,0.3);
}

.nav-contact-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  gap: 12px;
}

.mobile-menu.open { display: flex; }

.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }

.mobile-nav-links .nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
}

.mobile-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-switcher button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--gold);
  transition: all var(--transition);
}

.mobile-switcher button:hover { background: var(--gold); color: var(--navy); }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(200,168,75,0.06) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10,22,40,0.98) 0%,
    rgba(10,22,40,0.85) 40%,
    rgba(17,32,64,0.9) 100%);
}

.company-gradient {
  background: linear-gradient(135deg,
    rgba(10,22,40,0.98) 0%,
    rgba(26,47,85,0.85) 40%,
    rgba(10,22,40,0.9) 100%);
}

.store-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('Media/Hero.png') center/cover no-repeat;
  z-index: -1;
}

.company-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1920&q=60') center/cover no-repeat;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,168,75,0.15);
  border: 1px solid rgba(200,168,75,0.4);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .line-1 {
  display: block;
  color: var(--white);
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-title .line-2 {
  display: block;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 0.7s ease 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.7s ease 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(200,168,75,0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(200,168,75,0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header.light .section-title { color: var(--white); }
.section-header.light .section-desc { color: rgba(255,255,255,0.6); }

.section-tag {
  display: inline-block;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.35);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  background: var(--navy);
  padding: 80px 0;
}

.container-fluid-products {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,168,75,0.08);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(200,168,75,0.3);
}

.more-products-note {
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(200,168,75,0.08), rgba(200,168,75,0.04));
  border: 1px dashed rgba(200,168,75,0.4);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
}

.more-products-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.more-products-inner > i {
  font-size: 40px;
  color: var(--gold);
  opacity: 0.7;
}

.more-products-inner p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
}

.more-products-inner strong { color: var(--gold); }

/* ===== CATEGORY BLOCKS ===== */
.pcat-block {
  margin-bottom: 64px;
}

.pcat-block:last-of-type {
  margin-bottom: 0;
}

.pcat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  flex-direction: row-reverse;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(200,168,75,0.18);
}

.pcat-name {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-align: right;
}

/* Product row — 4 columns */
.prow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Individual product item */
.pitem {
  position: relative;
  cursor: pointer;
}

.pitem-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1e36;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pitem:hover .pitem-inner {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(200,168,75,0.22), inset 0 0 20px rgba(200,168,75,0.05);
}

.pitem-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.3s ease;
  filter: brightness(0.88);
}

.pitem:hover .pitem-inner img {
  transform: scale(1.07);
  filter: brightness(0.6);
}

.pitem-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
  pointer-events: none;
}

.pitem-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(200,168,75,0.5);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.pitem:hover .pitem-name {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FEATURES SECTION ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: right;
}

.feature-card:hover {
  border-color: rgba(200,168,75,0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(200,168,75,0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--gold);
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: stretch;
  min-height: 460px;
}

.contact-card {
  background: var(--navy-mid);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(200,168,75,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.contact-item a:hover { color: var(--gold); }

.whatsapp-btn-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  margin-top: auto;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.whatsapp-btn-big:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

.whatsapp-btn-big i { font-size: 22px; }

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 400px;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--navy); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-deco {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.3) 0%, transparent 60%);
}

.about-badge-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  text-align: center;
  box-shadow: var(--shadow-gold);
  animation: float 4s ease-in-out infinite;
}

.badge-num {
  display: block;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.badge-text {
  font-size: 13px;
  font-weight: 600;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-text .section-tag { margin-bottom: 16px; }
.about-text .section-title { margin-bottom: 20px; }

.about-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text > p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}

.about-point i { color: var(--gold); font-size: 18px; }

/* ===== PARALLAX SECTIONS ===== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

/* The moving background layer */
.parallax-bg {
  background-attachment: fixed;
  background-image: url(Media/garden.jpeg);
  position: absolute;
  inset: -30% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}
.parallax-bgg {
  background-attachment: fixed;
  background-image: url(Media/decor_back.png);
  position: absolute;
  inset: -30% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}

/* Dark overlay on top of parallax bg */
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,22,40,0.88) 0%,
    rgba(10,22,40,0.75) 50%,
    rgba(10,22,40,0.88) 100%
  );
  z-index: 1;
}

/* Slightly lighter overlay for decor section */
.parallax-overlay-light {
  background: linear-gradient(
    180deg,
    rgba(10,22,40,0.82) 0%,
    rgba(10,22,40,0.65) 50%,
    rgba(10,22,40,0.82) 100%
  );
}

/* ===== GALLERY SECTIONS ===== */
.gallery-section { background: var(--navy); }

.gallery-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 52px;
}

.gallery-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: all var(--transition);
}

.gallery-feature i {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
}

.gallery-feature:hover {
  background: rgba(200,168,75,0.1);
  border-color: rgba(200,168,75,0.4);
  color: var(--white);
}

.gallery-feature:hover i { color: var(--gold); }

.gallery-feature.gold {
  background: rgba(200,168,75,0.08);
  border-color: rgba(200,168,75,0.25);
  color: rgba(255,255,255,0.8);
}

.gallery-feature.gold i { color: var(--gold); }

/* Masonry-style photo grid */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.photo-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.photo-item.tall  { grid-row: span 2; }
.photo-item.wide  { grid-column: span 2; }

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== HOVER — only for store section (photo-gallery without no-hover-gallery) ===== */
.photo-gallery:not(.no-hover-gallery) .photo-item {
  cursor: pointer;
}

.photo-gallery:not(.no-hover-gallery) .photo-item img {
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.photo-gallery:not(.no-hover-gallery) .photo-item:hover img {
  transform: scale(1.07);
}

.photo-gallery:not(.no-hover-gallery) .photo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  z-index: 2;
}

.photo-gallery:not(.no-hover-gallery) .photo-item:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* No-hover gallery — company sections */
.no-hover-gallery .photo-item {
  cursor: default;
}

.no-hover-gallery .photo-item img {
  transition: none;
}

.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ===== WHY US SECTION ===== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
}

.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: rgba(200,168,75,0.25);
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition);
}

.why-item:hover .why-num { color: var(--gold); }

.why-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  margin-top: 8px;
}

.why-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-contact h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact-item i { color: var(--gold); width: 20px; }

.footer-contact-item a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-contact-item a:hover { color: var(--gold); }
.footer-contact-item span { color: rgba(255,255,255,0.55); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.back-to-landing-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--gold);
  transition: all var(--transition);
}

.back-to-landing-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  z-index: 800;
  box-shadow: 0 8px 30px rgba(37,211,102,0.45);
  transition: all var(--transition);
  opacity: 0;
  transform: scale(0);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(37,211,102,0.6);
}

.wa-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  background: var(--navy-mid);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-float:hover .wa-tooltip { opacity: 1; }

.wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--navy-mid);
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  z-index: 800;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-entering {
  animation: sectionEnter 0.5s ease both;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .landing-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .landing-card { height: 300px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 500px; }
  .about-badge-float { left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-contact-btn { display: none; }
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .photo-item.tall { grid-row: span 2; }
  .photo-item.wide { grid-column: span 2; }
}

@media (max-width: 700px) {
  .prow { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pcat-name { font-size: 20px; }
  .pitem-name { font-size: 13px; padding: 6px 12px; }
}

@media (max-width: 640px) {
  .section-padding { padding: 70px 0; }
  .landing-cards { grid-template-columns: 1fr; }
  .landing-card { height: 260px; }
  .landing-main-title { font-size: 32px; }
  .landing-content { gap: 36px; }
  .why-us-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .nav-switcher { display: none; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
  .whatsapp-float { bottom: 24px; left: 24px; width: 52px; height: 52px; font-size: 24px; }
  .scroll-top { bottom: 24px; right: 24px; width: 42px; height: 42px; }
  .landing-header { padding: 24px; }
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .photo-item.tall { grid-row: span 1; }
  .photo-item.wide { grid-column: span 2; }
}

@media (max-width: 400px) {
  .prow { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}
/* ===== Portrait image on mobile only ===== */

@media (max-width: 640px) {
  .photo-item.portrait-mobile {
    grid-row: span 2;  /* تاخد صفين = طويلة */
    aspect-ratio: 3/4;
  }
  
  .photo-item.portrait-mobile img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}