/* ==========================================================
   TABS Corporate Landing Page — style.css (v1.1 - Enhanced)
   - Lightweight, mobile-first, corporate look
   - Works for: index.html, privacy-policy.html, terms-of-service.html
   - Enhanced with accessibility, performance, and modern features
   ========================================================== */

/* -----------------------------
   1) Design Tokens (Theme)
------------------------------ */
:root {
  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  --font-size-base: 16px;

  /* Colors (corporate neutrals + one primary) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #0f172a;        /* slate-900-ish */
  --muted: #475569;       /* slate-600-ish */
  --border: #e2e8f0;      /* slate-200-ish */
  --primary: #0b5cab;     /* corporate blue */
  --primary-2: #094b8a;   /* darker */
  --on-primary: #ffffff;

  /* Feedback */
  --focus: #1d4ed8;       /* focus ring color */

  /* Sizing */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  --shadow-sm: 0 6px 16px rgba(2, 6, 23, 0.08);

  /* Spacing scale */
  --s-1: 6px;
  --s-2: 10px;
  --s-3: 14px;
  --s-4: 18px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  /* Max width */
  --container: 1200px;

  /* Buttons */
  --btn-h: 46px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #334155;
    --text: #f1f5f9;
    --muted: #cbd5e1;
    --border: #334155;
  }
}

/* -----------------------------
   2) Base / Reset
------------------------------ */
* { box-sizing: border-box; }
html { font-size: var(--font-size-base); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 650; }

::selection { background: rgba(11, 92, 171, 0.18); }

:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.35);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Utility */
.muted { color: var(--muted); }

/* -----------------------------
   2.1) Accessibility - Skip Link
------------------------------ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 20px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* -----------------------------
   2.2) Reduced Motion Support
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -----------------------------
   3) Layout Utilities
------------------------------ */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: var(--s-8) 0; }
@media (max-width: 720px) {
  .section { padding: var(--s-7) 0; }
}

.section__head { margin-bottom: var(--s-6); }
.section__title {
  margin: 0 0 var(--s-2);
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: -0.02em;
}
.section__subtitle {
  margin: 0;
  color: var(--muted);
}

/* -----------------------------
   4) Header / Footer
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) 0;
  gap: var(--s-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
}
.brand__logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
  /* Loading skeleton effect */
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    #e8ecef 50%,
    var(--surface-2) 100%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

.brand__logo[src] {
  background: var(--surface);
  animation: none;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.brand__name {
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  color: #0f172a;

}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: var(--s-6) 0;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer__links {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  color: var(--muted);
}
.footer__credit { color: var(--muted); }

/* -----------------------------
   5) Buttons / Chips
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 var(--s-5);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none !important;
  user-select: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0px); box-shadow: none; }

/* Ripple effect on click */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover { background: var(--primary-2); }

.btn--secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--secondary:hover { border-color: #cbd5e1; }

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--primary);
}
.btn--ghost:hover { background: rgba(11, 92, 171, 0.06); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 92, 171, 0.10);
  color: var(--primary);
  font-size: 13px;
  font-weight: 650;
  margin-top: var(--s-2);
}

/* -----------------------------
   6) Cards / Lists
------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.cards--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cards, .cards--2col { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
  box-shadow: none;
  transition: box-shadow 140ms ease, transform 140ms ease, border-color 140ms ease;
  position: relative;
  overflow: hidden;
}

/* Top border accent on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transition: left 300ms ease;
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card:hover::before {
  left: 0;
}

.card__title {
  margin: 0 0 var(--s-2);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.card__text {
  margin: 0;
  color: var(--muted);
}

/* Generic list */
.list {
  margin: var(--s-3) 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li { margin: 8px 0; }

/* -----------------------------
   7) Hero
------------------------------ */
.hero { 
  padding-top: var(--s-7); 
  padding-bottom: var(--s-4);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__title {
  margin: 0 0 var(--s-3);
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero__subtitle {
  margin: 0 0 var(--s-5);
  color: var(--muted);
  font-size: 17px;
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.hero__trust {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero__media { display: flex; justify-content: flex-end; }
.hero__image {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  /* Loading skeleton effect */
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    #e8ecef 50%,
    var(--surface-2) 100%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

.hero__image[src] {
  background: none;
  animation: none;
}

/* -----------------------------
   8) Credibility strip
------------------------------ */
.credibility { 
  padding: var(--s-3) 0 var(--s-5);
}
.credibility__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 720px) {
  .credibility__list { grid-template-columns: 1fr; }
}
.credibility__item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--s-4);
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

/* -----------------------------
   9) About
------------------------------ */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
}
.about__text p { 
  margin: 0 0 var(--s-4); 
  color: var(--muted); 
}
.about__text p:last-child {
  margin-bottom: 0;
}

.aside__title {
  margin: 0 0 var(--s-2);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.about__highlights {
  align-self: start;
  position: sticky;
  top: 96px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
  font-size: 18px;
}

/* -----------------------------
   10) Process (Steps)
------------------------------ */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  counter-reset: step-counter;
}
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
  position: relative;
  counter-increment: step-counter;
}

/* Add step numbers */
.step::before {
  content: counter(step-counter);
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step__title { margin: 0 0 var(--s-2); font-size: 20px; }
.step__text { margin: 0; color: var(--muted); }

/* -----------------------------
   11) Contact block
------------------------------ */
.contact {
  background: linear-gradient(180deg, rgba(11, 92, 171, 0.06), rgba(11, 92, 171, 0.02));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; }
}

.contact__title {
  margin: 0 0 var(--s-2);
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
}
.contact__subtitle { margin: 0 0 var(--s-5); color: var(--muted); }

.contact__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

.contact__details p {
  margin: 0 0 var(--s-2);
  color: var(--muted);
}

.contact__details a {
  color: var(--primary);
  text-decoration: none;
}

.contact__details a:hover {
  text-decoration: underline;
}

.contact__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
}

.map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

/* -----------------------------
   12) Legal pages
------------------------------ */
.legal { padding: var(--s-8) 0; }
.legal__content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-7);
}
@media (max-width: 720px) {
  .legal__content { padding: var(--s-6); }
}
.legal__content h1 {
  margin-top: 0;
  letter-spacing: -0.02em;
}
.legal__content h2 {
  margin-top: var(--s-6);
  letter-spacing: -0.02em;
}
.legal__content p, .legal__content li {
  color: var(--muted);
}

/* -----------------------------
   13) Print Styles
------------------------------ */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .contact__actions,
  .skip-link {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  a {
    text-decoration: underline;
  }
  
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}