/* Brand system */
:root {
  --primary: #3883A0;
  --primary-dark: #2d6b83;
  --secondary: #FF7052;
  --accent: #3883A0;
  --accent-2: #2d6b83;
  --ink: #333333; /* Dark gray for text */
  --ink-light: #ffffff;
  --muted: #6b7287;
  --body: #f6f8fc;
  --surface: #ffffff;
  --border: rgba(56, 131, 160, 0.18);
  --shadow-sm: 0 10px 30px rgba(56, 131, 160, 0.12);
  --shadow-lg: 0 18px 50px rgba(56, 131, 160, 0.16);
  --radius: 6px;
  --radius-lg: 10px;
  --ff: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--body);
  color: var(--ink);
  font-family: var(--ff);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
}

.navbar {
  background-color: var(--primary) !important;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

section {
  scroll-margin-top: 90px;
}

/* Navbar */
#mainNav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(56, 131, 160, 0.12);
}

#mainNav .navbar-brand {
  color: var(--ink-light);
  font-weight: 800;
  letter-spacing: 0.02em;
}

#mainNav .navbar-brand:hover {
  color: var(--ink-light);
}

#mainNav .nav-link {
  color: var(--ink-light);
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  position: relative;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
  opacity: 0;
  transform: scaleX(0.4) translateY(6px);
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: var(--ink-light);
  background-color: transparent;
  transform: translateY(-1px);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link:focus::after,
#mainNav .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1) translateY(0);
}

.navbar-dark .navbar-toggler {
  color: var(--ink-light);
  border: 1px solid var(--border);
}

/* Hero */
.hero-landing {
  position: relative;
  background: var(--surface);
  overflow: hidden;
}

.hero-landing::after {
  content: '';
  position: absolute;
  inset: 12% auto auto -18%;
  width: 340px;
  height: 340px;
  background: none;
  filter: none;
  z-index: 0;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 4px;
  font-weight: 700;
  color: var(--ink-light);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.hero-copy {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.hero-copy h1 {
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero-copy .lead {
  color: var(--muted);
}

.hero-visual .carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #fff;
}

.hero-visual .carousel-caption {
  background: rgba(56, 131, 160, 0.55);
  backdrop-filter: blur(3px);
  border-radius: 6px;
  padding: 0.8rem 1rem;
}

/* Hero buttons: keep text white */
.hero-landing .btn {
  color: var(--ink-light);
  transition: none;
  transform: none;
  box-shadow: none;
}

.hero-landing .btn:hover,
.hero-landing .btn:focus,
.hero-landing .btn:active {
  color: var(--ink-light);
  transform: none;
  box-shadow: none;
}

.hero-landing .btn-light {
  color: var(--ink-light);
  background: transparent;
  border: 1.5px solid var(--ink-light);
}

.hero-landing .btn-light:hover,
.hero-landing .btn-light:focus {
  background: var(--secondary);
  border-color: var(--secondary);
}

.hero-landing .btn-outline-light {
  color: var(--ink-light);
  border-color: var(--ink-light);
}

.hero-landing .btn-outline-light:hover,
.hero-landing .btn-outline-light:focus {
  color: var(--ink-light);
  border-color: var(--secondary);
  background: var(--secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.15rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  border: none;
  box-shadow: 0 12px 30px rgba(56, 131, 160, 0.2);
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(56, 131, 160, 0.25);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--ink-light);
}

/* Section headers */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

section h2, section .h4 {
  font-weight: 700;
  color: var(--primary);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

/* Mini-hero */
.mini-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.5rem;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  border-radius: 0;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(56, 131, 160, 0.08);
  overflow: hidden;
}

.mini-hero > .container {
  display: flex;
  align-items: center;
  height: 100%;
}

.mini-hero__box {
  background: rgba(0, 0, 0, 0.68);
  color: var(--ink-light);
  padding: 1rem 1.25rem;
  max-width: 560px;
  border-radius: 0;
  border-left: 6px solid var(--secondary);
  box-shadow: var(--shadow-sm);
}

.mini-hero__box h3 {
  margin: 0 0 0.35rem 0;
  color: var(--ink-light);
  font-weight: 700;
}

.mini-hero__box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card.border-0 {
  border: 1px solid var(--border) !important;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(56, 131, 160, 0.22);
}

.card .card-title {
  font-weight: 700;
  color: var(--primary);
}

/* Placeholder visuals */
.img-slot {
  width: 100%;
  background: rgba(56, 131, 160, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
  border: 1px dashed rgba(56, 131, 160, 0.32);
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.img-slot-medium {
  max-width: 400px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  width: 100%;
}

.img-slot-large {
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  width: 100%;
}

/* Lists and badges */
ul {
  padding-left: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

ul li {
  position: relative;
  list-style: none;
  padding-left: 1.25rem;
}

ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Keep nav/menu links clean (no custom bullets) */
.navbar-nav li,
.navbar-nav li::before {
  padding-left: 0;
  content: none;
}

.badge.bg-primary {
  background: rgba(56, 131, 160, 0.15) !important;
  color: var(--primary-dark) !important;
}

/* Event list cards */
#eventList .event-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

#eventList .event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

#eventList .event-card.active {
  border-color: var(--accent);
  box-shadow: 0 18px 50px rgba(56, 131, 160, 0.18);
}

.event-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 65%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f3f6fa;
  border: 1px solid #e4e8ef;
}

.event-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Calendar */
#tuiCalendar {
  font-family: var(--ff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 600px;
  box-shadow: var(--shadow-sm);
}

.calendar-nav .btn {
  flex: 1 1 140px;
}

@media (max-width: 575px) {
  .calendar-nav .btn {
    flex: 1 1 100%;
  }
}

.tui-full-calendar-month-dayname {
  background: #f3f6fa;
  color: var(--primary);
}

.tui-full-calendar-weekday-grid-line,
.tui-full-calendar-timegrid-hour,
.tui-full-calendar-timegrid-gridline {
  border-color: rgba(56, 131, 160, 0.1);
}

.tui-full-calendar-time-schedule-content {
  background: var(--primary);
  color: var(--ink-light);
}

.tui-full-calendar-weekday-schedule-block,
.tui-full-calendar-schedule {
  border-radius: var(--radius);
}

#calendarMonthLabel {
  color: var(--ink-light);
  font-weight: 700;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}

.tui-full-calendar-popup-container {
  z-index: 1050;
}

/* Contact form */
.contact-form input,
.contact-form textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(51, 51, 51, 0.12);
  margin-bottom: 0.75rem;
  background: #fff;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 12px 30px rgba(56, 131, 160, 0.16);
}

/* Footer */
footer {
  background: #f7f9fb;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

footer a {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 991px) {
  #mainNav {
    background: rgba(255, 255, 255, 0.95);
  }

  .hero-copy {
    padding: 1.25rem;
  }

  .hero-visual .carousel {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 1.9rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    display: inline-flex;
  }

  .btn + .btn {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .d-flex.gap-2.flex-wrap {
    gap: 0.5rem !important;
  }

  /* kill lateral offset from Bootstrap spacing helpers on stacked mobile buttons */
  .btn.ms-2,
  .btn.me-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
