/* أرابيسك — أثاث استيراد (نمط فاتح) */
:root {
  --color-bg: #ffffff;
  --color-surface: #f6f7f9;
  --color-elevated: #ffffff;
  --color-accent: #b8860b;
  --color-accent-soft: rgba(184, 134, 11, 0.12);
  --color-text: #1a1d21;
  --color-muted: #5c6570;
  --font-ar: "Tajawal", "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --header-h: 72px;
  --border-subtle: rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.85;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
  gap: 0.05rem;
}

.brand-name-primary {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
}

.brand-name-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
}

@media (max-width: 380px) {
  .brand-name-primary {
    font-size: 0.95rem;
  }

  .brand-name-sub {
    font-size: 0.72rem;
  }
}

/* شعار داخل السلايدر + الاسم */
.hero-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-logo {
  margin-bottom: 0;
  flex-shrink: 0;
}

.hero-logo img {
  height: auto;
  width: auto;
  max-height: clamp(64px, 14vw, 110px);
  max-width: min(320px, 85vw);
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.95));
}

.hero-brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.hero-brand-primary {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--color-text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.hero-brand-sub {
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  font-weight: 600;
  color: var(--color-muted);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.page-hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.page-hero-logo {
  margin-bottom: 0;
}

.page-hero-logo img {
  height: auto;
  max-height: clamp(56px, 12vw, 96px);
  max-width: min(280px, 90vw);
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-hero-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.page-hero-primary {
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  font-weight: 800;
  color: var(--color-text);
}

.page-hero-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* تذييل مع الشعار */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand-side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-company-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 0.15rem;
}

.footer-company-name strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
}

.footer-company-name span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

@media (min-width: 600px) {
  .footer-brand {
    flex-direction: row;
    text-align: right;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-brand-text {
    text-align: right;
  }
}

.footer-logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-text p {
  margin: 0.35rem 0;
}

.footer-brand-text p:first-child {
  margin-top: 0;
}

.brand-text-fallback {
  display: none;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  font-weight: 800;
  max-width: 14rem;
  line-height: 1.35;
}

.brand.no-logo .brand-name {
  display: none;
}

.brand.no-logo .brand-text-fallback {
  display: block;
}

.brand.no-logo .brand-logo-img {
  display: none;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--color-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
  box-shadow: var(--shadow);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--color-text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.nav-mobile a:hover {
  background: var(--color-accent-soft);
}

body.nav-open {
  overflow: hidden;
}

/* Hero slider */
.hero {
  margin-top: var(--header-h);
  position: relative;
  min-height: min(85vh, 720px);
  background: var(--color-surface);
}

.slider {
  position: relative;
  width: 100%;
  height: min(85vh, 720px);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 3rem 1.25rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-content p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 36rem;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.slider-dots button.active {
  background: var(--color-accent);
  transform: scale(1.15);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  padding: 0 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.slider-arrows button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.slider-arrows button:hover {
  background: var(--color-accent-soft);
  border-color: rgba(184, 134, 11, 0.35);
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--color-surface);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 2rem;
  color: var(--color-text);
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.capital-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--color-accent-soft);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  color: var(--color-accent);
  font-weight: 700;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-elevated);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--color-accent);
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-info {
  background: var(--color-elevated);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.contact-info .contact-address {
  margin: 0.5rem 0 0;
  color: var(--color-text);
  line-height: 1.65;
}

.contact-info h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.contact-info p,
.contact-info a {
  margin: 0.5rem 0;
  color: var(--color-muted);
  display: block;
}

.contact-info a[href^="tel:"],
.contact-info a[href^="mailto:"] {
  color: var(--color-accent);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #c9a227, #9a7218);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: rgba(34, 139, 34, 0.1);
  color: #1d6f1d;
  border: 1px solid rgba(34, 139, 34, 0.25);
}

.form-message.error {
  background: rgba(200, 50, 50, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(200, 50, 50, 0.2);
}

/* Products grid (products page) */
.products-hero {
  margin-top: var(--header-h);
  padding: 3rem 1.25rem 2rem;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  text-align: center;
}

.products-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-text);
}

.products-hero p {
  margin: 0;
  color: var(--color-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 2rem 1.25rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-elevated);
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.product-card figcaption {
  padding: 1rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 2rem 1.25rem;
  background: var(--color-surface);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-accent);
}

.site-footer .footer-address {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* CTA strip */
.cta-strip {
  background: var(--color-accent-soft);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip p {
  margin: 0;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .slider-arrows button {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 769px) {
  .nav-mobile {
    display: none !important;
  }
}
