/* BuildAI — buildai.nz | v3: NZBC-inspired styling (dark heroes, light body, teal accent) */
:root {
  --bg: #fafbfd;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --heading: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --accent-glow: rgba(20, 184, 166, 0.18);
  --navy: #0a1628;
  --navy2: #0d1f3c;
  --teal-deep: #0a2a2a;
  --white: #f8fafc;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.05);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 76px 0; }
section.tight { padding: 52px 0; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.18; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 660px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px;
}

/* ---------- Header (dark, matches logo) ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148,163,184,0.15);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.logo .logo-text {
  background: linear-gradient(180deg, #f1f5f9 20%, #94a3b8 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo span.ai { color: var(--accent); }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a { color: #cbd5e1; font-size: 0.95rem; font-weight: 600; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-phone { color: #fff !important; font-weight: 800; }
#nav-toggle { display: none; }
.hamburger { display: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 27px; border-radius: 10px; font-weight: 800;
  font-size: 0.97rem; text-decoration: none; transition: all 0.16s ease; border: none; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: #fff; box-shadow: 0 4px 14px rgba(20,184,166,0.35); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(20,184,166,0.45); }
.btn-outline { border: 1.5px solid rgba(148,163,184,0.55); color: var(--white); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
section:not(.hero):not(.cta-band):not(.about-strip) .btn-outline,
.price-card .btn-outline { color: var(--heading); border-color: #cbd5e1; }
section:not(.hero):not(.cta-band):not(.about-strip) .btn-outline:hover,
.price-card .btn-outline:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Hero (NZBC style: navy gradient + grid + image + glow) ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 84px;
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #0a2a2a 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,184,166,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,184,166,0.05) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: 15%; right: 12%; width: 340px; height: 340px;
  border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none;
  background: radial-gradient(circle, #14b8a6 0%, transparent 70%);
}
.hero.hero-img {
  background:
    linear-gradient(to right, rgba(10,22,40,0.97) 0%, rgba(10,22,40,0.9) 40%, rgba(10,22,40,0.5) 75%, rgba(10,22,40,0.25) 100%),
    var(--hero-img) center right / cover no-repeat,
    linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #0a2a2a 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { margin: 20px 0 32px; color: rgba(226,232,240,0.85); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: rgba(148,163,184,0.9); }
.hero .article-meta { color: rgba(148,163,184,0.9); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex; gap: 12px 40px; flex-wrap: wrap; justify-content: center;
  padding: 22px 28px; margin-top: -34px; position: relative; z-index: 5;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.trust-bar div { font-size: 0.93rem; color: var(--muted); }
.trust-bar strong { color: var(--heading); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; margin-top: 38px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #cbd5e1; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .icon { font-size: 1.7rem; margin-bottom: 12px; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .from { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.price-card .price { font-size: 2.05rem; font-weight: 800; color: var(--heading); }
.price-card .price small { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; margin: 18px 0 24px; flex: 1; }
.price-card li { padding: 7px 0 7px 27px; position: relative; color: var(--text); font-size: 0.94rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 800; }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: #fff;
  font-size: 0.75rem; font-weight: 800; padding: 5px 16px; border-radius: 99px; letter-spacing: 0.05em; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(20,184,166,0.4);
}
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 8px 40px rgba(20,184,166,0.18); }

/* ---------- Steps ---------- */
.step-num { font-size: 0.85rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 8px; letter-spacing: 0.08em; }

/* ---------- Projects ---------- */
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #e2e8f0, #ccfbf1); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-thumb .fallback { font-size: 2.2rem; }
.project-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.project-body p { flex: 1; margin: 6px 0 12px; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-dark); }

/* ---------- Testimonials ---------- */
.quote-card blockquote { font-size: 1.03rem; color: var(--text); font-style: italic; }
.quote-card figcaption { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.quote-card figcaption strong { color: var(--heading); }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 12px; font-size: 0.9rem; }

/* ---------- About strip (dark banding) ---------- */
.about-strip { background: linear-gradient(135deg, #0a1628, #0d1f3c); }
.about-strip .container { display: grid; grid-template-columns: 1fr 1.6fr; gap: 44px; align-items: center; }
.about-strip h2 { color: #fff; }
.about-strip .eyebrow { color: var(--accent); }
.about-strip p { color: rgba(203,213,225,0.85) !important; }
.about-photo {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #16223f, #0d2b28);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  border: 1px solid rgba(148,163,184,0.25);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--border); border-radius: 12px; margin-top: 12px; background: var(--card); box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 18px 22px; font-weight: 800; color: var(--heading); list-style: none; position: relative; padding-right: 46px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--accent-dark); font-size: 1.35rem; font-weight: 400; }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 22px 18px; color: var(--muted); font-size: 0.96rem; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; margin-top: 38px; }
form label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--heading); margin: 16px 0 6px; }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; border-radius: 9px; border: 1.5px solid var(--border);
  background: #fff; color: var(--heading); font-size: 0.96rem; font-family: inherit;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,184,166,0.15); }
form button { margin-top: 22px; width: 100%; }
.contact-info p { margin-bottom: 14px; color: var(--muted); }
.contact-info a { font-weight: 800; }
#contact form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 28px 28px; box-shadow: var(--shadow-lg); }

/* ---------- CTA band (dark) ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #0a2a2a, #0d1f3c); text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(20,184,166,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,184,166,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band .lead { margin: 12px auto 28px; color: rgba(203,213,225,0.85); }

/* ---------- Chips ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.chip {
  border: 1px solid var(--border); background: var(--card); border-radius: 99px;
  padding: 10px 20px; font-size: 0.92rem; color: var(--heading); font-weight: 700; box-shadow: var(--shadow);
}
.chip span { margin-right: 6px; }

/* ---------- Footer (dark) ---------- */
footer { padding: 52px 0 38px; background: #0a1628; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #94a3b8; font-size: 0.94rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { color: #94a3b8 !important; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(148,163,184,0.15); font-size: 0.85rem; color: #64748b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #94a3b8; }

/* ---------- Articles ---------- */
.article { max-width: 720px; margin: 0 auto; }
.article h2 { margin-top: 42px; }
.article h3 { margin-top: 28px; }
.article p { margin: 16px 0; color: var(--text); }
.article ul { margin: 16px 0 16px 22px; color: var(--text); }
.article li { margin-bottom: 8px; }
.article strong { color: var(--heading); }
.article-meta { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Landing ---------- */
.landing header { position: static; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-grid, .about-strip .container, .footer-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; }
  section { padding: 56px 0; }
  .hero { padding: 72px 0 64px; }
  .trust-bar { margin-top: -24px; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #0a1628; flex-direction: column; padding: 22px; gap: 16px;
    border-bottom: 1px solid rgba(148,163,184,0.2);
  }
  #nav-toggle:checked ~ .nav-links { display: flex; }
  .hamburger { display: block; }
}
