/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #f6f7fb;
  color: #202124;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HEADER ===== */
header {
  background: #ffffff;
  border-bottom: 1px solid #e0e3ee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1976d2;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
  color: #5f6368;
}

.nav-links a:hover {
  border-color: #1976d2;
  color: #1976d2;
}

/* ===== HERO SECTION ===== */
.hero {
  max-width: 1120px;
  margin: 1.75rem auto 1.25rem;
  padding: 1.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.hero p {
  font-size: 0.97rem;
  color: #5f6368;
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: #1976d2;
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(25, 118, 210, 0.25);
}

.btn-primary:hover {
  opacity: 0.93;
}

.btn-secondary {
  background: #ffffff;
  color: #1976d2;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  border: 1px solid #c5d5f5;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f1f4ff;
}

.hero-card {
  background: linear-gradient(145deg, #e8f1ff, #fdfefe);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-inner {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.2rem 1.1rem;
  width: 100%;
  max-width: 340px;
}

.hero-card-inner h2 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #1a1a1a;
}

.hero-card-inner p {
  font-size: 0.85rem;
  color: #5f6368;
  margin-bottom: 0.9rem;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #5f6368;
}

/* ===== GENERIC SECTION WRAPPER ===== */
.section {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem 1.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #5f6368;
}

/* ===== FILTER BUTTONS ===== */
.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid #cfd3dc;
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  background: #ffffff;
  cursor: pointer;
  color: #5f6368;
}

.filter-btn.active {
  background: #1976d2;
  color: #ffffff;
  border-color: #1976d2;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.product-image-wrapper {
  background: #f3f5ff;
  border-radius: 10px;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  min-height: 150px;
}

.product-image-wrapper img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.product-name {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #1a1a1a;
}

.product-tagline {
  font-size: 0.8rem;
  color: #5f6368;
  margin-bottom: 0.45rem;
}

.product-specs {
  font-size: 0.78rem;
  color: #70757a;
  margin-bottom: 0.45rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px dashed #e0e0e0;
  font-size: 0.82rem;
}

.product-price {
  font-weight: 600;
  color: #1a1a1a;
}

.product-badge {
  font-size: 0.7rem;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== ABOUT / CONTACT ===== */
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.card-light {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.card-light h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.details-list {
  list-style: none;
  margin-top: 0.5rem;
}

.details-list li {
  margin-bottom: 0.3rem;
}

.details-label {
  font-weight: 600;
  color: #1a1a1a;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid #e0e3ee;
  margin-top: 1rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem 1rem;
  font-size: 0.8rem;
  color: #70757a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===========================
   RESPONSIVE: TABLET & BELOW
   =========================== */
@media (max-width: 768px) {
  .nav-container {
    padding-inline: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
    gap: 1.5rem;
  }

  .hero-card {
    order: -1; /* card comes first on phone */
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .nav-links {
    display: none; /* simple mobile nav: just logo */
  }

  .section {
    padding-inline: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.9rem;
  }

  .product-card {
    padding: 0.75rem;
  }

  .product-image-wrapper {
    min-height: 130px;
    padding: 0.7rem;
  }

  .info-grid {
    grid-template-columns: 1fr; /* About & Contact stacked */
  }

  .footer-inner {
    padding-inline: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
   RESPONSIVE: SMALL PHONES
   (e.g. 320–430px width)
   =========================== */
@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  .nav-container {
    padding: 0.6rem 0.75rem;
  }

  .logo {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }

  .hero {
    margin-top: 1.1rem;
    padding: 1rem 0.75rem 1.4rem;
  }

  .hero-tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }

  .hero h1 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 0.85rem;
  }

  .hero-cta {
    gap: 0.5rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 0.75rem 0.75rem 1.1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 1.05rem;
  }

  .filter-group {
    width: 100%;
    gap: 0.4rem;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
  }

  .product-grid {
    grid-template-columns: 1fr; /* single column on very small phones */
    gap: 0.75rem;
  }

  .product-card {
    padding: 0.7rem;
  }

  .product-image-wrapper {
    min-height: 120px;
  }

  .product-name {
    font-size: 0.93rem;
  }

  .product-tagline,
  .product-specs {
    font-size: 0.76rem;
  }

  .product-meta {
    font-size: 0.76rem;
  }

  .card-light {
    padding: 0.85rem;
  }

  .card-light h3 {
    font-size: 0.95rem;
  }

  .footer-inner {
    padding: 0.7rem 0.75rem 0.9rem;
    font-size: 0.75rem;
  }
}
