html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main {
  flex: 1;
}

.hero-section {
  margin-bottom: 0;
}
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 1040;
}

#site-header .navbar {
  min-height: 72px;
  padding: 0 0;
  background: #ffffff;
  transition:
    box-shadow 0.2s ease,
    padding 0.2s ease;
  z-index: 1030;
}

#site-header .navbar.navbar-scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Brand */
#site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

section {
  margin: 0;
}

.site-logo {
  height: 42px;
  width: auto;
}

/* Center container alignment */
#site-header .navbar .container {
  display: flex;
  align-items: center;
}

/* Navigation */
#site-header .navbar-nav {
  gap: 0.25rem;
}

#site-header .nav-link {
  color: #4a5560;
  padding: 0.6rem 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

#site-header .nav-link:hover,
#site-header .nav-link:focus {
  color: #0d6efd;
  text-decoration: none;
}

/* CTA Button */
#site-header .btn-primary {
  height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
}

/* LinkedIn Button */
.btn-linkedin {
  height: 36px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a66c2;
  color: #ffffff;
  border-radius: 0.375rem;
  border: none;
  padding: 0;
}

.btn-linkedin svg {
  height: 18px;
  width: 18px;
  fill: currentColor;
}

/* Desktop alignment */
@media (min-width: 992px) {
  #site-header .navbar-collapse {
    display: flex;
    align-items: center;
  }
  #site-header .navbar-nav {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  #site-header .navbar {
    min-height: 64px;
  }
  .site-logo {
    height: 38px;
  }
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background-color: #f5f7fb;
  color: #1f2937;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  padding: 28px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0px;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.95;
}

.page-content {
  padding-top: 40px;
}

/* ================================
   TAIL SPEND MODERN UI
   ================================ */

.ts-hero {
  background: linear-gradient(135deg, #0b1f3a, #1f4fd8);
  color: #fff;
  padding: 120px 20px 80px;
  text-align: center;
}

.ts-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
}

.ts-hero p {
  max-width: 750px;
  margin: 20px auto 0;
  font-size: 20px;
  opacity: 0.9;
}

/* SECTIONS */
.ts-section {
  padding: 90px 20px;
}

.ts-section.light {
  background: #f4f7fb;
}

.ts-section.dark {
  background: #081c2f;
  color: #fff;
}

.ts-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: clamp(28px, 3vw, 36px);
}

/* GRID */
.ts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* CARDS */
.ts-card {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
}

.ts-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.ts-card h4 {
  color: #0b5ed7;
  margin-bottom: 10px;
}

.ts-card p {
  color: #4b5563;
  font-size: 17px;
}

/* DARK CARD */
.dark-card {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dark-card h4 {
  color: #fff;
}

.dark-card p {
  color: #dbe4ff;
}

/* CTA */
.ts-cta {
  padding: 110px 20px;
  text-align: center;
  color: #fff;
}

.ts-cta h2 {
  color: #0a66c2;
  font-size: clamp(28px, 4vw, 42px);
}

.ts-cta p {
  color: #2563eb;
  margin: 15px 0 30px;
  font-size: 20px;
  font-style: italic;
}

.ts-cta .btn-primary {
  background: #fff;
  color: #2563eb;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
}

.ts-cta .btn-primary:hover {
  color: #fff;
  background-color: #265beb;
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ts-hero {
    padding: 100px 15px 60px;
  }

  .ts-section {
    padding: 70px 15px;
  }

  .ts-cta {
    padding: 80px 15px;
  }
}

/* ======================
   Footer
   ====================== */

.site-footer {
  font-size: 25px;
  background: #050c2d;
  color: #ffffff;
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-logo {
  height: 46px;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 360px;
}

.footer-socials a {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-right: 0.8rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #38bdf8;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-contact li {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-legal a {
  margin-right: 1rem;
  color: #94a3b8;
}

.footer-legal a:hover {
  color: #38bdf8;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-desc {
    margin: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}
/* Offset page content because navbar is fixed */
body {
  padding-top: 50px;
}
