/* ===== Variabel desain ===== */
:root {
  --color-navy: #0a2a5e;
  --color-navy-dark: #071c3f;
  --color-blue: #4a90d9;
  --color-blue-soft: #e8f1fb;
  --color-red: #d9333f;
  --color-accent-red: #d9333f;
  --color-red-dark: #b52832;
  --color-text: #1f2933;
  --color-muted: #5c6b7a;
  --color-border: #d9e2ec;
  --color-bg: #f7f9fc;
  --color-white: #ffffff;
  --shadow: 0 6px 20px rgba(10, 42, 94, 0.07);
  --shadow-hover: 0 14px 32px rgba(10, 42, 94, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --header-height: 72px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --text-h1: clamp(1.75rem, 4vw, 2.5rem);
  --text-h2: clamp(1.35rem, 2.5vw, 1.7rem);
  --text-h3: 1.1rem;
  --text-body: 1rem;
  --text-caption: 0.85rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--text-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--color-navy);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.page {
  flex: 1;
}

/* ===== Header / Navbar ===== */
.header {
  background: var(--color-navy);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--spacing-md);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
}

.header__logo-image {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.92rem;
}

.header__logo-text small {
  font-weight: 400;
  font-size: 0.72rem;
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav__link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__link:hover,
.nav__link--active {
  background: rgba(74, 144, 217, 0.28);
  color: var(--color-white);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.nav__toggle:hover {
  background: rgba(74, 144, 217, 0.28);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-white);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--spacing-lg);
}

.footer__title {
  margin: 0 0 var(--spacing-sm);
  color: var(--color-white);
  font-size: var(--text-h3);
}

.footer__text,
.footer__list {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer__list {
  list-style: none;
  padding: 0;
}

.footer__list a {
  display: inline-block;
  padding: 4px 0;
  min-height: 32px;
  transition: color 0.25s var(--ease);
}

.footer__list a:hover {
  color: var(--color-blue);
}

.footer__copy {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== Tombol ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease), filter 0.25s var(--ease);
}

/* Override display: inline-flex pada .btn supaya tombol benar-benar hilang */
.is-hidden {
  display: none !important;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(74, 144, 217, 0.28);
  transform: translateY(-1px);
}

.btn--cta {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--cta:hover {
  background: var(--color-red-dark);
  box-shadow: 0 6px 16px rgba(217, 51, 63, 0.28);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-navy);
  background: var(--color-blue-soft);
}

/* ===== Hero beranda ===== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--color-navy) 0%, #123a7a 60%, var(--color-blue) 100%);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 56px;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
  animation: kenBurns 5s ease-out forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(10, 42, 94, 0.78) 0%,
    rgba(10, 42, 94, 0.52) 55%,
    rgba(7, 28, 63, 0.42) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero__copy,
.hero__panel {
  background: rgba(7, 28, 63, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--color-accent-red);
  border-radius: var(--radius);
  padding: 24px 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hero__eyebrow {
  margin: 0 0 var(--spacing-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--text-caption);
  color: #d6e8fb;
  border-left: 3px solid var(--color-accent-red);
  padding-left: 10px;
}

.hero__copy .hero__eyebrow {
  border-left: 0;
  padding-left: 0;
}

.hero__title {
  margin: 0 0 var(--spacing-sm);
  font-size: var(--text-h1);
  line-height: 1.2;
  color: var(--color-white);
}

.hero__desc {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.hero__panel {
  align-self: stretch;
}

.hero__panel h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--color-white);
}

.hero__panel ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== Section umum ===== */
.section {
  padding: var(--spacing-xl) 0;
}

.section__head {
  margin-bottom: var(--spacing-lg);
}

.section__title {
  margin: 0 0 var(--spacing-sm);
  color: var(--color-navy);
  font-size: var(--text-h2);
  border-left: 4px solid var(--color-accent-red);
  padding-left: 12px;
}

.section__desc {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ===== Kartu kategori ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.category-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-card__slider {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--color-blue-soft);
}

.category-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.category-card__image.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .category-card__image {
    transition: none;
  }
}

.category-card__body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex: 1;
}

.category-card__title {
  margin: 0;
  color: var(--color-navy);
  font-size: var(--text-h3);
}

.category-card__desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  flex: 1;
}

.category-card .btn {
  align-self: flex-start;
}

/* ===== Toolbar filter kategori ===== */
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.toolbar--search-only {
  grid-template-columns: 1fr;
}

.search {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 12px;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.search:focus-within {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.18);
}

.search__input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 12px 8px;
  font-size: 1rem;
  background: transparent;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-btn {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.filter-btn:hover,
.filter-btn--active {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* ===== Grid produk ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: fadeSlideIn 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-red);
  box-shadow: 0 10px 26px rgba(217, 51, 63, 0.14);
}

.product-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-blue-soft);
  animation: fadeIn 0.4s var(--ease);
}

.product-card__body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex: 1;
}

.product-card__tag {
  font-size: 0.75rem;
  color: var(--color-accent-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  width: fit-content;
  border-bottom: 3px solid var(--color-accent-red);
  padding-bottom: 2px;
}

.product-card__title {
  margin: 0;
  color: var(--color-navy);
  font-size: var(--text-h3);
}

.product-card__price {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--color-navy);
}

.product-card__unit {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.product-card .btn {
  margin-top: auto;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--color-muted);
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
}

/* ===== Detail produk ===== */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail__image {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  background: var(--color-blue-soft);
  animation: fadeIn 0.35s var(--ease);
}

/* ===== Slider gambar detail (dipakai kalau produk punya beberapa gambar) ===== */
.detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail__slider {
  position: relative;
  /* touch-action supaya swipe horizontal tidak bentrok dengan scroll halaman */
  touch-action: pan-y;
}

.detail__slider .detail__image {
  display: block;
  transition: opacity 0.35s var(--ease);
}

/* Gradient tipis di sisi kiri-kanan supaya panah putih tetap terbaca
   walau gambar produknya terang. pointer-events none supaya tidak menghalangi klik. */
.detail__slider::before,
.detail__slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  pointer-events: none;
}

.detail__slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.detail__slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.detail__slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  /* Ikon minimalis, tapi area tap tetap lega untuk mobile */
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.85;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.detail__slider-btn:hover,
.detail__slider-btn:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1.18);
}

.detail__slider-btn--prev {
  left: 12px;
}

.detail__slider-btn--next {
  right: 12px;
}

.detail__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 4px;
}

.detail__dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.detail__dot:hover {
  transform: scale(1.15);
}

.detail__dot--active {
  background: var(--color-accent-red);
  border-color: var(--color-accent-red);
}

.detail__body {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) 0;
}

.detail__tag {
  color: var(--color-accent-red);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 3px solid var(--color-accent-red);
  padding-bottom: 2px;
}

.detail__title {
  margin: 6px 0 var(--spacing-sm);
  color: var(--color-navy);
  font-size: var(--text-h2);
}

.detail__price {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
}

.detail__desc {
  color: var(--color-muted);
  margin: 0 0 12px;
}

.detail__desc:last-child {
  margin-bottom: 0;
}

.detail__tabs {
  margin: 0 0 20px;
}

.detail__tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail__tab {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.detail__tab--active {
  background: var(--color-accent-red);
  color: var(--color-white);
  border-color: var(--color-accent-red);
}

.detail__tab-panel {
  display: none;
}

.detail__tab-panel--active {
  display: block;
  animation: fadeSlideIn 0.35s var(--ease);
}

.detail__spec-title {
  margin: 0 0 10px;
  color: var(--color-navy);
  font-size: 1.05rem;
  border-left: 4px solid var(--color-accent-red);
  padding-left: 10px;
}

.detail__spec-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-muted);
}

.detail__spec-list li {
  margin-bottom: 6px;
}

.detail__spec-list li::marker {
  color: var(--color-accent-red);
}

.estimate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 12px 0 20px;
}

.estimate__hint {
  margin: 0 0 12px;
  color: var(--color-muted);
}

.estimate__total {
  margin: 0;
  color: var(--color-navy);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.estimate__total strong {
  font-size: 1.25rem;
  color: var(--color-accent-red);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
}

.qty-control__btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.qty-control__btn:hover:not(:disabled) {
  background: var(--color-accent-red);
}

.qty-control__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-control__value {
  min-width: 48px;
  text-align: center;
  font-weight: 700;
  color: var(--color-navy);
}

.breadcrumb {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-navy);
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--color-accent-red);
}

/* ===== Kontak ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-lg);
}

.contact-card,
.info-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-card:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.contact-card p,
.info-card p {
  margin: 0 0 12px;
  color: var(--color-muted);
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ===== Tentang Kami ===== */
.hero--compact {
  padding: 40px 0 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.about-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.about-card__text {
  margin: 0;
  color: var(--color-muted);
  max-width: 72ch;
}

.about-section--soft {
  background: var(--color-blue-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-accent-red);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
}

.service-card__title {
  margin: 0 0 8px;
  color: var(--color-navy);
  font-size: 1.1rem;
}

.service-card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.commit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.commit-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: 52px;
  box-shadow: var(--shadow);
  color: var(--color-navy);
  font-weight: 600;
}

.commit-list__item::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent-red);
  color: var(--color-white);
  font-size: 0.8rem;
}

.about-close {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.about-close__text {
  margin: 0 0 20px;
  color: var(--color-muted);
}

.about-close__tagline {
  margin: 0 0 24px;
  color: var(--color-accent-red);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
}

/* ===== Animasi ===== */
@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner,
  .category-grid,
  .product-grid,
  .detail,
  .contact-grid,
  .footer__inner,
  .service-grid,
  .commit-list {
    grid-template-columns: 1fr 1fr;
  }

  .detail__body {
    padding: var(--spacing-md);
  }
}

@media (max-width: 720px) {
  .header__logo-image {
    height: 40px;
  }

  .header__logo-text {
    font-size: 0.78rem;
  }

  .header__logo-text small {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-navy-dark);
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    padding: 0 16px;
    transform: translateY(-6px);
    transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease), padding 0.3s var(--ease);
  }

  .nav--open {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
    padding: 8px 16px 16px;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
  }

  .hero {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
  }

  .hero__inner,
  .detail,
  .contact-grid,
  .footer__inner,
  .toolbar,
  .service-grid,
  .commit-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1120px, calc(100% - 24px));
  }

  .hero {
    padding: var(--spacing-lg) 0;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .detail__tab {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .nav {
    transition: none;
  }
}
