/* ============================================
   Distributionflow - Global Styles
   ============================================ */

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

:root {
  --cyan: #00C2FF;
  --cyan-dark: #00A3D9;
  --dark: #0A0F1C;
  --dark-card: #111827;
  --dark-surface: #1A2233;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --white: #FFFFFF;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.text-cyan { color: var(--cyan); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  max-width: 640px;
  margin: 0.75rem auto 0;
  color: var(--gray-500);
  font-size: 1.1rem;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

.text-center { text-align: center; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0;
}

.logo .cyan { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--cyan);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 194, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

.btn-dark:hover {
  background: var(--dark-surface);
  transform: translateY(-1px);
}

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

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 10rem 0 6rem;
  background: url('/gc.jpg') center center / cover no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.85) 0%, rgba(15, 23, 41, 0.8) 50%, rgba(13, 31, 60, 0.75) 100%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,194,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  max-width: 750px;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

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

/* ============================================
   Cards
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 32px rgba(0, 194, 255, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 194, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--cyan);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h4 {
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* Dark cards variant */
.card-dark {
  background: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-dark:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 32px rgba(0, 194, 255, 0.12);
}

.card-dark h4 { color: var(--white); }
.card-dark p { color: var(--gray-400); }

/* ============================================
   Stats Row
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Dark stat variant */
.stat-dark .stat-label { color: var(--gray-400); }

/* ============================================
   Steps / How it Works
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem;
}

.step-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0, 194, 255, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h4 {
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* ============================================
   Dark Section
   ============================================ */
.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark h2 { color: var(--white); }
.section-dark p { color: var(--gray-400); }
.section-dark .section-subtitle { color: var(--gray-400); }

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #0d1f3c 100%);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0, 194, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: var(--gray-400);
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

.cta-tags {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.cta-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.cta-tag svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  font-family: var(--font-main);
}

.faq-question:hover { color: var(--cyan); }

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: var(--gray-500);
  max-width: 280px;
}

.footer h5 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ============================================
   Contact Form
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */
.page-header {
  padding: 9rem 0 4rem;
  background: linear-gradient(135deg, var(--dark) 0%, #0d1f3c 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 130%;
  background: radial-gradient(ellipse, rgba(0, 194, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.15rem;
  position: relative;
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-text h2 {
  margin-bottom: 1rem;
}

.two-col-text p {
  margin-bottom: 1.5rem;
}

/* ============================================
   Highlight Box
   ============================================ */
.highlight-box {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 3rem;
}

.highlight-box.cyan-bg {
  background: rgba(0, 194, 255, 0.06);
  border: 1px solid rgba(0, 194, 255, 0.15);
}

/* ============================================
   Project Cards
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 32px rgba(0, 194, 255, 0.08);
  transform: translateY(-2px);
}

.project-card-header {
  background: linear-gradient(135deg, #0A0F1C 0%, #0d1f3c 100%);
  padding: 1.5rem;
}

.project-tag {
  display: inline-block;
  background: rgba(0, 194, 255, 0.15);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.project-card-header h4 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.project-card-header p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin: 0;
}

.project-card-value {
  padding: 1.25rem 1.5rem;
}

.project-card-value .value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
}

.project-card-value .label {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ============================================
   Responsive
   ============================================ */
.contact-info-grid {
  max-width: 800px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    gap: 0.5rem;
  }

  .nav-links.open .btn-primary {
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
  }

  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* Hero */
  .hero { padding: 7rem 0 3.5rem; background-image: url('/gc-mobile.jpg'); }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; margin-bottom: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-badges { flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 2rem; }

  /* Page header */
  .page-header { padding: 7rem 0 3rem; }
  .page-header p { font-size: 1rem; }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }

  /* Two column */
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col [style*="order: -1"] { order: 1 !important; }

  /* Steps */
  .steps { grid-template-columns: 1fr; }
  .step-number { font-size: 2.5rem; }

  /* Stats */
  .stat-number { font-size: 2.2rem; }

  /* Highlight box */
  .highlight-box { padding: 2rem 1.5rem; }

  /* CTA */
  .cta-banner { padding: 2.5rem 1.25rem; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner br { display: none; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .cta-tags { flex-direction: column; align-items: center; gap: 0.5rem; }

  /* FAQ */
  .faq-question { font-size: 0.95rem; padding: 1.25rem 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }

  /* Table scroll hint */
  table { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2rem; }
  .hero h1 { font-size: 1.6rem; }
  .cta-banner h2 { font-size: 1.3rem; }
  h2 { font-size: 1.5rem; }
}

/* ============================================
   Language Picker (dropdown)
   ============================================ */
.lang-picker {
  position: relative;
  margin-left: 0.75rem;
}

.flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lang-picker-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 0.3rem 0.6rem 0.3rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-picker-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 1001;
  overflow: hidden;
}

.lang-dropdown.open {
  display: flex;
  flex-direction: column;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  text-align: left;
  transition: all var(--transition);
}

.lang-dropdown a:hover {
  background: var(--gray-100);
  color: var(--cyan);
}

.lang-dropdown a.lang-active {
  color: var(--cyan);
  font-weight: 600;
  background: rgba(0, 194, 255, 0.06);
}
