/* FiveMinChat shared chrome: reset, variables, nav, hamburger/mobile menu,
   buttons, footer, and article share/CTA link overrides. Used by every
   marketing page except the plain legal/docs pages (terms, privacy, docs),
   which use a simpler standalone nav with no dropdown or footer. */

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

:root {
  --indigo: #6366f1;
  --indigo-dark: #4f46e5;
  --indigo-light: #e0e7ff;
  --indigo-xlight: #f0f1ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* =============================================
   NAV
============================================= */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-h);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text { font-size: 1.2rem; font-weight: 800; color: var(--indigo); letter-spacing: -.02em; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--gray-600); transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--indigo); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.nav-dropdown > a::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; transition: transform .2s; }
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: .75rem 0 .4rem;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: .6rem 1.1rem; font-size: .875rem; font-weight: 500; color: var(--gray-700); white-space: nowrap; transition: background .15s, color .15s; }
.dropdown-menu a:hover { background: var(--indigo-xlight); color: var(--indigo); }
.dropdown-menu a::after { display: none !important; }

.nav-cta { flex-shrink: 0; display: none; gap: .75rem; align-items: center; }
.nav-login { font-size: .9rem; font-weight: 600; color: var(--gray-700); padding: .55rem .75rem; border-radius: var(--radius-sm); transition: color .2s, background .2s; white-space: nowrap; }
.nav-login:hover { color: var(--indigo); background: var(--indigo-xlight); }

/* Hamburger + mobile menu */
.hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; cursor: pointer; background: none; border: none; padding: 0; }
.hamburger span { display: block; height: 2px; background: var(--gray-700); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .5rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 1.25rem;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--gray-700); padding: .6rem .5rem; border-radius: var(--radius-sm); transition: background .2s, color .2s; }
.mobile-menu a:hover { background: var(--indigo-xlight); color: var(--indigo); }
.mobile-menu a.btn { display: flex; justify-content: center; padding: .7rem 1rem; }
.mobile-menu a.btn-primary { color: #fff !important; background: var(--indigo) !important; border-color: var(--indigo) !important; }
.mobile-menu a.btn-primary:hover { background: var(--indigo-dark) !important; color: #fff !important; }
.mobile-menu a.btn-outline { color: var(--indigo) !important; border-color: var(--indigo) !important; }
.mobile-menu a.btn-outline:hover { background: var(--indigo-xlight) !important; }

.mobile-solutions-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); padding: .6rem .5rem .2rem; }
.mobile-solutions-link { padding-left: 1.25rem !important; font-size: .9rem !important; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .nav-cta { display: flex; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-links { gap: 1.25rem; }
  .nav-cta { gap: .5rem; }
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  border-radius: 8px;
  padding: .7rem 1.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.btn-primary:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); box-shadow: 0 4px 16px rgba(99,102,241,.35); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--indigo-xlight); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--indigo-dark); border-color: var(--white); }
.btn-white:hover { background: var(--indigo-light); border-color: var(--indigo-light); transform: translateY(-1px); }
.btn-lg { font-size: 1.05rem; padding: .85rem 2rem; border-radius: 10px; }

/* Article-body versions: .article-body a sets an underline + indigo color on
   every in-article link, which wins over .btn-white / .share-btn alone on
   specificity — these restore the intended styling for buttons and share
   links that happen to live inside .article-body. */
.article-body a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--indigo-dark); }
.article-body a.btn { color: var(--white); text-decoration: none; }
.article-body a.btn:hover { color: var(--white); }
.article-body a.btn-outline { color: var(--indigo); }
.article-body a.btn-white { color: var(--indigo-dark) !important; }
.article-body a.btn-white:hover { color: var(--indigo-dark) !important; }
.article-body a.share-btn { text-decoration: none; color: var(--white); }

.share-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 6px; font-size: .82rem; font-weight: 600; transition: opacity .2s; }
.share-btn:hover { opacity: .8; }
.share-wa { background: #25D366; color: #fff; }
.share-li { background: #0A66C2; color: #fff; }
.share-tw { background: #000; color: #fff; }

/* =============================================
   FOOTER
============================================= */
footer { background: var(--gray-900); padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-direction: column; gap: 2rem; }
.footer-top { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 640px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-brand .nav-logo-text { color: var(--white); }
.footer-tagline { font-size: .88rem; color: var(--gray-400); margin-top: .4rem; max-width: 220px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.footer-links a { font-size: .88rem; color: var(--gray-400); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.footer-copy { font-size: .82rem; color: var(--gray-500); }
.footer-contact { font-size: .82rem; color: var(--gray-500); }
.footer-contact a { color: var(--indigo); font-weight: 500; transition: color .2s; }
.footer-contact a:hover { color: #818cf8; }
.footer-vibgyor { text-align: center; padding: .85rem 0 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: #9ca3af; margin-top: .5rem; }
.footer-vibgyor a { color: #c7d2fe; text-decoration: none; font-weight: 500; }
.footer-vibgyor a:hover { color: #fff; text-decoration: underline; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* =============================================
   FREE TOOL TILES (homepage section + /tools/ hub)
============================================= */
.tools-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 720px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-tile { display: flex; flex-direction: column; gap: .6rem; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 1.6rem; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tool-tile:hover { border-color: var(--indigo-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-tile-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: var(--indigo-xlight); }
.tool-tile-icon.wa { background: #dcfce7; }
.tool-tile h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.tool-tile p { font-size: .92rem; color: var(--gray-500); line-height: 1.6; flex: 1; }
.tool-tile-link { font-size: .9rem; font-weight: 700; color: var(--indigo); }
