*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #0c3d7a;
  --navy-dark: #082f5f;
  --blue: #2b8fd9;
  --blue-soft: #5eb3ea;
  --blue-light: #edf6fd;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --whatsapp: #25d366;
  --container: 1140px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(12, 61, 122, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue-soft);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(43, 143, 217, 0.2);
}

.btn-primary:hover {
  background: var(--blue);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid #bfdcf3;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn-cta,
.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.22);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(12, 61, 122, 0.05);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.nav a:hover {
  color: var(--blue);
}

.cart-btn {
  background: var(--white);
  color: var(--navy);
  border: 2px solid #bfdcf3;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  transition: 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* hero */
.hero {
  padding: 56px 0 72px;
  background: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 700;
}

.hero-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  font-weight: 700;
}

.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 760px;
}

.section-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* cards */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(12, 61, 122, 0.05);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.1rem;
}

.card h3 a {
  color: var(--navy);
}

.card h3 a:hover {
  color: var(--blue);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* sales grid */
.product-grid,
.sales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sales-card {
  overflow: hidden;
  padding: 0;
}

.sales-card-brand {
  margin: 0;
  padding: 14px 18px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.sales-product-img,
.product-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.sales-card-body,
.product-body {
  padding: 18px;
}

.sales-title,
.product-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--navy);
}

.sales-desc {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.sales-price-pill {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--red);
  font-size: 0.98rem;
}

.sales-select-group {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.sales-select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
}

.sales-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sales-qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 1.2rem;
  cursor: pointer;
}

.sales-qty-input {
  width: 56px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font: inherit;
}

.sales-add-btn {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--white);
}

.sales-sub-actions {
  display: grid;
  gap: 8px;
}

.sales-sub-btn {
  width: 100%;
  border-radius: 14px;
  font-size: 0.9rem;
  padding: 11px 16px;
}

.sales-cart-state {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* cart box */
.cart-box {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-head h3 {
  margin: 0;
  color: var(--navy);
}

#cartTotal {
  font-weight: 700;
  color: var(--orange-dark);
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.cart-remove {
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.82rem;
}

.cart-empty {
  color: var(--muted);
  margin: 0;
}

.cart-foot {
  display: grid;
  gap: 10px;
}

.cart-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* calculator */
.tesisat-calculator {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.calculator-title {
  margin: 0 0 8px;
  color: var(--navy);
}

.calculator-desc {
  margin: 0 0 20px;
  color: var(--muted);
}

.calculator-form {
  display: grid;
  gap: 16px;
}

.calc-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.calc-row select,
.calc-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

.calc-result {
  padding: 18px;
  background: var(--bg);
  border-radius: 14px;
  display: grid;
  gap: 10px;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
}

.calc-result-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.calc-value-total {
  color: var(--orange-dark);
  font-size: 1.2rem;
}

.calc-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* work examples */
.work-examples {
  margin-top: 32px;
}

.work-examples-title {
  margin: 0 0 18px;
  color: var(--navy);
}

.work-sample-card img {
  border-radius: 12px;
  margin-bottom: 14px;
}

/* contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-message {
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
}

.contact-info h3 {
  margin-top: 0;
  color: var(--navy);
}

.contact-info p {
  margin: 0 0 10px;
}

.contact-info a {
  color: var(--blue);
}

/* scroll top */
.scroll-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 90;
}

.shop-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.shop-filter-btn {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
}

.shop-filter-btn.active,
.shop-filter-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.shop-loading,
.shop-empty {
  color: var(--muted);
  margin: 0 0 16px;
}

.section-lead-sm {
  font-size: 0.92rem;
  margin-top: 28px;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.local-seo-card h3 {
  color: var(--navy);
}

/* footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 24px;
  text-align: center;
}

.site-footer a {
  color: #93c5fd;
}

.footer-note {
  font-weight: 600;
}

.footer-links,
.footer-blog-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 14px;
  font-size: 0.88rem;
}

/* responsive */
@media (max-width: 1024px) {
  .product-grid,
  .sales-grid,
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    max-height: calc(100vh - 78px);
    overflow: auto;
  }

  .nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a,
  .nav .cart-btn,
  .nav .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .product-grid,
  .sales-grid,
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 1fr;
  }

  .hero-btns .btn {
    width: 100%;
  }
}
