/* ============================================
   Noufal Traders — Design Tokens
   Palette: deep navy (from logo), smoke grey, white
   Type: Outfit (display, geometric — echoes the logo's linework) / Inter (body)
   Motif: supply network diagram — hub & node lines
   ============================================ */

:root {
  --bg: #081A25;
  --bg-alt: #0B222F;
  --surface: #0F2B3B;
  --surface-2: #133345;
  --border: #1E3E4F;
  --border-soft: #16303F;

  --steel: #8FA9B8;       /* smoke-blue-grey accent */
  --steel-bright: #B7CBD6;
  --steel-glow: rgba(143, 169, 184, 0.14);

  --text: #EDF2F4;
  --text-muted: #9FB0B9;
  --text-faint: #647883;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, var(--steel-glow), transparent 45%),
    radial-gradient(circle at 100% 30%, rgba(143,169,184,0.07), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-bright);
  margin: 0 0 12px;
}
.section-tag.center { text-align: center; }

.section-title { font-size: clamp(28px, 4vw, 38px); }
.section-title.center { text-align: center; }
.section-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 16px;
}
.section-sub.center { text-align: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--steel-bright);
  color: #0B222F;
}
.btn-primary:hover { background: #CFDFE7; box-shadow: 0 8px 24px var(--steel-glow); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--steel-bright); color: var(--steel-bright); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 26, 37, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color .18s;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ============ HERO ============ */
.hero { padding: 84px 0 60px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--steel-bright);
  background: var(--steel-glow);
  border: 1px solid rgba(143,169,184,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--steel-bright);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(183,203,214,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(183,203,214,0); }
  100% { box-shadow: 0 0 0 0 rgba(183,203,214,0); }
}

.hero h1 { font-size: clamp(38px, 5vw, 58px); }

.hero-lead {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 480px;
  margin: 20px 0 32px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--steel-bright);
  background: var(--steel-glow);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---- network diagram (signature element) ---- */
.hero-visual { position: relative; text-align: center; }
.network-diagram { width: 100%; max-width: 420px; margin: 0 auto; }

.net-lines line {
  stroke: var(--border);
  stroke-width: 1.5;
  stroke-dasharray: 6;
}
.net-nodes circle {
  fill: var(--surface-2);
  stroke: var(--steel);
  stroke-width: 2;
  animation: node-pulse 3s var(--ease) infinite;
}
.net-nodes circle:nth-child(2) { animation-delay: .3s; }
.net-nodes circle:nth-child(3) { animation-delay: .6s; }
.net-nodes circle:nth-child(4) { animation-delay: .9s; }
.net-nodes circle:nth-child(5) { animation-delay: 1.2s; }
.net-nodes circle:nth-child(6) { animation-delay: 1.5s; }
@keyframes node-pulse {
  0%, 100% { r: 7; opacity: .85; }
  50% { r: 9; opacity: 1; }
}
.net-hub-ring {
  fill: none;
  stroke: var(--steel-glow);
  stroke-width: 14;
}
.net-hub {
  fill: var(--steel-bright);
}
.net-hub-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  fill: #0B222F;
}
.network-caption {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* ============ OFFER / AT-A-GLANCE STRIP ============ */
.offer-strip { background: var(--steel-bright); color: #0B222F; }
.offer-inner { padding: 12px 24px; text-align: center; font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.lead-text { font-size: 18px; color: var(--text); }
.about-copy p { color: var(--text-muted); }
.about-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.check { color: var(--steel-bright); font-weight: 700; }

.about-visual { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--steel-bright);
  line-height: 1;
}
.stat-label { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }

/* ============ SERVICES ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--steel); transform: translateY(-3px); }
.service-icon { font-size: 26px; display: block; margin-bottom: 14px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.service-card-cta {
  background: linear-gradient(160deg, var(--steel-glow), transparent);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.service-card-cta .btn { align-self: flex-start; margin-top: 6px; }

/* ============ PRODUCTS ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.product-card:hover { border-color: var(--steel); transform: translateY(-3px); }
.product-icon {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  fill: none;
  stroke: var(--steel-bright);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.product-card p { color: var(--text-muted); font-size: 13.5px; margin: 0; }

.work-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
  font-family: var(--font-display);
  margin-top: 36px;
}

/* ============ FAQ ============ */
.faq-wrap { max-width: 720px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--steel-bright); font-size: 20px; transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding-bottom: 20px; margin: 0; font-size: 15px; }

/* ============ CTA / CONTACT ============ */
.cta-section { text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-title { font-size: clamp(28px, 4vw, 38px); }
.cta-sub { color: var(--text-muted); font-size: 17px; margin-bottom: 40px; }
.contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.social-link { color: var(--steel-bright); font-size: 14.5px; font-weight: 600; }
.social-link:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border-soft); padding-top: 56px; background: var(--bg-alt); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo { height: 40px; width: 40px; object-fit: cover; border-radius: 8px; }
.footer-brand p { color: var(--text-muted); font-size: 13.5px; margin: 0; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--text-muted); }
.footer-links a:hover, .footer-contact a:hover { color: var(--steel-bright); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

#devInfo a{
  color: var(--steel-bright);
  text-decoration: none;
  font-size: .9rem;
}

/* ============ FLOATING WHATSAPP ============ */
.floating-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--steel-bright);
  color: #0B222F;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 30px -6px var(--steel-glow);
  z-index: 60;
  transition: transform .2s;
}
.floating-whatsapp:hover { transform: scale(1.08); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { flex-direction: row; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-links, .footer-contact { align-items: center; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .service-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .about-visual { flex-direction: column; }
  .contact-buttons { flex-direction: column; width: 100%; }
  .contact-buttons .btn { width: 100%; }
}
