/* ============================================
   Global Sands – Professional Procurement
   Darker blue base + logo colours (bright blue, lime green)
   ============================================ */

:root {
  --bg-dark: #061528;
  --bg-card: #0a1c32;
  --bg-elevated: #0f243d;
  --slate: #1e3a5f;
  --slate-light: #3d5a80;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  /* Logo: bright blue (Global / globe) + lime green (Sands / connections) */
  --accent-blue: #00a3e0;
  --accent-blue-dim: #0087bd;
  --accent-green: #a8d43d;
  --accent-green-dim: #8fbc2e;
  --white: #f8fafc;
  --border: rgba(62, 90, 128, 0.25);
  --font-head: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --space: 1.5rem;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem var(--space);
  background: rgba(6, 21, 40, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--accent-green) !important;
}

.nav-cta:hover {
  color: var(--accent-green-dim) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dim) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 163, 224, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 163, 224, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(248, 250, 252, 0.35);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem var(--space) 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-global-sands.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(6, 21, 40, 0.75) 40%, rgba(6, 21, 40, 0.9) 100%);
  pointer-events: none;
}

.hero-globe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vmax, 800px);
  height: min(90vmax, 800px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(0, 163, 224, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(168, 212, 61, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse 50% 50% at 50% 50%, rgba(168, 212, 61, 0.06) 0%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.hero-network {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-conn {
  stroke-dasharray: 8 6;
  animation: heroLine 18s linear infinite;
}

.hero-conn:nth-child(2) { animation-delay: -2s; }
.hero-conn:nth-child(3) { animation-delay: -4s; }
.hero-conn:nth-child(4) { animation-delay: -6s; }
.hero-conn:nth-child(5) { animation-delay: -8s; }
.hero-conn:nth-child(6) { animation-delay: -10s; }

@keyframes heroLine {
  to { stroke-dashoffset: -200; }
}

.hero-node {
  animation: nodeGlow 3s ease-in-out infinite;
}

.hero-node-au {
  animation: nodeGlowAu 2.5s ease-in-out infinite;
}

@keyframes nodeGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes nodeGlowAu {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 10px rgba(168,212,61,0.5)); }
  50% { opacity: 1; filter: drop-shadow(0 0 20px rgba(168,212,61,0.8)); }
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0, 163, 224, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 163, 224, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 40%, transparent 70%, var(--bg-dark) 100%);
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero-headline {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero-headline .highlight {
  background: linear-gradient(135deg, var(--accent-green) 0%, #c5e87a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 0 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  border-radius: 2px;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Sections ----- */
.section {
  padding: 5rem 0;
}

.section-head {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 1.5rem;
  max-width: 700px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 1rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--text);
  margin: 2rem 0 1.5rem;
}

/* ----- Why ----- */
.why {
  background: var(--bg-card);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: rgba(0, 163, 224, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 163, 224, 0.12);
  color: var(--accent-blue);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.why-footer {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 2rem;
}

.why-footer strong {
  color: var(--accent-green);
}

/* ----- Network ----- */
.network {
  background: var(--bg-dark);
}

.map-wrap {
  margin: 2.5rem 0;
}

.map-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
}

.world-map {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.map-land {
  opacity: 0.5;
}

.map-dot {
  fill: var(--accent-blue);
  filter: drop-shadow(0 0 6px rgba(0, 163, 224, 0.5));
  animation: dotPulse 2s ease-in-out infinite;
}

.map-dot-au {
  fill: var(--accent-green);
  filter: drop-shadow(0 0 8px rgba(168, 212, 61, 0.6));
  animation: none;
}

.map-dot-cn { animation-delay: 0.2s; }
.map-dot-us { animation-delay: 0.4s; }
.map-dot-eu { animation-delay: 0.6s; }
.map-dot-png { animation-delay: 0.8s; }
.map-dot-af { animation-delay: 1s; }

.map-line {
  stroke: rgba(0, 163, 224, 0.4);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: lineDash 20s linear infinite;
}

@keyframes lineDash {
  to { stroke-dashoffset: -100; }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.network-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.network-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.network-card:hover {
  border-color: rgba(168, 212, 61, 0.35);
}

.network-flag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-green);
  margin-bottom: 0.75rem;
}

.network-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.network-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.network-copy {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
}

/* ----- Services ----- */
.services {
  background: var(--bg-card);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 163, 224, 0.3);
}

.service-card-wide {
  grid-column: 1 / -1;
  max-width: 100%;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----- Confidence ----- */
.confidence {
  background: var(--bg-dark);
}

.confidence-list {
  margin: 1.5rem 0;
  padding: 0;
}

.confidence-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.confidence-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.confidence-list strong {
  color: var(--white);
}

.confidence-close {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 640px;
  margin: 2rem 0 0;
}

.confidence-close strong {
  color: var(--accent-green);
}

/* ----- CTA ----- */
.cta {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 50%, #051020 100%);
  border-top: 1px solid var(--border);
}

.cta-head {
  max-width: 100%;
}

.cta-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cta-phone {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-green);
  transition: color var(--transition);
}

.cta-phone:hover {
  color: var(--accent-green-dim);
}

/* ----- Consultation modal ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 40, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.modal.is-open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
  color: var(--white);
  background: var(--bg-elevated);
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.modal-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.consultation-form .form-group {
  display: block;
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-label em {
  color: var(--accent-blue);
  font-style: normal;
}

.consultation-form input,
.consultation-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.consultation-form input::placeholder,
.consultation-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.consultation-form input:focus,
.consultation-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.consultation-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-actions .btn {
  flex: 1;
  min-width: 120px;
}

.form-success {
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(168, 212, 61, 0.15);
  color: var(--accent-green);
  font-weight: 500;
}

.form-success.is-error {
  background: rgba(220, 80, 80, 0.15);
  color: #f87171;
}

/* ----- Footer ----- */
.footer {
  padding: 2rem var(--space);
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

.footer-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav.open {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }

  .nav.open a {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .network-cards {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-wide {
    grid-column: 1;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem var(--space) 3rem;
  }

  .hero-headline {
    font-size: 2rem;
  }
}
