/* ===== GENSTONE - Main Stylesheet ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Cairo:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --bg-main: #0D0D0D;
  --bg-card: #1A1A1A;
  --gold: #C9A96E;
  --gold-hover: #E2C285;
  --white: #F5F5F5;
  --gray: #A0A0A0;
  --border: #2A2A2A;
  --gold-dark: #8B6914;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 20px rgba(201,169,110,0.2);
  --radius: 4px;
  --header-h: 80px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-main);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
[dir="rtl"] body { font-family: var(--font-arabic); }
[dir="rtl"] { text-align: right; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: var(--font-arabic); }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 3rem;
}
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.gold-text { color: var(--gold); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-dark { background: var(--bg-card); }
.section-darker { background: #111; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
}
.btn-gold {
  background: var(--gold);
  color: #000;
  border: 2px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: #000;
  transform: translateY(-2px);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#header.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-gen {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.logo-stone {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gray);
  line-height: 1;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language Selector */
.lang-selector {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gray);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover { border-color: var(--gold); color: var(--white); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 140px;
  display: none;
  z-index: 100;
  overflow: hidden;
}
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray);
  transition: background 0.2s;
}
.lang-option:hover { background: var(--border); color: var(--white); }
.lang-option.active { color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 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 Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-card);
  z-index: 999;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid var(--border);
}
[dir="rtl"] .mobile-drawer { right: auto; left: -100%; border-left: none; border-right: 1px solid var(--border); }
.mobile-drawer.open { right: 0; }
[dir="rtl"] .mobile-drawer.open { right: auto; left: 0; }
.mobile-drawer a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-drawer a:hover { color: var(--gold); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  display: none;
}
.drawer-overlay.open { display: block; }

/* ===== HERO SLIDER ===== */
#home { padding: 0; }
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-img { transform: scale(1); }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.75) 0%, rgba(13,13,13,0.4) 100%);
}
.hero-slide-content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  padding: 0 24px;
  text-align: center;
}
[dir="rtl"] .hero-slide-content { text-align: center; }
.hero-slide-label {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}
.hero-slide.active .hero-slide-label { opacity: 1; transform: translateY(0); }
.hero-slide-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease 0.4s;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-slide.active .hero-slide-title { opacity: 1; transform: translateY(0); }
.hero-slide-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.6s;
}
.hero-slide.active .hero-slide-buttons { opacity: 1; transform: translateY(0); }

/* Hero Nav */
.hero-controls {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.hero-dot.active { background: var(--gold); transform: scale(1.3); }

/* Hero arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* Scroll Arrow */
.scroll-arrow {
  position: absolute;
  bottom: 3%;
  right: 5%;
  color: var(--white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

/* ===== COUNTER SECTION ===== */
.counters {
  background: var(--bg-card);
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.counter-item {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid var(--border);
}
.counter-item:last-child { border-right: none; }
.counter-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.counter-label {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.1); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
  transition: background 0.3s ease;
}
.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(201,169,110,0.7) 0%, rgba(0,0,0,0.2) 60%);
}
.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}
.category-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 4px;
}
.category-card-link {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.category-card:hover .category-card-link { opacity: 1; transform: translateY(0); }

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(201,169,110,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 auto 20px;
}
.why-card h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
}
.why-card p { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }

/* ===== FEATURED PROJECTS SCROLL ===== */
.featured-projects-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--border);
}
.featured-projects-scroll::-webkit-scrollbar { height: 4px; }
.featured-projects-scroll::-webkit-scrollbar-track { background: var(--border); }
.featured-projects-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.featured-project-card {
  flex: 0 0 320px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.featured-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-project-card:hover img { transform: scale(1.05); }
.featured-project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}
.featured-project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}
.project-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 8px;
}
.featured-project-card-info h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}
.featured-project-card-info span {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: #000;
  margin-bottom: 16px;
}
.cta-banner p { font-size: 1rem; color: rgba(0,0,0,0.7); margin-bottom: 32px; }
.cta-banner .btn-white {
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  font-weight: 600;
}
.cta-banner .btn-white:hover { background: transparent; color: #fff; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrapper {
  position: relative;
}
.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-img-frame {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80%;
  height: 80%;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
[dir="rtl"] .about-img-frame { right: auto; left: -20px; }
.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
[dir="rtl"] .about-feature { flex-direction: row-reverse; }
.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,169,110,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-feature-text h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 4px; }
.about-feature-text p { font-size: 0.85rem; color: var(--gray); }
.about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Mission/Vision */
.mv-band {
  background: #111;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.mv-item {
  background: #111;
  padding: 60px 50px;
}
.mv-item h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.mv-item p { color: var(--gray); line-height: 1.8; }

/* ===== PRODUCTS ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--white); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 600; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(201,169,110,0.15);
  border-color: rgba(201,169,110,0.3);
}
.product-card.hidden { display: none; }
.product-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
}
[dir="rtl"] .product-badge { right: auto; left: 12px; }
.product-card-body { padding: 20px; }
.product-card-body h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.6;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-category-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== PROJECTS MASONRY ===== */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.masonry-item:hover img { transform: scale(1.05); }
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}
.masonry-item:hover .masonry-overlay { background: rgba(0,0,0,0.7); }
.masonry-info {
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}
.masonry-item:hover .masonry-info { transform: translateY(0); opacity: 1; }
.masonry-info h4 { font-size: 1rem; color: var(--white); margin-bottom: 4px; }
.masonry-info span { font-size: 0.8rem; color: var(--gray); }

/* ===== GALLERY ===== */
.gallery-grid {
  columns: 3;
  column-gap: 12px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201,169,110,0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
  opacity: 0;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(201,169,110,0.4); opacity: 1; }
.gallery-item.hidden { display: none; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-nav:hover { background: var(--gold); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--gray);
  white-space: nowrap;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0A0A0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
[dir="rtl"] .form-group select { background-position: left 14px center; padding-right: 16px; padding-left: 36px; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--gold); }
[dir="rtl"] .contact-card { flex-direction: row-reverse; }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,169,110,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-card h4 { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.95rem; color: var(--white); }
.contact-card a:hover { color: var(--gold); }

/* Map Placeholder */
.map-placeholder {
  margin-top: 40px;
  height: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gold);
  color: #000;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.4s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== FOOTER ===== */
#footer { background: #080808; border-top: 1px solid var(--border); }
.footer-top {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}
.footer-logo-wrap .logo { margin-bottom: 16px; }
.footer-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h5 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--gray); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
[dir="rtl"] .footer-contact-item { flex-direction: row-reverse; }
.footer-contact-item i { color: var(--gold); margin-top: 3px; font-size: 0.85rem; width: 16px; }
.footer-contact-item span { font-size: 0.85rem; color: var(--gray); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 0.8rem; color: var(--gray); }

/* ===== FIXED BUTTONS ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-green 2.5s infinite;
}
[dir="rtl"] .whatsapp-float { right: auto; left: 30px; }
.whatsapp-float:hover { transform: scale(1.1); background: #20b358; }

.phone-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 990;
  background: var(--gold);
  color: #000;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 16px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px 0 0 4px;
  transition: var(--transition);
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.phone-float-wrapper {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 990;
  display: flex;
  align-items: center;
}
.phone-float-tab {
  background: var(--gold);
  color: #000;
  padding: 12px 8px;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.phone-float-tab:hover { background: var(--gold-hover); }
.phone-float-content {
  background: var(--gold);
  color: #000;
  padding: 12px 14px;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s ease;
  font-size: 0.85rem;
  font-weight: 600;
}
.phone-float-wrapper:hover .phone-float-content { max-width: 200px; }
[dir="rtl"] .phone-float-wrapper { right: auto; left: 0; }
[dir="rtl"] .phone-float-tab { border-radius: 0 4px 4px 0; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-item:nth-child(2) { border-right: none; }
  .counter-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .counter-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .masonry-grid, .gallery-grid { columns: 2; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .section { padding: 70px 0; }
  .nav-links { display: none; }
  .header-right .btn { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .mv-grid { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
  .lightbox-prev { left: -45px; }
  .lightbox-next { right: -45px; }
  .whatsapp-float { bottom: 20px; right: 20px; }
}

@media (max-width: 640px) {
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .masonry-grid, .gallery-grid { columns: 1; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-slide-buttons { flex-direction: column; align-items: center; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-green {
  0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 12px rgba(37,211,102,0.1); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== CUSTOM PAGE ===== */
.custom-page-content {
  padding: 120px 0 80px;
  min-height: 80vh;
}
.custom-page-content h1 { margin-bottom: 32px; }
.custom-page-content p { color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.custom-page-content h2, .custom-page-content h3 { margin: 32px 0 16px; }
.custom-page-content ul, .custom-page-content ol { margin: 16px 0; padding-left: 24px; color: var(--gray); }
.custom-page-content img { border-radius: var(--radius); margin: 24px 0; max-width: 100%; }
