:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --accent: #0f8a5f;
  --text: #1e2a32;
  --muted: #5b6b76;
  --card: #ffffff;
  --border: #e3e8ee;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: #ffffff;
  scroll-behavior: smooth;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(240px 240px at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(98, 212, 143, 0.12), transparent 60%);
  opacity: 0.4;
  z-index: 1;
}

.cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 200;
  transition: transform 0.12s ease, width 0.12s ease, height 0.12s ease;
}
.cursor.is-large {
  width: 28px;
  height: 28px;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}

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

.logo { height: 42px; }
.nav .menu {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.nav li { position: relative; }
.nav a {
  color: #2b343c;
  text-decoration: none;
  padding: 8px 10px;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: calc(100% - 20px); }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 0;
  box-shadow: 0 18px 30px rgba(15, 35, 55, 0.08);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}
.submenu li { list-style: none; }
.submenu a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: none;
  color: #2b343c;
}
.submenu a::after { display: none; }
.has-sub:hover .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cta {
  color: #fff;
  background: var(--accent);
  padding: 12px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px 0 140px;
  background: url('https://aliprodalimited.co.nz/wp-content/uploads/2024/09/banner-02.png') center/cover no-repeat;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 18, 0.55);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-copy.center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-copy h1 { font-size: 56px; margin-bottom: 18px; font-weight: 600; letter-spacing: 0.2px; }
.hero-copy p { color: rgba(255,255,255,0.85); line-height: 1.85; max-width: 740px; margin: 0 auto; }
.hero-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}

.curtain {
  position: fixed;
  inset: 0;
  background: #fff;
  transform: translateY(100%);
  z-index: 150;
  pointer-events: none;
}
.curtain.is-active {
  animation: curtain-up 0.7s ease forwards;
}
@keyframes curtain-up {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0%); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn.primary:hover { filter: brightness(0.95); }
.btn.ghost:hover { border-color: #fff; }

.showcase { padding: 110px 0; background: #fff; }
.section-head h2 { margin: 0 0 10px; font-size: 34px; font-weight: 600; }
.section-head p { color: var(--muted); margin: 0 0 30px; line-height: 1.7; }
.section-head.subhead { margin-top: 34px; }

.viewer-wrap {
  position: relative;
  background: #f2f4f7;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  overflow: hidden;
}
#viewer {
  width: 100%;
  height: 560px;
  display: block;
  border-radius: 3px;
  cursor: grab;
}
#viewer:active { cursor: grabbing; }
.viewer-hint {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 10px;
  color: var(--muted);
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  letter-spacing: 0.4px;
}

.products, .services, .contact, .about, .gallery { padding: 100px 0; }
.products { background: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 35, 55, 0.14);
}
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.service {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 35, 55, 0.12);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: 6px;
}
.contact-line { color: var(--muted); margin-top: 6px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 50;
}
.modal.hidden { display: none; }
.modal-content {
  width: min(520px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}
.modal-content img { border-radius: 10px; margin: 12px 0; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .hero-copy h1 { font-size: 32px; }
  #viewer { height: 420px; }
  .nav { display: none; }
}
