/* ============ Base ============ */
:root {
  --charcoal: #1C1C1C;
  --ink: #111111;
  --paper: #FFFFFF;
  --cloud: #5d7275; /* Updated to logo teal */
  --gold: #BFA14A; /* Retained for accents */
  --gold-2: #D7C47A;
  --red: #d35944; /* Updated to logo reddish-orange */
  --metal: #A7ADB4;
  --radius: 14px;
  --elev: 0 6px 24px rgba(0,0,0,.08);
  --shadow-hover: 0 10px 28px rgba(0,0,0,.16);
}

body {
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--paper);
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0;
}
h1, h2 { font-family: 'Montserrat', Lato, Arial, sans-serif; }
h2 { color: var(--gold); }
.section { padding: 72px 0 }

/* Navbar */
.ts-navbar {
  position: sticky;
  top: 0;
  z-index: 1040; /* above video */
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.navbar-dark .navbar-nav .nav-link { color: #fff; opacity: .9 }
.navbar-dark .navbar-nav .nav-link:hover { opacity: 1; text-decoration: underline }

/* Brand red button */
.btn.btn-primary {
  background-color: var(--red) !important;
  border-color: var(--red) !important;
}
.btn.btn-primary:hover {
  background-color: #b2422f !important; /* Darker shade of #d35944 */
  border-color: #b2422f !important;
}

/* Hero */
.ts-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78vh; /* desktop height; tweak to 70–80vh to taste */
  color: #fff; /* White text for hero */
  overflow: hidden;
  background: #000; /* fallback under video */
}
.ts-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.video-background, .video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ts-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.55) 100%);
}
.ts-hero-content {
  position: relative;
  z-index: 2;
  padding: 96px 0 72px;
}
.ts-overlap-top { margin-top: -48px; position: relative; z-index: 2 }

/* Section backgrounds */
.ts-section-paper { background: var(--paper); }
.ts-section-ink { background: #181818; }
.ts-section-cloud { background: var(--cloud); }

/* Approach tiles */
.ts-tile {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: #fff;
}
.ts-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ts-tile-icon { font-size: 28px; color: var(--gold); margin-bottom: 8px }

/* Sector cards */
.ts-card {
  background: var(--paper);
  border: 1px solid #e9e9e9;
  border-radius: var(--radius);
  box-shadow: var(--elev);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ts-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #ddd }

/* Approach gold-ring icons (light mode) */
.ts-approach-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 2px solid var(--gold);
  background: radial-gradient(300px 180px at 130% 130%, rgba(191,161,74,.10), rgba(255,255,255,0) 60%);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.ts-approach-icon i {
  font-size: 38px;
  line-height: 1;
  color: var(--gold); /* Light mode: Gold glyphs for contrast */
}
.ts-tile:hover .ts-approach-icon { border-color: var(--gold-2); }
.ts-tile:hover .ts-approach-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from 0deg, rgba(255,255,255,.0) 0deg, rgba(255,255,255,.18) 30deg, rgba(255,255,255,0) 60deg);
  animation: tsShimmer 1.2s linear;
}
@keyframes tsShimmer { from { transform: rotate(0) } to { transform: rotate(360deg) } }
.ts-tile .fw-semibold { margin-top: .6rem; font-size: 1.05rem }

/* ... (previous content remains unchanged) ... */

/* Add margin spacing to compliance cards on small screens */
@media (max-width: 768px) {
  #compliance .ts-card {
    margin-bottom: 16px; /* Matches Sectors spacing */
  }
}

/* Contact */
.form-control { border-radius: 10px; border: 1px solid #ccc }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(191,161,74,.25) }

/* Footer */
.ts-footer { background: var(--ink); color: #fff; padding: 20px 0 }

/* Footer Logo */
.ts-logo-bottom {
  max-width: 40vw; /* Responsive width, adjust as needed */
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.1)); /* Subtle shadow for prominence */
}

@media (max-width: 768px) {
  .ts-logo-bottom {
    max-width: 40vw; /* Larger on mobile for visibility */
  }
}

/* Add margin spacing to compliance cards on small screens */
@media (max-width: 768px) {
  #compliance .ts-card {
    margin-bottom: 16px;
  }
}

/* Navbar language dropdown styles */
.navbar-dark .dropdown-menu {
  background-color: #222;
  border: 1px solid rgba(255,255,255,.1);
}
.navbar-dark .dropdown-item {
  color: #fff;
}
.navbar-dark .dropdown-item:hover {
  background-color: rgba(255,255,255,.1);
}

/* Tablet-specific fix for iPad (768px–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .ts-hero {
    min-height: 65vh;
    position: relative;
  }
  .ts-hero-media {
    position: absolute;
    inset: 84px 0 0 0;
    height: 65vh;
    overflow: hidden;
  }
  .video-background {
    height: 100%;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
  }
  .ts-hero-overlay {
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.55) 100%);
  }
  .ts-hero-content {
    padding-top: 0;
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
  }
}

/* Responsive */
@media (max-width: 992px) { .ts-hero { min-height: 72vh } }
@media (max-width: 768px) { .ts-hero { min-height: 60vh } }
@media (min-width: 992px) { .ts-approach-icon i { font-size: 42px; } }
@media (max-width: 480px) {
  .ts-approach-icon { width: 72px; height: 72px }
  .ts-approach-icon i { font-size: 30px }
}
