/* ============================================================
   OFFERINGS PAGE
   WhatsApp Conversational AI Service
   ============================================================ */

/* ---- Hero ---- */
.offerings-hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.offerings-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,211,102,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.offerings-hero .section-overline {
  margin-bottom: 20px;
}

.offerings-hero .section-title {
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.1;
}

.offerings-hero .section-subtitle {
  max-width: 520px;
  margin: 0 auto 40px;
}

.offerings-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Problem Section ---- */
.problem-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.problem-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: 820px;
  margin: 0 auto 60px;
}

/* Comparison panels */
.problem-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

.problem-panel.bad {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.015);
}

.problem-panel.good {
  border-color: rgba(37, 211, 102, 0.22);
  background: rgba(37, 211, 102, 0.015);
}

.panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.panel-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.panel-label.bad  { color: #ef4444; }
.panel-label.bad::before  { background: #ef4444; }
.panel-label.good { color: #16a34a; }
.panel-label.good::before { background: #25D366; }

/* Timeline */
.problem-timeline {
  display: flex;
  flex-direction: column;
}

.tl-event {
  padding-left: 22px;
  padding-bottom: 20px;
  position: relative;
}

.tl-event:last-child { padding-bottom: 0; }

/* Dot */
.tl-event::after {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  box-sizing: border-box;
}

.problem-panel.bad  .tl-event.final::after { background: #ef4444; }
.problem-panel.good .tl-event.final::after { background: #25D366; }

/* Vertical line */
.tl-event:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.tl-time {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tl-msg {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 5px;
}

.tl-msg.ai {
  font-style: normal;
  color: var(--text-primary);
  font-weight: 500;
}

.tl-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.tl-badge.missed,
.tl-badge.seen,
.tl-badge.lost {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.tl-badge.instant,
.tl-badge.qualified,
.tl-badge.booked {
  background: rgba(37, 211, 102, 0.1);
  color: #16a34a;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

/* Panel footer */
.panel-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.panel-footer.bad  { color: #ef4444; }
.panel-footer.good { color: #16a34a; }

/* VS divider */
.problem-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 52px 24px 0;
}

.divider-vs {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-page);
}

.divider-line {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Headline */
.problem-headline {
  text-align: center;
}

.problem-headline h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.15;
}

.problem-headline p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- WhatsApp Demo Section ---- */
.demo-section {
  padding: 100px 0;
  background:
    linear-gradient(rgba(251,249,239,0.86), rgba(251,249,239,0.86)),
    url('../../Assets/images/branding/background.jpg') center / cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-section .section-header {
  text-align: center;
  margin-bottom: 72px;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 400px 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}

/* Phone Mockup — iPhone 17 Pro Max / Black Titanium */
.phone-mockup {
  width: 330px;
  height: 668px;
  background: linear-gradient(162deg, #1C1C1E 0%, #0A0A0A 35%, #161616 65%, #0D0D0D 100%);
  border-radius: 54px;
  padding: 11px;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 32px 72px rgba(0,0,0,0.28),
    0 8px 20px rgba(0,0,0,0.16);
  position: relative;
  margin: 0 auto;
  flex-shrink: 0;
  transform: perspective(1400px) rotateX(3deg);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Left buttons: mute toggle + volume up + volume down */
.phone-mockup::before {
  content: '';
  position: absolute;
  left: -2.5px;
  top: 96px;
  width: 2.5px;
  height: 22px;
  background: linear-gradient(90deg, #1A1A1A 0%, #2E2E2E 100%);
  border-radius: 2px 0 0 2px;
  box-shadow:
    0 34px 0 #242424,
    0 66px 0 2.5px #242424;
}

/* Right button: power / side button */
.phone-mockup::after {
  content: '';
  position: absolute;
  right: -2.5px;
  top: 128px;
  width: 2.5px;
  height: 58px;
  background: linear-gradient(90deg, #2E2E2E 0%, #1A1A1A 100%);
  border-radius: 0 2px 2px 0;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
}

.phone-island::after {
  content: '';
  width: 9px;
  height: 9px;
  background: #0d0d0d;
  border-radius: 50%;
  border: 1.5px solid #1a1a1a;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #ECE5DD;
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,0.05),
    inset 0 2px 10px rgba(0,0,0,0.35);
}

/* Status Bar */
.wa-status-bar {
  background: #075E54;
  padding: 16px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 44px;
}

.wa-status-time {
  font-size: 10.5px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.2px;
}

.wa-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
}

/* WhatsApp Header */
.wa-header {
  background: #075E54;
  padding: 6px 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.1);
}

.wa-back {
  color: white;
  opacity: 0.9;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1d6b52;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback when no image */
.wa-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a7a4a 0%, #0d5c38 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
}

.wa-contact-info {
  flex: 1;
  min-width: 0;
}

.wa-contact-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  background: #4FC3F7;
  border-radius: 50%;
  flex-shrink: 0;
}

.wa-contact-status {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-online-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
}

.wa-header-actions {
  display: flex;
  gap: 14px;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}

/* Chat Area */
.wa-chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c5b99a' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wa-chat::-webkit-scrollbar { display: none; }

.wa-msg {
  max-width: 82%;
  padding: 7px 10px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.wa-msg.received {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 2px;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-msg.sent {
  background: #DCF8C6;
  align-self: flex-end;
  border-top-right-radius: 2px;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-msg-time {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 9px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 3px;
}

.wa-msg.sent .wa-msg-time {
  color: #4fc3f7;
}

.wa-msg-check {
  display: inline-flex;
  color: #4fc3f7;
}

/* Typing indicator */
.wa-typing {
  background: #fff;
  border-radius: 12px;
  border-top-left-radius: 2px;
  padding: 10px 14px;
  align-self: flex-start;
  max-width: 60px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: none;
}

.wa-typing.active {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-typing-dot {
  width: 6px;
  height: 6px;
  background: #999;
  border-radius: 50%;
  animation: waTypingBounce 1.2s infinite;
}

.wa-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.wa-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes waTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* WhatsApp Input Bar */
.wa-input-bar {
  background: #F0F0F0;
  padding: 6px 8px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wa-input-field {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 11px;
  color: #666;
  border: none;
  outline: none;
}

.wa-send-btn {
  width: 32px;
  height: 32px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* Demo Annotations */
.demo-annotations {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-annotations.left {
  align-items: flex-end;
  text-align: right;
}

.demo-annotations.right {
  align-items: flex-start;
  text-align: left;
}

.annotation {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.annotation.left-ann {
  flex-direction: row-reverse;
  transform: translateX(-16px);
}

.annotation.visible {
  opacity: 1;
  transform: translateX(0);
}

.ann-line {
  width: 32px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.ann-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  flex-shrink: 0;
}

.ann-content {}

.ann-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 2px;
  text-transform: uppercase;
}

.ann-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- Capabilities Grid ---- */
.capabilities-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.capabilities-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.capability-card {
  background: var(--bg-page);
  padding: 32px 28px;
  transition: background 0.25s ease;
}

.capability-card:hover {
  background: var(--bg-card);
}

.cap-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.capability-card:hover .cap-icon {
  background: #25D366;
  border-color: #25D366;
  color: white;
}

.cap-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cap-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Stats Strip ---- */
.stats-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-page);
  padding: 40px 32px;
  text-align: center;
}

.stat-value {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-value span {
  color: #25D366;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stat-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Process Section ---- */
.process-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.process-section .section-header {
  text-align: center;
  margin-bottom: 72px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  position: relative;
  padding-top: 16px;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 32px);
  right: -50%;
  height: 1px;
  background: var(--border);
}

.process-step:last-child::before { display: none; }

.step-number {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- CTA Section ---- */
.offerings-cta-section {
  padding: 100px 0;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  text-align: center;
}

.offerings-cta-section .section-overline {
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* Chat-style CTA */
.cta-chat {
  max-width: 460px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Incoming bubble (AI message) */
.cta-bubble.incoming {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.cta-bubble-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-bubble-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}

.cta-bubble-body {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0 14px 14px 14px;
  padding: 14px 18px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cta-bubble-name {
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cta-bubble-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Reply bubble = CTA button */
.cta-bubble.reply {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #DCF8C6;
  color: #1a1a1a;
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 14px 14px 0 14px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-bubble.reply:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.2);
}

/* Trust signals */
.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 12px;
  color: var(--text-muted);
}

.trust-dot {
  color: var(--border);
  font-size: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .problem-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .problem-divider {
    flex-direction: row;
    padding: 16px 0;
  }

  .divider-line {
    width: 40px;
    height: 1px;
  }

  .demo-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .phone-mockup {
    transform: none;
  }

  .demo-annotations.left,
  .demo-annotations.right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 16px;
  }

  .annotation,
  .annotation.left-ann {
    flex-direction: column;
    align-items: center;
    transform: translateY(16px);
    max-width: 140px;
  }

  .ann-line { display: none; }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .process-step::before { display: none; }
}

@media (max-width: 600px) {
  .offerings-hero {
    padding: 120px 0 80px;
  }

  .demo-section {
    padding: 72px 0;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-mockup {
    width: 270px;
    height: 546px;
    border-radius: 50px;
  }

  .phone-screen {
    border-radius: 41px;
  }
}
