@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('icity-theme.css');
@import url('icity-page-bg.css');

body {
  font-family: 'Inter', sans-serif;
}

.bg-icity-blue {
  background-color: #1a4175;
}

.text-icity-blue {
  color: #1a4175;
}

.bg-icity-orange {
  background-color: #f39200;
}

.border-icity-gray {
  border-color: #e5e7eb;
}

.categories-hero {
  background-color: #e2e8ee;
  background-image: url("../asset/Hero categories.png?v=2");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
  min-height: 460px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.categories-hero__overlay {
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.88) 22%,
      rgba(255, 255, 255, 0.55) 36%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 62%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 30%,
      rgba(15, 39, 68, 0.04) 100%
    );
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.categories-hero__content {
  align-items: center;
  display: flex;
  min-height: inherit;
  position: relative;
  z-index: 2;
}

.categories-hero__text {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(26, 65, 117, 0.14);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(15, 39, 68, 0.16);
  max-width: 36rem;
  padding: 1.75rem 1.5rem;
}

.categories-hero__title {
  color: #0b1f36;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.categories-hero__subtitle {
  color: #334155;
  font-weight: 400;
}

.categories-hero__cta {
  background: #1a4175;
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(26, 65, 117, 0.35);
  color: #ffffff;
  display: inline-block;
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  font-weight: 700;
  line-height: 1;
  padding: 0.85rem clamp(1.5rem, 3vw, 2.5rem);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.categories-hero__cta:hover {
  background-color: #0f2744;
  transform: translateY(-1px);
}

.categories-hero__cta:focus-visible {
  outline: 2px solid #1a4175;
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .categories-hero {
    min-height: 500px;
  }

  .categories-hero__text {
    padding: 2rem 2.25rem;
  }
}

@media (min-width: 768px) {
  .categories-hero {
    background-position: 62% center;
    min-height: 560px;
  }

  .categories-hero__text {
    padding: 2.25rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .categories-hero {
    background-position: center 52%;
    min-height: 600px;
  }
}

@media (max-width: 639px) {
  .categories-hero {
    background-position: center 55%;
    min-height: 500px;
  }

  .categories-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.92) 38%,
      rgba(255, 255, 255, 0.45) 65%,
      transparent 100%
    );
  }

  .categories-hero__text {
    max-width: none;
    width: 100%;
  }
}

/* —— Categories grid (premium landscape cards) —— */
.categories-grid-section {
  padding: clamp(2rem, 4vw, 3rem) var(--icity-px) clamp(3rem, 5vw, 4.5rem);
  background: transparent;
}

.categories-grid-section__inner {
  margin: 0 auto;
  max-width: var(--icity-container);
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--icity-surface-band);
  border: 1px solid var(--icity-border);
  border-radius: var(--icity-radius-xl);
  box-shadow: var(--icity-shadow);
}

@media (min-width: 640px) {
  .categories-grid-section__inner {
    padding: 0 2rem;
  }
}

.categories-grid-section__header {
  margin-bottom: 2rem;
  max-width: 40rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.categories-grid-section__eyebrow {
  color: var(--icity-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.categories-grid-section__title {
  color: var(--icity-primary-dark);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.65rem;
}

.categories-grid-section__title::before {
  content: "/ ";
  color: var(--icity-text-muted);
  font-weight: 600;
}

.categories-grid-section__title::after {
  content: " /";
  color: var(--icity-text-muted);
  font-weight: 600;
}

.categories-grid-section__lead {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.categories-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  justify-items: center;
}

@media (min-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    justify-items: stretch;
  }
}

.category-card {
  width: 100%;
  max-width: 680px;
  transition: transform 0.3s ease;
}

@media (min-width: 900px) {
  .category-card {
    max-width: none;
  }
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card__shell {
  --card-glow: rgba(126, 152, 225, 0.28);
  --card-bg-start: #e8eef8;
  --card-bg-end: #ffffff;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 680px;
  height: 230px;
  margin: 0 auto;
  border: 1px solid var(--icity-border);
  border-radius: var(--icity-radius-xl);
  background: linear-gradient(
    105deg,
    var(--card-bg-start) 0%,
    var(--card-bg-end) 52%,
    var(--card-bg-end) 100%
  );
  box-shadow: var(--icity-shadow-sm);
  overflow: hidden;
  transition: var(--icity-transition);
}

@media (min-width: 900px) {
  .category-card__shell {
    max-width: 100%;
  }
}

.category-card:hover .category-card__shell {
  border-color: var(--icity-border-strong);
  box-shadow: var(--icity-shadow-hover);
}

.category-card__body {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.35rem 1.1rem 1.35rem 1.5rem;
  min-width: 0;
  z-index: 2;
}

.category-card__media {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(
    ellipse 90% 95% at 72% 50%,
    var(--card-glow) 0%,
    transparent 68%
  );
}

.category-card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 210px;
  padding: 0.5rem 0.75rem 0.5rem 0;
  object-fit: contain;
  object-position: center right;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.12));
  transition: transform 0.35s ease;
}

.category-card:hover .category-card__img {
  transform: scale(1.03);
}

.category-card__title {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.category-card__desc {
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card__link {
  margin-top: 0.25rem;
  color: #5b7bcf;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-card__link:hover {
  color: #4a66be;
}

.category-card__link::after {
  content: " →";
}

/* Per-category adaptive gradients */
.category-card--phones {
  --card-bg-start: #e8eef8;
  --card-bg-end: #d5dff1;
  --card-glow: rgba(126, 152, 225, 0.35);
}

.category-card--laptop {
  --card-bg-start: #d5dff1;
  --card-bg-end: #ffffff;
  --card-glow: rgba(169, 189, 235, 0.4);
}

.category-card--headphone {
  --card-bg-start: #c8d4f0;
  --card-bg-end: #e8eef8;
  --card-glow: rgba(155, 176, 232, 0.38);
}

.category-card--mirror {
  --card-bg-start: #b8c8ed;
  --card-bg-end: #d5dff1;
  --card-glow: rgba(169, 189, 235, 0.42);
}

.category-card--chair {
  --card-bg-start: #b4c5ee;
  --card-bg-end: #e8eef8;
  --card-glow: rgba(149, 173, 230, 0.38);
}

.category-card--speaker {
  --card-bg-start: #a9bdeb;
  --card-bg-end: #e8eef8;
  --card-glow: rgba(126, 152, 225, 0.4);
}

.category-card--watch {
  --card-bg-start: #d5dff1;
  --card-bg-end: #f5f7fc;
  --card-glow: rgba(180, 197, 238, 0.45);
}

.category-card--airpods {
  --card-bg-start: #e8eef8;
  --card-bg-end: #ffffff;
  --card-glow: rgba(213, 223, 241, 0.55);
}

.category-card--desktop {
  --card-bg-start: #c8d4f0;
  --card-bg-end: #f0f4fb;
  --card-glow: rgba(106, 136, 217, 0.35);
}

.category-card--tv {
  --card-bg-start: #95aee6;
  --card-bg-end: #d5dff1;
  --card-glow: rgba(126, 152, 225, 0.38);
}

@media (max-width: 520px) {
  .category-card__shell {
    flex-direction: column;
    height: auto;
    min-height: 230px;
    max-height: none;
  }

  .category-card__body {
    flex: none;
    padding: 1.15rem 1.15rem 0.5rem;
  }

  .category-card__media {
    flex: 1 1 auto;
    min-height: 140px;
  }

  .category-card__img {
    max-height: 140px;
    object-position: center center;
    padding: 0 1rem 1rem;
  }
}

/* —— Why choose us —— */
.categories-why {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.categories-why__inner {
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .categories-why__inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .categories-why__inner {
    padding: 0 2rem;
  }
}

.categories-why__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(26, 65, 117, 0.12);
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #eef4ff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 20px 50px rgba(15, 39, 68, 0.1);
}

.categories-why__panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.categories-why__header {
  position: relative;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.categories-why__eyebrow {
  color: #f39200;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.categories-why__title {
  color: #1a4175;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.categories-why__lead {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.categories-why__grid {
  position: relative;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .categories-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .categories-why__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.categories-why__item {
  padding: 1.25rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.categories-why__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.1);
}

.categories-why__icon {
  align-items: center;
  background: linear-gradient(135deg, #1a4175, #2563eb);
  border-radius: 0.75rem;
  color: #fff;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.75rem;
  box-shadow: 0 8px 20px rgba(26, 65, 117, 0.25);
}

.categories-why__icon svg {
  height: 1.35rem;
  width: 1.35rem;
}

.categories-why__item-title {
  color: #0b1f36;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.categories-why__item-text {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* —— CTA —— */
.categories-cta {
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  text-align: center;
}

.categories-cta__inner {
  margin: 0 auto;
  max-width: 36rem;
}

.categories-cta__title {
  color: #1a4175;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.categories-cta__text {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.categories-cta__btn {
  display: inline-block;
  background: #f39200;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(243, 146, 0, 0.35);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 3rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.categories-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(243, 146, 0, 0.45);
}

.categories-cta__note {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 1rem 0 0;
}

.categories-cta__note a {
  color: #1a4175;
  font-weight: 600;
  text-decoration: none;
}

.categories-cta__note a:hover {
  text-decoration: underline;
}

