/* =============================================
   TRADE X — General Contracting & Maintenance
   ============================================= */

:root {
  --color-bg: #0c0e12;
  --color-bg-elevated: #141820;
  --color-bg-card: #1a1f2a;
  --color-surface: #f4f1ec;
  --color-surface-dark: #e8e4dc;
  --color-text: #1a1f2a;
  --color-text-muted: #5c6370;
  --color-text-light: #c8cdd6;
  --color-accent: #c8922a;
  --color-accent-light: #e0aa45;
  --color-accent-dark: #a67520;
  --color-white: #ffffff;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --header-height: 72px;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--dark {
  background: var(--color-bg);
  color: var(--color-white);
}

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 560px;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section--dark .section__label {
  color: var(--color-accent-light);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.section__desc {
  margin-top: 1rem;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  line-height: 1;
}

.logo__trade {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.logo__x {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent);
  letter-spacing: 0;
}

.header .logo__trade,
.header .logo__x {
  color: var(--color-white);
}

.header .logo__x {
  color: var(--color-accent-light);
}

.logo--footer .logo__trade {
  color: var(--color-white);
}

.logo--footer .logo__x {
  color: var(--color-accent-light);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(12, 14, 18, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link--cta {
  padding: 0.5rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-bg) !important;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav__link--cta:hover {
  background: var(--color-accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(200, 146, 42, 0.08) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 60%, rgba(12, 14, 18, 0.9) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.015) 80px,
      rgba(255, 255, 255, 0.015) 81px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.015) 80px,
      rgba(255, 255, 255, 0.015) 81px
    );
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(200, 146, 42, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: calc(var(--header-height) + 3rem) 4rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(200, 146, 42, 0.4);
  color: var(--color-accent-light);
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero__title {
  margin-bottom: 0.5rem;
}

.hero__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
}

.hero__logo-trade {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 9rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
}

.hero__logo-x {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  color: var(--color-accent);
  line-height: 0.85;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.hero__arabic {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.hero__desc {
  max-width: 520px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200, 146, 42, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- About ---- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-surface-dark);
  border: 1px solid var(--color-surface-dark);
}

.stat {
  background: var(--color-white);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--color-accent-dark);
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: rgba(200, 146, 42, 0.3);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent-light);
  margin-bottom: 1.5rem;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-card__arabic {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Credentials ---- */
.credentials {
  padding-block: 3rem;
  background: var(--color-white);
  border-block: 1px solid var(--color-surface-dark);
}

.credentials__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.credentials__item {
  text-align: center;
}

.credentials__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.credentials__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.credentials__divider {
  width: 1px;
  height: 40px;
  background: var(--color-surface-dark);
}

/* ---- Contact ---- */
.contact__inner {
  max-width: 560px;
}

.contact__desc {
  color: var(--color-text-muted);
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact__list li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--color-surface-dark);
}

.contact__list-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact__list a {
  color: var(--color-accent-dark);
  font-weight: 500;
  transition: color var(--transition);
}

.contact__list a:hover {
  color: var(--color-accent);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg);
  color: rgba(255, 255, 255, 0.6);
  padding-block: 3rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.footer__tagline {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.footer__arabic {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.5;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent-light);
}

.footer__legal {
  text-align: right;
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer__legal p:first-child {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.footer__credit {
  margin-top: 0.65rem;
}

.footer__credit a {
  color: var(--color-accent-light);
  font-weight: 600;
  transition: color var(--transition);
}

.footer__credit a:hover {
  color: var(--color-white);
}

/* ---- WhatsApp float ---- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__legal {
    text-align: center;
  }

  .footer__links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .credentials__divider {
    display: none;
  }

  .credentials__inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(12, 14, 18, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__link--cta {
    text-align: center;
    margin-top: 0.5rem;
    border: none;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .hero__scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-line {
    animation: none;
  }

  .btn:hover,
  .service-card:hover,
  .whatsapp-float:hover {
    transform: none;
  }
}
