/*
  TradeWave LLC website stylesheet
  Defines the core colour palette and typography
  and applies basic responsive layout rules.
*/

:root {
  /* Brand colours */
  /* Updated palette aligned with the TradeWave visual identity */
  --primary-dark: #0D1B2A;   /* deep navy for backgrounds */
  --primary: #2563EB;        /* royal blue for key highlights */
  --accent: #066BD4;         /* secondary blue accent */
  --grey-dark: #64748B;      /* neutral grey for muted text */
  --grey-light: #F5F7FA;     /* light background for contrast */
  --success: #00C48C;
  --error: #E53935;
  --warning: #FFB300;
  /* Typography */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--primary-dark);
  background-color: var(--grey-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent);
}

/* Navigation */
header {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  /* Display logo image neatly in the navigation */
  display: flex;
  align-items: center;
  height: 40px;
}

/* Constrain logo image size within navigation */
nav .logo img {
  height: 100%;
  width: auto;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav ul li a {
  color: #fff;
  font-weight: 500;
  position: relative;
}
nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}
nav ul li a:hover::after {
  width: 100%;
}
/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.nav-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin-bottom: 5px;
  border-radius: 2px;
}

/* Hero section */
.hero {
  /* Use a gradient background to avoid relying on image assets */
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  color: #fff;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero::before {
  /* subtle overlay for additional contrast */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero h1 {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Sections */
section {
  padding: 4rem 0;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-headings);
  font-size: 2rem;
  color: var(--primary-dark);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card h3 {
  font-family: var(--font-headings);
  margin-bottom: 1rem;
  color: var(--primary-dark);
}
.card p {
  color: var(--grey-dark);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 2rem 0;
}
footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
footer h4 {
  font-family: var(--font-headings);
  margin-bottom: 1rem;
}
footer ul {
  list-style: none;
}
footer ul li {
  margin-bottom: 0.5rem;
}
footer ul li a {
  color: #fff;
}
footer ul li a:hover {
  color: var(--accent);
}
footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #e0e6f6;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: var(--primary-dark);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  nav ul.show {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}