/*
 * Global Styles
 * --------------------------------------------------
 */
*:where(*) {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

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

a {
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/*
 * Color Variables
 */
:root {
  /* Updated brand palette matching the new logo */
  --primary-color: #c75c2a; /* warm orange from the logo */
  --secondary-color: #031f2c; /* dark navy background */
  --light-bg: #0d2a3a; /* slightly lighter dark for panels */
  --text-color: #f1e9d0; /* creamy light text for contrast */
}

/*
 * Header & Navigation
 */
.site-header {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

/* Size the logo image in the header */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.navigation ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Navigation links adopt the light text color for contrast on the dark header */
.navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navigation a:hover {
  color: var(--primary-color);
}

/* Mobile navigation toggle inherits the light text color */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.4rem;
  color: var(--text-color);
  cursor: pointer;
}

/*
 * Hero Section
 */
.hero-section {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 50%;
  max-width: 560px;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--primary-color);
}

.hero-text p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--text-color);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.primary-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}

.primary-btn:hover {
  background-color: #e67e22;
  border-color: #e67e22;
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.hero-image {
  flex: 1 1 45%;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/*
 * About Section
 */
.about-section {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.about-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-color);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background-color: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.value-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0;
}

/*
 * Categories Section
 */
.categories-section {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.categories-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-lead {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 800px;
  color: var(--text-color);
  font-size: 1rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background-color: var(--secondary-color);
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.category-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-color);
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-color);
  margin: 0;
}

/*
 * Marketplace Section
 */
.marketplace-section {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.marketplace-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.marketplace-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.marketplace-card {
  flex: 1 1 280px;
  background-color: var(--secondary-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.marketplace-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.marketplace-card i {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.marketplace-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--text-color);
}

.marketplace-card p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.9rem;
}

/*
 * Contact Section
 */
.contact-section {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-item h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

.contact-form {
  flex: 1 1 360px;
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font: inherit;
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(199, 92, 42, 0.3);
}

.form button {
  margin-top: 0.5rem;
}

/*
 * Footer
 */
.site-footer {
  /* Use the new dark palette for the footer */
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand,
.footer-links,
.footer-social {
  flex: 1 1 220px;
}

.footer-brand h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

.footer-links h4,
.footer-social h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--text-color);
}

/*
 * Credentials Section
 */
.credentials-section {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.credential-card {
  background-color: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.credential-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.credential-card p {
  margin: 0.4rem 0;
  color: var(--text-color);
  font-size: 0.9rem;
}

/*
 * Responsive Styles
 */
@media (max-width: 768px) {
  .navigation ul {
    flex-direction: column;
    gap: 0;
    background-color: var(--secondary-color);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    padding: 0.5rem 0;
  }

  .navigation.open ul {
    transform: scaleY(1);
  }

  .navigation ul li {
    margin: 0;
  }

  .navigation ul li a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    padding-right: 0;
  }

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

  .categories-grid,
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .marketplace-grid {
    flex-direction: column;
  }

  .contact-grid {
    flex-direction: column;
  }
}