/* =========================================================================
   REALTOUCH RESEARCH AND CONSULTING — Master Stylesheet
   Edit colors / fonts / spacing in :root below — they cascade everywhere.
   ========================================================================= */

:root {
  /* Brand colors — change these to rebrand the entire site */
  --navy:        #14467A;         /* Logo navy — primary */
  --navy-deep:   #0E3258;
  --navy-soft:   #2563A0;
  --gold:        #E5B53D;         /* Electric gold accent */
  --gold-soft:   #F5D77A;
  --gold-deep:   #B8902A;
  --ink:         #0B2540;         /* Body text on light */
  --ink-soft:    #475569;
  --bg:          #FFFFFF;
  --bg-alt:      #F6F9FC;
  --bg-dark:     #0A1F38;
  --line:        #E3EAF2;
  --success:     #16A34A;
  --danger:      #DC2626;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;

  /* Layout */
  --container:  1200px;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 8px rgba(20, 70, 122, 0.06);
  --shadow:     0 10px 30px rgba(20, 70, 122, 0.10);
  --shadow-lg:  0 25px 60px rgba(20, 70, 122, 0.18);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-deep); }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: .5rem; }
h4 { font-size: 1.15rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 1.5rem;
  margin: 0 auto;
}
section { padding: 6rem 0; position: relative; }
section.tight { padding: 4rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.bg-alt { background: var(--bg-alt); }
.bg-dark {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark .lead { color: rgba(255,255,255,0.85); }
.bg-dark .eyebrow { color: var(--gold-soft); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: .01em;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20,70,122,0.25);
}
.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20,70,122,0.35);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(229,181,61,0.35);
}
.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(229,181,61,0.5);
}
.btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.bg-dark .btn-ghost { border-color: #fff; color: #fff; }
.bg-dark .btn-ghost:hover { background: #fff; color: var(--navy-deep); }

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.nav-brand { display: flex; align-items: center; gap: 0.65rem; }
.nav-brand img { height: 44px; width: auto; }
.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1rem;
  line-height: 1;
}
.nav-brand-text small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: .15em;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.nav-cta { margin-left: 1rem; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg-alt);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

/* ----- Hero ----- */
.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(229,181,61,0.10) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(20,70,122,0.10) 0%, transparent 40%),
    linear-gradient(135deg, #FAFCFF 0%, #EFF5FB 100%);
  padding: 7rem 0 6rem;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { margin-bottom: 2rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy-deep);
  font-weight: 700;
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,70,122,0.10) 0%, transparent 70%);
}
.hero-orb {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, var(--navy) 0%, var(--navy-soft) 25%, var(--gold) 50%, var(--navy-soft) 75%, var(--navy) 100%);
  animation: spin 20s linear infinite;
  position: relative;
  filter: blur(2px);
  opacity: 0.85;
}
.hero-orb::after {
  content: '';
  position: absolute;
  inset: 12%;
  background: var(--bg);
  border-radius: 50%;
  filter: blur(0);
}
.hero-floating-card {
  position: absolute;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.hero-floating-card .icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.hero-card-1 { top: 15%; left: -5%; }
.hero-card-2 { top: 50%; right: -8%; animation-delay: -2s; }
.hero-card-3 { bottom: 12%; left: 5%; animation-delay: -4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ----- Section: trust bar ----- */
.trust-bar {
  background: var(--bg-alt);
  padding: 2rem 0;
  border-block: 1px solid var(--line);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.trust-bar span { color: var(--navy); font-weight: 600; }

/* ----- Cards ----- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(20,70,122,0.18);
}
.card h3 { color: var(--navy-deep); margin-bottom: 0.5rem; font-size: 1.2rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.card .link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: inline-flex;
  gap: 0.4rem;
}
.card .link:hover { gap: 0.7rem; color: var(--gold-deep); }

/* Product / solution cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 3rem;
}
.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(229,181,61,0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.product-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.product-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.product-card p { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 1rem; flex: 1; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.team-card {
  text-align: center;
}
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.team-name { color: var(--navy-deep); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-role { color: var(--gold-deep); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: .08em; }
.team-bio { color: var(--ink-soft); font-size: 0.92rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(229,181,61,0.15) 0%, transparent 60%);
}
.cta-banner h2, .cta-banner p { position: relative; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; max-width: 620px; margin-inline: auto; }
.cta-banner .btn { position: relative; }

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row.single { grid-template-columns: 1fr; }
.form-control {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,70,122,0.12);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--gold-deep) 100%);
  position: relative;
}
.blog-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.blog-card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; margin-bottom: 1rem; }

article.post {
  max-width: 760px;
  margin: 0 auto;
}
article.post h1 { margin-bottom: 1rem; }
article.post .post-meta { color: var(--ink-soft); margin-bottom: 2rem; font-size: 0.92rem; }
article.post p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.8; color: var(--ink); }
article.post h2, article.post h3 { margin-top: 2.5rem; margin-bottom: 1rem; }
article.post ul, article.post ol { margin: 0 0 1.25rem 1.5rem; }
article.post li { margin-bottom: 0.5rem; }
article.post blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ----- Innovate (brainstorm) ----- */
.innovate-shell {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.innovate-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.innovate-output {
  background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  min-height: 400px;
  position: relative;
}
.innovate-empty {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  color: var(--ink-soft);
}
.innovate-empty .icon { font-size: 3rem; margin-bottom: 1rem; opacity: .3; }
.innovate-loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-weight: 500;
}
.innovate-loading .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.4s ease-in-out infinite;
}
.innovate-loading .dot:nth-child(2) { animation-delay: .2s; }
.innovate-loading .dot:nth-child(3) { animation-delay: .4s; }
@keyframes pulse {
  0%, 100% { transform: scale(.7); opacity: .4; }
  50%      { transform: scale(1.2); opacity: 1; }
}
.innovate-result h3 { color: var(--navy-deep); margin-bottom: 0.75rem; }
.innovate-result p { margin-bottom: 1rem; line-height: 1.7; }
.innovate-result strong { color: var(--navy-deep); }
.innovate-result ul, .innovate-result ol { margin: 0 0 1.25rem 1.5rem; }
.innovate-result li { margin-bottom: 0.4rem; }

/* ----- Chat widget (floating bubble + panel) ----- */
.chat-launcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(20,70,122,0.40);
  z-index: 100;
  font-size: 1.7rem;
  transition: all var(--transition);
}
.chat-launcher:hover { transform: scale(1.08); box-shadow: 0 16px 40px rgba(20,70,122,0.5); }
.chat-launcher::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  z-index: -1;
  animation: chatPulse 2s ease-out infinite;
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}
.chat-panel {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 560px;
  max-height: calc(100vh - 8rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 101;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  animation: slideUp .25s ease-out;
}
.chat-panel.open { display: flex; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-header {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header strong { display: block; font-family: var(--font-display); }
.chat-header small { display: block; font-size: 0.75rem; opacity: 0.8; }
.chat-header .status::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80;
  margin-right: 6px;
  vertical-align: middle;
}
.chat-close {
  color: #fff;
  font-size: 1.4rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.chat-close:hover { opacity: 1; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-alt);
}
.chat-msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-msg.bot.typing {
  display: flex;
  gap: 4px;
  padding: 0.85rem 1rem;
}
.chat-msg.bot.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-soft);
  animation: pulse 1.4s ease-in-out infinite;
}
.chat-msg.bot.typing span:nth-child(2) { animation-delay: .2s; }
.chat-msg.bot.typing span:nth-child(3) { animation-delay: .4s; }
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input-row input {
  flex: 1;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input-row input:focus { border-color: var(--navy); }
.chat-input-row button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid; place-items: center;
  transition: background var(--transition);
}
.chat-input-row button:hover { background: var(--navy-deep); }
.chat-suggested {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.5rem;
}
.chat-suggested button {
  padding: 0.4rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--navy);
  transition: all var(--transition);
}
.chat-suggested button:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 50px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.92rem; opacity: 0.75; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: grid;
  place-items: center;
  color: #fff;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  opacity: 0.65;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Page header (inner pages) */
.page-header {
  background: linear-gradient(135deg, #FAFCFF 0%, #EFF5FB 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--navy); }

/* Service detail list */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.service-detail:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.service-detail .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.service-detail h3 { margin-bottom: 0.5rem; color: var(--navy-deep); }
.service-detail p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 0.95rem; }
.service-detail ul { list-style: none; }
.service-detail li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink);
}
.service-detail li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-deep);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: all .3s ease-out;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

/* ----- Responsive ----- */
@media (max-width: 920px) {
  section { padding: 4rem 0; }
  .hero { padding: 4rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .innovate-shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .chat-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 80px);
    max-height: 100vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .chat-launcher { bottom: 1rem; right: 1rem; }
}

/* Print */
@media print {
  .site-header, .chat-launcher, .chat-panel, .site-footer { display: none; }
}
