/* =====================================================
   PAFEX Professional Enhancement Stylesheet
   Adds polished UI/UX on top of the Angular base
   ===================================================== */

/* ── Google Font import ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Root design tokens ── */
:root {
  --pafex-red:    #ED1C24;
  --pafex-dark:   #0d1b2a;
  --pafex-blue:   #1a3a6b;
  --pafex-grey:   #f7f8fa;
  --pafex-text:   #2d2d2d;
  --pafex-muted:  #6b7280;
  --pafex-border: #e5e7eb;
  --pafex-radius: 16px;
  --pafex-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --pafex-shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
  --pafex-transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Apply Inter ONLY inside PAFEX custom sections, not Angular app ── */
.pafex-section, .pafex-container, .pafex-card, .pafex-btn,
.pafex-stats-bar, .pafex-cta-strip, .pafex-page-banner,
.pafex-testimonial, .pafex-accordion, .pafex-table,
.pafex-feature-item, .pafex-service-card,
#pafex-nav-drawer, #pafex-overlay, .pafex-modal,
.pafex-partners-strip, .pafex-hero {
  font-family: 'Inter', sans-serif;
  color: var(--pafex-text);
}

/* ── Professional section wrapper ── */
.pafex-section {
  padding: 90px 30px;
  max-width: 100%;
  box-sizing: border-box;
}
.pafex-container {
  max-width: 1200px;
  margin: 0 auto;
}
.pafex-section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--pafex-dark);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.pafex-section-subtitle {
  font-size: 18px;
  color: var(--pafex-muted);
  margin: 0 0 56px;
  font-weight: 400;
  line-height: 1.6;
}
.pafex-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--pafex-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════
   HERO BANNER ENHANCEMENTS
══════════════════════════════════════════════ */
.pafex-hero {
  position: relative;
  background: linear-gradient(135deg, var(--pafex-dark) 0%, var(--pafex-blue) 60%, #1e4d8c 100%);
  padding: 100px 30px 80px;
  overflow: hidden;
  color: #fff;
}
.pafex-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(237,28,36,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.pafex-hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.pafex-hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin: 0 0 20px; }
.pafex-hero p { font-size: 20px; opacity: 0.85; max-width: 560px; line-height: 1.7; }
.pafex-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px; border-radius: 40px;
  font-size: 13px; font-weight: 600; color: #fff;
  margin-bottom: 24px;
}
.pafex-hero-badge::before { content: '●'; color: #4ade80; font-size: 10px; }

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.pafex-card {
  background: #fff;
  border-radius: var(--pafex-radius);
  box-shadow: var(--pafex-shadow);
  padding: 36px;
  transition: var(--pafex-transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.pafex-card:hover {
  box-shadow: var(--pafex-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(237,28,36,0.15);
}
.pafex-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pafex-red), #ff6b6b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.pafex-card:hover::after { transform: scaleX(1); }

.pafex-card-icon {
  width: 64px; height: 64px;
  background: #fff5f5;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pafex-card-icon img { width: 36px; height: 36px; object-fit: contain; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.pafex-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--pafex-transition);
  border: none;
  outline: none;
}
.pafex-btn-primary {
  background: var(--pafex-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(237,28,36,0.35);
}
.pafex-btn-primary:hover {
  background: #c91720;
  box-shadow: 0 6px 20px rgba(237,28,36,0.45);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.pafex-btn-outline {
  background: transparent;
  color: var(--pafex-red);
  border: 2px solid var(--pafex-red);
}
.pafex-btn-outline:hover {
  background: var(--pafex-red);
  color: #fff;
  text-decoration: none;
}
.pafex-btn-white {
  background: #fff;
  color: var(--pafex-red);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.pafex-btn-white:hover { background: #f9f9f9; transform: translateY(-1px); text-decoration: none; }

/* ══════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════ */
.pafex-stats-bar {
  background: linear-gradient(135deg, var(--pafex-dark) 0%, var(--pafex-blue) 100%);
  padding: 60px 30px;
}
.pafex-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}
.pafex-stat-item {
  text-align: center;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.pafex-stat-item:last-child { border-right: none; }
.pafex-stat-number {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.pafex-stat-number span { color: var(--pafex-red); }
.pafex-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════
   GRID LAYOUTS
══════════════════════════════════════════════ */
.pafex-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pafex-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pafex-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}

/* ══════════════════════════════════════════════
   SERVICE CARD (compact grid style)
══════════════════════════════════════════════ */
.pafex-service-card {
  background: #fff;
  border-radius: var(--pafex-radius);
  box-shadow: var(--pafex-shadow);
  padding: 32px 28px;
  text-align: center;
  transition: var(--pafex-transition);
  border: 1.5px solid var(--pafex-border);
  cursor: pointer;
}
.pafex-service-card:hover {
  border-color: var(--pafex-red);
  box-shadow: var(--pafex-shadow-hover);
  transform: translateY(-6px);
}
.pafex-service-card img {
  width: 72px; height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.pafex-service-card:hover img { transform: scale(1.1); }
.pafex-service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pafex-dark);
  margin: 0 0 8px;
}
.pafex-service-card p {
  font-size: 13px;
  color: var(--pafex-muted);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */
.pafex-testimonial {
  background: #fff;
  border-radius: var(--pafex-radius);
  box-shadow: var(--pafex-shadow);
  padding: 36px;
  position: relative;
  border-left: 4px solid var(--pafex-red);
}
.pafex-testimonial-quote {
  font-size: 40px;
  color: var(--pafex-red);
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.pafex-testimonial p {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin: 0 0 20px;
  font-style: italic;
}
.pafex-testimonial-author { display: flex; align-items: center; gap: 12px; }
.pafex-testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pafex-red), #ff6b6b);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.pafex-testimonial-name { font-weight: 700; font-size: 15px; color: var(--pafex-dark); }
.pafex-testimonial-role { font-size: 13px; color: var(--pafex-muted); }

/* ══════════════════════════════════════════════
   FEATURES / USP LIST
══════════════════════════════════════════════ */
.pafex-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--pafex-border);
}
.pafex-feature-item:last-child { border-bottom: none; }
.pafex-feature-icon {
  width: 44px; height: 44px;
  background: #fff5f5;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pafex-feature-item h4 { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--pafex-dark); }
.pafex-feature-item p { font-size: 14px; color: var(--pafex-muted); margin: 0; line-height: 1.6; }

/* ══════════════════════════════════════════════
   FORM STYLING
══════════════════════════════════════════════ */
.pafex-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.pafex-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--pafex-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pafex-form-group input,
.pafex-form-group select,
.pafex-form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--pafex-border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--pafex-text);
  transition: border-color 0.2s;
  background: #fff;
  font-family: inherit;
  outline: none;
}
.pafex-form-group input:focus,
.pafex-form-group select:focus,
.pafex-form-group textarea:focus {
  border-color: var(--pafex-red);
  box-shadow: 0 0 0 3px rgba(237,28,36,0.1);
}

/* ══════════════════════════════════════════════
   BREADCRUMB BAND
══════════════════════════════════════════════ */
.pafex-page-banner {
  background: linear-gradient(135deg, #ED1C24 0%, #b01219 100%);
  padding: 80px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pafex-page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.pafex-page-banner h1 {
  font-size: 48px; font-weight: 800;
  color: #fff; margin: 0 0 12px;
  position: relative; z-index: 1;
  letter-spacing: -0.5px;
}
.pafex-page-banner p {
  font-size: 18px; color: rgba(255,255,255,0.85);
  max-width: 600px; margin: 0 auto;
  position: relative; z-index: 1; line-height: 1.6;
}
.pafex-page-banner-nav {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,0.7);
  position: relative; z-index: 1;
  margin-bottom: 16px;
}
.pafex-page-banner-nav a { color: rgba(255,255,255,0.85); text-decoration: none; }
.pafex-page-banner-nav a:hover { color: #fff; }
.pafex-page-banner-nav span { opacity: 0.5; }

/* ══════════════════════════════════════════════
   BADGE / TAG
══════════════════════════════════════════════ */
.pafex-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.pafex-badge-red { background: #fff5f5; color: var(--pafex-red); }
.pafex-badge-green { background: #f0fdf4; color: #16a34a; }
.pafex-badge-blue { background: #eff6ff; color: var(--pafex-blue); }

/* ══════════════════════════════════════════════
   CTA STRIP
══════════════════════════════════════════════ */
.pafex-cta-strip {
  background: linear-gradient(135deg, var(--pafex-dark) 0%, var(--pafex-blue) 100%);
  padding: 80px 30px;
  text-align: center;
}
.pafex-cta-strip h2 { font-size: 40px; font-weight: 800; color: #fff; margin: 0 0 16px; letter-spacing: -0.5px; }
.pafex-cta-strip p { font-size: 18px; color: rgba(255,255,255,0.75); margin: 0 0 36px; }
.pafex-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   INFO BOX
══════════════════════════════════════════════ */
.pafex-info-box {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 12px;
}
.pafex-info-box-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.pafex-info-box-text { font-size: 14px; color: var(--pafex-blue); line-height: 1.6; }

/* ══════════════════════════════════════════════
   TABLE
══════════════════════════════════════════════ */
.pafex-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
.pafex-table th {
  background: var(--pafex-dark); color: #fff;
  padding: 14px 20px; text-align: left; font-weight: 600;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.pafex-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--pafex-border);
  color: var(--pafex-text);
}
.pafex-table tr:last-child td { border-bottom: none; }
.pafex-table tr:hover td { background: #fafafa; }

/* ══════════════════════════════════════════════
   ACCORDION (FAQ)
══════════════════════════════════════════════ */
.pafex-accordion { border-radius: 12px; overflow: hidden; box-shadow: var(--pafex-shadow); }
.pafex-accordion-item { border-bottom: 1px solid var(--pafex-border); background: #fff; }
.pafex-accordion-item:last-child { border-bottom: none; }
.pafex-accordion-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 600; color: var(--pafex-dark);
  transition: background 0.2s;
}
.pafex-accordion-header:hover { background: #fafafa; }
.pafex-accordion-header.active { color: var(--pafex-red); background: #fff5f5; }
.pafex-accordion-header .icon {
  width: 28px; height: 28px;
  background: #f5f5f5; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}
.pafex-accordion-header.active .icon { transform: rotate(45deg); background: var(--pafex-red); color: #fff; }
.pafex-accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 15px; color: var(--pafex-muted); line-height: 1.8;
  padding: 0 24px;
}
.pafex-accordion-body.open { max-height: 400px; padding: 0 24px 24px; }

/* ══════════════════════════════════════════════
   TRUSTED BY / PARTNERS
══════════════════════════════════════════════ */
.pafex-partners-strip {
  background: #fff;
  padding: 56px 30px;
  border-top: 1px solid var(--pafex-border);
  border-bottom: 1px solid var(--pafex-border);
}
.pafex-partners-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--pafex-muted); text-align: center; margin-bottom: 32px;
}
.pafex-partners-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.pafex-partners-logos .logo-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--pafex-grey); padding: 12px 24px;
  border-radius: 40px; font-size: 14px; font-weight: 700; color: var(--pafex-muted);
  border: 1.5px solid var(--pafex-border);
}

/* ══════════════════════════════════════════════
   WHATSAPP FLOAT
══════════════════════════════════════════════ */
.pafex-whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pafex-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.pafex-whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* Hide the "Ask Genie" sticky button on all pages */
.footer--genie-wrapper { display: none !important; }

/* ══════════════════════════════════════════════
   STEP TRACKER (for Tracking page)
══════════════════════════════════════════════ */
.pafex-steps {
  display: flex; justify-content: space-between;
  position: relative; margin: 40px 0;
}
.pafex-steps::before {
  content: '';
  position: absolute; top: 20px; left: 10%; right: 10%;
  height: 2px; background: var(--pafex-border); z-index: 0;
}
.pafex-step {
  text-align: center; flex: 1;
  position: relative; z-index: 1;
}
.pafex-step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pafex-border); color: #999;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin: 0 auto 8px;
  transition: all 0.3s;
}
.pafex-step.done .pafex-step-circle { background: #16a34a; color: #fff; }
.pafex-step.active .pafex-step-circle { background: var(--pafex-red); color: #fff; box-shadow: 0 0 0 4px rgba(237,28,36,0.2); }
.pafex-step-label { font-size: 12px; color: var(--pafex-muted); font-weight: 500; }
.pafex-step.active .pafex-step-label { color: var(--pafex-red); font-weight: 700; }
.pafex-step.done .pafex-step-label { color: #16a34a; font-weight: 600; }

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pafex-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pafex-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pafex-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pafex-stat-item:nth-child(2) { border-right: none; }
  .pafex-stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.1); }
  .pafex-hero h1 { font-size: 42px; }
}
@media (max-width: 768px) {
  .pafex-section { padding: 60px 20px; }
  .pafex-section-title { font-size: 30px; }
  .pafex-grid-3, .pafex-grid-2 { grid-template-columns: 1fr; }
  .pafex-hero { padding: 60px 20px; }
  .pafex-hero h1 { font-size: 32px; }
  .pafex-hero p { font-size: 16px; }
  .pafex-page-banner { padding: 56px 20px; }
  .pafex-page-banner h1 { font-size: 32px; }
  .pafex-cta-strip h2 { font-size: 28px; }
  .pafex-steps { flex-direction: column; gap: 16px; }
  .pafex-steps::before { display: none; }
}
@media (max-width: 480px) {
  .pafex-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pafex-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pafex-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px; }
  .pafex-stat-item:last-child { border-bottom: none; }
  .pafex-stat-number { font-size: 38px; }
  .pafex-card { padding: 24px; }
  .pafex-whatsapp-float { bottom: 16px; right: 16px; }
}
