/* ============================================================
   Prancer Capital - site.css
   Brand: #7c3991 (purple) | Accent: #f0c040 (gold)
   Typography: Montserrat (headings) + Source Serif 4 (body)
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --pc-purple:        #7c3991;
  --pc-purple-dark:   #5e2b70;
  --pc-purple-light:  #9d4fb5;
  --pc-purple-xlight: #f3e8f8;
  --pc-gold:          #f0c040;
  --pc-gold-dark:     #d4a800;
  --pc-dark:          #1a1025;
  --pc-dark-2:        #2a1a38;
  --pc-gray:          #6c757d;
  --pc-light:         #f8f5fb;
  --pc-white:         #ffffff;
  --pc-border:        #e2d5ea;
  --pc-text:          #2d2d2d;
  --pc-text-muted:    #6b6b7b;
  --font-head:        'Montserrat', sans-serif;
  --font-body:        'Source Serif 4', Georgia, serif;
  --shadow-sm:        0 2px 8px rgba(124,57,145,0.10);
  --shadow-md:        0 6px 24px rgba(124,57,145,0.15);
  --shadow-lg:        0 16px 48px rgba(124,57,145,0.20);
  --radius:           10px;
  --radius-lg:        18px;
  --transition:       all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pc-text);
  background: var(--pc-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .btn, .badge, label, th {
  font-family: var(--font-head);
}

h1 { font-weight: 900; letter-spacing: -0.5px; }
h2 { font-weight: 800; letter-spacing: -0.3px; }
h3, h4 { font-weight: 700; }
h5, h6 { font-weight: 600; }

a {
  color: var(--pc-purple);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--pc-purple-dark); text-decoration: underline; }

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

/* ── Security / Accessibility Bar ────────────────────────── */
.security-bar {
  background: var(--pc-dark);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 0;
  letter-spacing: 0.02em;
}
.security-bar .top-bar-link {
  color: var(--pc-gold);
  font-weight: 600;
}
.security-bar .top-bar-link:hover { color: #fff; text-decoration: none; }

/* ── Navbar ───────────────────────────────────────────────── */
.pc-navbar {
  background: var(--pc-purple) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  transition: background 0.3s, box-shadow 0.3s;
  padding-top: 14px;
  padding-bottom: 14px;
  z-index: 1030;
}

.pc-navbar.scrolled {
  background: var(--pc-purple-dark) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.navbar-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.55rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--pc-gold);
  color: var(--pc-purple-dark);
  border-radius: 8px;
  font-size: 1.25rem;
  transition: var(--transition);
}
.navbar-brand:hover .brand-icon { transform: scale(1.1) rotate(-5deg); }
.brand-accent { color: var(--pc-gold); }

.pc-navbar .nav-link {
  color: rgba(255,255,255,0.90) !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 8px 14px !important;
  border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase;
}
.pc-navbar .nav-link:hover,
.pc-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
}

/* Dropdown */
.pc-dropdown {
  background: var(--pc-dark);
  border: 1px solid var(--pc-purple);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
}
.pc-dropdown .dropdown-item {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 9px 14px;
  transition: var(--transition);
}
.pc-dropdown .dropdown-item:hover {
  background: var(--pc-purple);
  color: #fff;
}
.pc-dropdown .dropdown-divider { border-color: rgba(255,255,255,0.12); }

/* ── Buttons ──────────────────────────────────────────────── */
.pc-btn-primary {
  background: var(--pc-gold) !important;
  border-color: var(--pc-gold) !important;
  color: var(--pc-dark) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 10px 24px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(240,192,64,0.30);
}
.pc-btn-primary:hover {
  background: var(--pc-gold-dark) !important;
  border-color: var(--pc-gold-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(240,192,64,0.40);
}

.pc-btn-outline {
  background: transparent !important;
  border: 2px solid var(--pc-purple) !important;
  color: var(--pc-purple) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 10px 24px;
  transition: var(--transition);
}
.pc-btn-outline:hover {
  background: var(--pc-purple) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ── Skip link (accessibility) ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--pc-gold);
  color: var(--pc-dark);
  padding: 6px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Hero / Page Headers ──────────────────────────────────── */
.pc-hero {
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  /* Fallback gradient when photo not present */
  background: linear-gradient(135deg, var(--pc-dark) 0%, var(--pc-purple-dark) 50%, var(--pc-purple) 100%);
}

/* ── Hero background photo layer ── */
.hero-bg-image {
  position: absolute;
  inset: 0;
  /* Photo: royalty-free car dealership lot
     Download from: https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&q=80
     Save as: /images/hero-bg.jpg
     Unsplash license: free for commercial use, no attribution required */
  background-image: url("/images/hero-bg.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  /* Blur the photo for the frosted glass effect */
  filter: blur(1px) brightness(0.45) saturate(0.8);
  /* Scale up slightly to hide blur edges */
  transform: scale(1.06);
  z-index: 0;
}

/* Purple brand color overlay on top of blurred photo */
.pc-hero::before {
  content: '';
  position: absolute; inset: 0;
  /* Two-layer overlay: dark purple tint + subtle brand gradient */
  background:
    linear-gradient(
      135deg,
      rgba(26,16,37,0.62)   0%,
      rgba(94,43,112,0.50)  50%,
      rgba(124,57,145,0.40) 100%
    );
  z-index: 1;
}

/* Ensure hero content sits above the blurred bg and overlay */
.pc-hero .container {
  position: relative;
  z-index: 2;
}
.pc-hero .hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pc-gold);
  margin-bottom: 16px;
}
.pc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; }
.pc-hero p.lead {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 600px;
  font-weight: 300;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.90);
  backdrop-filter: blur(10px);
}

/* Page header (inner pages) */
.pc-page-header {
  background: linear-gradient(135deg, var(--pc-dark) 0%, var(--pc-purple) 100%);
  color: #fff;
  padding: 60px 0 50px;
}
.pc-page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ── Section Styles ───────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pc-purple);
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
  color: var(--pc-dark);
}
.section-divider {
  width: 52px; height: 4px;
  background: var(--pc-gold);
  border-radius: 2px;
  margin: 0 0 20px 0;
}
.section-divider.centered { margin: 0 auto 20px; }
.section-light { background: var(--pc-light); }
.section-dark  { background: var(--pc-dark); color: #fff; }
.section-dark .section-title { color: #fff; }

/* ── Cards ────────────────────────────────────────────────── */
.pc-card {
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--pc-purple-light);
}
.pc-card-icon {
  width: 56px; height: 56px;
  background: var(--pc-purple-xlight);
  color: var(--pc-purple);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.pc-card:hover .pc-card-icon {
  background: var(--pc-purple);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}
.pc-card h5 { font-size: 1.05rem; margin-bottom: 10px; }
.pc-card p  { color: var(--pc-text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* Dashboard cards */
.dash-stat-card {
  background: var(--pc-white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border-left: 4px solid var(--pc-purple);
  box-shadow: var(--shadow-sm);
}
.dash-stat-card .stat-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pc-text-muted);
}
.dash-stat-card .stat-value {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--pc-purple);
  line-height: 1.1;
  margin: 4px 0;
}

/* ── Forms ────────────────────────────────────────────────── */
.pc-form-card {
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-md);
}
.form-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--pc-dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-control, .form-select {
  border: 1.5px solid var(--pc-border);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 0.95rem;
  color: var(--pc-text);
  background: var(--pc-white);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--pc-purple);
  box-shadow: 0 0 0 3px rgba(124,57,145,0.12);
  outline: none;
}
.form-control.is-invalid { border-color: #dc3545; }
.form-control.is-valid   { border-color: #198754; }

.input-group-text {
  background: var(--pc-light);
  border-color: var(--pc-border);
  color: var(--pc-purple);
}

/* ── Tables ───────────────────────────────────────────────── */
.pc-table {
  font-size: 0.92rem;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.pc-table thead th {
  background: var(--pc-purple);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 18px;
  white-space: nowrap;
}
.pc-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.pc-table thead th:last-child  { border-radius: 0 var(--radius) 0 0; }
.pc-table tbody tr {
  transition: background 0.15s;
}
.pc-table tbody tr:hover { background: var(--pc-purple-xlight); }
.pc-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--pc-border);
  vertical-align: middle;
}
.pc-table tbody tr:last-child td { border-bottom: none; }

/* Status badges */
.badge-status {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}
.badge-paid     { background: #d1fae5; color: #065f46; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-overdue  { background: #fee2e2; color: #991b1b; }
.badge-active   { background: #dbeafe; color: #1e40af; }

/* ── Alerts ───────────────────────────────────────────────── */
.pc-alert {
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 14px 18px;
  border: none;
}
.pc-alert-danger  { background: #fee2e2; color: #991b1b; }
.pc-alert-success { background: #d1fae5; color: #065f46; }
.pc-alert-warning { background: #fef3c7; color: #92400e; }
.pc-alert-info    { background: var(--pc-purple-xlight); color: var(--pc-purple-dark); }

/* ── Payment CTA Banner ───────────────────────────────────── */
.payment-banner {
  background: linear-gradient(90deg, var(--pc-purple) 0%, var(--pc-purple-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.payment-banner h5 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #fff;
}
.payment-banner p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0;
}
.payment-banner .payment-icon {
  font-size: 3rem;
  opacity: 0.3;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Footer ───────────────────────────────────────────────── */
.pc-footer { background: var(--pc-dark); color: rgba(255,255,255,0.75); margin-top: auto; }

.footer-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
}
.footer-tagline { font-size: 0.9rem; opacity: 0.70; line-height: 1.6; }

.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: var(--pc-gold); text-decoration: none; }
.footer-contact .bi { color: var(--pc-gold); }

.footer-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-gold);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--pc-gold);
  text-decoration: none;
  padding-left: 4px;
}

.footer-payment-note { font-size: 0.88rem; opacity: 0.75; margin-bottom: 14px; }
.footer-payment-disclaimer { font-size: 0.78rem; opacity: 0.60; }
.footer-payment-disclaimer .bi { color: #4ade80; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 0.85rem;
}
.footer-copy { opacity: 0.60; }
.footer-legal-link {
  color: rgba(255,255,255,0.60);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
}
.footer-legal-link:hover { color: var(--pc-gold); text-decoration: none; }
.footer-divider { color: rgba(255,255,255,0.25); margin: 0 6px; }
.footer-legal-text {
  font-size: 0.75rem;
  opacity: 0.45;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Sidebar / Account layout ─────────────────────────────── */
.account-sidebar {
  background: var(--pc-dark);
  border-radius: var(--radius-lg);
  padding: 24px 0;
  min-height: 400px;
}
.account-sidebar .sidebar-user {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 12px;
}
.account-sidebar .sidebar-avatar {
  width: 52px; height: 52px;
  background: var(--pc-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.68);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background: rgba(124,57,145,0.25);
  color: #fff;
  border-left-color: var(--pc-gold);
  text-decoration: none;
}
.sidebar-nav-link .bi { font-size: 1rem; }

/* ── Utilities ────────────────────────────────────────────── */
.text-purple { color: var(--pc-purple) !important; }
.text-gold   { color: var(--pc-gold)   !important; }
.bg-purple   { background: var(--pc-purple) !important; }
.bg-purple-light { background: var(--pc-purple-xlight) !important; }

.divider-gold {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, var(--pc-gold), transparent);
  margin: 32px 0;
}

.external-link-icon::after {
  content: '\F1C5';
  font-family: 'bootstrap-icons';
  font-size: 0.75em;
  margin-left: 4px;
  opacity: 0.7;
}

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 991.98px) {
  .security-bar { display: none !important; }
  .pc-navbar { padding: 10px 0; }
  .pc-dropdown { background: rgba(255,255,255,0.08); border: none; box-shadow: none; }
  .pc-dropdown .dropdown-item { color: rgba(255,255,255,0.85); }
}

@media (max-width: 767.98px) {
  .pc-hero { padding: 70px 0 55px; }
  .payment-banner { text-align: center; justify-content: center; }
  .pc-form-card { padding: 24px 18px; }
  .pc-table { font-size: 0.82rem; }
  .pc-table tbody td, .pc-table thead th { padding: 10px 12px; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .pc-navbar, .security-bar, .pc-footer, .pc-btn-primary, .pc-btn-outline { display: none !important; }
  body { color: #000; }
}

/* ── Logo Image Styles ────────────────────────────────────── */

/* Navbar logo - uses logo_white.png (transparent bg, white artwork)
   so it sits cleanly on the purple navbar with no background clash */
.logo-brand {
  padding: 4px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}

.navbar-logo {
  height: 54px;
  width: auto;
  transition: var(--transition);
}

.logo-brand:hover .navbar-logo {
  /* Swap to gold version on hover using CSS filter */
  filter: brightness(0) saturate(100%) invert(82%) sepia(50%) saturate(600%) hue-rotate(5deg) brightness(105%);
  transform: scale(1.03);
}

/* Capital text not needed - logo contains full company name */
.brand-capital {
  display: none;
}

/* Footer logo - white version on dark footer background */
.footer-logo {
  height: 58px;
  width: auto;
  opacity: 0.90;
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-logo {
    height: 44px;
  }
}
