/* ==========================================
   QEDEVELOPER - LAYOUT CSS
   Struktur utama halaman website
========================================== */

/* ==========================================
   1. HEADER & NAVBAR
========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(219, 227, 239, 0.65);
}

.header-inner {
  min-height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* BRAND */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span,
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand strong {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand small {
  margin-top: 4px;
  color: #8190a8;
  font-size: 0.7rem;
}

/* NAVBAR DESKTOP */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 74px;

  color: #52627b;
  font-size: 0.9rem;
  font-weight: 650;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.desktop-nav a.is-active {
  color: var(--blue);
}

.desktop-nav a.active::after,
.desktop-nav a.is-active::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  height: 3px;

  background: var(--blue);
  border-radius: 3px 3px 0 0;
}

/* AKSI HEADER */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 12px;

  background: transparent;
  color: var(--navy);

  font-size: 1.5rem;
}

.icon-button:hover {
  background: #eef4ff;
}

.menu-toggle {
  display: none;
}

/* MENU MOBILE */

.mobile-menu {
  padding: 8px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.mobile-menu a {
  display: block;
  padding: 12px 4px;

  color: var(--text);
  font-weight: 650;
}

.mobile-menu a:hover {
  color: var(--blue);
}

/* ==========================================
   2. HERO SECTION
========================================== */

.hero {
  position: relative;
  overflow: hidden;

  padding: 52px 0 44px;

  background:
    radial-gradient(ellipse at 80% 40%, #edf5ff 0, transparent 43%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.04fr)
    minmax(0, 0.96fr);

  align-items: center;
  gap: 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 650px;
  margin-top: 20px;
}

.hero-copy h1 span {
  display: block;
  color: var(--blue);
}

.hero-desc,
.hero-description {
  max-width: 560px;
  margin-top: 19px;

  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* DAFTAR KEUNGGULAN */

.trust-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #435774;
  font-size: 0.9rem;
  font-weight: 600;
}

/* HERO ACTIONS */

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;

  margin-top: 27px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}

/* FOTO HERO */

.hero-visual {
  position: relative;
  isolation: isolate;

  min-height: 445px;

  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-shape {
  position: absolute;
  inset: 26px 8px 5px 22px;
  z-index: -1;

  border-radius: 38px;
  background: #e8f2ff;

  transform: rotate(-4deg);
}

.hero-portrait {
  position: relative;
  z-index: 1;

  width: 100%;
  max-height: 465px;

  object-fit: contain;
  object-position: center bottom;
}

.portrait-placeholder {
  position: absolute;
  bottom: 0;

  width: 72%;
  height: 80%;

  display: grid;
  place-items: center;

  border-radius: 180px 180px 26px 26px;

  background: linear-gradient(140deg, #cfe1f8, #eaf2ff);

  color: #7194c6;
  font-size: 4rem;
  font-weight: 800;
}

/* TEKS DEKORATIF HERO */

.hero-note {
  position: absolute;
  top: 39px;
  right: 8px;
  z-index: 2;

  color: #244a84;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;

  transform: rotate(5deg);
}

/* KART BRAND DI DEPAN FOTO */

.hero-signature {
  position: absolute;
  right: -5px;
  bottom: 20px;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 10px;

  max-width: 260px;
  padding: 12px 15px;

  border: 1px solid #e6eef9;
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(19, 48, 91, 0.09);
}

.hero-signature img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hero-signature span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hero-signature strong {
  color: var(--navy);
  font-size: 0.86rem;
}

.hero-signature small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

/* ==========================================
   3. SEARCH BAR
========================================== */

.search-section {
  position: relative;
  z-index: 5;

  margin-top: -5px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;

  max-width: 850px;
  margin-inline: auto;
  padding: 7px 8px 7px 17px;

  border: 1px solid #dce7f6;
  border-radius: 15px;

  background: var(--white);
  box-shadow: 0 10px 30px rgba(22, 67, 131, 0.07);
}

.search-box input {
  flex: 1;
  min-width: 0;

  padding: 10px 0;

  border: 0;
  outline: none;

  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: #8b99ad;
}

/* ==========================================
   4. KATEGORI ALAT BANTU
========================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
  padding: 17px 14px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--white);
  box-shadow: var(--shadow);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #b9d2f9;
}

.category-card > span,
.category-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.category-card strong {
  color: var(--navy);
  font-size: 0.87rem;
}

.category-card small {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.category-card i,
.circle-arrow {
  margin-left: auto;
  flex-shrink: 0;

  color: #6882a7;
  font-size: 1.3rem;
  font-style: normal;
}

/* IKON KATEGORI */

.cat-icon,
.category-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;

  width: 48px;
  height: 48px;

  border-radius: 14px;
  font-size: 1.5rem;
}

.cat-icon.blue,
.icon-blue {
  background: #e8f1ff;
  color: #1764dc;
}

.cat-icon.green,
.icon-green {
  background: #e3f8ef;
  color: #149565;
}

.cat-icon.yellow,
.icon-yellow {
  background: #fff4d6;
  color: #d99500;
}

.cat-icon.purple,
.icon-purple {
  background: #f0e8ff;
  color: #7b3fe4;
}

/* ==========================================
   5. KATALOG ALAT BANTU
========================================== */

.tools-section {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 25px;
}

.section-heading h2 {
  margin-bottom: 8px;
}

.section-heading p {
  font-size: 0.95rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ==========================================
   6. PANDUAN TIGA LANGKAH
========================================== */

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.how-grid > div:first-child p {
  max-width: 450px;
  margin-top: 15px;
}

.steps,
.steps-list {
  display: grid;
  gap: 21px;
}

.steps > div,
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.steps b,
.step-item > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;

  width: 38px;
  height: 38px;

  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.steps > div > span {
  display: flex;
  flex-direction: column;
}

.steps strong,
.step-item strong {
  color: var(--navy);
}

.steps small,
.step-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ==========================================
   7. FOOTER
========================================== */

.site-footer {
  padding: 36px 0 26px;

  border-top: 1px solid var(--border);
  background: #f4f7fc;
}

.footer-inner,
.site-footer .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer p,
.site-footer small {
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;

  margin-left: auto;

  color: #586a83;
  font-size: 0.82rem;
}

.copyright,
.site-footer .container > small {
  width: 100%;
  padding-top: 16px;

  border-top: 1px solid var(--border);

  color: #8491a5;
  font-size: 0.75rem;
}

/* ==========================================
   8. UTILITAS TAMPILAN
========================================== */

.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

/* ==========================================
   9. NAVIGASI BAWAH MOBILE
========================================== */

.bottom-nav {
  display: none;
}

/* =========================================
   PATCH QEDEVELOPER
   Menyamakan layout.css dengan index.html
========================================= */

/* Logo brand */
.brand-mark {
  display: grid !important;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 11px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Tombol hamburger */
.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--navy);
}

.mobile-menu span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* Panel navigasi mobile */
.mobile-navigation {
  padding: 8px 20px 16px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.mobile-navigation a {
  display: block;
  padding: 12px 4px;
  color: var(--text);
  font-weight: 650;
}

.mobile-navigation a:hover {
  color: var(--blue);
}

/* Foto hero dan placeholder */
.hero-visual {
  align-items: center;
  min-height: 390px;
}

.hero-portrait {
  display: grid;
  width: min(78%, 300px);
  height: 330px;
  max-height: none;
  place-items: center;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 150px 150px 28px 28px;
  background: #dce8f8;
  box-shadow: 0 24px 55px rgba(16, 42, 86, 0.15);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder {
  position: static;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  padding: 20px;
  background: linear-gradient(140deg, #cfe1f8, #eaf2ff);
  color: var(--navy);
  font-size: 1rem;
  text-align: center;
}

.portrait-placeholder span {
  font-size: 3rem;
}

.portrait-placeholder p {
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Kartu kategori dapat diklik */
.category-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.category-card.is-active {
  border-color: var(--blue);
  background: #f0f6ff;
  box-shadow: 0 0 0 2px rgba(21, 94, 239, 0.08);
}

/* Badge thumbnail unggulan */
.tool-thumbnail {
  position: relative;
}

.tag-featured {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Menu dan layout mobile */
@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-portrait {
    width: 230px;
    height: 280px;
  }
}

@media (max-width: 520px) {
  .hero-visual {
    min-height: 300px;
  }

  .hero-portrait {
    width: 195px;
    height: 245px;
    border-width: 5px;
  }
}

@media (max-width: 360px) {
  .hero-portrait {
    width: 175px;
    height: 220px;
  }
}
