/* =========================================================
   NubzAi — nubzai.pk
   Colors ONLY from 02_BRAND_LAYER.md · Fonts: Sora + Inter only
   Mobile-first, breakpoint 768px
   ========================================================= */

:root {
  --teal: #0F766E;
  --coral: #E8593C;
  --navy: #0F172A;
  --cream: #FAF7F2;
  --light-gray: #E5E7EB;
  --mid-gray: #9CA3AF;

  --maxw: 1080px;
  --pad: 20px;
  --radius: 14px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-whatsapp {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, .25);
}
.btn-whatsapp:hover { background: #0c6259; box-shadow: 0 6px 18px rgba(15, 118, 110, .32); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--light-gray);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-lg { font-size: 1.05rem; padding: 14px 26px; }

.wa-icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .85);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(250, 247, 242, .8);
  border-bottom-color: var(--light-gray);
  box-shadow: 0 1px 12px rgba(15, 23, 42, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: flex; flex-direction: column; gap: 2px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-tagline {
  font-size: 0.66rem;
  color: var(--mid-gray);
  letter-spacing: .2px;
  font-weight: 500;
}

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }

.header-cta { font-size: 0.9rem; padding: 9px 16px; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(circle at 15% 0%, rgba(15,118,110,.07), transparent 45%);
}
.hero-inner { max-width: 760px; }
.hero-eyebrow {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: .3px;
  margin-bottom: 14px;
}
.hero-h1 {
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  letter-spacing: -0.5px;
}
.hero-sub {
  margin-top: 18px;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: #374151;
  max-width: 640px;
}
.hero-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Section shell ---------------- */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-title {
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.3px;
}
.section-lead {
  margin-top: 10px;
  color: var(--mid-gray);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ---------------- Cards ---------------- */
.cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.section-alt .card { background: var(--cream); }
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
  border-color: rgba(15,118,110,.4);
}
.card-title { font-size: 1.12rem; font-weight: 600; }
.card-desc { margin-top: 8px; color: #374151; font-size: 0.98rem; }
.card-price {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
  border-top: 1px dashed var(--light-gray);
  padding-top: 12px;
}

/* ---------------- Case study ---------------- */
.case-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.case-block + .case-block { margin-top: 20px; }
.case-block h3 { font-size: 1.05rem; color: var(--teal); font-weight: 600; }
.case-block p { margin-top: 6px; color: #374151; }

/* WhatsApp mock — neutral UI, no FEA brand */
.wa-mock {
  background: #e6ddd4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
  max-width: 360px;
  width: 100%;
}
.wa-mock-bar {
  background: #075E54;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.wa-mock-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #cfd8dc;
  flex: 0 0 auto;
}
.wa-mock-name { font-weight: 600; font-size: 0.95rem; }
.wa-mock-body {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #ece5dd;
}
.wa-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #111;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.wa-in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-out { align-self: flex-end; background: #dcf8c6; border-top-right-radius: 2px; }
.wa-ai {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #5b6b63;
  font-weight: 500;
}

/* Metrics — distinct from testimonial */
.metrics-label {
  margin-top: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mid-gray);
}
.metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.metric {
  background: var(--cream);
  border: 1px solid var(--light-gray);
  border-left: 3px solid var(--coral);
  border-radius: 10px;
  padding: 16px 18px;
}
.section-alt .metric { background: #fff; }
.metric-value {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--teal);
}
.metric-label { display: block; margin-top: 4px; font-size: 0.85rem; color: #374151; }

/* Testimonials */
.quote {
  margin: 28px 0 0;
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 26px;
}
.section-alt .quote { background: var(--cream); }
.quote-hero { border-left: 4px solid var(--teal); }
.quote blockquote {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--navy);
}
.quote-main blockquote { font-size: 1.02rem; font-weight: 400; font-family: 'Inter', sans-serif; line-height: 1.6; }
.quote figcaption { margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--teal); }

/* ---------------- How we work ---------------- */
.steps {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-n {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.05rem; font-weight: 600; }
.step p { margin-top: 4px; color: #374151; font-size: 0.96rem; }

/* Pricing */
.pricing-wrap { margin-top: 40px; }
.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}
.section-alt .pricing { background: #fff; }
.pricing th, .pricing td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--light-gray);
}
.pricing thead th {
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}
.pricing tbody tr:last-child td { border-bottom: none; }
.pricing td:first-child { font-weight: 500; color: var(--navy); }
.pricing td:nth-child(2), .pricing td:nth-child(3) { color: var(--teal); font-weight: 500; white-space: nowrap; }
.pricing-terms {
  margin-top: 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* ---------------- Contact ---------------- */
.contact-inner { text-align: center; }
.contact-inner .section-lead { margin-left: auto; margin-right: auto; }
.contact-inner .btn { margin-top: 26px; }
.contact-email { margin-top: 18px; font-size: 1.05rem; }
.contact-email a { font-weight: 600; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 40px 0;
  text-align: center;
}
.footer-logo { height: 30px; width: auto; margin-bottom: 16px; }
.footer-legal { font-weight: 600; font-size: 0.98rem; }
.footer-meta { margin-top: 6px; color: var(--mid-gray); font-size: 0.85rem; }

/* ============================================================
   Desktop — breakpoint 768px (§7.9)
   ============================================================ */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards-why { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(5, 1fr); }
  .case-grid { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
  .section { padding: 80px 0; }
  .hero { padding: 84px 0 72px; }
}

/* Mobile (<768px): CTA-only header per §7.9 — hide nav links + tagline */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .brand-tagline { display: none; }
  .header-cta .cta-label { }
}

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