/* =============================================
   هزازي للأثاث — Stylesheet
   ============================================= */

/* --- المتغيرات --- */
:root {
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-gold: #c9a962;
  --color-gold-light: #d4bc7e;
  --color-gold-dark: #a88b4a;
  --color-gray-light: #f5f5f5;
  --color-gray: #e8e8e8;
  --color-gray-text: #666666;
  --color-whatsapp: #25d366;

  --font-main: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;

  --header-height: 80px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Scroll Animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 98, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn--outline:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-color: var(--color-whatsapp);
}

.btn--whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-black);
}

.logo__img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo--footer .logo__img {
  height: 42px;
}

/* =============================================
   Header
   ============================================= */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-gray);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-black);
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-gold-dark);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Menu Toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: url('images/hero.jpg') center / cover no-repeat;
  text-align: center;
  color: var(--color-white);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  max-width: 800px;
}

.hero__tag {
  display: inline-block;
  padding: 8px 24px;
  margin-bottom: 24px;
  background: rgba(201, 169, 98, 0.2);
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gold-light);
  letter-spacing: 1px;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero__desc {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  transition: border-color var(--transition);
}

.hero__scroll:hover {
  border-color: var(--color-gold);
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 4px;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 28px; }
}

/* Stagger hero animations */
.hero__tag { transition-delay: 0.1s; }
.hero__title { transition-delay: 0.25s; }
.hero__desc { transition-delay: 0.4s; }
.hero__buttons { transition-delay: 0.55s; }

/* =============================================
   Sections — General
   ============================================= */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-black);
}

.section__desc {
  font-size: 1.05rem;
  color: var(--color-gray-text);
  max-width: 550px;
  margin: 0 auto;
}

/* =============================================
   Products
   ============================================= */
.products {
  background: var(--color-gray-light);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__body {
  padding: 28px;
}

.product-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-card__subtitle {
  font-size: 0.9rem;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.product-card__desc {
  font-size: 0.92rem;
  color: var(--color-gray-text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =============================================
   Why Us / Features
   ============================================= */
.why-us {
  background: var(--color-white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 36px 28px;
  background: var(--color-gray-light);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--color-white);
  border-color: var(--color-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.1);
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-gray-text);
  line-height: 1.7;
}

/* =============================================
   Order Form
   ============================================= */
.order {
  background: var(--color-gray-light);
}

.order__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.order__info .section__title {
  text-align: right;
}

.order__info .section__tag {
  display: block;
  text-align: right;
}

.order__text {
  color: var(--color-gray-text);
  margin-bottom: 32px;
  line-height: 1.8;
}

.order__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.order__steps li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.order-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-black);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid var(--color-gray);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-black);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.order-form .btn--full {
  grid-column: 1 / -1;
  margin-top: 8px;
}

/* =============================================
   Contact
   ============================================= */
.contact {
  background: var(--color-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  padding: 24px 18px;
  background: var(--color-gray-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.contact-card:hover {
  background: var(--color-white);
  border-color: var(--color-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 50%;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__icon--whatsapp {
  background: var(--color-whatsapp);
}

.contact-card:hover .contact-card__icon {
  background: var(--color-gold);
}

.contact-card:hover .contact-card__icon--whatsapp {
  background: #1ebe57;
}

.contact-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card__link {
  color: var(--color-gold-dark);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-card__link:hover {
  color: var(--color-gold);
}

.contact-card__text {
  color: var(--color-gray-text);
  font-size: 0.95rem;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-links__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--color-white);
  border: 2px solid var(--color-gray);
  border-radius: 50%;
  color: var(--color-black);
  transition: all var(--transition);
}

.social-links__item svg {
  width: 18px;
  height: 18px;
}

.social-links__item:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.logo--footer {
  color: var(--color-white);
}

.footer__copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   WhatsApp Float Button
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: pulse 2.5s infinite;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.65); }
}

/* =============================================
   Responsive — Tablet
   ============================================= */
@media (max-width: 992px) {
  .nav__list {
    gap: 24px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .order__info .section__title,
  .order__info .section__tag {
    text-align: center;
  }

  .order__steps {
    align-items: center;
  }
}

/* =============================================
   Responsive — Mobile
   ============================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    background: var(--color-white);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-gray);
  }

  .header__actions .btn--whatsapp.btn--sm {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .products__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .order-form {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    left: 20px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .product-card__actions {
    flex-direction: column;
  }

  .product-card__actions .btn {
    width: 100%;
  }
}
