/* ─────────────────────────────────────────
   TD Workforce Solutions — Main Stylesheet
   ───────────────────────────────────────── */

:root {
  --navy: #0B1F3A;
  --navy-mid: #142d52;
  --blue: #1A5CA8;
  --blue-light: #2572c8;
  --accent: #E8A020;
  --accent-light: #f5b43a;
  --white: #ffffff;
  --off-white: #F7F9FC;
  --gray-100: #eef1f6;
  --gray-200: #dde3ee;
  --gray-400: #8896ae;
  --gray-600: #4a5568;
  --gray-800: #1a2332;
  --text: #1C2B3A;
  --text-light: #5a6d85;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11,31,58,.07);
  --shadow: 0 8px 32px rgba(11,31,58,.12);
  --shadow-lg: 0 20px 60px rgba(11,31,58,.18);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.bg-light { background: var(--off-white); }
.bg-dark { background: var(--navy); }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(26,92,168,.09);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-label.light { color: var(--accent); background: rgba(232,160,32,.15); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 18px;
}
.section-title.white { color: var(--white); }
.section-desc { font-size: 1.05rem; color: var(--text-light); max-width: 560px; margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,92,168,.3);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,92,168,.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn.full-width { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
#navbar.scrolled .nav-links a { color: var(--navy); }
.nav-links a:hover { background: rgba(26,92,168,.1); color: var(--blue); }
.nav-links a.nav-cta {
  background: var(--accent);
  color: var(--navy) !important;
  padding: 10px 20px;
  font-weight: 700;
}
.nav-links a.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .hamburger span { background: var(--navy); }

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,31,58,.88) 0%, rgba(20,45,82,.75) 60%, rgba(26,92,168,.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 24px 100px;
  max-width: 860px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232,160,32,.4);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.8);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator span {
  display: block;
  width: 2px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.6));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  min-width: 200px;
}
.badge-icon { font-size: 2rem; }

.about-text .section-label { margin-bottom: 12px; }
.about-text .section-title { text-align: left; margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 32px;
}
.about-values span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(26,92,168,.08);
  border: 1px solid rgba(26,92,168,.15);
  padding: 6px 14px;
  border-radius: 100px;
}

/* ─────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-icon { font-size: 2.4rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.4; }
.service-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.65; }

/* ─────────────────────────────────────────
   WHY US
   ───────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pillar-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--blue);
  opacity: 0.15;
  position: absolute;
  top: 20px; right: 24px;
  line-height: 1;
  font-style: italic;
}
.pillar h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.4; }
.pillar p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; }

/* ─────────────────────────────────────────
   CLIENTS MARQUEE
   ───────────────────────────────────────── */
.clients-track-wrap { overflow: hidden; position: relative; }
.clients-track-wrap::before,
.clients-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
}
.clients-track-wrap::before { left: 0; background: linear-gradient(to right, var(--off-white), transparent); }
.clients-track-wrap::after { right: 0; background: linear-gradient(to left, var(--off-white), transparent); }
.clients-track {
  display: flex;
  gap: 60px;
  animation: marquee 18s linear infinite;
  width: max-content;
}
.clients-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  flex-shrink: 0;
}
.client-logo img {
  max-width: 140px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: var(--transition);
}
.client-logo:hover img { filter: none; }

/* ─────────────────────────────────────────
   TESTIMONIALS
   ───────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}
.testi-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-10px);
}
.testi-card:hover { box-shadow: var(--shadow); }
.testi-stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 16px; }
.testi-quote {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-card.featured .testi-quote { color: rgba(255,255,255,.85); }
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.testi-card.featured .testi-avatar { background: var(--accent); color: var(--navy); }
.testi-author strong { font-size: 0.95rem; color: var(--navy); display: block; }
.testi-card.featured .testi-author strong { color: var(--white); }
.testi-author small { color: var(--text-light); }
.testi-card.featured .testi-author small { color: rgba(255,255,255,.55); }

/* ─────────────────────────────────────────
   GALLERY
   ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item.gi-large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(11,31,58,.5);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: 0.9rem; }

.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lb-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: var(--white); font-size: 1.5rem;
  cursor: pointer; line-height: 1;
}

/* ─────────────────────────────────────────
   FAQ
   ───────────────────────────────────────── */
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--blue); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a p { padding: 0 24px 24px; color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* ─────────────────────────────────────────
   BOOKING
   ───────────────────────────────────────── */
.booking-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.booking-text .section-label { margin-bottom: 12px; }
.booking-text .section-title { text-align: left; margin-bottom: 16px; }
.booking-desc { color: rgba(255,255,255,.7); margin-bottom: 28px; font-size: 1rem; line-height: 1.7; }
.booking-perks { display: flex; flex-direction: column; gap: 10px; }
.booking-perks li { font-size: 0.92rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 8px; }

.booking-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 24px; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.93rem;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 90px; }

.booking-msg {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.booking-msg.success { background: #e6f7ee; color: #1a7c45; display: block; }
.booking-msg.error { background: #fef2f2; color: #b91c1c; display: block; }

/* ─────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.ci-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-item a { color: var(--blue); }
.social-links { display: flex; gap: 12px; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: var(--transition);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.footer { background: var(--gray-800); padding: 72px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links h4, .footer-contact h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p { font-size: 0.88rem; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--blue); color: var(--white); }
.footer-bottom {
  text-align: center;
  padding: 20px 24px;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,.3); }

/* ─────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid, .booking-inner, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid, .pillars-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .about-img { height: 340px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .services-grid, .pillars-grid, .testi-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.gi-large { grid-column: span 2; grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .testi-card.featured { transform: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--navy) !important; width: 100%; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-badge-float { bottom: -10px; right: 10px; }
}
