/* ========================================
   NOVA MOBILE HUB - Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* --- CSS Variables --- */
:root {
  --ink: #101828;
  --muted: #667085;
  --paper: #f8fafc;
  --white: #fff;
  --line: #e7eaf0;
  --accent: #6c4cf6;
  --accent2: #14b8a6;
  --soft: #f0edff;
  --shadow: 0 20px 55px rgba(16, 24, 40, .09);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1160px, 92%);
  margin: auto;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 234, 240, .8);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.5px;
}

.brand > span:last-child > span {
  color: var(--accent);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
}

.nav nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
}

.nav nav a {
  font-size: 14px;
  color: #475467;
}

.nav nav a:hover {
  color: var(--accent);
}

.nav-wa {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  font-size: 23px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  background: linear-gradient(135deg, #fbfbff 0%, #f3f1ff 50%, #ecfffb 100%);
}

.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: #b8a8ff;
  filter: blur(100px);
  opacity: .18;
  right: -100px;
  top: -150px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  align-items: center;
  gap: 70px;
  position: relative;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1,
.section h2 {
  font-family: "Playfair Display", serif;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero h1 {
  font-size: clamp(45px, 6vw, 76px);
  margin: 0 0 22px;
  max-width: 650px;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 600;
}

.hero-text {
  max-width: 570px;
  color: #475467;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 30px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 14px;
  transition: .25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--ink);
  color: #fff;
}

.ghost {
  border: 1px solid #d7dbe4;
  background: #fff;
}

.trust {
  display: flex;
  gap: 18px;
  color: #667085;
  font-size: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: #fff;
  border: 1px solid #e9e6ff;
  border-radius: 28px;
  padding: 13px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.floating-tag {
  position: absolute;
  z-index: 2;
  right: 28px;
  top: 28px;
  background: var(--accent);
  color: #fff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-card-info {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 8px 8px;
}

.hero-card-info strong {
  font-size: 15px;
}

.hero-card-info span {
  color: #667085;
  font-size: 12px;
}

/* --- Sections --- */
.section {
  padding: 90px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

.section h2 {
  font-size: 42px;
  margin: 0;
}

.section-head > p {
  color: var(--muted);
  max-width: 390px;
}

/* --- Category Grid --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.cat-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  transition: .25s;
}

.cat-card:hover,
.cat-card.active {
  border-color: #cfc7ff;
  box-shadow: 0 12px 30px rgba(108, 76, 246, .1);
  transform: translateY(-3px);
}

.cat-card span {
  display: block;
  font-size: 25px;
  color: var(--accent);
  margin-bottom: 13px;
}

.cat-card b,
.cat-card small {
  display: block;
}

.cat-card b {
  font-size: 14px;
}

.cat-card small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* --- Products Section --- */
.products-section {
  background: #fff;
}

.tools input {
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 15px;
  outline: none;
  background: #fafbfc;
}

.tools input:focus {
  border-color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
  transition: .25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(16, 24, 40, .1);
}

.product-img {
  height: 205px;
  background: #f1f3f7;
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-img span {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(255, 255, 255, .9);
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  color: #475467;
}

.product-body {
  padding: 16px;
}

.product-body small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.product-body h3 {
  font-size: 15px;
  line-height: 1.3;
  margin: 5px 0 15px;
  min-height: 39px;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-row strong {
  font-size: 15px;
}

.buy-btn {
  font-size: 11px;
  font-weight: 800;
  background: #e8fbf7;
  color: #087c6e;
  border-radius: 9px;
  padding: 8px 10px;
}

.empty {
  text-align: center;
  padding: 50px;
  color: var(--muted);
}

/* --- About Section --- */
.about {
  background: #101828;
  color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
}

.about h2 {
  font-size: 46px;
}

.about p:not(.eyebrow) {
  color: #b9c0cc;
  max-width: 620px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-stats div {
  padding: 25px;
  border: 1px solid #273143;
  border-radius: 18px;
  background: #141e2f;
}

.about-stats strong {
  display: block;
  font-family: "Playfair Display";
  font-size: 40px;
}

.about-stats span {
  font-size: 12px;
  color: #aab3c2;
}

/* --- Contact Section --- */
.contact {
  background: #f3f1ff;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 70px;
  background: #fff;
  border: 1px solid #e2defc;
  border-radius: 28px;
  padding: 45px;
}

.contact h2 {
  font-size: 45px;
}

.contact-details p {
  font-size: 14px;
  color: #667085;
}

.contact-details a:not(.btn) {
  color: var(--accent);
  font-weight: 700;
}

/* --- Footer --- */
footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 55px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: 35px;
}

.footer-grid p,
.footer-grid a,
.footer-grid span {
  display: block;
  color: #667085;
  font-size: 13px;
  margin: 7px 0;
}

.footer-grid h4 {
  font-size: 13px;
  margin: 4px 0 13px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  color: #98a2b3;
  font-size: 11px;
}

/* --- Floating WhatsApp Button --- */
.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #20c978;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(32, 201, 120, .3);
  z-index: 30;
}

/* --- Responsive: Tablet (max-width: 900px) --- */
@media (max-width: 900px) {
  .nav nav {
    display: none;
  }

  .nav nav.open {
    display: flex;
    position: absolute;
    left: 4%;
    right: 4%;
    top: 70px;
    background: #fff;
    padding: 18px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }

  .nav-wa {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-card {
    max-width: 650px;
    margin: auto;
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

/* --- Responsive: Mobile (max-width: 560px) --- */
@media (max-width: 560px) {
  .container {
    width: min(94%, 1160px);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-card img {
    height: 320px;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-img {
    height: 160px;
  }

  .product-body {
    padding: 12px;
  }

  .product-body h3 {
    font-size: 13px;
  }

  .product-row {
    align-items: flex-end;
    flex-direction: column;
  }

  .buy-btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 65px 0;
  }

  .section h2,
  .contact h2,
  .about h2 {
    font-size: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 15px;
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
