:root {
	--purple-main: #8e3e97;
	--purple-dark: #4a2a52;
	--pink-soft: #d7a8b7;
	--pink-light: #f1c7db;
	--bg-soft: #f5edf3;
	--text-main: #312133;
	--text-muted: #6b5b70;
	--radius-large: 18px;
	--shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.12);
	--transition-fast: 0.25s ease;
	--max-width: 1100px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Nunito', sans-serif;
	background: var(--bg-soft);
	color: var(--text-main);
}

/* Layout helpers */

.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
  text-align: center;
}

.section h2 {
	margin: 0 0 0.75rem;
	font-size: 2.1rem;
	font-weight: 600;
  	letter-spacing: 0.02em;
	color: var(--purple-dark);
}

.section-intro {
	max-width: 640px;
	margin: 0 auto 2.5rem;
	color: var(--text-muted);
	font-size: 1rem;
	line-height: 1.6;
}


/* =========================================================
   HEADER — FINAL, LANGUAGE-SAFE LAYOUT
   ========================================================= */

/* ---------- Header shell ---------- */
.site-header {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
}

/* Background image */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/hero-pic.jpg");
  background-size: cover;
  background-position: center 5%;
  filter: saturate(0.9) contrast(1.05);
  z-index: 0;
}

/* Gradient overlay */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(140, 85, 160, 0.55),
    rgba(215, 168, 183, 0.45),
    rgba(241, 199, 219, 0.35)
  );
  z-index: 1;
}

/* Keep content above background */
.site-header > * {
  position: relative;
  z-index: 2;
}

/* ---------- Full-width nav bar ---------- */
.header-nav {
  width: 100%;
  padding: 1rem 2.5rem;
}

.nav {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Logo */
.logo-wrap img {
  max-width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}

/* Centered nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- Language toggle (JS dependent) ---------- */
.lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 3px;
  justify-self: end;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--purple-dark);
}

.hero-content h1 {
  margin: 0 0 0.6rem;
  font-size: 2.1rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.25);
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
}

.hero-intro {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* Closure banner */
.closure-title {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.closure-banner {
  margin-top: 1.4rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  max-width: 640px;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.closure-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.closure-banner > div {
  display: block;
}

.closure-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

.closure-date {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.closure-text {
  font-size: 0.95rem;
  line-height: 1.5;
}


/* ---------- LANGUAGE VISIBILITY (CRITICAL FOR JS) ---------- */
.lang {
  display: none;
}

.lang.active {
  display: inline;
}

.lang.active.block {
  display: block;
}

.lang:not(.active) {
  display: none !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .lang-toggle {
    justify-self: start;
  }

  .hero-inner {
    display: block;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* ---------- HERO (LOCKED TO NAV ALIGNMENT) ---------- */
.hero-inner {
  max-width: 100%;
  padding: 2.4rem 2.5rem 3.6rem; /* EXACT match to .header-nav */
}

.hero-content {
  max-width: 520px;
}

@media (max-width: 900px) {
  .hero-inner {
    display: block;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* =========================
   OVERVIEW SECTION (CLEAN)
   ========================= */

.overview-section {
  padding: 4rem 0;
  background: #f7eef4;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: stretch;
}

/* LEFT CONTENT */
.overview-content {
  background: #ffffff;
  border-radius: 22px;
  padding: 2rem 2.2rem;
  margin-left: calc((100vw - var(--max-width)) / -2);
  box-shadow: var(--shadow-soft);
}

.overview-content h2 {
  margin-top: 0;
  font-size: 2.1rem;
  color: var(--purple-dark);
}

.overview-lede {
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--purple-dark);
}

.overview-text {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.overview-list {
  padding-left: 1.2rem;
  margin: 0;
}

.overview-list li {
  margin-bottom: 0.6rem;
}

/* RIGHT MEDIA (FULL BLEED RIGHT) */
.overview-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 400px;

  /* bleed to the right edge only */
  width: calc(100% + (100vw - var(--max-width)) / 2);
  max-width: 100vw;
}

/* IMAGE */
.overview-image {
  position: absolute;
  inset: 0;

  background-image: url("/images/overview-pic.jpg");
  background-repeat: no-repeat;

  /* Use cover for consistent behavior */
  background-size: cover;

  /* THIS IS THE ONLY CONTROL YOU NEED */
  background-position: 0% 50%;

  z-index: 0;
}

/* Overlay */
.overview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.20),
    rgba(241,199,219,0.55)
  );
  pointer-events: none;
}

/* CARDS (single definition) */
.overview-cards {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  width: 260px;
  display: grid;
  gap: 1rem;
  z-index: 2;
}

.overview-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.overview-card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple-dark);
}

.overview-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* MOBILE */
@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-content {
    margin-left: 0;
  }

  .overview-media {
    width: 100%;
    max-width: 100%;
    min-height: 360px;
    order: -1;
  }

  .overview-cards {
    position: static;
    transform: none;
    width: 100%;
    padding: 1.2rem;
  }
}


  
/* =========================
   LOCATION & ABOUT SECTIONS
   ========================= */


.location-section {
	padding-top: 3.5rem;
}

.map-wrap {
	margin-top: 1.2rem;
	border-radius: var(--radius-large);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	background: #ffffff;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
	padding: 0.75rem;
}

.map-wrap iframe {
	display: block;
  	width: 100%;
  	height: 480px;
  	border: none;

	/* soften Google UI slightly */
  	filter: saturate(0.95) contrast(0.95);
}

.map-helper {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* =========================
   MAP CARD (MATCH OVERVIEW)
   ========================= */

.map-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 0.75rem;
  margin: 2rem auto 1rem;
  max-width: var(--max-width);
  overflow: hidden;
}

/* Map iframe */
.map-card iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .map-card iframe {
    height: 360px;
  }
}

/* About section */

.about-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
}

.about-block {
    margin-bottom: 2.8rem;
    background: #ffffffaa;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Reset margins, then add one uniform vertical gap */
.about-block > * {
    margin: 0;
}

.about-block > * + * {
    margin-top: 0.75rem;   /* controls space between title and text/list */
}

.about-block ul {
    margin-top: 0.4rem !important;
    margin-bottom: 0.4rem !important;
}

.about-list li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
}

.about-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple-dark);
}

.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.about-block {
  text-align: center;
}

.about-list-wrap,
.about-list {
  display: block !important;
  text-align: left !important;
}

.about-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* About section cards */
.about-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2.5rem 2.2rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
}

.about-card.alt {
  background: linear-gradient(
    to bottom right,
    #ffffff,
    #faf2f6
  );
}

/* Card titles with icons */
.about-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.about-icon {
  font-size: 1.3rem;
  opacity: 0.85;
}

/* Styled list for Who We Served */
.about-list {
  padding-left: 0;
  margin-top: 1rem;
}

.about-list li {
  list-style: none;
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--purple-accent);
  font-size: 1.2rem;
  top: 0.15rem;
}

/* Optional divider */
.about-divider {
  text-align: center;
  color: var(--purple-accent);
  margin: 2.5rem 0;
  opacity: 0.5;
  font-size: 1.1rem;
}

/* -----------------------------
   RESOURCES (IIS-safe)
   ----------------------------- */

.resources-grid {
  display: grid;
  gap: 2.2rem;
  margin-top: 2.5rem;
  margin-bottom: 3rem;

  /* More predictable than auto-fit on IIS */
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Responsive breakpoints */
@media (max-width: 980px) {
  .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .resources-grid { grid-template-columns: 1fr; }
}

.resource-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;

  /* prevents grid overflow / weird shrink on IIS */
  min-width: 0;
}

.resource-preview {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f1f5;
  margin-bottom: 1rem;

  /* Stabilize preview sizing across IIS/Edge/Chrome */
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

/* Keep embed from forcing layout */
.resource-preview embed,
.resource-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.resource-card h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.1rem;
  color: var(--purple-dark);
}

.resource-description {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.resource-card a {
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple-main);
  text-decoration: none;
}

.resource-card a:hover {
  text-decoration: underline;
}

/* Wide cards (outside the grid now) */
.resource-wide-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 2.4rem 2.8rem;
  box-shadow: var(--shadow-soft);
  text-align: center;

  /* harden */
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.resource-wide-title {
  font-size: 1.45rem;
  margin-bottom: 1.2rem;
  color: var(--purple-dark);
}

.resource-intro {
  max-width: 900px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

.resource-links {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
}

.resource-link {
  max-width: 700px;
  text-align: center;
}

.resource-link a {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: underline;
  color: var(--purple-main);
}

.resource-link p {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.resources-section {
  position: relative;
  background-size: cover;
  background-position: center;
}



.resource-card {
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.resources-section .resource-wide-card {
  margin-top: 2.8rem;
}

.resource-wide-card {
  padding: 2.2rem 2.6rem;
}

.resource-links .resource-link:first-child a {
  font-size: 1.15rem;
  font-weight: 700;
}

.resource-links .resource-link:first-child p {
  margin-top: 0.3rem;
}

.resource-link {
  padding-bottom: 1.1rem;
}

.resource-link:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.resource-wide-title {
  letter-spacing: 0.01em;
}

.resource-links .resource-link {
  max-width: 720px;
}

.resources-grid-bg {
  position: relative;
  padding: 3.5rem 2.5rem;
  margin-top: 2.5rem;
  border-radius: 36px;
  overflow: hidden;
}

/* background image */
.resources-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("/images/resources-soft.jpg");
  background-size: cover;
  background-position: center;

  opacity: 0.22;
  z-index: 0;
}

/* protective overlay */
.resources-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.88),
    rgba(241,199,219,0.70)
  );

  z-index: 1;
}

/* keep cards on top */
.resources-grid {
  position: relative;
  z-index: 2;
}

.resources-grid-bg {
  border: 1px solid rgba(255,255,255,0.6);
}

.resources-grid-bg::before {
  opacity: 0.25; /* try 0.14–0.18 */
}


.resource-wide-title {
  position: relative;
}

.resource-wide-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0.6rem auto 0;
  background: rgba(142,62,151,0.35);
  border-radius: 999px;
}

.resource-link a {
  font-weight: 600;
}

.resource-link p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.resource-link a:hover {
  text-decoration: underline;
}

/* -----------------------------
   SERVICES SECTION
   ----------------------------- */

.services-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: left;
}

.services-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffffaa;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    backdrop-filter: blur(4px);
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 0.8rem;
}

.service-list {
    padding-left: 1.2rem;
    margin: 0;
    list-style-type: disc;
}

.service-list li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
}


/* Contact section */

.contact-section {
	padding-top: 3.5rem;
}

/* CONTACT GRID */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem;
    margin-top: 2.5rem;
    align-items: stretch;   /* ⭐ NEW → Make rows equal height */
}

/* CONTACT CARDS */
.contact-card {
    background: #ffffff;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    padding: 1.8rem 2rem;

    /* ⭐ NEW → Make all cards match height */
    height: 100%;
	width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
	margin-left: auto;  /* Center inside the card */
    margin-right: auto;
	align-items: center; /* Center everything horizontally */
    text-align: center;  /* Center the text */
}

.contact-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 0.6rem;
}

.contact-text,
.contact-note,
.contact-list li {
    font-size: 1rem;
    line-height: 1.55;
	margin-left: auto;  /* Center inside the card */
    margin-right: auto;
    color: var(--text-main);
}

/* LIST RESET */
.contact-list {
    max-width: 520px;   /* Same for lists */
    margin-left: auto;  /* Center inside the card */
    margin-right: auto;
    text-align: left;   /* Lists should remain aligned */
}

.contact-card.transit-card .contact-list {
    margin-top: 0.4rem !important;   /* smaller than default */
}

.contact-card.transit-card .contact-label {
    margin-bottom: 0.4rem !important;
}

/* Make the large card span 2 columns */
.contact-card-wide {
    grid-column: span 2;
}

/* Mobile */
@media(max-width: 700px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card-wide {
        grid-column: span 1;
    }
}

/* Email / Social links */
.contact-email,
.contact-social {
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple-main);
    text-decoration: none;
}

.contact-email:hover,
.contact-social:hover {
    text-decoration: underline;
}

/* Contact buttons container */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

/* Each button container */
.contact-button {
    width: 110px;
    height: 110px;
    background: #ffffff;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    text-decoration: none;
    transition: 0.25s ease;
}

.contact-buttons-wide {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: -0.8rem;
}

/* Hover lift */
.contact-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

/* Actual icon inside each button */
.contact-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* Footer */

.site-footer {
	margin-top: 3.5rem;
	padding: 2.5rem 1.5rem 2.2rem;
	background: #ffffff;
	border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.footer-logo img {
	max-width: 120px;
	height: auto;
	display: block;
}

.footer-text {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-muted);
}

/* Animations */

.fade-in {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
	.info-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.nav {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero-content {
		padding: 1.6rem 0 2rem;
	}
}

@media (max-width: 480px) {
	.header-overlay {
		border-bottom-left-radius: 22px;
		border-bottom-right-radius: 22px;
	}

	.hero-content h1 {
		font-size: 1.8rem;
	}

	.info-left {
		padding: 1.4rem 1.5rem;
	}

	.contact-card {
		padding: 1.4rem 1.5rem;
	}
}
