/* ==========================================================================
   WebNest Digital — core stylesheet
   ========================================================================== */

:root {
  --wn-navy: #0b1623;
  --wn-navy-2: #111e30;
  --wn-navy-3: #16253a;
  --wn-primary: #4f46e5;
  --wn-primary-dark: #3f37c9;
  --wn-primary-light: #eef0fe;
  --wn-teal: #14b8a6;
  --wn-teal-dark: #0f9c8c;
  --wn-amber: #f59e0b;
  --wn-bg: #f7f9fc;
  --wn-surface: #ffffff;
  --wn-text: #1b2430;
  --wn-text-muted: #5b6572;
  --wn-border: #e4e8f0;
  --wn-radius: 0.9rem;
  --wn-shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.06);
  --wn-shadow-md: 0 12px 32px rgba(16, 24, 40, 0.1);
  --wn-shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wn-text);
  background-color: var(--wn-bg);
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  color: var(--wn-navy);
  letter-spacing: -0.01em;
}

a {
  color: var(--wn-primary);
  text-decoration: none;
}
a:hover {
  color: var(--wn-primary-dark);
}

.text-muted-2 { color: var(--wn-text-muted) !important; }
.bg-navy { background-color: var(--wn-navy) !important; }
.bg-navy-2 { background-color: var(--wn-navy-2) !important; }
.bg-light-2 { background-color: var(--wn-bg) !important; }
.bg-primary-soft { background-color: var(--wn-primary-light) !important; }
.text-primary-2 { color: var(--wn-primary) !important; }
.text-teal { color: var(--wn-teal) !important; }

.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .section-sm { padding: 2.5rem 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wn-primary);
  background: var(--wn-primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: 50rem;
  margin-bottom: 1rem;
}
.eyebrow.on-dark {
  color: #c7c3ff;
  background: rgba(255, 255, 255, 0.08);
}

.section-title { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); margin-bottom: 0.75rem; }
.section-lead { color: var(--wn-text-muted); font-size: 1.1rem; max-width: 56rem; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 0.6rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
}
.btn-lg { padding: 0.85rem 1.9rem; font-size: 1.05rem; }
.btn-primary {
  background-color: var(--wn-primary);
  border-color: var(--wn-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--wn-primary-dark);
  border-color: var(--wn-primary-dark);
}
.btn-outline-light:hover { color: var(--wn-navy); }
.btn-teal {
  background-color: var(--wn-teal);
  border-color: var(--wn-teal);
  color: #04281f;
}
.btn-teal:hover { background-color: var(--wn-teal-dark); color: #fff; }

/* ---------- Navbar ---------- */
#mainNav {
  background-color: var(--wn-navy);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
#mainNav .navbar-brand svg { flex-shrink: 0; }
#mainNav .nav-link {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff;
}
#mainNav .nav-link.active { position: relative; }
#mainNav .dropdown-menu {
  border: none;
  border-radius: 0.75rem;
  box-shadow: var(--wn-shadow-lg);
  padding: 0.5rem;
  margin-top: 0.5rem;
}
#mainNav .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}
#mainNav .dropdown-item:active,
#mainNav .dropdown-item.active {
  background-color: var(--wn-primary-light);
  color: var(--wn-primary);
}
#mainNav .btn-cta {
  background-color: var(--wn-primary);
  color: #fff;
  border-radius: 0.6rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  font-size: 0.92rem;
}
#mainNav .btn-cta:hover { background-color: var(--wn-primary-dark); }
.navbar-toggler { border: none; color: #fff; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-color: var(--wn-navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0.38;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(11,22,35,0.97) 20%, rgba(11,22,35,0.78) 55%, rgba(79,70,229,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 6.5rem 0 5.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1.12; }
.hero .lead { color: rgba(255,255,255,0.86); font-size: 1.15rem; max-width: 36rem; }
.hero-stats { display: flex; gap: 2.25rem; flex-wrap: wrap; margin-top: 3rem; }
.hero-stats .stat-num { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.6rem; color: #fff; }
.hero-stats .stat-label { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--wn-navy) 0%, #1c2d4a 60%, #2a2470 130%);
  padding: 4.5rem 0 3.5rem;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.32;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,22,35,0.94) 0%, rgba(28,45,74,0.9) 60%, rgba(42,36,112,0.88) 130%);
}
.page-header > .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem); }
.page-header .lead { color: rgba(255,255,255,0.78); max-width: 42rem; }
.page-header .breadcrumb { --bs-breadcrumb-divider: '/'; margin-bottom: 1rem; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.65); }
.page-header .breadcrumb .active { color: #fff; }

/* ---------- Cards ---------- */
.card-base {
  background: var(--wn-surface);
  border: 1px solid var(--wn-border);
  border-radius: var(--wn-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-base:hover { transform: translateY(-4px); box-shadow: var(--wn-shadow-md); }

.service-card { padding: 2rem 1.75rem; height: 100%; }
.service-card .icon-box {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem;
  background: var(--wn-primary-light);
  color: var(--wn-primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--wn-text-muted); font-size: 0.95rem; margin-bottom: 0; }

.industry-card {
  position: relative;
  border-radius: var(--wn-radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  color: #fff;
  box-shadow: var(--wn-shadow-sm);
}
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.industry-card:hover img { transform: scale(1.06); }
.industry-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,22,35,0.92) 10%, rgba(11,22,35,0.15) 60%, rgba(11,22,35,0.05) 100%);
}
.industry-card .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; z-index: 2; }
.industry-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.4rem; }
.industry-card p { color: rgba(255,255,255,0.82); font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Pricing ---------- */
.pricing-card {
  padding: 2.25rem 1.9rem;
  height: 100%;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--wn-primary);
  box-shadow: var(--wn-shadow-md);
}
.pricing-card .badge-featured {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--wn-primary); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3rem 0.9rem; border-radius: 50rem; text-transform: uppercase;
  white-space: nowrap;
}
.pricing-card .price { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 2.4rem; color: var(--wn-navy); }
.pricing-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--wn-text-muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.pricing-card ul li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.92rem; color: var(--wn-text); margin-bottom: 0.65rem;
}
.pricing-card ul li i { color: var(--wn-teal); margin-top: 0.2rem; }

.table-compare {
  --bs-table-bg: transparent;
  border-collapse: separate;
  border-spacing: 0;
}
.table-compare th, .table-compare td {
  vertical-align: middle;
  border-color: var(--wn-border);
}
.table-compare thead th {
  background: var(--wn-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  padding: 1rem 0.75rem;
}
.table-compare thead th:first-child { border-top-left-radius: 0.6rem; }
.table-compare thead th:last-child { border-top-right-radius: 0.6rem; }
.table-compare tbody td { padding: 1rem 0.75rem; font-size: 0.92rem; }
.table-compare tbody tr:nth-child(odd) { background: var(--wn-bg); }
.table-compare .tier-name { font-weight: 700; color: var(--wn-navy); }
.table-compare .price-cell { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--wn-primary); white-space: nowrap; }

.plan-limits {
  font-size: 0.8rem;
  color: var(--wn-text-muted);
  background: var(--wn-bg);
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  margin-top: 0.9rem;
}
.plan-limits div { display: flex; justify-content: space-between; padding: 0.1rem 0; }
.plan-limits strong { color: var(--wn-text); font-weight: 600; }

/* ---------- Process steps ---------- */
.process-step {
  display: flex; gap: 1.1rem; align-items: flex-start;
}
.process-step .num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--wn-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-weight: 700;
}
.process-step h4 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.process-step p { color: var(--wn-text-muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Device mockups ---------- */
.phone-mockup {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 2.4rem;
  box-shadow: var(--wn-shadow-lg);
}
.phone-mockup img { width: 100%; display: block; border-radius: 2.4rem; }
.phone-screen-ui {
  position: absolute;
  top: 7%; left: 7.5%; right: 7.5%; bottom: 7%;
  border-radius: 1.6rem;
  overflow: hidden;
  background: linear-gradient(160deg, #eef0fe 0%, #ffffff 60%);
  padding: 1.1rem 0.9rem;
  text-align: left;
}
.phone-screen-ui .app-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.phone-screen-ui .app-bar .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--wn-primary); }
.phone-screen-ui .app-bar .lines span { display:block; height:6px; border-radius:3px; background:#d7d9f5; margin-bottom:4px;}
.phone-screen-ui .card-mini {
  background: #fff; border-radius: 0.8rem; padding: 0.7rem 0.8rem;
  box-shadow: 0 4px 10px rgba(16,24,40,0.06); margin-bottom: 0.6rem;
}
.phone-screen-ui .card-mini .bar { height: 8px; border-radius: 4px; background: var(--wn-primary-light); margin-bottom: 6px; }
.phone-screen-ui .card-mini .bar.teal { background: #d2f4ef; }
.phone-screen-ui .card-mini .bar.sm { width: 60%; }
.phone-screen-ui .stat-row { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.phone-screen-ui .stat-chip {
  flex: 1; background: var(--wn-navy); color: #fff; border-radius: 0.6rem;
  padding: 0.5rem; text-align: center; font-size: 0.65rem;
}
.phone-screen-ui .stat-chip strong { display: block; font-size: 0.95rem; font-family: "Poppins", sans-serif; }

/* Browser-frame concept mockups for portfolio */
.browser-mockup {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: var(--wn-shadow-md);
  background: #fff;
  border: 1px solid var(--wn-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.browser-mockup:hover {
  transform: translateY(-4px);
  box-shadow: var(--wn-shadow-lg);
}
.browser-mockup .browser-bar {
  background: #e9ecf3;
  padding: 0.55rem 0.8rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.browser-mockup .browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #c7cedb; }
.browser-mockup .browser-bar .url {
  margin-left: 0.6rem; background: #fff; border-radius: 50rem;
  padding: 0.15rem 0.9rem; font-size: 0.7rem; color: var(--wn-text-muted);
  flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-mockup .mockup-body { aspect-ratio: 16/10; padding: 1.1rem; position: relative; overflow: hidden; }
.portfolio-shot { width: 100%; height: auto; aspect-ratio: 1568/711; object-fit: cover; object-position: top; display: block; }
.portfolio-link-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.8rem; font-size: 0.78rem; color: var(--wn-primary); font-weight: 600; }
.concept-badge {
  position: absolute; top: 0.9rem; right: 0.9rem;
  background: var(--wn-amber); color: #241a00;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 50rem;
  z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mockup-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.mockup-nav .brand { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 0.85rem; }
.mockup-nav .links span { font-size: 0.68rem; margin-left: 0.7rem; color: var(--wn-text-muted); }
.mockup-hero-line { height: 14px; border-radius: 4px; background: var(--wn-border); margin-bottom: 0.5rem; }
.mockup-hero-line.w-60 { width: 60%; }
.mockup-hero-line.w-40 { width: 40%; }
.mockup-btn { display:inline-block; font-size:0.68rem; font-weight:600; padding:0.3rem 0.8rem; border-radius:0.4rem; margin-top:0.6rem; }

/* ---------- Testimonial / quote ---------- */
.quote-card { padding: 1.9rem; border-radius: var(--wn-radius); background: var(--wn-surface); border: 1px solid var(--wn-border); height: 100%; }
.quote-card .stars { color: var(--wn-amber); font-size: 0.85rem; margin-bottom: 0.75rem; }
.quote-card p.quote-text { font-size: 0.97rem; color: var(--wn-text); }
.quote-card .who { font-weight: 700; font-size: 0.9rem; color: var(--wn-navy); }
.quote-card .role { font-size: 0.8rem; color: var(--wn-text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--wn-primary) 0%, #6a5ff0 100%);
  border-radius: 1.2rem;
  padding: 3rem 2.5rem;
  color: #fff;
}
.cta-band h2 { color: #fff; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--wn-navy); color: rgba(255,255,255,0.65); padding: 4rem 0 1.5rem; }
footer.site-footer h5 { color: #fff; font-size: 0.95rem; margin-bottom: 1.1rem; }
footer.site-footer a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; padding: 0; }
footer.site-footer ul li { margin-bottom: 0.6rem; }
footer.site-footer .footer-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: "Poppins", sans-serif; font-weight: 700; color: #fff; font-size: 1.15rem;
  margin-bottom: 1rem;
}
footer.site-footer .social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); margin-right: 0.5rem;
}
footer.site-footer .social-icons a:hover { background: var(--wn-primary); }
footer.site-footer .bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem;
}
footer.site-footer .contact-item { display: flex; gap: 0.7rem; margin-bottom: 0.9rem; font-size: 0.9rem; }
footer.site-footer .contact-item i { color: var(--wn-teal); margin-top: 0.2rem; }

/* ---------- FAQ accordion tweaks ---------- */
.accordion-item { border: 1px solid var(--wn-border); border-radius: 0.7rem !important; margin-bottom: 0.8rem; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: 0.98rem; }
.accordion-button:not(.collapsed) { background: var(--wn-primary-light); color: var(--wn-primary-dark); }
.accordion-button:focus { box-shadow: none; }

/* ---------- Misc ---------- */
.badge-soft {
  background: var(--wn-primary-light); color: var(--wn-primary);
  font-weight: 600; font-size: 0.78rem; padding: 0.4rem 0.8rem; border-radius: 50rem;
}
.ratio-16x9-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: var(--wn-radius); }
.img-rounded { border-radius: var(--wn-radius); }
.divider-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--wn-text-muted); display: inline-block; margin: 0 0.5rem; }

.timeline-marker { width: 10px; height: 10px; border-radius: 50%; background: var(--wn-primary); margin-top: 6px; flex-shrink: 0; }

@media (max-width: 991.98px) {
  body { padding-top: 68px; }
  #mainNav .navbar-collapse { background: var(--wn-navy-2); border-radius: 0.7rem; padding: 0.75rem 1rem; margin-top: 0.6rem; }
}
