/* ============================================================
   DEMIN TRADE — Modern Professional Teal Design
   DEMIN INTERNATIONAL TRADE LIMITED
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --clr-bg:          #FFFFFF;
  --clr-dark:        #1A1A1A;
  --clr-teal:        #0F766E;
  --clr-teal-light:  #14B8A6;
  --clr-teal-dark:   #0D5E58;
  --clr-amber:       #D97706;
  --clr-amber-light: #F59E0B;
  --clr-muted:       #6B7280;
  --clr-section-alt: #F9FAFB;
  --clr-border:      #E5E7EB;
  --clr-footer:      #111827;

  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 250ms ease;
  --radius:     8px;
  --max-width:  1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--clr-dark);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
  color: var(--clr-teal-dark);
  text-decoration: underline;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--clr-dark);
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--clr-section-alt);
}

/* --- Section Label --- */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 0.75rem;
}

.section-heading {
  margin-bottom: 1rem;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--clr-teal);
  margin-top: 0.75rem;
  border-radius: 2px;
}

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

.section-heading-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--clr-muted);
  max-width: 640px;
}

.section-subtitle-center {
  text-align: center;
  margin: 0 auto 3rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--clr-dark);
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
  color: var(--clr-teal);
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-dark);
  text-decoration: none;
  transition: color var(--transition);
  padding: 0.375rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--clr-teal);
  text-decoration: none;
  border-bottom-color: var(--clr-teal);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.hamburger span:nth-child(1) { transform: translateY(-6px); }
.hamburger span:nth-child(3) { transform: translateY(6px); }

.hamburger.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  background: var(--clr-bg);
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-teal);
  background: #F0FDFA;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--clr-dark);
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 0.5rem;
}

.hero h1 span {
  position: relative;
  color: var(--clr-teal);
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: #CCFBF1;
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--clr-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--clr-teal);
  color: #FFFFFF;
  border-color: var(--clr-teal);
}

.btn-primary:hover {
  background: var(--clr-teal-dark);
  border-color: var(--clr-teal-dark);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--clr-dark);
  border-color: var(--clr-border);
}

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

.btn-amber {
  background: var(--clr-amber);
  color: #FFFFFF;
  border-color: var(--clr-amber);
}

.btn-amber:hover {
  background: #B45309;
  border-color: #B45309;
  color: #FFFFFF;
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-muted);
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  color: var(--clr-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  font-size: 1rem;
  color: var(--clr-muted);
  line-height: 1.8;
}

.about-text p + p {
  margin-top: 1.25rem;
}

.about-highlights {
  display: grid;
  gap: 1.5rem;
}

.highlight-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-teal);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.highlight-card:hover {
  box-shadow: 0 4px 20px rgba(15,118,110,0.08);
}

.highlight-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F0FDFA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-teal);
}

.highlight-content h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}

.highlight-content p {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-teal);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(15,118,110,0.08);
  transform: translateY(-2px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #F0FDFA;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--clr-teal);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ============================================================
   GLOBAL REACH
   ============================================================ */
.regions-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.region-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--clr-border);
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-dark);
  background: var(--clr-bg);
  transition: all var(--transition);
  cursor: default;
}

.region-pill:hover {
  border-color: var(--clr-teal);
  color: var(--clr-teal);
  background: #F0FDFA;
}

.region-flag {
  font-size: 1.25rem;
  line-height: 1;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-top: 2px dotted #D1D5DB;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--clr-teal);
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(15,118,110,0.25);
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.stat-card:hover {
  box-shadow: 0 4px 20px rgba(15,118,110,0.06);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--clr-teal);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: var(--clr-teal);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #FFFFFF;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section .section-heading::after {
  background: var(--clr-amber);
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  color: #CCFBF1;
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-section .btn-amber {
  font-size: 1rem;
  padding: 0.875rem 2.25rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border);
}

.contact-detail:last-of-type {
  border-bottom: none;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F0FDFA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-teal);
}

.contact-detail-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--clr-dark);
  margin-bottom: 0.125rem;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.9375rem;
  color: var(--clr-muted);
}

/* Form */
.contact-form {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--clr-dark);
  background: var(--clr-bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 3px #F0FDFA;
}

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

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-footer);
  color: #D1D5DB;
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: #9CA3AF;
  line-height: 1.7;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #FFFFFF;
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--clr-teal-light);
  text-decoration: none;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: #9CA3AF;
  padding: 0.375rem 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--clr-teal-light);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6B7280;
}

.footer-bottom a {
  color: #9CA3AF;
}

.footer-bottom a:hover {
  color: var(--clr-teal-light);
}

/* ============================================================
   LEGAL PAGES (Privacy / Terms)
   ============================================================ */
.legal-page {
  padding: 8rem 0 5rem;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  color: var(--clr-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content address {
  font-style: normal;
  line-height: 1.8;
  color: var(--clr-muted);
  margin-bottom: 1rem;
}

.legal-content strong {
  color: var(--clr-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-bg);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1rem;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 7rem 0 4rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stats-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   ACCESSIBILITY / UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--clr-teal);
  outline-offset: 2px;
}

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

  .scroll-indicator {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
