﻿/* ============================================================
   TTS Public Pages - HVRT Design System
   ============================================================ */

/* Offset anchor scroll for fixed navbar (h-20 = 80px + small buffer) */
html {
    scroll-padding-top: 96px;
}

/* --- SCOPED VARIABLES & TYPOGRAPHY --- */
:root {
    --crimson-50: #e8f0fe;
    --crimson-100: #d2e3fc;
    --crimson-200: #a8c7fa;
    --crimson-500: #4285F4;
    --crimson-600: #1a73e8;
    --crimson-700: #1557b0;
    --slate-50: #f8fafc;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --gray-50: #f9fafb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Legacy aliases */
    --crimson: var(--crimson-600);
    --crimson-light: var(--crimson-400);
    --crimson-dark: var(--crimson-700);
    --white: #ffffff;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-800: #1f2937;
    --font: "Google Sans", Livvic, Ubuntu, Tahoma, Roboto, "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

  html,
body {
    margin: 0;
    padding: 0;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  ul,
  ol {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
  }

  body {
    font-family: var(--font);
    background-color: var(--gray-50);
    color: var(--gray-900);
    overflow-x: hidden;
}

  #navbar {
    top: 0;
    left: 0;
    right: 0;
  }

h1,
h2,
h3,
h4,
h5 {
    font-weight: 800;
    line-height: 1.2;
}

.subheading {
    color: var(--crimson-600);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-0.15rem);
}

.btn-crimson {
    background-color: var(--crimson-600);
    color: white !important;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--crimson-600);
    display: inline-flex;
    align-items: center;
}

.btn-crimson:hover {
    background-color: var(--crimson-700);
    border-color: var(--crimson-700);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 2px solid white;
    color: white !important;
    box-shadow: var(--shadow-sm);
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--gray-900) !important;
}

/* --- COMPONENTS --- */
.blur-blob {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    width: 12rem;
    height: 12rem;
    background-color: var(--crimson-200);
    border-radius: 9999px;
    filter: blur(50px);
    opacity: 0.5;
    z-index: 1;
    transition: all 0.5s ease;
}

.about-image-wrapper:hover .blur-blob {
    background-color: var(--crimson-400);
    opacity: 0.7;
    transform: scale(1.1);
}

.floating-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background-color: var(--crimson-600);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    color: #e8f0fe;
    box-shadow: var(--shadow-lg);
    z-index: 20;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover .floating-badge {
    transform: translateY(-0.25rem);
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid var(--crimson-600);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
    border-color: #1557b0;
}

.service-card:hover .service-icon-box,
.why-us-item:hover .service-icon-box {
    background-color: #e5e6e9;
    color: #1557b0;
    border-color: transparent;
    transform: scale(1.05) rotate(3deg);
}

.service-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--crimson-600);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: var(--shadow-md);
}

.why-us-item {
    display: flex;
    gap: 1rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--crimson-600);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.why-us-item:hover {
    transform: translateX(0.25rem);
    box-shadow: var(--shadow-lg);
    border-color: #1557b0;
}

/* --- PROCESS STEPS --- */
.process-line {
    display: none;
    position: absolute;
    top: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 2px;
    background-color: rgba(26, 115, 232, 0.3);
    z-index: 0;
}

@media (min-width: 768px) {
    .process-line {
        display: block;
    }
}

.process-step {
    position: relative;
    z-index: 10;
    text-align: center;
}

.step-circle {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--crimson-600);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.25rem;
    font-weight: 800;
    border: 4px solid var(--slate-900);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
    color: white;
}

.process-step:hover .step-circle {
    transform: scale(1.1);
    background-color: white;
    color: var(--crimson-600);
    box-shadow: 0 0 0 5px rgba(26, 115, 232, 0.4);
}

.contact-box {
    background-color: var(--crimson-600);
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-0.15rem);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}


.tts-prose ul, .tts-prose ol { padding-left: 20px; margin: 0 0 16px; }
.tts-prose li { margin-bottom: 8px; line-height: 1.65; font-weight: 300; }
.tts-prose a  { color: var(--crimson); text-decoration: underline; }
.tts-prose a:hover { color: var(--crimson-dark); }
.tts-prose strong { font-weight: 700; color: var(--gray-800); }

/* ---- Contact form ---- */
.tts-form-group { margin-bottom: 20px; }
.tts-label {
  display: block; font-size: .76rem; font-weight: 700;
  color: var(--gray-700); margin-bottom: 8px;
  letter-spacing: .05em; text-transform: uppercase;
}
.tts-input, .tts-textarea, .tts-select {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--gray-200); border-radius: 10px;
  font-size: .95rem; font-family: var(--font); color: var(--gray-800);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.tts-input:focus, .tts-textarea:focus, .tts-select:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(26,115,232,.1);
}
.tts-textarea { resize: vertical; min-height: 148px; line-height: 1.6; }

/* ---- Auth screens ---- */
.tts-auth-wrap {
  min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 24px;
}
.tts-auth-panel {
  display: none;
}
.tts-auth-form-side {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 48px 40px; background: var(--white);
  border-radius: 16px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
  width: 100%; max-width: 480px; border: 1px solid var(--gray-200);
}
.tts-auth-inner { width: 100%; }
.tts-auth-title { font-size: 1.75rem; font-weight: 900; color: var(--gray-800); margin: 0 0 8px; letter-spacing: -.02em; }
.tts-auth-sub   { font-size: .875rem; color: var(--gray-500); margin: 0 0 28px; }
.tts-auth-input {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--gray-200); border-radius: 10px;
  font-size: 1rem; font-family: var(--font); color: var(--gray-800);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.tts-auth-input:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(26,115,232,.1);
}
.tts-auth-input-code {
  letter-spacing: 10px; text-align: center;
  font-size: 1.8rem; font-family: var(--mono); font-weight: 700;
}
.tts-auth-submit {
  width: 100%; margin-top: 20px; padding: 15px; border: none; border-radius: 10px;
  background: var(--crimson); color: var(--white);
  font-size: .9rem; font-weight: 700; font-family: var(--font);
  text-transform: uppercase; letter-spacing: .1em;
  cursor: pointer; transition: background .2s, transform .2s;
}
.tts-auth-submit:hover { background: var(--crimson-dark); transform: translateY(-1px); }
.tts-auth-back {
  display: block; text-align: center; margin-top: 16px;
  color: var(--gray-500); font-size: .8rem; text-decoration: none; transition: color .2s;
}
.tts-auth-back:hover { color: var(--crimson); }
.tts-auth-foot { margin-top: 20px; text-align: center; color: var(--gray-400); font-size: .7rem; }
.tts-auth-illustration { position: relative; z-index: 1; text-align: center; max-width: 340px; }
.tts-auth-tagline {
  font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px;
}
.tts-auth-desc { font-size: .92rem; color: rgba(255,255,255,.62); margin: 0 auto 36px; line-height: 1.65; }
.tts-feature-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tts-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px; padding: 8px 16px;
  font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.8);
}
.tts-pill-dot { width: 6px; height: 6px; background: var(--crimson-light); border-radius: 50%; flex-shrink: 0; }
.alert-err {
  background: #fef2f2; color: #b91c1c; padding: 12px 16px;
  border-radius: 8px; font-size: .8rem; margin-bottom: 16px;
  border-left: 3px solid #ef4444;
}
.alert-ok {
  background: #f0fdf4; color: #15803d; padding: 12px 16px;
  border-radius: 8px; font-size: .8rem; margin-bottom: 16px;
  border-left: 3px solid #22c55e;
}
.tts-lang-bar {
  margin-top: 24px; text-align: center; font-size: .72rem; color: var(--gray-400); line-height: 2;
}
.tts-lang-bar a {
  color: var(--gray-500); text-decoration: none; margin: 2px;
  padding: 2px 7px; border-radius: 4px; font-weight: 500; transition: color .2s, background .2s;
}
.tts-lang-bar a:hover, .tts-lang-bar a.active { color: var(--crimson); background: var(--crimson-50); font-weight: 700; }
@media (max-width: 768px) {
  .tts-auth-wrap { padding: 16px; }
  .tts-auth-form-side { padding: 32px 24px; border: none; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
  .tts-process::before { display: none; }
}

/* ---- Footer ---- */
.tts-footer {
  background: var(--slate-900); border-top: 8px solid var(--crimson);
  padding: 56px clamp(16px,4vw,48px) 24px; color: var(--white);
}
.tts-footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.tts-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tts-footer-icon {
  width: 32px; height: 32px; background: var(--crimson); color: var(--white);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tts-footer-name { font-size: 1.1rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; line-height: 1; }
.tts-footer-name-sub { font-size: .52rem; font-weight: 700; color: rgba(211,67,86,.85); text-transform: uppercase; letter-spacing: .18em; margin-top: 3px; }
.tts-footer p { color: var(--gray-400); font-size: .8rem; line-height: 1.65; max-width: 280px; margin: 0; }
.tts-footer h4 {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  color: var(--white); margin: 0 0 16px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tts-footer ul { list-style: none; padding: 0; margin: 0; }
.tts-footer ul li { margin-bottom: 8px; }
.tts-footer ul li a {
  color: var(--gray-400); font-size: .8rem; text-decoration: none;
  font-weight: 500; transition: color .2s;
}
.tts-footer ul li a:hover { color: rgba(211,67,86,.9); }
.tts-footer-bottom {
  max-width: 1280px; margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.tts-footer-copy    { font-size: .72rem; color: var(--gray-500); }
.tts-footer-tagline { font-size: .65rem; color: #d89c8e; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 900px) { .tts-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tts-footer-grid { grid-template-columns: 1fr; } }

/* ---- Contact layout ---- */
.tts-contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start;
}
@media (max-width: 800px) { .tts-contact-grid { grid-template-columns: 1fr; } }
.tts-contact-info h3 { font-size: 1.2rem; font-weight: 800; color: var(--gray-800); margin: 0 0 8px; }
.tts-contact-info p  { font-size: .9rem; color: var(--gray-600); line-height: 1.65; margin: 0 0 28px; }
.tts-contact-item {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px;
}
.tts-contact-item-icon {
  width: 40px; height: 40px; background: var(--crimson-50); color: var(--crimson);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tts-contact-item strong { display: block; font-size: .78rem; font-weight: 700; color: var(--gray-800); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tts-contact-item span  { font-size: .88rem; color: var(--gray-600); }

/* ---- Utility ---- */
.text-crimson   { color: var(--crimson); }
.bg-slate-soft  { background: var(--slate-50); }
.bg-slate-dark  { background: var(--slate-900); }
.divider        { width: 48px; height: 4px; background: var(--crimson); border-radius: 4px; margin: 16px 0; }
.divider-center { margin: 16px auto; }
.mt-0 { margin-top: 0; }
