/* EventMaster - public site & vendor portal styles. Brand colors come from CSS variables
   set per event in app/Views/partials/theme.php. */

:root {
  --brand: #7a1f2b;
  --brand-dark: #5f1822;
  --brand-light: #f6ecee;
  --brand-contrast: #fff;
  --brand-2: #f2b705;
  --brand-2-contrast: #1f2937;
}

body { -webkit-font-smoothing: antialiased; }

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-color: var(--brand-contrast);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-hover-color: var(--brand-contrast);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: var(--brand-contrast);
  --bs-btn-active-bg: var(--brand-dark);
}
.btn-accent {
  background: var(--brand-2);
  color: var(--brand-2-contrast);
  border-color: var(--brand-2);
  font-weight: 600;
}
.btn-accent:hover, .btn-accent:focus { filter: brightness(0.95); color: var(--brand-2-contrast); }

.brand-navbar { background: var(--brand); }
.brand-navbar .nav-link { color: rgba(255, 255, 255, 0.85); }
.brand-navbar .nav-link.active, .brand-navbar .nav-link:hover { color: #fff; }
.brand-logo { max-height: 40px; width: auto; }

.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--brand-contrast);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero.has-image { background-size: cover; background-position: center; }
.hero::after {
  content: "";
  position: absolute; inset: auto -10% -60% auto;
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--brand-2); opacity: 0.12;
}
.hero .lead { opacity: 0.92; }

/* Hero slideshow (app/Views/site/hero.php): each slide is a full-bleed image with a dark shade
   so white caption text stays readable on any photo. */
.hero-slides::after { display: none; }
.hero-slide { min-height: 30rem; }
.hero-slide.active, .hero-slide.carousel-item-next, .hero-slide.carousel-item-prev { display: flex; align-items: center; }
.hero-slide > .container { padding-top: 4.5rem; padding-bottom: 4rem; }
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Per-slide "Keep in view": which edge survives when the image is taller than the banner. */
.hero-slide-img.hero-focus-top { object-position: center top; }
.hero-slide-img.hero-focus-bottom { object-position: center bottom; }
/* Computers and tablets: the banner takes about two-thirds of the screen height (never less
   than 30rem), so wide screens trim far less off the top and bottom of each photo. */
@media (min-width: 768px) {
  .hero-slide { min-height: max(30rem, 65vh); }
}
.hero-slide-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.hero-slides .carousel-control-prev, .hero-slides .carousel-control-next { width: 4rem; z-index: 2; }
.hero-slides .carousel-indicators { z-index: 2; margin-bottom: 1.25rem; }
/* Keep the caption and its button clear of the arrow click areas wherever the arrows show. */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .hero-slides .hero-slide > .container { padding-left: 4.5rem; padding-right: 4.5rem; }
}
.hero-badge { background: rgba(255, 255, 255, 0.15); border-radius: 999px; padding: 0.35rem 0.9rem; display: inline-block; }

.section-title { font-weight: 700; position: relative; padding-bottom: 0.5rem; margin-bottom: 1.25rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--brand-2); border-radius: 2px; }
.text-center .section-title::after, .section-title.text-center::after { left: 50%; transform: translateX(-50%); }

.feature-card { border: 0; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); transition: transform 0.15s ease; height: 100%; }
.feature-card:hover { transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-light); color: var(--brand); font-size: 1.4rem; }

/* /events list */
.event-card { overflow: hidden; }
.event-card-img { aspect-ratio: 12 / 5; object-fit: cover; width: 100%; }
.event-card-placeholder { display: flex; align-items: center; justify-content: center; background: var(--brand-light); color: var(--brand); font-size: 2.5rem; }
.event-card-past { opacity: 0.8; }

.price-tag { font-size: 1.6rem; font-weight: 700; color: var(--brand); }

.site-footer { background: #1f2430; color: #e5e7eb; }

.content-body img { max-width: 100%; height: auto; }
.content-body h2, .content-body h3, .content-body h4, .content-body h5 { margin-top: 1.25rem; }

/* Portal */
.portal-nav .list-group-item.active { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.stat-card { border: 0; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06); }
.stat-card .stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
.stat-card .stat-value { font-size: 1.35rem; font-weight: 700; }
.status-hero { border-left: 6px solid var(--brand); }

.steps { display: flex; gap: 0.5rem; flex-wrap: wrap; counter-reset: step; padding: 0; list-style: none; }
.steps li { flex: 1 1 120px; text-align: center; font-size: 0.85rem; color: #6b7280; position: relative; padding-top: 2.2rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #e5e7eb; color: #374151; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.steps li.done::before { background: #198754; color: #fff; content: "✓"; }
.steps li.current { color: var(--brand); font-weight: 600; }
.steps li.current::before { background: var(--brand); color: var(--brand-contrast); }

.timeline { list-style: none; padding-left: 0; border-left: 2px solid #e5e7eb; margin-left: 0.5rem; }
.timeline li { position: relative; padding: 0 0 1rem 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }

.terms-box { max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid #dee2e6; border-radius: 0.375rem; padding: 1rem; }
.signature-input { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.6rem; }

.minimal-layout { background: linear-gradient(160deg, var(--brand-light), #f8f9fa 60%); }

.required::after { content: " *"; color: #dc3545; }

@media (max-width: 575.98px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1, .hero-slide h2 { font-size: 2rem; }
  .hero-slide { min-height: 26rem; }
  .hero-slide > .container { padding-top: 3rem; padding-bottom: 3.5rem; }
}
/* Phones and small tablets: swipe or tap the dots; the arrows would sit on top of the buttons. */
@media (max-width: 767.98px) {
  .hero-slides .carousel-control-prev, .hero-slides .carousel-control-next { display: none; }
}
