/* ── Shared styles for individual industry landing pages ── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0f1a2e; --navy-light: #1a2744;
  --gray-900: #111827; --gray-700: #374151; --gray-500: #6b7280; --gray-300: #d1d5db;
  --gray-100: #f5f3f0; --white: #ffffff;
  --bg: #faf9f7; --bg-alt: #f0eee9;
  --accent: #3b82f6; --accent-light: #60a5fa;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,249,247,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bg-alt); padding: 0 2rem; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo-icon { height: 36px; width: auto; }
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.logo-text span { color: var(--gray-500); }
.nav-left { display: flex; align-items: center; gap: 2rem; }
.nav-left a { font-size: 0.9rem; font-weight: 500; color: var(--gray-700); text-decoration: none; transition: color 0.2s; }
.nav-left a:hover { color: var(--navy); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.nav-dropdown > a::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.nav-dropdown:hover > a::after, .nav-dropdown:focus-within > a::after { transform: translateY(0) rotate(225deg); }
.nav-dropdown::before { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 16px; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 12px); left: -16px; width: 280px; background: var(--white); border: 1px solid var(--bg-alt); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,26,46,0.12); padding: 0.5rem; display: flex; flex-direction: column; gap: 0.15rem; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
.nav-dropdown-menu.is-wide { width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 0.25rem; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 0.65rem 0.9rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); text-decoration: none; transition: background 0.15s, color 0.15s; }
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--navy); }
.nav-dropdown-menu a:focus-visible { outline: none; background: var(--bg-alt); color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--gray-700); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.btn-nav { background: var(--navy); color: #ffffff !important; padding: 0.6rem 1.4rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.nav-links a.btn-nav:hover { background: var(--navy-light); color: #ffffff !important; transform: translateY(-1px); }

/* ── Hero ── */
.ip-hero { padding: 9rem 2rem 5rem; background: var(--bg); }
.ip-hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.ip-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-light); margin-bottom: 1rem; }
.ip-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.ip-hero p.lede { font-size: 1.1rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 1rem; max-width: 540px; }
.ip-hero p.lede:last-of-type { margin-bottom: 2rem; }
.ip-cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--navy); color: var(--white); padding: 0.9rem 2rem; border-radius: 10px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; box-shadow: 0 4px 14px rgba(15,26,46,0.25); }
.ip-cta:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,26,46,0.3); }
.ip-cta svg { width: 18px; height: 18px; }
.ip-hero-photo { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(15,26,46,0.15); }
.ip-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Generic section header ── */
.ip-section { padding: 5rem 2rem; }
.ip-section.alt { background: var(--bg-alt); }
.ip-section-inner { max-width: 1200px; margin: 0 auto; }
.ip-section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.ip-section-head .ip-label { margin-bottom: 0.6rem; }
.ip-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.2; }
.ip-section-head p { color: var(--gray-500); margin-top: 0.75rem; font-size: 1rem; }

/* ── Challenges grid ── */
.challenges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.challenge-card { background: var(--white); border: 1px solid var(--bg-alt); border-radius: 16px; padding: 2rem 1.6rem; transition: transform 0.2s, box-shadow 0.2s; }
.challenge-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,26,46,0.08); }
.challenge-icon { width: 44px; height: 44px; border-radius: 10px; background: #fee2e2; color: #b91c1c; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.challenge-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.challenge-card p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.55; }

/* ── Workflows grid ── */
.workflows-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.workflow-card { background: var(--white); border: 1px solid var(--bg-alt); border-radius: 16px; padding: 1.8rem; display: flex; gap: 1.2rem; transition: transform 0.2s, box-shadow 0.2s; }
.workflow-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,26,46,0.08); }
.workflow-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; }
.workflow-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.workflow-body p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.55; }

/* ── Tools ── */
.tools-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 800px; margin: 0 auto; }
.tool-pill { background: var(--white); color: var(--gray-700); padding: 0.55rem 1.2rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600; border: 1px solid var(--bg-alt); transition: background 0.15s, border-color 0.15s; }
.tool-pill:hover { background: var(--bg-alt); border-color: var(--gray-300); }

/* ── CTA ── */
.ip-cta-section { padding: 5rem 2rem; background: var(--navy); text-align: center; }
.ip-cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--white); letter-spacing: -0.02em; margin-bottom: 1rem; }
.ip-cta-section p { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto 2rem; }
.ip-cta-section .ip-cta { background: var(--white); color: var(--navy); }
.ip-cta-section .ip-cta:hover { background: var(--bg); color: var(--navy); }

/* ── Feature rows (content stacked above animation) ── */
.feature-section { padding: 5rem 2rem; }
.feature-section.alt { background: var(--bg-alt); }
.feature-row {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
.feature-anim {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 16px;
  background: var(--bg-alt);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,26,46,0.10);
  padding: 1.5rem;
}
.feature-section.alt .feature-anim { background: var(--white); }
.feature-anim svg { width: 100%; height: auto; display: block; }
.feature-body { max-width: 720px; }
.feature-meta { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-light); margin-bottom: 0.6rem; }
.feature-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 0.8rem; line-height: 1.2; }
.feature-body p { color: var(--gray-700); font-size: 1rem; line-height: 1.7; }
.feature-learn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.feature-learn:hover { color: var(--accent); gap: 0.6rem; }
.feature-learn::after { content: '→'; font-weight: 700; }

/* ── Service feature animations (shared across industry pages) ── */

/* 24/7 Answering — live leads dashboard */
.anim-dash .row { opacity: 0; animation: rowIn 5s ease-in-out infinite; }
.anim-dash .row-1 { animation-delay: 0.4s; }
.anim-dash .row-2 { animation-delay: 1.3s; }
.anim-dash .row-3 { animation-delay: 2.2s; }
.anim-dash .row-4 { animation-delay: 3.1s; }
@keyframes rowIn { 0%, 8% { opacity: 0; transform: translateX(-6px); } 14%, 80% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; } }

/* Quick Response — message reply */
.anim-msg .msg-in, .anim-msg .msg-out, .anim-msg .time-badge { opacity: 0; }
.anim-msg .msg-in { animation: msgIn 4s ease-in-out infinite; }
.anim-msg .msg-out { animation: msgOut 4s ease-in-out infinite; }
.anim-msg .time-badge { animation: timeBadge 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes msgIn { 0%, 5% { opacity: 0; transform: translateX(-8px); } 15%, 92% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; } }
@keyframes msgOut { 0%, 40% { opacity: 0; transform: translateX(8px); } 48%, 92% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; } }
@keyframes timeBadge { 0%, 60% { opacity: 0; transform: scale(0.8); } 68%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.9); } }

/* Real Time Analytics — KPI dashboard */
.anim-analytics .bar { transform-origin: bottom; transform-box: fill-box; animation: aBar 3.5s ease-in-out infinite; }
.anim-analytics .a1 { animation-delay: 0s; }
.anim-analytics .a2 { animation-delay: 0.18s; }
.anim-analytics .a3 { animation-delay: 0.36s; }
.anim-analytics .a4 { animation-delay: 0.54s; }
.anim-analytics .a5 { animation-delay: 0.72s; }
.anim-analytics .a6 { animation-delay: 0.9s; }
.anim-analytics .a7 { animation-delay: 1.08s; }
@keyframes aBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.3); } }
.anim-analytics .kpi-pulse { transform-origin: center; transform-box: fill-box; animation: kpiPulse 2.4s ease-in-out infinite; }
.anim-analytics .kpi-pulse-2 { animation-delay: 0.8s; }
.anim-analytics .kpi-pulse-3 { animation-delay: 1.6s; }
@keyframes kpiPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.anim-analytics .live-dot { transform-origin: center; transform-box: fill-box; animation: liveDot 1.2s ease-in-out infinite; }
@keyframes liveDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* Connectors — sequential highlight, 2s per tool, 8s full cycle */
.anim-connect .line { stroke-dasharray: 4 4; animation: lineFlow 8s linear infinite; opacity: 0.2; }
.anim-connect .l2 { animation-delay: 2s; }
.anim-connect .l3 { animation-delay: 4s; }
.anim-connect .l4 { animation-delay: 6s; }
@keyframes lineFlow {
  0%, 3%   { opacity: 0.2; stroke-dashoffset: 8; }
  6%       { opacity: 1; stroke-dashoffset: 8; }
  22%      { opacity: 1; stroke-dashoffset: 0; }
  25%, 100%{ opacity: 0.2; stroke-dashoffset: 0; }
}
.anim-connect .tool { animation: toolPulse 8s ease-in-out infinite; opacity: 0.5; }
.anim-connect .t2 { animation-delay: 2s; }
.anim-connect .t3 { animation-delay: 4s; }
.anim-connect .t4 { animation-delay: 6s; }
@keyframes toolPulse {
  0%, 3%   { opacity: 0.5; }
  6%, 22%  { opacity: 1; }
  25%, 100%{ opacity: 0.5; }
}

/* ── Footer ── */
footer { padding: 3rem 2rem; background: var(--navy); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.footer-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.footer-logo-text span { color: rgba(255,255,255,0.5); }
footer p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ip-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .challenges-grid { grid-template-columns: 1fr; }
  .workflows-grid { grid-template-columns: 1fr; }
  .feature-row { gap: 1.5rem; }
  .feature-section { padding: 3rem 1.2rem; }
  .nav-links a:not(.btn-nav) { display: none; }
  .nav-left a:not(.logo) { display: none; }
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .ip-hero { padding: 8rem 1.2rem 3rem; }
  .ip-section { padding: 3.5rem 1.2rem; }
}
