/* style.css - BasrengNampol (Oranye-merah pedas theme) */
:root {
  --accent: #ff5a2e;
  --accent-dark: #e0431a;
  --bg: #fff7f4;
  --muted: #666;
  --container: 1100px;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  margin: 0;
  color: #222;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.logo span {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent-dark);
}

/* Navbar */
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: #333;
  padding: 8px 16px;
  display: inline-block;
  position: relative;
  transition: color 225ms ease, transform 180ms ease;
  -webkit-tap-highlit-color: transparent;
  border-radius: 8px;
}
.nav-link:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 3px;
  transform: translateX(-50%);
  transition: width 220ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nav-link:hover::after {
  width: 60%;
}
.nav-link:hover {
  transform: translateY(-2px);
  color: var(--accent-dark);
}
.nav-link.active {
  color: var(--accent-dark);
}
.nav-link.active::after {
  width: 60%;
}
.nav-link:focus {
  outline: 3px solid rgba(255, 90, 46, 0.14);
  outline-offset: 4px;
  border-radius: 8px;
}
.btn-wa {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 48px 0;
}
.hero-inner {
  display: flex;
  gap: 30px;
  align-items: center;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: 36px;
  margin: 0 0 12px;
}
.hero-text .accent {
  color: var(--accent-dark);
}
.hero-text p {
  color: var(--muted);
  margin: 0 0 18px;
}
.hero-cta {
  display: flex;
  gap: 12px;
}
.hero-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(224, 67, 26, 0.12);
}

/* Button */
/* Tombol Primary */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.25s ease; /* seperempat detik */
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(224, 67, 26, 0.25);
  background: var(--accent-dark);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(224, 67, 26, 0.22);
  background: var(--accent-dark);
}

/* Tombol Outline */
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.5s ease; /* setengah detik */
}
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(224, 67, 26, 0.18);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(225, 67, 26, 0.22);
  color: #fff;
  background: var(--accent-dark);
}

/* Features */
.features {
  padding: 30px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  text-align: center;
}
.card img {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

/* ===== Improved Feature Card Styling ===== */

/* feature grid tweaks */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* feature card look */
.card.feature {
  background: linear-gradient(180deg, #ffffff, #fffaf9);
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 10px 30px rgba(14, 12, 12, 0.06);
  text-align: center;
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 220ms;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* subtle lift on hover (desktop) */
.card.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(14, 12, 12, 0.1);
}

/* nicer icon container: circular soft ring + subtle gradient */
.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 90, 46, 0.06),
    rgba(224, 67, 26, 0.03)
  );
  border: 1px solid rgba(224, 67, 26, 0.06);
  box-shadow: inset 0 -6px 12px rgba(255, 255, 255, 0.6);
  transition: transform 220ms, box-shadow 220ms;
}

/* icon size + color (SVG stroke uses currentColor) */
.card-icon img,
.card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-dark);
  stroke: currentColor;
  fill: none; /* keep outline style */
}

/* emphasize icon on hover */
.card.feature:hover .card-icon {
  transform: scale(1.05);
  box-shadow: inset 0 -6px 18px rgba(255, 255, 255, 0.65),
    0 8px 24px rgba(224, 67, 26, 0.06);
}

/* title & text */
.features-grid .card h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #212121;
}
.features-grid .card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  max-width: 46ch;
}

/* responsive: stack on mobile */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .card.feature {
    padding: 22px;
  }
  .card-icon {
    width: 64px;
    height: 64px;
  }
  .card-icon img,
  .card-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* Products */
.products-preview {
  padding: 30px 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}
.price {
  color: var(--accent-dark);
  font-weight: 700;
  margin: 8px 0;
}

/* Contact */
.contact-section {
  padding: 30px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.map-placeholder img {
  width: 100%;
  border-radius: 10px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.price-card {
  background: linear-gradient(180deg, #fff, #fff);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #ffe8e2;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 18px 0;
  margin-top: 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-image img {
    width: 240px;
    height: 240px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .nav {
    display: none;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .logo span {
    font-size: 18px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Modal / Checkout size selector
   =========================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  max-width: 880px;
  width: 94%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 2;
}
.modal-close {
  position: absolute;
  right: 10px;
  top: 6px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}
.modal-body {
  display: flex;
  gap: 18px;
  padding: 18px;
  align-items: flex-start;
}
.modal-image {
  flex: 0 0 220px;
  padding: 8px;
}
.modal-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.modal-info {
  flex: 1;
}
.modal-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.modal-price {
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 18px;
}

/* size options */
.size-section label,
.qty-section label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}
.size-options {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.size-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.size-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: transparent;
}

/* qty */
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qty-controls button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
#qty-input {
  width: 56px;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eee;
}

/* modal actions */
.modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.modal-actions .btn-primary {
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
}
.modal-actions .btn-outline {
  padding: 8px 12px;
}

/* small screens */
@media (max-width: 720px) {
  .modal-body {
    flex-direction: column;
  }
  .modal-image {
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Tombol Responsive di HP */
@media (max-width: 520px) {
  .btn-primary,
  .btn-outline {
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 12px;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 520px) {
  .hero-cta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .hero-cta .btn-outline {
    width: 100%;
    box-sizing: border-box;
  }
}

/* No Hover Perangkat Touchscreen */
@media (hover: none) {
  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
    box-shadow: none;
  }

  .btn-primary:active,
  .btn-outline:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(224, 67, 26, 0.22);
  }
}
