/* ==========================================================
   TRUVIAR AI CONSULTING — Shared Stylesheet
   ========================================================== */

/* --- TOKENS ------------------------------------------------ */
:root {
  --navy:      #0B1A2E;
  --navy-2:    #162844;
  --navy-3:    #1E3558;
  --green:     #059966;
  --green-lt:  #34B084;
  --green-dk:  #047A52;
  --green-tint:#E8F5EF;
  --cream:     #F7F4EE;
  --cream-2:   #EDE9E1;
  --white:     #FFFFFF;
  --gray-1:    #8A8F99;
  --gray-2:    #D4D6DB;
  --gray-3:    #F0F0F2;
  --text:      #1A1F2E;
  --text-lt:   #4A5568;

  --ff-head:   'Cormorant Garamond', Georgia, serif;
  --ff-body:   'DM Sans', system-ui, sans-serif;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 12px;

  --max:       1160px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
  --shadow:    0 8px 40px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 80px rgba(0,0,0,.18);

  --ease:      cubic-bezier(.22,.68,0,1.2);
  --dur:       .35s;
}

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* --- UTILITIES --------------------------------------------- */
.container   { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section     { padding: 104px 0; }
.section--sm { padding: 64px 0; }
.section--xs { padding: 40px 0; }

.tag {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--green);
  margin: 20px 0 28px;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* --- TYPOGRAPHY -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 500;
  line-height: 1.13;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem,   3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

/* --- BUTTONS ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--green  { background: var(--green); color: var(--navy); }
.btn--green:hover { background: var(--green-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5,153,102,.35); }
.btn--ghost { border: 1px solid var(--green); color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--navy); transform: translateY(-2px); }
.btn--dark  { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--cream); transform: translateY(-2px); }
.btn--lg    { font-size: 15px; padding: 16px 36px; }
.btn--sm    { font-size: 13px; padding: 10px 22px; }

/* --- NAV --------------------------------------------------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(11,26,46,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(5,153,102,.15);
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.4); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,.7);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 100%;
  height: 1px; background: var(--green);
  transition: right .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-cta {
  font-size: 13px; font-weight: 500;
  padding: 9px 20px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--green);
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--green); color: var(--navy); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 72px 0 0;
  background: var(--navy);
  z-index: 199;
  padding: 40px 28px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.5rem;
  font-family: var(--ff-head);
  color: rgba(255,255,255,.8);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--green); }
.nav-mobile .nav-mobile-cta {
  margin-top: 24px;
  display: inline-block;
  background: var(--green);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 15px; font-weight: 500;
  text-align: center;
}

/* --- PAGE HERO (shared across sub-pages) ------------------- */
.page-hero {
  background: var(--navy);
  padding: 148px 0 96px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 75% 50%, rgba(5,153,102,.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .tag     { color: var(--green-lt); }
.page-hero h1       { color: var(--white); max-width: 780px; }
.page-hero h1 em    { font-style: italic; color: var(--green); }
.page-hero-sub {
  margin-top: 20px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  max-width: 580px;
  line-height: 1.8;
}

/* --- TRUST BAR --------------------------------------------- */
.trustbar {
  background: var(--cream);
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-2);
}
.trustbar-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.trustbar-lbl {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-1);
}
.trust-logo {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  color: var(--gray-1);
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .2s;
}
.trust-logo:hover { color: var(--text); }
.trust-sep {
  width: 1px; height: 24px;
  background: var(--gray-2);
}

/* --- PAIN CARDS -------------------------------------------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.pain-card {
  padding: 32px;
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.pain-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.pain-card:hover {
  border-color: rgba(5,153,102,.4);
  box-shadow: 0 8px 32px rgba(5,153,102,.12);
  transform: translateY(-3px);
}
.pain-card:hover::before { transform: scaleX(1); }
.pain-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--green-tint, #E8F5EF); margin-bottom: 16px; }
.pain-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pain-card p  { font-size: 14.5px; color: var(--gray-1); line-height: 1.75; }

/* --- SOLUTION / STEP CARDS --------------------------------- */
.solution-bg { background: var(--navy); }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.step-card {
  background: var(--navy-2);
  border: 1px solid rgba(5,153,102,.18);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: border-color .25s, transform .25s;
}
.step-card:hover {
  border-color: rgba(5,153,102,.5);
  transform: translateY(-3px);
}
.step-num {
  font-family: var(--ff-head);
  font-size: 2.2rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 10px; }
.step-card p  { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.75; }

/* --- GUARANTEE --------------------------------------------- */
.guarantee-section {
  background: var(--green);
  padding: 88px 0;
}
.guarantee-inner {
  display: flex;
  align-items: center;
  gap: 72px;
  flex-wrap: wrap;
}
.guarantee-badge {
  flex-shrink: 0;
  width: 168px; height: 168px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: rgba(11,26,46,.07);
}
.badge-num { font-family: var(--ff-head); font-size: 3.4rem; color: var(--navy); line-height: 1; }
.badge-lbl { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-top: 6px; opacity: .7; }
.guarantee-copy { flex: 1; min-width: 280px; }
.guarantee-copy h2 { color: var(--navy); }
.guarantee-copy p  { color: rgba(11,26,46,.72); margin-top: 16px; font-size: 1rem; }
.guarantee-copy .btn--dark { margin-top: 32px; }

/* --- PROCESS STEPS ---------------------------------------- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
  max-width: 780px;
}
.proc-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding-bottom: 44px;
  position: relative;
}
.proc-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 31px; top: 56px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green) 0%, var(--gray-2) 100%);
}
.proc-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(5,153,102,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--ff-head);
  font-size: 1.35rem; color: var(--green);
  position: relative; z-index: 1;
  transition: border-color .3s, box-shadow .3s;
}
.proc-item:hover .proc-circle {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(5,153,102,.12);
}
.proc-body h3 { margin-bottom: 8px; }
.proc-body p  { font-size: 15px; color: var(--gray-1); line-height: 1.75; }

/* --- TESTIMONIAL CARDS ------------------------------------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow .25s, transform .25s;
}
.testi-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.testi-stars { color: var(--green); letter-spacing: 3px; font-size: 13px; margin-bottom: 18px; }
.testi-quote {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
}
.testi-quote::before { content: '\201C'; color: var(--green); font-size: 1.4rem; line-height: 0; vertical-align: -.25em; margin-right: 4px; }
.testi-author { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gray-3); }
.testi-name { font-weight: 500; font-size: 14px; }
.testi-role { font-size: 13px; color: var(--gray-1); margin-top: 3px; }

/* --- STATS ROW --------------------------------------------- */
.stats-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  min-width: 160px;
  padding: 36px 28px;
  border-right: 1px solid var(--gray-2);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--ff-head);
  font-size: 3rem;
  color: var(--green);
  line-height: 1;
  display: block;
}
.stat-lbl {
  font-size: 13px;
  color: var(--gray-1);
  margin-top: 8px;
  line-height: 1.5;
}

/* --- CTA BAND ---------------------------------------------- */
.cta-band {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p  { color: rgba(255,255,255,.6); margin: 16px auto 0; max-width: 560px; font-size: 1.05rem; }
.cta-band-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* --- FORM -------------------------------------------------- */
.form-group    { display: flex; flex-direction: column; gap: 6px; }
.form-label    { font-size: 13px; font-weight: 500; color: var(--text-lt); }
.form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(5,153,102,.15);
}
.form-textarea { resize: vertical; min-height: 128px; }
.form-select   { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8F99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Dark form variant */
.form-dark .form-input,
.form-dark .form-select,
.form-dark .form-textarea {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: var(--white);
}
.form-dark .form-input::placeholder,
.form-dark .form-textarea::placeholder { color: rgba(255,255,255,.35); }
.form-dark .form-select option { background: var(--navy-2); }
.form-dark .form-label { color: rgba(255,255,255,.6); }
.form-dark .form-input:focus,
.form-dark .form-select:focus,
.form-dark .form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(5,153,102,.2);
}

/* --- FAQ --------------------------------------------------- */
.faq-list { max-width: 800px; margin-top: 48px; }
.faq-item {
  border-bottom: 1px solid var(--gray-2);
}
.faq-item:first-child { border-top: 1px solid var(--gray-2); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--ff-head);
  font-size: 1.15rem;
  color: var(--text);
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--green); }
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gray-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 1rem;
  transition: background .2s, border-color .2s, transform .3s;
}
.faq-item.open .faq-icon { background: var(--green); color: var(--navy); border-color: var(--green); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}
.faq-a-inner { padding-bottom: 20px; font-size: 15px; color: var(--gray-1); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 400px; }

/* --- FOOTER ------------------------------------------------ */
footer {
  background: #060E1A;
  padding: 56px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-logo { margin-bottom: 4px; }
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.38); margin-top: 12px; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--ff-body);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.45);
  margin-bottom: 11px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.28);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.28); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--green); }

/* --- SCROLL REVEAL ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* --- BACK TO TOP ------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(5,153,102,.3);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 100;
}
.back-to-top.visible { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--green); color: var(--navy); }

/* --- NOTICE BANNER ----------------------------------------- */
.notice-bar {
  background: var(--green);
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.notice-bar a { text-decoration: underline; text-underline-offset: 2px; }

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links     { display: none; }
  .nav-cta       { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 640px) {
  .section     { padding: 72px 0; }
  .section--sm { padding: 48px 0; }
  .container   { padding: 0 20px; }
  .form-row    { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .guarantee-inner { flex-direction: column; text-align: center; }
  .guarantee-badge { margin: 0 auto; }
  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-2); }
  .stat-item:last-child { border-bottom: none; }
}
