/* ==========================================================================
   Live Event Parking - Custom Styles
   Built on Bootstrap 5. Mobile-first, accessible, conversion-focused.
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --lep-green: #1a8a4a;
  --lep-green-dark: #14693a;
  --lep-green-light: #e8f5ee;
  --lep-dark: #1a1a2e;
  --lep-dark-soft: #2d2d44;
  --lep-grey-900: #212529;
  --lep-grey-700: #495057;
  --lep-grey-500: #6c757d;
  --lep-grey-300: #dee2e6;
  --lep-grey-100: #f8f9fa;
  --lep-white: #ffffff;
  --lep-gold: #d4a843;
  --lep-red: #dc3545;
  --lep-blue: #0d6efd;
  --lep-radius: 8px;
  --lep-radius-lg: 12px;
  --lep-shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --lep-shadow: 0 4px 12px rgba(0,0,0,.1);
  --lep-shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --lep-transition: 0.25s ease;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--lep-grey-900);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--lep-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

.lead {
  font-size: 1.15rem;
  color: var(--lep-grey-700);
  line-height: 1.8;
}

/* ---------- Navbar ---------- */
.navbar-lep {
  background: var(--lep-white);
  box-shadow: var(--lep-shadow-sm);
  padding: .75rem 0;
  transition: box-shadow var(--lep-transition);
}

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

.navbar-lep .navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--lep-dark);
  letter-spacing: -0.02em;
}

.navbar-lep .navbar-brand span {
  color: var(--lep-green);
}

.navbar-lep .nav-link {
  font-weight: 500;
  color: var(--lep-grey-700);
  padding: .5rem 1rem !important;
  transition: color var(--lep-transition);
  font-size: 0.95rem;
}

.navbar-lep .nav-link:hover,
.navbar-lep .nav-link.active {
  color: var(--lep-green);
}

.navbar-lep .btn-nav-cta {
  background: var(--lep-green);
  color: var(--lep-white);
  border: none;
  border-radius: var(--lep-radius);
  padding: .5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--lep-transition), transform var(--lep-transition);
}

.navbar-lep .btn-nav-cta:hover {
  background: var(--lep-green-dark);
  color: var(--lep-white);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--lep-dark) 0%, var(--lep-dark-soft) 100%);
  color: var(--lep-white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::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.03'%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");
  opacity: 1;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--lep-white);
  margin-bottom: 1.25rem;
}

.hero .lead {
  color: rgba(255,255,255,.85);
  font-size: 1.2rem;
  max-width: 540px;
}

.hero-badge {
  display: inline-block;
  background: rgba(26, 138, 74, 0.2);
  color: #5cdb8f;
  font-size: 0.85rem;
  font-weight: 600;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(92, 219, 143, 0.25);
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 5rem;
  }
}

/* ---------- Buttons ---------- */
.btn-lep {
  background: var(--lep-green);
  color: var(--lep-white);
  border: none;
  border-radius: var(--lep-radius);
  padding: .75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--lep-transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-lep:hover {
  background: var(--lep-green-dark);
  color: var(--lep-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 138, 74, 0.35);
}

.btn-lep:active {
  transform: translateY(0);
}

.btn-lep-outline {
  background: transparent;
  color: var(--lep-white);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: var(--lep-radius);
  padding: .7rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--lep-transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-lep-outline:hover {
  background: var(--lep-white);
  color: var(--lep-dark);
  border-color: var(--lep-white);
  transform: translateY(-2px);
}

.btn-lep-dark {
  background: var(--lep-dark);
  color: var(--lep-white);
  border: none;
  border-radius: var(--lep-radius);
  padding: .75rem 2rem;
  font-weight: 600;
  transition: all var(--lep-transition);
}

.btn-lep-dark:hover {
  background: var(--lep-dark-soft);
  color: var(--lep-white);
  transform: translateY(-2px);
}

.btn-lep-gold {
  background: var(--lep-gold);
  color: var(--lep-dark);
  border: none;
  border-radius: var(--lep-radius);
  padding: .75rem 2rem;
  font-weight: 700;
  transition: all var(--lep-transition);
}

.btn-lep-gold:hover {
  background: #c49a38;
  color: var(--lep-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.btn-lg {
  padding: .9rem 2.5rem;
  font-size: 1.1rem;
}

/* ---------- Booking Widget ---------- */
.booking-widget {
  background: var(--lep-white);
  border-radius: var(--lep-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--lep-shadow-lg);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.booking-widget label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--lep-grey-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: .4rem;
}

.booking-widget .form-select,
.booking-widget .form-control {
  border: 2px solid var(--lep-grey-300);
  border-radius: var(--lep-radius);
  padding: .65rem 1rem;
  font-size: 0.95rem;
  transition: border-color var(--lep-transition), box-shadow var(--lep-transition);
}

.booking-widget .form-select:focus,
.booking-widget .form-control:focus {
  border-color: var(--lep-green);
  box-shadow: 0 0 0 3px rgba(26, 138, 74, 0.15);
}

/* ---------- Section Utilities ---------- */
.section-padding {
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 0;
  }
}

.section-heading {
  margin-bottom: 1rem;
}

.section-subheading {
  color: var(--lep-grey-500);
  font-size: 1.1rem;
  max-width: 600px;
}

.bg-light-green {
  background: var(--lep-green-light);
}

.bg-dark-section {
  background: var(--lep-dark);
  color: var(--lep-white);
}

.bg-dark-section h2,
.bg-dark-section h3 {
  color: var(--lep-white);
}

.bg-dark-section .section-subheading {
  color: rgba(255,255,255,.7);
}

.text-green {
  color: var(--lep-green) !important;
}

/* ---------- Club Cards ---------- */
.club-card {
  background: var(--lep-white);
  border-radius: var(--lep-radius-lg);
  border: 2px solid var(--lep-grey-300);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--lep-transition);
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.club-card:hover {
  border-color: var(--lep-green);
  box-shadow: var(--lep-shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}

.club-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.club-card h3 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.club-card p {
  color: var(--lep-grey-500);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.club-card .club-link {
  color: var(--lep-green);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Venue-specific colours */
.club-manutd .club-card-icon { background: #fde8e8; color: #da1a1a; }
.club-mancity .club-card-icon { background: #e0f0fe; color: #6cabdd; }
.club-liverpool .club-card-icon { background: #fde8e8; color: #c8102e; }
.club-cooplive .club-card-icon { background: #f0e6f6; color: #4a1a6b; }
.club-aoarena .club-card-icon { background: #e0ecf8; color: #1a6abf; }
.club-msbank .club-card-icon { background: #f6e6e6; color: #8b1a1a; }

/* ---------- How It Works ---------- */
.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--lep-green);
  color: var(--lep-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.step-card p {
  color: var(--lep-grey-500);
  font-size: 0.95rem;
}

/* ---------- Feature / Benefit Cards ---------- */
.benefit-card {
  background: var(--lep-white);
  border-radius: var(--lep-radius-lg);
  padding: 2rem;
  box-shadow: var(--lep-shadow-sm);
  height: 100%;
  transition: box-shadow var(--lep-transition), transform var(--lep-transition);
  border: 1px solid var(--lep-grey-300);
}

.benefit-card:hover {
  box-shadow: var(--lep-shadow);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--lep-green-light);
  color: var(--lep-green);
  border-radius: var(--lep-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.benefit-card p {
  color: var(--lep-grey-500);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--lep-white);
  border-radius: var(--lep-radius-lg);
  padding: 2rem;
  box-shadow: var(--lep-shadow-sm);
  border: 1px solid var(--lep-grey-300);
  height: 100%;
}

.testimonial-stars {
  color: var(--lep-gold);
  font-size: 1rem;
  margin-bottom: .75rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--lep-grey-700);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lep-dark);
}

.testimonial-meta {
  font-size: 0.85rem;
  color: var(--lep-grey-500);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--lep-green) 0%, var(--lep-green-dark) 100%);
  color: var(--lep-white);
  border-radius: var(--lep-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-banner h2 {
  color: var(--lep-white);
  margin-bottom: .75rem;
}

.cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

/* ---------- Owner Section ---------- */
.owner-section {
  background: var(--lep-dark);
  color: var(--lep-white);
  position: relative;
}

.owner-section h2 {
  color: var(--lep-white);
}

.owner-stat {
  text-align: center;
  padding: 1.5rem;
}

.owner-stat .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--lep-gold);
  line-height: 1.1;
}

.owner-stat .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  margin-top: .25rem;
}

/* ---------- Event Day Tips ---------- */
.tip-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.tip-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--lep-green-light);
  color: var(--lep-green);
  border-radius: var(--lep-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.tip-item h4 {
  font-size: 1rem;
  margin-bottom: .15rem;
}

.tip-item p {
  font-size: 0.9rem;
  color: var(--lep-grey-500);
  margin-bottom: 0;
}

/* ---------- FAQ Accordion ---------- */
.faq-accordion .accordion-item {
  border: 1px solid var(--lep-grey-300);
  border-radius: var(--lep-radius) !important;
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--lep-dark);
  padding: 1.1rem 1.25rem;
  background: var(--lep-white);
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--lep-green-light);
  color: var(--lep-green-dark);
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(26, 138, 74, 0.15);
}

.faq-accordion .accordion-body {
  color: var(--lep-grey-700);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ---------- Forms ---------- */
.form-floating > .form-control,
.form-floating > .form-select {
  border: 2px solid var(--lep-grey-300);
  border-radius: var(--lep-radius);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--lep-green);
  box-shadow: 0 0 0 3px rgba(26, 138, 74, 0.15);
}

.form-check-input:checked {
  background-color: var(--lep-green);
  border-color: var(--lep-green);
}

.invalid-feedback {
  font-size: 0.85rem;
}

/* Success / Error alerts */
.alert-success-lep {
  background: var(--lep-green-light);
  border: 1px solid var(--lep-green);
  color: var(--lep-green-dark);
  border-radius: var(--lep-radius);
  padding: 1.25rem;
}

.alert-error-lep {
  background: #fef2f2;
  border: 1px solid var(--lep-red);
  color: #991b1b;
  border-radius: var(--lep-radius);
  padding: 1.25rem;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--lep-grey-100);
  padding: 1.25rem 0;
  border-top: 1px solid var(--lep-grey-300);
  border-bottom: 1px solid var(--lep-grey-300);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lep-grey-700);
  white-space: nowrap;
}

.trust-item i {
  color: var(--lep-green);
  font-size: 1.1rem;
}

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

.footer h5 {
  color: var(--lep-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--lep-transition);
}

.footer a:hover {
  color: var(--lep-white);
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--lep-white);
}

.footer-brand span {
  color: var(--lep-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

/* ---------- Page Header (Club Pages) ---------- */
.page-header {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header-manutd {
  background: linear-gradient(135deg, #8b0000 0%, #da1a1a 100%);
  color: var(--lep-white);
}

.page-header-mancity {
  background: linear-gradient(135deg, #1c2c5b 0%, #6cabdd 100%);
  color: var(--lep-white);
}

.page-header-liverpool {
  background: linear-gradient(135deg, #8b0000 0%, #c8102e 100%);
  color: var(--lep-white);
}

.page-header-cooplive {
  background: linear-gradient(135deg, #1a0a2e 0%, #4a1a6b 100%);
  color: var(--lep-white);
}

.page-header-aoarena {
  background: linear-gradient(135deg, #0a2a5e 0%, #1a6abf 100%);
  color: var(--lep-white);
}

.page-header-msbank {
  background: linear-gradient(135deg, #4a0a0a 0%, #8b1a1a 100%);
  color: var(--lep-white);
}

.page-header h1 {
  color: var(--lep-white);
}

.page-header .lead {
  color: rgba(255,255,255,.85);
}

.page-header .breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.page-header .breadcrumb-item a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
  color: var(--lep-white);
}

.page-header .breadcrumb-item.active {
  color: rgba(255,255,255,.9);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.5);
}

@media (min-width: 768px) {
  .page-header {
    padding: 5rem 0 3.5rem;
  }
}

/* ---------- Info Cards (Club Pages) ---------- */
.info-card {
  background: var(--lep-white);
  border: 1px solid var(--lep-grey-300);
  border-radius: var(--lep-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ---------- Earning Calculator ---------- */
.earning-highlight {
  background: linear-gradient(135deg, var(--lep-gold), #e8bf4e);
  color: var(--lep-dark);
  border-radius: var(--lep-radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.earning-highlight .amount {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.earning-highlight .period {
  font-size: 1.1rem;
  opacity: .85;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--lep-green);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc ---------- */
.divider {
  width: 60px;
  height: 4px;
  background: var(--lep-green);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

.text-gold {
  color: var(--lep-gold) !important;
}

.bg-soft-green {
  background: var(--lep-green-light);
}

/* Smooth image placeholders */
.img-placeholder {
  background: linear-gradient(135deg, var(--lep-grey-100) 0%, var(--lep-grey-300) 100%);
  border-radius: var(--lep-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lep-grey-500);
  font-size: 2.5rem;
  min-height: 200px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--lep-green);
  color: var(--lep-white);
  padding: .5rem 1rem;
  z-index: 1100;
  transition: top 0.2s;
  border-radius: 0 0 var(--lep-radius) 0;
}

.skip-link:focus {
  top: 0;
  color: var(--lep-white);
}
