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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

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

/* Header and Navigation */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #374151;
}

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

.nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Brands Section */
.brands {
    padding: 5rem 0;
    background-color: #ffffff;
}

.brands h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #2563eb;
    text-decoration: none;
}

.brand-card:focus,
.brand-card:active,
.brand-card:visited {
    text-decoration: none;
}

.brand-image {
    position: relative;
    height: var(--media-base);
    overflow: hidden;
    padding-bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: transparent;
}

.brand-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.brand-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.brand-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.brand-type {
    display: inline-block;
    background-color: #dbeafe;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

/* Values Section */
.values {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.values h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
}

  .values-grid {
      --hex-size: 160px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
      max-width: 1200px;
      margin: 0 auto;
  }

  .value-card {
      width: 100%;
      max-width: var(--hex-size);
      aspect-ratio: 1;
      margin-inline: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, #1F4DFF 0%, #144AE0 100%);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

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

  .value-card:focus-visible {
      outline: 3px solid #fff;
      outline-offset: 4px;
  }

  @supports not (clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%)) {
      .value-card {
          clip-path: none;
          border-radius: 16px;
      }
  }

  @media (min-width: 640px) and (max-width: 1023px) {
      .values-grid {
          --hex-size: 200px;
          grid-template-columns: repeat(2, var(--hex-size));
          grid-auto-rows: calc(var(--hex-size) * 0.75);
          gap: calc(var(--hex-size) * 0.1) calc(var(--hex-size) * 0.05);
          justify-content: center;
      }

      .value-card {
          width: var(--hex-size);
          margin: 0;
      }

      .value-card:nth-child(even) {
          margin-top: calc(var(--hex-size) * -0.25);
      }

      .value-card:nth-child(odd) {
          justify-self: end;
      }

      .value-card:nth-child(even) {
          justify-self: start;
      }

      .value-card:nth-child(2),
      .value-card:nth-child(4) {
          grid-column: 2;
      }
  }

  @media (min-width: 1024px) {
      .values-grid {
          --hex-size: 220px;
          grid-template-columns: repeat(5, var(--hex-size));
          grid-template-rows: repeat(4, calc(var(--hex-size) * 0.75));
          gap: calc(var(--hex-size) * 0.15);
          justify-content: center;
      }

      .value-card {
          width: var(--hex-size);
          margin: 0;
      }

      .value-card:nth-child(1) { grid-row: 1; grid-column: 3; }
      .value-card:nth-child(2) { grid-row: 2; grid-column: 2; }
      .value-card:nth-child(3) { grid-row: 2; grid-column: 4; }
      .value-card:nth-child(4) { grid-row: 3; grid-column: 2; }
      .value-card:nth-child(5) { grid-row: 4; grid-column: 3; }
      .value-card:nth-child(6) { grid-row: 3; grid-column: 4; }
  }

/* Footer */
footer {
    background-color: #1e293b;
    color: #f1f5f9;
    padding: 2rem 0;
    text-align: left;
}

footer p + p {
    margin-top: 1rem;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #93c5fd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .brands h2,
    .values h2 {
        font-size: 2rem;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 1rem;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
        gap: 1rem;
        z-index: 10;
    }

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
      .brand-card {
          padding: 1.5rem;
      }
}
