/* ==========================================================
   Webnest Systems — main stylesheet (Bootstrap 5.3 + custom)
   ========================================================== */
:root {
  --wn-ink: #0F172A;
  --wn-ink-2: #334155;
  --wn-muted: #64748B;
  --wn-line: #E2E8F0;
  --wn-surface: #F8FAFC;
  --wn-teal: #0EA5A4;
  --wn-blue: #1E40AF;
  --wn-grad: linear-gradient(135deg, var(--wn-teal) 0%, var(--wn-blue) 100%);
  --wn-radius: 1rem;
  --wn-shadow: 0 10px 30px -12px rgb(15 23 42 / .18);

  --bs-primary: #0EA5A4;
  --bs-primary-rgb: 14, 165, 164;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--wn-ink-2);
  --bs-link-color-rgb: 30, 64, 175;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .navbar-brand { color: var(--wn-ink); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw + .5rem, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 2.5vw + .6rem, 2.5rem); line-height: 1.15; }
.lead { color: var(--wn-muted); font-size: clamp(1.05rem, .5vw + .95rem, 1.22rem); }
.text-grad { background: var(--wn-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wn-teal); }
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.bg-soft { background: var(--wn-surface); }

/* Skip link (accessibility) */
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 2000; }
.skip-link:focus { left: .5rem; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 700; --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.4rem; border-radius: .75rem; }
.btn-brand { color: #fff; background: var(--wn-grad); border: 0; box-shadow: 0 8px 22px -8px rgb(14 165 164 / .6); transition: transform .2s, box-shadow .2s; }
.btn-brand:hover, .btn-brand:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgb(30 64 175 / .55); }
.btn-outline-light { --bs-btn-hover-color: var(--wn-ink); }

/* ---------- Topbar & navbar ---------- */
.topbar { background: var(--wn-ink); color: #CBD5E1; font-size: .85rem; }
.topbar a { color: #E2E8F0; text-decoration: none; }
.topbar a:hover { color: #5EEAD4; }
.navbar { background: rgb(255 255 255 / .88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--wn-line); }
.navbar-brand img { height: 44px; width: auto; }
.navbar .nav-link { font-weight: 600; color: var(--wn-ink-2); padding-inline: .9rem !important; border-radius: .5rem; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--wn-teal); }
.dropdown-menu { border: 1px solid var(--wn-line); border-radius: .9rem; box-shadow: var(--wn-shadow); padding: .5rem; }
.dropdown-item { border-radius: .5rem; padding: .6rem .8rem; font-weight: 600; }
.dropdown-item i { color: var(--wn-teal); width: 1.4rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--wn-grad); }
.dropdown-item.active i, .dropdown-item:active i { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #CBD5E1; background: radial-gradient(1200px 600px at 85% -10%, rgb(14 165 164 / .35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgb(30 64 175 / .45), transparent 60%), #0B1222; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; }
.hero > .container { position: relative; }
.hero h1, .hero h2 { color: #fff; }
.hero .lead { color: #94A3B8; }
.hero-home { padding-block: clamp(4rem, 9vw, 7.5rem); }
.hero-page { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.breadcrumb { --bs-breadcrumb-divider-color: #64748B; --bs-breadcrumb-item-active-color: #5EEAD4; font-size: .9rem; }
.breadcrumb a { color: #CBD5E1; text-decoration: none; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); color: #E2E8F0; font-size: .85rem; font-weight: 600; }
.hero-badge .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #2DD4BF; box-shadow: 0 0 0 4px rgb(45 212 191 / .25); }

.hero-visual { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.hero-tile { padding: 1.4rem; border-radius: var(--wn-radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(6px); color: #E2E8F0; transition: transform .3s, background .3s; text-decoration: none; }
.hero-tile:hover { transform: translateY(-4px); background: rgb(255 255 255 / .1); color: #fff; }
.hero-tile:nth-child(even) { translate: 0 1.5rem; }
.hero-tile i { font-size: 1.8rem; color: #5EEAD4; }
.hero-tile strong { display: block; margin-top: .6rem; font-size: 1.02rem; color: #fff; }
.hero-tile span { font-size: .85rem; color: #94A3B8; }

.hero-icon { width: 4.5rem; height: 4.5rem; display: grid; place-items: center; border-radius: 1.2rem; font-size: 2rem; color: #fff; background: var(--wn-grad); box-shadow: 0 18px 40px -12px rgb(14 165 164 / .7); }

/* ---------- Stats ---------- */
.stats { margin-top: -2.75rem; position: relative; z-index: 2; }
.stats .card { border: 1px solid var(--wn-line); border-radius: var(--wn-radius); box-shadow: var(--wn-shadow); }
.stat-num { font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem); font-weight: 800; color: var(--wn-ink); line-height: 1; }
.stat-label { color: var(--wn-muted); font-size: .9rem; font-weight: 600; }

/* ---------- Cards ---------- */
.svc-card, .feature { height: 100%; padding: 1.75rem; border-radius: var(--wn-radius); background: #fff; border: 1px solid var(--wn-line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc-card:hover, .feature:hover { transform: translateY(-6px); box-shadow: var(--wn-shadow); border-color: transparent; }
.svc-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.svc-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--wn-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.svc-card:hover::after { transform: scaleX(1); }
.icon-box { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: .9rem; font-size: 1.5rem; color: var(--wn-teal); background: rgb(14 165 164 / .1); margin-bottom: 1.1rem; }
.svc-card:hover .icon-box { color: #fff; background: var(--wn-grad); }
.svc-card h3, .feature h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.svc-card p, .feature p { color: var(--wn-muted); margin-bottom: 0; }
.svc-card .link-arrow { margin-top: auto; padding-top: 1.2rem; font-weight: 700; text-decoration: none; color: var(--wn-blue); }
.svc-card .link-arrow i { transition: transform .2s; }
.svc-card:hover .link-arrow i { transform: translateX(4px); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list i { color: var(--wn-teal); font-size: 1.15rem; line-height: 1.4; }

/* ---------- Process ---------- */
.process { counter-reset: step; }
.step { position: relative; height: 100%; padding: 1.6rem 1.4rem; border-radius: var(--wn-radius); background: #fff; border: 1px solid var(--wn-line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: .8rem; background: var(--wn-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--wn-muted); font-size: .95rem; margin: 0; }

/* ---------- Tech chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--wn-line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--wn-ink-2); }

/* ---------- Panel image (CSS illustration) ---------- */
.panel-art { position: relative; aspect-ratio: 5 / 4; border-radius: 1.5rem; background: var(--wn-grad); overflow: hidden; display: grid; place-items: center; box-shadow: var(--wn-shadow); }
.panel-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgb(255 255 255 / .25), transparent 40%), radial-gradient(circle at 80% 90%, rgb(255 255 255 / .18), transparent 45%); }
.panel-art i { position: relative; font-size: clamp(5rem, 12vw, 8rem); color: rgb(255 255 255 / .95); filter: drop-shadow(0 12px 24px rgb(0 0 0 / .25)); }
.panel-art .float { position: absolute; padding: .7rem 1rem; border-radius: .8rem; background: #fff; color: var(--wn-ink); font-weight: 700; font-size: .88rem; box-shadow: var(--wn-shadow); display: flex; gap: .5rem; align-items: center; }
.panel-art .float i { font-size: 1.1rem; color: var(--wn-teal); filter: none; }
.panel-art .f1 { top: 10%; left: 6%; }
.panel-art .f2 { bottom: 10%; right: 6%; }

/* ---------- FAQ ---------- */
.accordion { --bs-accordion-border-color: var(--wn-line); --bs-accordion-border-radius: var(--wn-radius); --bs-accordion-inner-border-radius: var(--wn-radius); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgb(14 165 164 / .25); --bs-accordion-active-bg: rgb(14 165 164 / .08); --bs-accordion-active-color: var(--wn-ink); }
.accordion-button { font-weight: 700; color: var(--wn-ink); }
.accordion-item { margin-bottom: .75rem; border-radius: var(--wn-radius) !important; overflow: hidden; border: 1px solid var(--wn-line) !important; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 1.5rem; padding: clamp(2rem, 5vw, 3.5rem); color: #E2E8F0; background: radial-gradient(600px 300px at 90% 0%, rgb(45 212 191 / .35), transparent 60%), var(--wn-ink); }
.cta-band h2 { color: #fff; }

/* ---------- Contact / enquiry ---------- */
.contact-card { padding: 1.4rem; border-radius: var(--wn-radius); background: #fff; border: 1px solid var(--wn-line); display: flex; gap: 1rem; align-items: center; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.contact-card:hover { box-shadow: var(--wn-shadow); transform: translateY(-3px); }
.contact-card .icon-box { margin: 0; flex-shrink: 0; }
.contact-card small { display: block; color: var(--wn-muted); font-weight: 600; }
.contact-card strong { color: var(--wn-ink); word-break: break-word; }
.form-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 1.5rem; background: #fff; border: 1px solid var(--wn-line); box-shadow: var(--wn-shadow); }
.form-control, .form-select { padding: .8rem 1rem; border-radius: .75rem; border-color: var(--wn-line); }
.form-control:focus, .form-select:focus { border-color: var(--wn-teal); box-shadow: 0 0 0 .2rem rgb(14 165 164 / .2); }
.form-label { font-weight: 600; color: var(--wn-ink); font-size: .92rem; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: #0B1222; color: #94A3B8; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #5EEAD4; }
.site-footer .footer-links { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer .footer-bottom { border-top: 1px solid rgb(255 255 255 / .08); }
.site-footer img { height: 44px; width: auto; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 1rem; bottom: 1rem; z-index: 1030; display: grid; gap: .6rem; }
.float-actions a { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .4); transition: transform .2s; }
.float-actions a:hover { transform: scale(1.08); color: #fff; }
.fa-call { background: var(--wn-grad); }
.fa-wa { background: #25D366; }
#toTop { opacity: 0; pointer-events: none; background: var(--wn-ink); transition: opacity .3s, transform .2s; }
#toTop.show { opacity: 1; pointer-events: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

@media (max-width: 991.98px) {
  .navbar-collapse { padding-block: 1rem; }
  .hero-tile:nth-child(even) { translate: none; }
}
@media (max-width: 575.98px) {
  .navbar-brand img { height: 38px; }
  .hero-visual { gap: .7rem; }
  .hero-tile { padding: 1rem; }
}
