/* Component-specific styles for the Liverpool Connect website UI kit.
   Imported after styles.css. All variables live in colors_and_type.css. */

/* ===== TOP NAV ===================================================== */
.topnav-wrap {
  position: fixed;
  top: 18px;
  left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: top 220ms cubic-bezier(0.2,0.7,0.1,1);
}
.topnav {
  display: flex; align-items: center; gap: 18px;
  background: rgba(250, 246, 239, 0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 220ms, background 220ms;
}
.topnav-wrap.scrolled .topnav {
  background: rgba(250, 246, 239, 0.92);
  box-shadow: var(--shadow-3);
}
.topnav-brand img { height: 52px; display: block; }
.topnav-spacer { flex: 1; }
.topnav-links { display: flex; align-items: center; gap: 4px; }
.topnav-links a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  padding: 9px 16px;
  border-radius: 999px;
  transition: all 160ms;
}
.topnav-links a:hover { background: var(--surface-sunk); color: var(--lcc-navy); }
.topnav-links a.active { color: var(--lcc-teal); font-weight: 600; }
.topnav-cta {
  background: var(--lcc-navy) !important;
  color: var(--surface-canvas) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  margin-left: 6px;
}
.topnav-cta:hover { background: var(--lcc-navy-700) !important; transform: translateY(-1px); }

@media (max-width: 720px) {
  .topnav-links a:not(.topnav-cta) { display: none; }
}

/* ===== HERO ======================================================= */
.hero {
  position: relative;
  padding: 180px 0 110px;
  overflow: hidden;
  background: var(--surface-canvas);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(14,35,71,0.07) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 0%, transparent 70%);
}
.hero-watermark {
  position: absolute;
  right: -120px;
  bottom: -80px;
  width: 620px;
  opacity: 0.08;
  filter: saturate(0.5);
  pointer-events: none;
  transform: rotate(-6deg);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-headline {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.08;
  margin: 22px 0 28px;
  text-wrap: pretty;
}
.hero-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--fg-3);
  margin: 0 0 20px;
}
.hero-lede { font-size: 18px; max-width: 580px; }
.hero-buttons {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 36px;
}
.hero-stats {
  margin-top: 80px;
  display: flex; align-items: center; gap: 48px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  color: var(--lcc-navy);
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 8px;
}
.hero-stat-divider {
  width: 1px; height: 44px; background: var(--line-medium);
}

/* ===== ABOUT ====================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .about-inner { grid-template-columns: 1fr; gap: 40px; } }
.about-title { margin: 18px 0 24px; }
.about-text p {
  font-size: 16px;
  color: var(--fg-3);
  line-height: 1.65;
  margin-bottom: 18px;
}
.college-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  margin-top: 16px;
  transition: all 200ms;
}
.college-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--lcc-teal); }
.college-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--lcc-teal-100);
  color: var(--lcc-teal);
  display: flex; align-items: center; justify-content: center;
}
.college-info { display: flex; flex-direction: column; flex: 1; }
.college-info strong {
  font-family: var(--font-body); font-weight: 600;
  font-size: 15px; color: var(--lcc-navy); line-height: 1.2;
}
.college-info span {
  font-size: 12px; color: var(--fg-3); margin-top: 2px;
}

/* Value card */
.value-card {
  position: relative;
  background: var(--lcc-navy);
  color: white;
  border-radius: 22px;
  padding: 38px 36px 40px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.value-card-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 110% -10%, rgba(45,169,161,0.30) 0%, transparent 50%),
    radial-gradient(circle at -10% 110%, rgba(224,55,106,0.22) 0%, transparent 50%);
  pointer-events: none;
}
.value-card > * { position: relative; z-index: 1; }
.value-list {
  list-style: none; padding: 0;
  margin: 22px 0 0;
  display: flex; flex-direction: column; gap: 18px;
}
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lcc-teal-300);
  flex-shrink: 0; margin-top: 9px;
}
.value-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}
.value-text strong {
  color: white;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* ===== SERVICES =================================================== */
.services-header {
  text-align: center;
  margin-bottom: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.services-title { margin: 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { padding: 28px 28px 30px; }
.service-card .icon-chip { margin-bottom: 18px; }
.service-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--lcc-navy);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 14.5px;
  color: var(--fg-3);
  line-height: 1.65;
  margin: 0;
}

/* ===== EVENTS ===================================================== */
.events-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.events-pill-row { margin-top: 4px; }
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .events-grid { grid-template-columns: 1fr; } }
.event-card {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.event-card.next { box-shadow: var(--shadow-3), var(--shadow-glow-magenta); border-color: var(--lcc-magenta-300); }
.event-card.past { box-shadow: var(--shadow-2), 0 0 28px -10px rgba(45,169,161,0.45); border-color: var(--lcc-teal-300); }
.event-card.placeholder { opacity: 0.7; }
.event-date-band {
  background: var(--lcc-navy);
  color: white;
  padding: 18px 24px;
  display: flex; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
}
.event-card.next .event-date-band::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,55,106,0.42) 0%, transparent 70%);
}
.event-card.past .event-date-band::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,169,161,0.42) 0%, transparent 70%);
}
.event-date { z-index: 1; }
.event-day {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  color: white;
}
.event-card.placeholder .event-day { color: rgba(255,255,255,0.4); font-size: 24px; padding-top: 6px; }
.event-month {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
.event-date-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); z-index: 1; }
.event-badge {
  background: var(--lcc-magenta);
  color: white;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  margin-left: auto;
  z-index: 1;
}
.event-badge.past-badge { background: var(--lcc-teal); }
.event-badge.muted { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.55); }
.event-body { padding: 20px 24px 6px; flex: 1; }
.event-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--lcc-navy);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.event-detail {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.event-detail .icon-chip { width: auto; height: auto; background: none; padding: 0; color: var(--lcc-teal); }
.event-detail svg { stroke: var(--lcc-teal) !important; }
.event-desc {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.6;
  margin-top: 14px;
}
.event-footer { padding: 0 24px 22px; }
.events-footer {
  text-align: center;
  margin-top: 40px;
  color: var(--fg-3);
  font-size: 15px;
}

/* ===== GALLERY ==================================================== */
.gallery { position: relative; overflow: hidden; }
.gallery-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.gallery-page-lede { text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-card { overflow: hidden; }
.gallery-img-wrap {
  position: relative;
  overflow: hidden;
}
.gallery-img-wrap image-slot {
  display: block;
  border-radius: 0 !important;
}
.gallery-card-body { padding: 22px 24px 26px; }
.gallery-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lcc-teal);
  background: var(--lcc-teal-100);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.gallery-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--lcc-navy);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.gallery-caption {
  font-size: 14px;
  color: var(--fg-3);
  margin: 0;
  line-height: 1.55;
}

/* ===== FOOTER ===================================================== */
.footer { padding: 96px 0 32px; }
.footer-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(45,169,161,0.20) 0%, transparent 50%),
    radial-gradient(circle at 10% 100%, rgba(224,55,106,0.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(91,49,146,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.footer > * { position: relative; z-index: 1; }
.footer-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 88px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.footer-cta-title { color: white !important; font-size: clamp(40px, 5vw, 64px); }
.footer-cta-lede { color: rgba(255,255,255,0.7) !important; text-align: center; }
.footer-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

.footer-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 720px) { .footer-bottom { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin: 14px 0 18px;
  max-width: 340px;
}
.footer-logo {
  height: 76px;
  display: block;
  margin-left: -6px; /* optical alignment with column text below */
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all 180ms;
}
.footer-social a:hover { background: var(--lcc-teal); border-color: var(--lcc-teal); color: white; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lcc-teal-300);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 160ms;
}
.footer-col a:hover { color: var(--lcc-teal-300); }
.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ===== CONTACT MODAL ============================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(14,35,71,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms;
  padding: 24px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface-card);
  border-radius: 22px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(18px) scale(0.985);
  transition: transform 280ms cubic-bezier(0.34, 1.4, 0.5, 1);
  box-shadow: var(--shadow-4);
  max-height: 92vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--surface-sunk);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: var(--fg-2);
  display: flex; align-items: center; justify-content: center;
  transition: all 160ms;
}
.modal-close:hover { background: var(--lcc-magenta-100); color: var(--lcc-magenta); }
.modal-title { font-size: 32px; margin: 14px 0 8px; }
.modal-subtitle {
  font-size: 14px;
  color: var(--fg-3);
  margin: 0 0 22px;
}
.contact-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-canvas);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 180ms;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--lcc-teal); box-shadow: var(--shadow-2); }
.contact-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: var(--shadow-2);
}
.contact-info { flex: 1; }
.contact-info strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--lcc-navy);
}
.contact-info span {
  font-size: 13px;
  color: var(--fg-3);
}

.modal-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 18px;
  font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.modal-divider::before, .modal-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line-soft);
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-medium);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-1);
  background: var(--surface-card);
  outline: none;
  transition: all 160ms;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--lcc-teal);
  box-shadow: 0 0 0 3px var(--lcc-teal-100);
}
.contact-form .btn { align-self: flex-start; margin-top: 6px; }

/* Form success + error states */
.form-success {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
  padding: 12px 0 4px;
}
.form-success-icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--lcc-teal-100);
  color: var(--lcc-teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  animation: form-pop 360ms cubic-bezier(0.34, 1.4, 0.5, 1);
}
@keyframes form-pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.form-success-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--lcc-navy);
  margin: 0;
  letter-spacing: -0.01em;
}
.form-success-text {
  font-size: 14px;
  color: var(--fg-3);
  margin: 4px 0 12px;
  max-width: 320px;
}
.form-error {
  font-size: 13px;
  color: var(--lcc-magenta);
  background: var(--lcc-magenta-100);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 0;
}
