/* NewEra Tech Services — shared styles for inner pages */
:root {
  --blue-900: #0f2a6e; --blue-800: #1e3a8a; --blue-700: #1d4ed8; --blue-600: #2563eb;
  --blue-500: #3b82f6; --blue-200: #bfdbfe; --blue-100: #dbeafe; --blue-50: #eff6ff;
  --teal-600: #0d9488; --teal-500: #14b8a6; --teal-100: #ccfbf1;
  --slate-900: #0f172a; --slate-800: #1e293b; --slate-700: #334155; --slate-600: #475569;
  --slate-500: #64748b; --slate-400: #94a3b8; --slate-300: #cbd5e1; --slate-200: #e2e8f0;
  --slate-100: #f1f5f9; --slate-50: #f8fafc; --white: #ffffff;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-xl: 0 24px 64px rgba(15,23,42,0.12), 0 8px 24px rgba(15,23,42,0.07);
  --max-w: 1160px; --nav-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--slate-900); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
section[id] { scroll-margin-top: var(--nav-h); }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }
.narrow { max-width: 820px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.serif { font-family: var(--font-display); font-weight: 400; font-style: italic; color: var(--blue-700); }
.label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 5px 12px; border-radius: 100px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; border: none; }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 1px 3px rgba(37,99,235,0.3), 0 4px 16px rgba(37,99,235,0.15); }
.btn-primary:hover { background: var(--blue-800); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--slate-700); border: 1.5px solid var(--slate-200); }
.btn-ghost:hover { background: var(--slate-50); border-color: var(--slate-300); }
.btn-white { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-md); }
.btn-outline-white { background: transparent; color: rgba(255,255,255,0.9); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-white:hover { background: rgba(255,255,255,0.08); }

/* Nav */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--blue-700); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
nav.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); background: rgba(255,255,255,0.92); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--slate-200); display: flex; align-items: center; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 34px; height: 34px; }
.nav-logo-text { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--blue-600); }
nav.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; }
nav.site-nav ul a { white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--slate-600); padding: 7px 12px; border-radius: 6px; transition: color .15s, background .15s; }
nav.site-nav ul a:hover, nav.site-nav ul a[aria-current="page"] { color: var(--slate-900); background: var(--slate-100); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { font-size: 14px; padding: 9px 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; border-radius: 6px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--slate-700); border-radius: 2px; }

/* Page hero */
.page-hero { padding: calc(var(--nav-h) + 56px) 0 64px; background: radial-gradient(ellipse 70% 60% at 70% 0%, rgba(219,234,254,0.6) 0%, transparent 65%), radial-gradient(ellipse 40% 40% at 95% 90%, rgba(204,251,241,0.35) 0%, transparent 60%), var(--white); border-bottom: 1px solid var(--slate-200); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%); pointer-events: none; }
.page-hero .container { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--slate-500); margin-bottom: 22px; list-style: none; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--slate-300); }
.crumbs a:hover { color: var(--blue-700); }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 820px; margin: 14px 0 18px; }
.page-hero .lead { font-size: 18px; color: var(--slate-500); max-width: 680px; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 32px; font-size: 13.5px; color: var(--slate-600); font-weight: 500; }
.hero-points span::before { content: '✓'; color: var(--teal-600); font-weight: 700; margin-right: 6px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); margin: 12px 0 14px; }
.section-head p { font-size: 17px; color: var(--slate-500); }
.prose p { font-size: 16.5px; color: var(--slate-600); line-height: 1.8; }
.prose p + p { margin-top: 16px; }
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin: 44px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose ul { margin: 12px 0 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { font-size: 16px; color: var(--slate-600); padding-left: 26px; position: relative; }
.prose ul li::before { content: '✓'; position: absolute; left: 0; color: var(--teal-600); font-weight: 700; }
.prose a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.aside-card { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.aside-card h3 { font-size: 19px; margin-bottom: 8px; }
.aside-card p { font-size: 14px; color: var(--slate-500); margin-bottom: 18px; }
.aside-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.aside-meta { border-top: 1px solid var(--slate-100); margin-top: 10px; padding-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--slate-600); }
.aside-meta a { color: var(--blue-700); font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
a.card:hover, .card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); border: 1px solid var(--blue-100); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--slate-500); line-height: 1.65; }
.card .more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--blue-700); }
.card .tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 24px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 28px; color: var(--blue-600); margin-bottom: 8px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--slate-500); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 0; }
.metric { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.metric b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--blue-700); }
.metric span { font-size: 13px; color: var(--slate-500); font-weight: 500; }

.quote { background: var(--white); border: 1px solid var(--slate-200); border-left: 4px solid var(--blue-600); border-radius: var(--radius-md); padding: 28px 32px; margin-top: 36px; }
.quote p { font-size: 18px; font-style: italic; color: var(--slate-700); line-height: 1.7; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--slate-900); }
.quote cite span { font-weight: 400; color: var(--slate-500); }

.preview { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--slate-200); box-shadow: var(--shadow-xl); background: var(--white); }
.preview svg { display: block; width: 100%; height: auto; }

/* FAQ */
.faq-wrap { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: var(--blue-100); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--blue-600); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; font-size: 15px; color: var(--slate-500); line-height: 1.7; }
.faq-item .faq-a a { color: var(--blue-700); text-decoration: underline; }

/* Products */
.product-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-chip { border-radius: var(--radius-md); padding: 22px; color: #fff; display: block; transition: transform .2s; }
.p-chip:hover { transform: translateY(-3px); }
.p-chip b { font-size: 19px; display: block; }
.p-chip span { font-size: 13.5px; opacity: .85; }
.p-care { background: linear-gradient(135deg, #4c1d95, #6d28d9); }
.p-serve { background: linear-gradient(135deg, #7c2d12, #c2410c); }
.p-one { background: linear-gradient(135deg, #134e4a, #0f766e); }

/* Contact form */
.form-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-xl); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--slate-50); border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); padding: 11px 14px; font-family: var(--font-body); font-size: 14px; color: var(--slate-900); outline: none; -webkit-appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; padding: 14px; font-weight: 600; }
.form-success { display: none; text-align: center; padding: 32px 12px; }
.form-success h3 { font-size: 20px; margin: 12px 0 8px; }
.form-success p { color: var(--slate-500); }
.contact-list { display: grid; gap: 12px; margin-top: 24px; }
.contact-list div { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-sm); font-size: 14px; }
.contact-list small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); }
.contact-list b a:hover { color: var(--blue-700); }
.toast { position: fixed; bottom: 28px; right: 28px; background: var(--slate-900); color: #fff; padding: 12px 20px; border-radius: var(--radius-sm); font-size: 14px; z-index: 9999; opacity: 0; transform: translateY(8px); transition: all .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* CTA + footer */
.cta { background: var(--blue-900); padding: 88px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 30% 50%, rgba(59,130,246,0.22), transparent), radial-gradient(ellipse 50% 60% at 80% 50%, rgba(13,148,136,0.16), transparent); }
.cta .container { position: relative; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.9rem); margin-bottom: 14px; }
.cta h2 .serif { color: #93c5fd; }
.cta p { color: rgba(255,255,255,0.68); font-size: 17px; max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
footer { background: var(--slate-900); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand b { color: #fff; font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand b img { width: 30px; height: 30px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 280px; margin-bottom: 18px; }
.footer-abn { font-size: 12px; color: rgba(255,255,255,0.35); padding: 8px 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; display: inline-block; }
.footer-col h2 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color .15s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

@media (min-width: 861px) and (max-width: 1180px) { .nav-actions .btn-ghost { display: none; } }
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .aside-card { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  nav.site-nav ul a { padding: 7px 8px; }
}
@media (max-width: 860px) {
  nav.site-nav ul { display: none; }
  nav.site-nav ul.mobile-open { display: flex; flex-direction: column; align-items: flex-start; position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; overflow-y: auto; background: #fff; z-index: 999; padding: 90px 32px 40px; gap: 6px; }
  nav.site-nav ul.mobile-open a { font-size: 18px; padding: 10px 0; color: var(--slate-900); }
  .nav-actions .btn-ghost { display: none; }
  .hamburger { display: flex; z-index: 1001; margin-left: 10px; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .card-grid, .card-grid.two, .product-band, .metrics { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) { .nav-actions .btn-primary { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ─── Services dropdown ─── */
.has-menu { position: relative; display: flex; align-items: center; }
.menu-toggle { background: none; border: none; padding: 6px 4px; margin-left: -8px; color: #64748b; display: inline-flex; align-items: center; border-radius: 6px; }
.menu-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.has-menu:hover .menu-toggle svg, .has-menu.open .menu-toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: -16px; padding-top: 12px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 1100;
}
.dropdown-inner {
  width: 560px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15,23,42,0.14), 0 8px 24px rgba(15,23,42,0.08);
  padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown, .has-menu.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a.dd-item { display: flex !important; gap: 12px; align-items: flex-start; padding: 10px 12px !important; border-radius: 10px; white-space: normal !important; }
.dropdown a.dd-item:hover { background: #eff6ff !important; }
.dd-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: #eff6ff; border: 1px solid #dbeafe; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.dd-text b { display: block; font-size: 14px; font-weight: 600; color: #0f172a; line-height: 1.3; }
.dd-text span { display: block; font-size: 12.5px; color: #64748b; font-weight: 400; line-height: 1.4; margin-top: 2px; }
.dd-foot { grid-column: 1 / -1; border-top: 1px solid #f1f5f9; margin-top: 6px; padding: 10px 12px 4px; display: flex; justify-content: space-between; font-size: 13px; }
.dd-foot a { padding: 0 !important; color: #1d4ed8 !important; font-weight: 600; background: none !important; }
@media (max-width: 860px) {
  .has-menu { flex-direction: column; align-items: flex-start; width: 100%; }
  .menu-toggle { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 6px 12px; }
  .dropdown-inner { width: auto; box-shadow: none; border: none; padding: 0; display: block; background: none; }
  .dropdown a.dd-item { padding: 6px 0 !important; }
  .dropdown a.dd-item .dd-icon, .dd-text span { display: none; } .dd-foot { display: flex; padding: 8px 0 0; }
  .dd-text b { font-size: 15px; font-weight: 500; color: #475569; }
}

.form-error { display: none; margin-top: 14px; padding: 16px 18px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; font-size: 14px; line-height: 1.6; }
.form-error.show { display: block; }
.form-error b { display: block; margin-bottom: 4px; color: #991b1b; }
.form-error .err-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.form-error .err-actions a { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.form-error .err-email { background: #1d4ed8; color: #fff !important; }
.form-error .err-call { background: #fff; color: #0f172a !important; border: 1px solid #e2e8f0; }
