/* ============================================
   Softlink Systems — Clients Page Styles
   Follows the same design system as
   homepage.css and contact_page.css.
   This file is ONLY loaded by clients.html.
   ============================================ */

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

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

body.clients-page {
  font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #2d3748;
  background: #f8f9fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ---------- Container ---------- */
.cl-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Shared type tokens ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-title span { color: #c0392b; }

.section-subtitle {
  font-size: 1rem;
  color: #64748b;
  max-width: 620px;
  margin-bottom: 48px;
}

/* ---------- Header / Nav (identical to homepage) ---------- */
.home-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.home-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.home-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.home-logo img {
  height: 48px;
  width: auto;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.home-nav a:hover { color: #c0392b; background: rgba(192,57,43,0.06); }
.home-nav a.active { color: #c0392b; background: rgba(192,57,43,0.08); font-weight: 600; }

/* ---------- Nav Dropdown ---------- */
.nav-dropdown-wrapper { position: relative; display: inline-block; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.arrow-down { font-size: 0.65rem; transition: transform 0.2s ease; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 8px 0; min-width: 240px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100; display: flex; flex-direction: column;
}
.nav-dropdown a { font-size: 0.85rem; font-weight: 500; color: #475569 !important; padding: 10px 20px !important; border-radius: 0 !important; background: transparent !important; transition: all 0.2s; text-align: left; display: block; width: 100%; }
.nav-dropdown a:hover { color: #c0392b !important; background: rgba(192,57,43,0.05) !important; }
.nav-dropdown-wrapper:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-wrapper:hover .arrow-down { transform: rotate(180deg); }

.home-header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a202c;
}

.home-header-phone svg {
  width: 18px;
  height: 18px;
  color: #c0392b;
}

/* ---------- Hamburger ---------- */
.home-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #1a202c;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.home-hamburger.open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #c0392b;
}
.home-hamburger.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.home-hamburger.open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #c0392b;
}

body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.cl-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  text-align: center;
}

.cl-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(192,57,43,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.cl-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cl-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.cl-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
  position: relative;
  z-index: 1;
}

.cl-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,57,43,0.4);
  color: #fff;
}

/* ---------- Stats strip ---------- */
.cl-stats-strip {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
}

.cl-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cl-stat {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
}

.cl-stat:last-child { border-right: none; }

.cl-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1;
  margin-bottom: 6px;
}

.cl-stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* ---------- Client Logo Section ---------- */
.cl-clients-section {
  padding: 80px 0;
  background: #f8f9fc;
}

.cl-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.cl-section-head .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Category header */
.cl-category-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cl-category-label h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  white-space: nowrap;
}

.cl-category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.cl-category-pill {
  display: inline-block;
  background: rgba(192,57,43,0.08);
  color: #c0392b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-right: 10px;
}

/* Logo grid */
.cl-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.cl-logo-grid.two-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 1025px) {
  .cl-logo-grid.two-col .cl-logo-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
}

.cl-logo-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 160px;
}

.cl-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: rgba(192,57,43,0.2);
}

.cl-logo-card img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.cl-logo-card-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
}

/* ---------- Industries We Serve ---------- */
.cl-industries-section {
  padding: 80px 0;
  background: #fff;
}

.cl-industries-head {
  text-align: center;
  margin-bottom: 48px;
}

.cl-industries-head .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.cl-industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cl-industry-card {
  background: #f8f9fc;
  border-radius: 14px;
  padding: 32px 24px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.cl-industry-card:hover {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.cl-industry-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cl-industry-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.cl-industry-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.cl-testimonials-section {
  padding: 80px 0;
  background: #f8f9fc;
}

.cl-testimonials-head {
  text-align: center;
  margin-bottom: 48px;
}

.cl-testimonials-head .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.cl-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cl-testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cl-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
}

.cl-quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: #fee2e2;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}

.cl-testimonial-text {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 24px;
}

.cl-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.cl-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fee2e2;
}

.cl-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a202c;
}

.cl-author-role {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ---------- CTA ---------- */
.cl-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cl-cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192,57,43,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cl-cta-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cl-cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.cl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
  position: relative;
  z-index: 1;
}

.cl-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,57,43,0.4);
  color: #fff;
}

/* ---------- Footer ---------- */
.home-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
  font-size: 0.85rem;
}

.home-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.home-footer-links {
  display: flex;
  gap: 20px;
}

.home-footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  font-size: 0.85rem;
}

.home-footer-links a:hover { color: #fff; }

.home-footer-social {
  display: flex;
  gap: 12px;
}

.home-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.home-footer-social a:hover {
  background: rgba(192,57,43,0.6);
  transform: translateY(-2px);
}

.home-footer-social svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.7);
  transition: fill 0.2s;
}

.home-footer-social a:hover svg {
  fill: #fff;
}

.home-footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cl-industries-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-logo-grid.two-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Hamburger */
  .home-hamburger { display: flex; }
  .home-header-phone { display: none !important; }

  .home-nav { display: none; }

  .home-nav.open {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 105;
    animation: menuFadeIn 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
  }

  .home-nav.open a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    padding: 12px 28px;
    width: 100%;
    text-align: center;
  }

  .home-nav.open a:hover,
  .home-nav.open a.active {
    color: #c0392b;
    background: rgba(192,57,43,0.05);
  }

  /* Mobile dropdown */
  .home-nav.open .nav-dropdown-wrapper { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .home-nav.open .dropdown-trigger { font-size: 1.5rem; font-weight: 600; color: #1a202c; padding: 12px 28px; width: 100%; text-align: center; justify-content: center; }
  .home-nav.open .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0; min-width: auto; width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; background: transparent; }
  .home-nav.open .nav-dropdown a { font-size: 1.15rem; font-weight: 500; color: #64748b !important; padding: 6px 20px !important; text-align: center; background: transparent !important; }
  .home-nav.open .nav-dropdown a:hover { color: #c0392b !important; background: transparent !important; }

  @keyframes menuFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
  }

  .cl-hero h1 { font-size: 2rem; }
  .cl-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-stat { border-right: none; border-bottom: 1px solid #e2e8f0; }
  .cl-stat:nth-child(2n) { border-right: none; }
  .cl-stat:nth-child(3), .cl-stat:nth-child(4) { border-bottom: none; }
  .cl-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-logo-grid.two-col { grid-template-columns: repeat(2, 1fr); }
  .cl-industries-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-testimonials-grid { grid-template-columns: 1fr; }
  .cl-cta-section h2 { font-size: 1.7rem; }

  /* Footer responsive */
  .home-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-footer-left {
    justify-content: center;
  }

  .home-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .home-footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cl-logo-grid,
  .cl-logo-grid.two-col { grid-template-columns: 1fr; }
  .cl-industries-grid { grid-template-columns: 1fr; }
  .cl-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
