:root {
  --primary-color: #0056b3;
  --secondary-color: #00a8e8;
  --accent-color: #ff6b6b;
  --dark-bg: #1a1a2e;
  --light-bg: #f4f7f6;
  --text-color: #333;
  --light-text: #fff;
  --border-color: #ddd;
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Banner */
.sale-banner {
  background: linear-gradient(
    to right,
    #ff416c,
    #ff4b2b
  ); /* Premium Gradient */
  color: var(--light-text);
  text-align: center;
  padding: 12px 20px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sale-banner span {
  flex: 1;
}

.sale-banner a {
  color: var(--light-text);
  text-decoration: underline;
  margin-left: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.sale-banner a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.sale-banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 10px;
  margin-left: 10px;
  transition: color 0.2s;
}

.sale-banner-close:hover {
  color: white;
}

/* Header & Navigation */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo-nav img {
  height: 50px; /* Adjust based on 112x112 aspect ratio */
  width: auto;
  vertical-align: middle;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-color);
}

/* Main Content */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 10px;
  margin-bottom: 40px;
}

.hero img {
  max-width: 200px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark-bg);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #004494;
}

/* Sections */
section {
  margin-bottom: 60px;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

h3 {
  margin-bottom: 15px;
  color: var(--dark-bg);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* Market Intelligence List */
.topic-list {
  list-style: none;
}

.topic-list li {
  margin-bottom: 15px;
  padding: 15px;
  background: white;
  border-radius: 5px;
  border-left: 4px solid var(--secondary-color);
}

.topic-list a {
  text-decoration: none;
  color: var(--dark-bg);
  font-weight: bold;
  font-size: 1.1rem;
}

.topic-list a:hover {
  color: var(--primary-color);
}

/* Forms */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}

/* Form Helper Text */
.form-hint {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
  line-height: 1.4;
}

/* Charts & Visualizations */
.chart-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 30px 0;
  border: 1px solid var(--border-color);
}

.chart-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-bg);
  font-weight: bold;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bar-label {
  width: 150px;
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
}

.bar-track {
  flex: 1;
  background-color: #eee;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
  width: 0;
  transition: width 1s ease-out;
  animation: growBar 1.5s ease-out forwards;
}

@keyframes growBar {
  from {
    width: 0;
  }
  to {
    width: var(--target-width);
  }
}

.bar-fill.secondary {
  background-color: var(--secondary-color);
}

/* Infographic Styles */
.pyramid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
}

.pyramid-level {
  width: 100%;
  text-align: center;
  padding: 15px;
  color: white;
  font-weight: bold;
  margin-bottom: 5px;
  position: relative;
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
}

.pyramid-level:nth-child(1) {
  background-color: var(--primary-color);
  width: 300px;
}
.pyramid-level:nth-child(2) {
  background-color: var(--secondary-color);
  width: 450px;
}
.pyramid-level:nth-child(3) {
  background-color: #6c757d;
  width: 600px;
}

@media (max-width: 600px) {
  .bar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .bar-label {
    width: 100%;
    text-align: left;
  }
  .bar-track {
    width: 100%;
  }
  .pyramid-level {
    width: 100% !important;
    clip-path: none;
    border-radius: 5px;
  }
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 40px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
}

.footer-section a:hover {
  color: white;
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
