/* ================================================
   ECOTRADE DESIGN SYSTEM
   B2B IT Device Distribution — Corporate Minimal
   ================================================ */

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=Bebas+Neue&display=swap");

/* --- CSS Variables --- */
:root {
  --navy: #0b1f3a;
  --navy-mid: #132847;
  --navy-light: #1e3a5f;
  --accent: #2d7dd2;
  --accent-bright: #3d9bf0;
  --gold: #c9a84c;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-100: #eef1f5;
  --gray-300: #c4cdd8;
  --gray-500: #7a8a9a;
  --gray-700: #3d4e5f;
  --text-primary: #0b1f3a;
  --text-secondary: #4a5f72;
  --text-light: #7a8a9a;

  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 8px 32px rgba(11, 31, 58, 0.12);
  --shadow-lg: 0 20px 60px rgba(11, 31, 58, 0.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1200px;
  --section-pad: 100px 40px;

  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* --- Typography Scale --- */
.display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1;
}
.heading-xl {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}
.heading-lg {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.heading-md {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}
.body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}
.body-md {
  font-size: 1rem;
  line-height: 1.7;
}
.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.section {
  padding: var(--section-pad);
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Section Label --- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  padding-left: 28px;
}
.section-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 2px;
  background: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 125, 210, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-arrow::after {
  content: "→";
  font-size: 1rem;
}

/* --- Card Base --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 20px 0;
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  height: 72px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: var(--gray-100);
}
.nav-links .nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 20px;
}
.nav-links .nav-cta:hover {
  background: var(--accent) !important;
}
/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: var(--white);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.footer-contact-item .fc-label {
  color: var(--accent-bright);
  font-weight: 600;
  min-width: 52px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 2px;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-logo img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* ================================================
   PAGE HERO (inner pages)
   ================================================ */
.page-hero {
  background: var(--navy);
  padding: 80px 40px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 50% 120%,
    rgba(45, 125, 210, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
}

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  background: var(--navy-mid);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 100% at 50% 50%,
    rgba(45, 125, 210, 0.2) 0%,
    transparent 70%
  );
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.animate-up {
  animation: fadeUp 0.7s ease both;
}
.animate-fade {
  animation: fadeIn 0.7s ease both;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px 32px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 24px;
  }
  .container {
    padding: 0 24px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav-links.open a {
    display: block;
    width: 100%;
  }
  .nav-toggle {
    display: flex;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .page-hero {
    padding: 60px 24px 56px;
  }
}
@media (max-width: 480px) {
  :root {
    --section-pad: 48px 20px;
  }
  .container {
    padding: 0 20px;
  }
}
