/* Homepage — indelta brand (matches style.css: cyan accent + slate tones) */
.page-home {
  --site-accent: #00c2e7;
  --site-accent-mid: #00a8cb;
  --site-accent-deep: #00a6c7;
  --site-accent-glow: rgba(0, 194, 231, 0.28);
  --site-ink: #2f4956;
  --site-text: #3d5a68;
  --site-muted: #667892;
  --site-line: #d8e2ee;
  --site-surface: #f7faff;
  --site-card: #ffffff;
  --site-hero-frost: rgba(255, 255, 255, 0.14);
  font-family: Inter, Arial, sans-serif;
  color: var(--site-text);
  background: linear-gradient(180deg, #f7faff 0%, #eef3fa 100%);
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4 {
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.page-home .site-header {
  border: none;
}

.page-home .top-bar {
  background: transparent;
  color: var(--site-muted);
  padding: 10px 0;
  font-size: 0.84rem;
  letter-spacing: normal;
  text-transform: none;
}

.page-home .top-right a {
  color: var(--accent-2, #3d5a68);
}

.page-home .navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: none;
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
  box-shadow: 0 6px 16px rgba(30, 53, 85, 0.06);
}

.page-home .brand-mark {
  background: linear-gradient(135deg, #00c2e7, #00a6c7);
  color: #083946;
  border-radius: 8px;
  letter-spacing: normal;
}

.page-home .brand-text {
  color: var(--site-ink);
  font-size: 1.14rem;
}

.page-home .nav-links a {
  color: var(--site-text);
}

.page-home .nav-links a:hover {
  color: var(--site-accent);
}

.page-home .btn-primary {
  background: linear-gradient(135deg, #00c2e7, #00a8cb);
  color: #053743;
  box-shadow: 0 10px 22px var(--site-accent-glow);
  border: none;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
}

.page-home .btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.page-home .navbar .btn-primary {
  box-shadow: 0 8px 18px var(--site-accent-glow);
}

/* Hero: keep readable on photo */
.page-home .jd-hero .btn-primary {
  color: #053743;
}

.page-home .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
}

.page-home .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.page-home .navbar .btn-secondary {
  background: #f5f9ff;
  color: var(--site-text);
  border: 1px solid var(--site-line);
}

.page-home .navbar .btn-secondary:hover {
  background: #eaf8fc;
  border-color: #b6eaf4;
}

.page-home .lang-toggle {
  border: 1px solid var(--site-line);
  color: var(--site-text);
  background: var(--site-card);
}

/* —— Full-screen hero —— */
.page-home .hero.section.jd-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  display: block;
  margin-top: 0;
}

.page-home .jd-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-home .jd-hero .hero-slider {
  position: absolute;
  inset: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #0d120f;
}

.page-home .jd-hero .hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.page-home .jd-hero .hero-slide.active {
  display: block;
}

.page-home .jd-hero .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-height: none;
}

.page-home .jd-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 38, 48, 0.9) 0%,
    rgba(47, 73, 86, 0.55) 45%,
    rgba(0, 120, 145, 0.22) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.page-home .jd-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.page-home .jd-hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 122px);
  min-height: calc(100dvh - 122px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  /* ثابت من الأعلى: تغيير طول العنوان/الوصف لا يحرك الكتلة للأعلى/الأسفل كما يحدث مع التوسيط */
  padding-top: clamp(96px, 14vh, 168px);
  padding-bottom: clamp(40px, 6vw, 88px);
  box-sizing: border-box;
}

.page-home .jd-hero .hero-grid {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.page-home .jd-hero .hero-copy {
  color: #fff;
}

.page-home .jd-hero .eyebrow {
  color: #a8f0ff;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.page-home .jd-hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
}

.page-home .jd-hero .subtext {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 28px;
}

.page-home .jd-hero .hero-cta {
  gap: 14px;
  margin-bottom: 36px;
}

.page-home .jd-hero .hero-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.page-home .jd-hero .hero-stats div {
  background: var(--site-hero-frost);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 10px;
}

.page-home .jd-hero .hero-stats strong {
  color: #fff;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 1.5rem;
}

.page-home .jd-hero .hero-stats span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

/* Captions sit under full-screen scrim; headline in hero-copy carries the message */
.page-home .jd-hero .hero-slide-caption {
  display: none;
}

.page-home .jd-hero .hero-dot {
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.page-home .jd-hero .hero-dot.active {
  background: var(--site-accent);
  transform: scale(1.15);
}

.page-home .jd-hero-scroll {
  position: absolute;
  bottom: 24px;
  left: max(24px, 4vw);
  z-index: 4;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: jd-float 2.5s ease-in-out infinite;
}

@keyframes jd-float {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateY(6px);
  }
}

/* —— Categories —— */
.jd-section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.jd-section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.jd-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--site-accent);
  margin-bottom: 10px;
}

.jd-section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  text-transform: uppercase;
  color: var(--site-ink);
  line-height: 1.1;
}

.jd-section-head p {
  margin-top: 12px;
  color: var(--site-muted);
  font-size: 1.05rem;
}

.jd-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.jd-cat-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 280px;
  background: #0d120f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.jd-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0, 120, 145, 0.18);
}

.jd-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.jd-cat-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.jd-cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 38, 48, 0.9) 100%);
  pointer-events: none;
}

.jd-cat-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px 18px;
  color: #fff;
}

.jd-cat-body h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}

.jd-cat-body p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  margin-bottom: 12px;
}

.jd-cat-body a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7ee8ff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.jd-cat-body a:hover {
  text-decoration: underline;
}

/* —— Promo strip —— */
.jd-promo {
  background: linear-gradient(90deg, #006e86 0%, #00a8cb 50%, #33d6f5 100%);
  color: #fff;
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}

.jd-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0H30L0 30z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.9;
}

.jd-promo-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.jd-promo-badge {
  display: inline-block;
  background: #eaf8fc;
  color: var(--site-ink);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.jd-promo h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: #fff;
  margin: 8px 0 4px;
}

.jd-promo p {
  opacity: 0.92;
  max-width: 560px;
  font-size: 0.98rem;
}

.jd-promo .btn-primary {
  flex-shrink: 0;
}

/* —— Featured catalog —— */
.page-home .catalog {
  background: #fff;
}

.page-home .catalog .section-head .eyebrow {
  color: var(--site-accent);
}

.page-home .catalog .section-head h2 {
  color: var(--site-ink);
  text-transform: uppercase;
}

.page-home .filter-bar {
  border: 1px solid var(--site-line);
  background: var(--site-surface);
  border-radius: 10px;
  padding: 8px;
  gap: 6px;
}

.page-home .filter-btn {
  border-radius: 2px;
  border: none;
  background: transparent;
  color: var(--site-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.page-home .filter-btn.active {
  background: var(--site-accent);
  color: #fff;
}

.page-home .product-card {
  border-radius: 10px;
  border: 1px solid var(--site-line);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.page-home .product-card .tag {
  background: var(--site-accent);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.page-home .product-card h3 {
  text-transform: uppercase;
  font-size: 1.05rem;
}

.page-home .card-actions .btn-primary {
  font-size: 0.75rem;
}

.page-home .card-actions .btn-link {
  color: var(--site-accent);
  font-weight: 700;
}

/* —— Technology —— */
.jd-tech {
  background: linear-gradient(180deg, #f7faff 0%, #f3f8fe 100%);
  border-top: 1px solid var(--site-line);
}

.jd-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.jd-tech-card {
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.jd-tech-card:hover {
  border-color: var(--site-accent);
  box-shadow: 0 12px 36px rgba(0, 120, 145, 0.12);
}

.jd-tech-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00c2e7, #00a6c7);
  color: #083946;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.jd-tech-icon svg {
  width: 28px;
  height: 28px;
}

.jd-tech-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--site-ink);
}

.jd-tech-card p {
  color: var(--site-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* —— Parts & services —— */
.jd-parts {
  background: linear-gradient(180deg, #eaf8fc 0%, #f7faff 100%);
  color: var(--site-text);
  border-top: 1px solid var(--site-line);
}

.jd-parts .jd-section-label {
  color: var(--accent-2, #3d5a68);
}

.jd-parts .jd-section-head h2 {
  color: var(--site-ink);
}

.jd-parts .jd-section-head p {
  color: var(--site-muted);
}

.jd-parts-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 640px;
}

.jd-parts-search input {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--site-line);
  background: #fff;
  color: var(--site-text);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1rem;
}

.jd-parts-search input::placeholder {
  color: var(--site-muted);
}

.jd-parts-search input:focus {
  outline: none;
  border-color: var(--site-accent);
}

.jd-parts-search button {
  border: none;
  cursor: pointer;
}

.jd-parts-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.jd-parts-links a {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1px solid var(--site-line);
  color: var(--site-text);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.jd-parts-links a:hover {
  background: #eaf8fc;
  border-color: #b6eaf4;
  color: var(--accent-2, #3d5a68);
}

/* —— Trust —— */
.page-home #trust {
  background: #fff;
}

.page-home #trust .section-head .eyebrow {
  color: var(--site-accent);
}

.page-home #trust .section-head h2 {
  text-transform: uppercase;
  color: var(--site-ink);
}

.page-home .trust-lead {
  color: var(--site-muted);
}

.page-home .trust-grid article {
  border: 1px solid var(--site-line);
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

.page-home .trust-grid article:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.page-home .trust-grid article h3 {
  color: var(--site-accent);
  text-transform: uppercase;
  font-size: 1rem;
}

.page-home .certificate-strip span {
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  color: var(--site-ink);
}

/* —— About —— */
.page-home #about {
  background: linear-gradient(135deg, #f7faff 0%, #fff 60%);
  border-top: 1px solid var(--site-line);
}

.page-home #about .eyebrow {
  color: var(--site-accent);
}

.page-home #about h2 {
  text-transform: uppercase;
  color: var(--site-ink);
}

.page-home .metric-cards div {
  border-radius: 10px;
  border: 1px solid var(--site-line);
  background: #fff;
}

.page-home .metric-cards strong {
  color: var(--site-accent);
  font-family: Rajdhani, Inter, sans-serif;
}

/* —— Dealer CTA —— */
.jd-dealer-cta {
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(90deg, #00a8cb 0%, #2f4956 100%);
  color: #fff;
  text-align: center;
}

.jd-dealer-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.jd-dealer-cta p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.jd-dealer-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.jd-dealer-btns .btn-primary {
  min-width: 200px;
}

.jd-dealer-btns .btn-secondary {
  border-color: #fff;
}

/* —— Inquiry —— */
.page-home #inquiry {
  background: #fff;
}

.page-home #inquiry .eyebrow {
  color: var(--site-accent);
}

.page-home #inquiry h2 {
  text-transform: uppercase;
}

.page-home .inquiry-form input,
.page-home .inquiry-form textarea {
  border-radius: 4px;
  border-color: #cdd8d2;
}

.page-home .inquiry-form input:focus,
.page-home .inquiry-form textarea:focus {
  outline: 2px solid rgba(0, 194, 231, 0.35);
  border-color: var(--site-accent);
}

/* —— Footer —— (aligned with style.css .site-footer) */
.page-home .site-footer {
  background: #f9fbff;
  color: var(--site-muted);
  border-top: 1px solid var(--site-line);
  padding: 36px 0 20px;
}

.page-home .footer-main {
  border-bottom: 1px solid var(--site-line);
}

.page-home .footer-brand h3 {
  color: var(--site-ink);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 1.5rem;
}

.page-home .footer-brand p {
  color: var(--site-muted);
}

.page-home .footer-col h4 {
  color: var(--site-ink);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .footer-col a {
  color: var(--site-muted);
  font-weight: 500;
}

.page-home .footer-col a:hover {
  color: var(--accent-2, #3d5a68);
}

.page-home .footer-bottom {
  border-top: none;
  padding-top: 20px;
  margin-top: 8px;
}

.page-home .footer-bottom p {
  color: var(--site-muted);
}

.page-home .floating-inquiry {
  background: #25d366;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jd-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.jd-social a {
  color: var(--site-muted);
  display: flex;
  transition: color 0.2s ease;
}

.jd-social a:hover {
  color: var(--site-accent);
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .jd-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .jd-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jd-tech-grid {
    grid-template-columns: 1fr;
  }

  .page-home .jd-hero .hero-stats {
    grid-template-columns: 1fr;
  }

  .jd-promo-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .jd-cat-grid {
    grid-template-columns: 1fr;
  }
}

html[dir="rtl"] .page-home .jd-hero-scroll {
  left: auto;
  right: max(24px, 4vw);
}

html[dir="rtl"] .page-home .jd-cat-body a {
  flex-direction: row-reverse;
}
