/* =============================================================
   شركة صياح أبوشعر للتجارة الدولية والصناعة — Coming Soon
   Design: navy + gold, premium corporate, RTL Arabic
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #0B1F33;  /* Primary — deep navy/petrol */
  --gold:        #C8A24A;  /* Secondary — gold accent    */
  --gold-soft:   #d9b968;
  --silver:      #E9EBEF;  /* Neutral light              */
  --hero-bg:     #060B14;  /* Dark hero background        */
  --light:       #F4F5F7;  /* Light text                 */
  --muted:       #aeb7c4;  /* Muted secondary text       */

  --glass:       rgba(255, 255, 255, 0.045);
  --glass-brd:   rgba(200, 162, 74, 0.22);
  --glass-brd-2: rgba(255, 255, 255, 0.08);

  --radius:      16px;
  --radius-sm:   12px;
  --shadow:      0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --maxw:        1120px;

  --font-head: "Tajawal", system-ui, sans-serif;
  --font-body: "Cairo", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--light);
  background: var(--hero-bg);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.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;
}

/* =============================================================
   ANIMATED BACKGROUND (3D parallax + glow)
   ============================================================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(11, 31, 51, 0.9), transparent 60%),
    radial-gradient(1000px 600px at 10% 110%, rgba(11, 31, 51, 0.75), transparent 55%),
    linear-gradient(160deg, var(--hero-bg) 0%, #081324 55%, #060B14 100%);
}

/* faint engineering grid for corporate depth */
.bg__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(200, 162, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 162, 74, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.7;
}

/* soft floating glows */
.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.bg__glow--gold {
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  top: -8%; inset-inline-start: 58%;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.28), transparent 70%);
  animation: float-a 16s ease-in-out infinite;
}
.bg__glow--navy {
  width: 52vw; height: 52vw; max-width: 720px; max-height: 720px;
  bottom: -14%; inset-inline-end: 55%;
  background: radial-gradient(circle, rgba(37, 84, 128, 0.42), transparent 70%);
  animation: float-b 20s ease-in-out infinite;
}

/* abstract geometric shapes (global-trade motif) */
.shape {
  position: absolute;
  will-change: transform;
  opacity: 0.55;
}
.shape--ring {
  width: 190px; height: 190px; top: 16%; inset-inline-start: 8%;
  border: 1.5px solid rgba(200, 162, 74, 0.35);
  border-radius: 50%;
  animation: drift 22s ease-in-out infinite;
}
.shape--ring::after {
  content: ""; position: absolute; inset: 26px;
  border: 1px solid rgba(233, 235, 239, 0.14); border-radius: 50%;
}
.shape--diamond {
  width: 118px; height: 118px; top: 60%; inset-inline-end: 12%;
  border: 1.5px solid rgba(200, 162, 74, 0.30);
  transform: rotate(45deg);
  animation: drift 26s ease-in-out infinite reverse;
}
.shape--square {
  width: 72px; height: 72px; top: 24%; inset-inline-end: 20%;
  border: 1px solid rgba(233, 235, 239, 0.12);
  border-radius: 10px;
  animation: drift 30s ease-in-out infinite;
}
.shape--dot {
  width: 10px; height: 10px; top: 74%; inset-inline-start: 22%;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px 3px rgba(200, 162, 74, 0.55);
  animation: drift 18s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-3%, 5%, 0) scale(1.08); }
}
@keyframes float-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(4%, -4%, 0) scale(1.06); }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -26px, 0) rotate(8deg); }
}
.shape--diamond { animation-name: drift-diamond; }
@keyframes drift-diamond {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(-24px); }
}

/* =============================================================
   LAYOUT
   ============================================================= */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.header {
  padding: 26px 0 8px;
  display: flex;
  justify-content: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand__logo {
  filter: drop-shadow(0 6px 16px rgba(200, 162, 74, 0.25));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--light);
  letter-spacing: 0.2px;
}
.brand__sub {
  font-size: 0.82rem;
  color: var(--gold-soft);
  font-weight: 500;
}

/* ---------- Shared bits ---------- */
.divider {
  display: block;
  width: 70px; height: 2px;
  margin-block: 0 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}
.divider--center { margin-inline: auto; }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  color: var(--light);
  margin-bottom: 14px;
}

.panel {
  background: var(--glass);
  border: 1px solid var(--glass-brd-2);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  padding: clamp(40px, 8vh, 96px) 0 clamp(30px, 6vh, 60px);
  text-align: center;
}
.hero__inner { max-width: 760px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-soft);
  padding: 7px 16px;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: rgba(200, 162, 74, 0.06);
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(200, 162, 74, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 162, 74, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(200, 162, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 162, 74, 0); }
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3.4rem, 13vw, 7rem);
  line-height: 1.05;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 0%, #cfd6e0 55%, var(--gold) 160%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 60px rgba(200, 162, 74, 0.12);
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 18px);
  max-width: 620px;
  margin: 0 auto;
}
.cd-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  padding: clamp(16px, 3vw, 26px) 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.cd-card::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}
.cd-card__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 3.1rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 24px rgba(200, 162, 74, 0.3);
}
.cd-card__label {
  display: block;
  margin-top: 10px;
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.launch-msg {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--gold);
  margin-top: 8px;
}

/* =============================================================
   ABOUT
   ============================================================= */
.about { padding: clamp(30px, 6vh, 56px) 0; }
.about .panel { text-align: center; }
.about__text {
  color: var(--silver);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  max-width: 720px;
  margin-inline: auto;
}

/* =============================================================
   PRODUCTS — مجالات عملنا
   ============================================================= */
.products { padding: clamp(24px, 6vh, 52px) 0; text-align: center; }
.products .divider { margin-inline: auto; }
.products__sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  margin-bottom: 30px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* desktop: 4 columns */
  gap: 18px;
  text-align: start;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  height: 100%;                     /* equal-height cards */
  padding: 26px 22px;
  border-radius: var(--radius);
  background: rgba(11, 31, 51, 0.6);
  border: 1px solid var(--glass-brd-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 22px 48px -22px rgba(200, 162, 74, 0.45);
}

.product-card__badge {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(200, 162, 74, 0.10);
  border: 1px solid var(--glass-brd);
  transition: background 0.28s ease, transform 0.28s ease;
}
.product-card:hover .product-card__badge {
  background: rgba(200, 162, 74, 0.18);
  transform: translateY(-2px);
}
.product-card__badge svg { width: 28px; height: 28px; }

.product-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--light);
}
.product-card__desc {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* tablet: 2 columns */
@media (max-width: 900px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
}
/* mobile: 1 column */
@media (max-width: 560px) {
  .products__grid { grid-template-columns: 1fr; }
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact { padding: clamp(20px, 5vh, 40px) 0; text-align: center; }
.contact .divider { margin-inline: auto; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 26px;
  text-align: start;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-brd-2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-brd);
  background: rgba(200, 162, 74, 0.05);
}
.contact-card__icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--gold);
  background: rgba(200, 162, 74, 0.10);
  border: 1px solid var(--glass-brd);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-soft);
}
.contact-card__value {
  color: var(--light);
  font-weight: 500;
  font-size: 0.98rem;
  word-break: break-word;
}
a.contact-card__value { transition: color 0.2s ease; }
a.contact-card__value:hover { color: var(--gold); }

/* =============================================================
   NOTIFY
   ============================================================= */
.notify { padding: clamp(24px, 5vh, 48px) 0; }
.notify__panel { text-align: center; }
.notify__text { color: var(--muted); margin-bottom: 24px; }

.notify__form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.notify__input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-brd-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.notify__input::placeholder { color: #7f8896; text-align: right; }
.notify__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.18);
}

.btn {
  flex: 0 0 auto;
  padding: 14px 26px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 30px -10px rgba(200, 162, 74, 0.6);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(200, 162, 74, 0.5); outline-offset: 3px; }

.notify__feedback {
  margin-top: 16px;
  min-height: 1.2em;
  font-weight: 600;
  color: var(--gold-soft);
}
.notify__feedback.is-error { color: #e08a8a; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  margin-top: auto;
  padding: 36px 0 28px;
  text-align: center;
}
.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.social__link {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--glass-brd-2);
  background: var(--glass);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social__link svg { width: 19px; height: 19px; }
.social__link:hover {
  color: var(--gold);
  border-color: var(--glass-brd);
  transform: translateY(-2px);
}
.footer__copy {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 2;
}
.footer__sep { color: var(--glass-brd); margin-inline: 6px; }
.footer__credit {
  color: var(--gold-soft);
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer__credit:hover { color: var(--gold); text-decoration: underline; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 560px) {
  .countdown {
    grid-template-columns: repeat(2, 1fr);
    max-width: 340px;
  }
  .brand__name { font-size: 1.15rem; }
  .brand__sub { font-size: 0.75rem; }
  .notify__form { flex-direction: column; }
  .btn { width: 100%; }
}

@media (max-width: 360px) {
  .page { padding: 0 16px; }
  .contact__grid { grid-template-columns: 1fr; }
}

/* Larger screens — a touch more breathing room */
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   ACCESSIBILITY — respect reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
