/* =============================================
   HobbyzHQ – Landing Page Styles
   Palette:
     Dark green  : #25603a
     Orange      : #e67c3c
     Background  : #f7f6f3
     Card bg     : #ffffff
     Body text   : #2d2d2d
     Muted text  : #6b7280
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #f7f6f3;
  color: #2d2d2d;
  line-height: 1.6;
}

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

/* ---------- Navbar ---------- */
header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  gap: 24px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 32px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.navbar-links a {
  text-decoration: none;
  color: #2d2d2d;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: #e67c3c;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 40px 40px 40px 48px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #1a1a1a;
}

.hero-content p {
  font-size: 1.05rem;
  color: #555;
  margin: 0 0 28px;
  max-width: 420px;
}

.hero-btn {
  background: #25603a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-btn:hover {
  background: #1e4d2f;
}

.hero-browse {
  margin-top: 14px;
}

.hero-browse a {
  color: #25603a;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.hero-browse a:hover {
  color: #e67c3c;
}

.hero-image {
  flex: 0 0 480px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ---------- Section headings ---------- */
.categories,
.trending {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.categories h2,
.trending h2,
.why h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 28px;
  color: #1a1a1a;
}

/* ---------- Carousel ---------- */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.card-list::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #2d2d2d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: #25603a;
  color: #fff;
  border-color: #25603a;
}

/* ---------- Shared Card Style ---------- */
/* Cards can be <div> or <a> — reset link styles when used as <a> */
a.category-card,
a.trending-card {
  text-decoration: none;
  color: inherit;
}

.category-card,
.trending-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover,
.trending-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.11);
  transform: translateY(-3px);
}

.category-card img,
.trending-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.category-info,
.trending-info {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-info h3,
.trending-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.category-info p,
.trending-info p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 20px;
  line-height: 1.55;
  flex: 1;
}

.category-info .card-explore,
.trending-info .card-explore {
  font-size: 0.88rem;
  font-weight: 600;
  color: #25603a;
  align-self: flex-start;
  transition: color 0.2s;
}

.category-card:hover .card-explore,
.trending-card:hover .card-explore {
  color: #e67c3c;
}

/* ---------- Why HobbyzHQ ---------- */
.why {
  max-width: 700px;
  margin: 64px auto 0;
  padding: 0 24px;
  text-align: center;
}

.why p {
  font-size: 1.05rem;
  color: #555;
  margin: 0 0 8px;
}

.why p:last-child {
  font-weight: 600;
  color: #25603a;
}

/* ---------- Newsletter ---------- */
.newsletter {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.newsletter-inner {
  background: #fff;
  border-radius: 16px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.newsletter-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fafafa;
  color: #2d2d2d;
  transition: border-color 0.2s;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #25603a;
}

.newsletter-form button {
  background: #25603a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: #1e4d2f;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 32px 24px;
  margin-top: 56px;
  font-size: 0.875rem;
  color: #6b7280;
  border-top: 1px solid #e8e8e6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 32px 24px;
    margin: 24px 16px 0;
  }

  .hero-image {
    flex: none;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .navbar-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .categories,
  .trending,
  .why,
  .newsletter {
    margin-top: 40px;
  }

  .categories h2,
  .trending h2,
  .why h2 {
    font-size: 1.5rem;
  }

  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .newsletter-form {
    width: 100%;
  }

  .category-card,
  .trending-card {
    flex: 0 0 220px;
  }
}