/* ============================================================
   InVendt — concept site (msp.vendt.co.nz)
   Brand: orange / black / white. Friendly to non-IT folks,
   professional underneath. Warm paper background, ink text,
   confident orange accents, rounded shapes, plain-English tone.
   ============================================================ */

:root {
  --orange: #FF6A00;
  --orange-deep: #E25600;       /* hover / active */
  --orange-soft: #FFF0E5;       /* tinted backgrounds */
  --ink: #161616;
  --ink-soft: #4c4844;          /* secondary text */
  --paper: #FFFFFF;
  --cream: #FAF6F1;             /* warm section background */
  --line: #ECE4DB;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(22, 16, 10, 0.06);
  --shadow-lift: 0 10px 28px rgba(22, 16, 10, 0.10);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

::selection { background: var(--orange); color: #fff; }

a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; }

/* ============ Header ============ */

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.logo, .footer-brand {
  font-family: var(--display);
  font-weight: 700; font-size: 24px;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover { text-decoration: none; }

.logo-dot { color: var(--orange); }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); }

.site-nav a {
  font-size: 15px; font-weight: 500;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--orange-deep); }

/* hamburger — mobile only */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; padding: 8px 9px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 16px clamp(20px, 5vw, 64px);
    border-top: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-cta { border-radius: 0; text-align: center; }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: clamp(64px, 12vh, 130px) clamp(20px, 6vw, 80px);
  display: flex; justify-content: center;
  border-bottom: 1px solid var(--line);
}

/* asteroid/shield playground — sits behind the hero content */
#shield-fx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; text-align: center; }

.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  transform: rotate(-2deg);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero .accent { color: var(--orange); }

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-promise {
  margin-top: 30px;
  font-size: 14px; color: var(--ink-soft);
}

.hero-promise::before {
  content: "✓ ";
  color: var(--orange);
  font-weight: 700;
}

.deflect-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.deflect-note #deflect-count {
  color: var(--orange-deep);
  font-weight: 700;
}

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 16px; font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ============ Sections ============ */

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(64px, 11vh, 120px) clamp(20px, 6vw, 40px);
}

.section-label {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 44px;
}

/* ============ Service cards ============ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex; flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #f0c9ac;
}

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  border-radius: 14px;
  margin-bottom: 18px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }

.card p { font-size: 15px; color: var(--ink-soft); }

.card-plain {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px !important;
  color: var(--orange-deep) !important;
  font-weight: 500;
}

/* ============ How it works (dark band) ============ */

.section-dark {
  max-width: none;
  background: var(--ink);
  color: #fff;
}

.section-dark > * { max-width: 1040px; margin-left: auto; margin-right: auto; }

.section-dark .section-label { background: rgba(255, 106, 0, 0.16); color: var(--orange); }

.section-dark h2 { color: #fff; margin-bottom: 44px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-size: 20px; font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step h3 { font-size: 21px; margin-bottom: 8px; color: #fff; }

.step p { font-size: 15px; color: #b9b4ae; }

/* ============ About ============ */

.about-lead {
  font-size: clamp(18px, 2.2vw, 22px);
  max-width: 62ch;
  margin-bottom: 16px;
}

.about-body { color: var(--ink-soft); max-width: 62ch; }

/* ============ Contact ============ */

.section-contact { background: var(--cream); max-width: none; border-top: 1px solid var(--line); }

.section-contact > * { max-width: 1040px; margin-left: auto; margin-right: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-size: 14px; font-weight: 600;
  margin: 16px 0 6px;
}

.contact-form label:first-child { margin-top: 0; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--body); font-size: 16px;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.contact-form textarea::placeholder { color: #a89f96; }

.cf-widget { margin-top: 18px; min-height: 65px; }

.contact-form .btn { margin-top: 16px; width: 100%; }

.hp { position: absolute; left: -9999px; top: -9999px; }

#cf-status {
  font-size: 15px; font-weight: 500;
  margin-top: 14px; min-height: 1.4em;
  color: var(--ink-soft);
}
#cf-status.ok { color: #1d7a3f; }
#cf-status.err { color: #c0392b; }

.contact-aside h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 6px;
}

.contact-aside p { color: var(--ink-soft); margin-bottom: 24px; }

.contact-email {
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--orange-deep);
}

/* ============ Footer ============ */

.site-footer {
  background: var(--ink);
  color: #b9b4ae;
  padding: 30px clamp(20px, 5vw, 64px);
  font-size: 14px;
}

.footer-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.footer-brand { color: #fff; font-size: 20px; }

.footer-status { display: flex; align-items: center; gap: 8px; }

.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.35; } }

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
  .status-dot { animation: none; }
}
