/* ========================================
   Performance Fabric Solutions — Custom CSS
   ======================================== */

/* --- Root Variables --- */
:root {
  --pfs-primary: #0f4c81;
  --pfs-primary-dark: #0a3660;
  --pfs-accent: #e8a838;
  --pfs-accent-dark: #d49530;
  --pfs-dark: #1a1a2e;
  --pfs-gray-50: #f8fafc;
  --pfs-gray-100: #f1f5f9;
  --pfs-gray-200: #e2e8f0;
  --pfs-gray-600: #64748b;
  --pfs-gray-800: #1e293b;
  --pfs-radius: 12px;
  --pfs-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --pfs-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --pfs-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Resets --- */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--pfs-gray-800);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pfs-dark);
}

a { text-decoration: none; }

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

/* --- Section Spacing --- */
.pfs-section {
  padding: 5rem 0;
}

.pfs-section-sm {
  padding: 3.5rem 0;
}

/* --- Section Headers --- */
.pfs-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.pfs-section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.pfs-section-header p {
  font-size: 1.125rem;
  color: var(--pfs-gray-600);
}

.pfs-label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--pfs-accent);
  margin-bottom: 0.5rem;
}

/* --- Navbar --- */
.pfs-navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pfs-gray-200);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: box-shadow var(--pfs-transition);
}

.pfs-navbar.scrolled {
  box-shadow: var(--pfs-shadow);
}

.pfs-navbar .navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--pfs-primary);
  letter-spacing: -0.5px;
}

.pfs-navbar .navbar-brand span {
  color: var(--pfs-accent);
}

.pfs-navbar .nav-link {
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--pfs-gray-800);
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all var(--pfs-transition);
}

.pfs-navbar .nav-link:hover,
.pfs-navbar .nav-link.active {
  color: var(--pfs-primary);
  background: var(--pfs-gray-50);
}

/* --- Buttons --- */
.btn-pfs {
  background: var(--pfs-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--pfs-transition);
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.25);
}

.btn-pfs:hover {
  background: var(--pfs-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.35);
}

.btn-pfs-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--pfs-transition);
}

.btn-pfs-outline:hover {
  background: #fff;
  color: var(--pfs-primary);
}

.btn-pfs-accent {
  background: var(--pfs-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--pfs-transition);
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.3);
}

.btn-pfs-accent:hover {
  background: var(--pfs-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.pfs-hero {
  position: relative;
  background: linear-gradient(135deg, var(--pfs-dark) 0%, var(--pfs-primary) 100%);
  color: #fff;
  padding: 7rem 0 6rem;
  overflow: hidden;
}

.pfs-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232,168,56,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.pfs-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.pfs-hero h1 {
  font-size: 3.5rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.pfs-hero p.lead {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 560px;
}

.pfs-hero-img {
  border-radius: var(--pfs-radius);
  box-shadow: var(--pfs-shadow-lg);
  object-fit: cover;
  width: 100%;
  height: 420px;
}

/* --- Feature Cards --- */
.pfs-feature-card {
  background: #fff;
  border: 1px solid var(--pfs-gray-200);
  border-radius: var(--pfs-radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--pfs-transition);
  height: 100%;
}

.pfs-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pfs-shadow-lg);
  border-color: transparent;
}

.pfs-feature-card .icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pfs-primary), #1a6db5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #fff;
  font-size: 1.75rem;
}

.pfs-feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pfs-feature-card p {
  color: var(--pfs-gray-600);
  font-size: 0.95rem;
}

/* --- Stats Bar --- */
.pfs-stats {
  background: var(--pfs-primary);
  color: #fff;
  padding: 3rem 0;
}

.pfs-stat-item {
  text-align: center;
}

.pfs-stat-item .stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.pfs-stat-item .stat-label {
  font-size: 0.875rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Product Cards --- */
.pfs-product-card {
  background: #fff;
  border-radius: var(--pfs-radius);
  overflow: hidden;
  box-shadow: var(--pfs-shadow);
  transition: all var(--pfs-transition);
  height: 100%;
}

.pfs-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pfs-shadow-lg);
}

.pfs-product-card .card-img-wrap {
  overflow: hidden;
  height: 220px;
}

.pfs-product-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pfs-product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.pfs-product-card .card-body {
  padding: 1.5rem;
}

.pfs-product-card .card-body h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pfs-product-card .badge-category {
  background: var(--pfs-gray-100);
  color: var(--pfs-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

/* --- Industry Cards --- */
.pfs-industry-card {
  position: relative;
  border-radius: var(--pfs-radius);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

.pfs-industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pfs-industry-card:hover img {
  transform: scale(1.08);
}

.pfs-industry-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}

.pfs-industry-card .overlay h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.pfs-industry-card .overlay p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
}

/* --- Testimonial Cards --- */
.pfs-testimonial {
  background: #fff;
  border-radius: var(--pfs-radius);
  padding: 2rem;
  box-shadow: var(--pfs-shadow);
  border-left: 4px solid var(--pfs-accent);
  height: 100%;
}

.pfs-testimonial .quote-icon {
  font-size: 2rem;
  color: var(--pfs-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.pfs-testimonial p.quote {
  font-size: 1rem;
  color: var(--pfs-gray-800);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.pfs-testimonial .author {
  font-weight: 700;
  color: var(--pfs-dark);
}

.pfs-testimonial .role {
  font-size: 0.85rem;
  color: var(--pfs-gray-600);
}

/* --- CTA Banner --- */
.pfs-cta-banner {
  background: linear-gradient(135deg, var(--pfs-primary) 0%, var(--pfs-dark) 100%);
  color: #fff;
  border-radius: var(--pfs-radius);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pfs-cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(232, 168, 56, 0.15);
  border-radius: 50%;
}

.pfs-cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pfs-cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* --- About Page --- */
.pfs-about-img {
  border-radius: var(--pfs-radius);
  object-fit: cover;
  box-shadow: var(--pfs-shadow-lg);
}

.pfs-value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--pfs-radius);
  background: #fff;
  border: 1px solid var(--pfs-gray-200);
  transition: all var(--pfs-transition);
  height: 100%;
}

.pfs-value-card:hover {
  box-shadow: var(--pfs-shadow);
  transform: translateY(-3px);
  border-color: transparent;
}

.pfs-value-card .value-icon {
  font-size: 2rem;
  color: var(--pfs-primary);
  margin-bottom: 1rem;
}

/* --- Forms --- */
.pfs-form-card {
  background: #fff;
  border-radius: var(--pfs-radius);
  padding: 2.5rem;
  box-shadow: var(--pfs-shadow-lg);
}

.pfs-form-card .form-control,
.pfs-form-card .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--pfs-gray-200);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all var(--pfs-transition);
}

.pfs-form-card .form-control:focus,
.pfs-form-card .form-select:focus {
  border-color: var(--pfs-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.pfs-form-card label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pfs-gray-800);
  margin-bottom: 0.4rem;
}

/* --- Footer --- */
.pfs-footer {
  background: var(--pfs-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.pfs-footer h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pfs-footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--pfs-transition);
  font-size: 0.925rem;
}

.pfs-footer a:hover {
  color: var(--pfs-accent);
}

.pfs-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Page Headers --- */
.pfs-page-header {
  background: linear-gradient(135deg, var(--pfs-dark) 0%, var(--pfs-primary) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  margin-bottom: 0;
}

.pfs-page-header h1 {
  color: #fff;
  font-size: 2.5rem;
}

.pfs-page-header p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
}

/* --- Case Study Cards --- */
.pfs-case-card {
  background: #fff;
  border-radius: var(--pfs-radius);
  overflow: hidden;
  box-shadow: var(--pfs-shadow);
  transition: all var(--pfs-transition);
  height: 100%;
}

.pfs-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pfs-shadow-lg);
}

.pfs-case-card .card-img-wrap {
  height: 200px;
  overflow: hidden;
}

.pfs-case-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pfs-case-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }
.fade-in-up-delay-4 { animation-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .pfs-hero { padding: 4rem 0 3rem; }
  .pfs-hero h1 { font-size: 2.25rem; }
  .pfs-hero-img { height: 280px; margin-top: 2rem; }
  .pfs-section { padding: 3.5rem 0; }
  .pfs-section-header h2 { font-size: 1.75rem; }
  .pfs-cta-banner { padding: 2.5rem 1.5rem; }
  .pfs-page-header { padding: 3rem 0 2rem; }
  .pfs-page-header h1 { font-size: 1.75rem; }
}