/* =============================================
   فهد للأثاث - Fahd Furniture - Stylesheet
   ============================================= */

:root {
  --gold: #c9a84c;
  --gold-light: #e2c27d;
  --gold-dark: #a07a2a;
  --cream: #f9f4ee;
  --warm-white: #fffdf9;
  --beige: #f0e6d3;
  --brown-light: #d4b896;
  --brown: #8b6f47;
  --navy: #1a2340;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #7a7a7a;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold {
  color: var(--gold);
}

.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 12px 0 24px;
}

.gold-line.center {
  margin: 12px auto 24px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

.section-sub {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-top: 8px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(201, 168, 76, 0.5);
}

.btn-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1a1a;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 48px rgba(201, 168, 76, 0.55);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.15rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
  background: rgba(26, 35, 64, 0.0);
  backdrop-filter: blur(0);
}

.header.scrolled {
  background: rgba(26, 35, 64, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: var(--transition);
}

.header-logo:hover {
  transform: scale(1.05);
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: rgba(0, 0, 0, 0) !important;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.burger span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 15, 30, 0.72) 0%, rgba(10, 15, 30, 0.5) 50%, rgba(10, 15, 30, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 760px;
  animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  border: 1.5px solid rgba(201, 168, 76, 0.8);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    top: 6px;
    opacity: 1;
  }

  80% {
    top: 18px;
    opacity: 0;
  }
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--warm-white);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-logo-wrap {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
}

.logo-float-card {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--navy), #0d1528);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(26, 35, 64, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.2);
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 20px 60px rgba(26, 35, 64, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.2);
  }

  50% {
    transform: translateY(-16px) rotate(0.5deg);
    box-shadow: 0 36px 80px rgba(26, 35, 64, 0.5), 0 0 40px rgba(201, 168, 76, 0.25), 0 0 0 1px rgba(201, 168, 76, 0.3);
  }
}

.about-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.logo-glow {
  position: absolute;
  inset: -10px;
  border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    opacity: 0.6;
  }

  to {
    opacity: 1;
  }
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}

.about-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 36px;
}

.about-desc strong {
  color: var(--gold-dark);
}

.owner-name {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.owner-highlight {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== CATEGORY SECTIONS ===== */
.category-section {
  padding: 100px 0;
}

.alt-bg {
  background: var(--cream);
}

.kitchen-section {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--beige) 100%);
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.products-grid.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(201, 168, 76, 0.15);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 35, 64, 0.7), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  transition: var(--transition);
}

.card-overlay span {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid var(--gold-light);
  padding: 6px 18px;
  border-radius: 50px;
}

.product-card:hover .card-overlay {
  opacity: 1;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.btn-wa-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.btn-wa-card:hover {
  background: #1ebe5a;
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: var(--navy);
  overflow: hidden;
  text-align: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08), transparent 70%);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ===== FOOTER ===== */
.footer {
  background: #0d1223;
  padding: 48px 0 36px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

.footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-sub {
  color: rgba(201, 168, 76, 0.6) !important;
  font-size: 0.82rem !important;
}

/* ===== FLOATING WHATSAPP ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 62px;
  height: 62px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  text-decoration: none;
  transition: var(--transition);
  animation: waFloat 3s ease-in-out infinite;
}

.wa-float img {
  width: 34px;
  height: 34px;
}

.wa-float:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.7);
  animation: none;
}

.wa-tooltip {
  position: absolute;
  left: 74px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes waFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-inner {
    gap: 48px;
  }

  .about-logo-wrap {
    flex: 0 0 280px;
  }

  .logo-float-card {
    width: 260px;
    height: 260px;
  }

  .about-logo {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    inset: 76px 0 0 0;
    background: rgba(14, 20, 42, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    z-index: 999;
    backdrop-filter: blur(20px);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 1.2rem;
    color: #fff;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }

  .burger {
    display: flex;
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .about-logo-wrap {
    flex: none;
    width: 100%;
  }

  .logo-float-card {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }

  .about-logo {
    width: 160px;
  }

  .gold-line {
    margin: 12px auto 24px;
  }

  .about-stats {
    justify-content: center;
  }

  .products-grid,
  .products-grid.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .category-section,
  .about {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .products-grid,
  .products-grid.grid-3 {
    grid-template-columns: 1fr;
  }

  .about-stats {
    gap: 20px;
  }

  .wa-float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    left: 20px;
  }

  .wa-float img {
    width: 28px;
    height: 28px;
  }

  .wa-tooltip {
    display: none;
  }
}