/* define variables */
:root {
  --dark-blue: #204f71;
  --dark-blue-rgb: 32, 79, 113;
  --light-blue: #188ec5;
  --light-blue-rgb: 24, 142, 197;
  --teal: #62a7ae;
  --teal-rgb: 98, 167, 174;
	--sky-blue: #67ceff;
	--sky-blue-rgb: 103, 206, 255;
  --golden: #e5c00f;
  --golden-rgb: 229, 192, 15;
  --lilac: #713e98;
  --lilac-rgb: 113, 62, 152;
}

.row {
	--bs-gutter-x: 2rem;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Fira Sans Extra Condensed', sans-serif;
	font-weight: 300;
}

a {
	display: inline-block;
	text-decoration: none;
}

p {
	a {
		color: inherit;
		text-decoration: underline;
	}

	&:last-of-type {
		margin-bottom: 0;
	}
}

* {
	font-family: 'Fira Sans', sans-serif;
	font-weight: 400;
}

img, svg {
	display: inline-block;
	max-width: 100%;
	max-height: 100%;

	&.round {
		aspect-ratio: 1/1;
		border: 2px solid white;
		border-radius: 50%;
		max-width: 200px;
		object-fit: cover;
		width: 100%;
	}
}

html, body {
	overflow-x: hidden; /* Prevent horizontal scroll when menu is open */
}

body {
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
}


.social-links {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 0 2rem;

	a {
		align-items: center;
		background: var(--dark-blue);
		border-radius: 5px;
		display: flex;
		font-size: 1.2em;
		height: 35px;
		justify-content: center;
		padding: 5px;
		transition: color 0.3s ease;
		width: 35px;

		svg {
			fill: #fff;
		}


		&:hover {
			transform: scale(1.1);
		}
	}
}
/* Global Classes ---------------------------- */
.btn {
	background: var(--light-blue);
	border: 2px solid white;
	border-radius: 0;
	color: white;
	display: inline-block;
	font-weight: bold;
	padding: .5rem 1rem;
	position: relative;
	text-align: center;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease;

	&:hover {
		background: var(--dark-blue);
		color: white;
	}

	&.secondary {
		background-color: var(--golden);
		border: 2px solid var(--dark-blue);
		color: var(--dark-blue);
	}

	
	&.left {
		border: 0 !important;
		clip-path: polygon(0 50%, 10px 0, 100% 0, 100% 100%, 10px 100%);

		&.secondary {
			border-right-color: var(--dark-blue);
		}
	}

	&.right {
		border: 0 !important;
		clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);

		&.secondary {
			border-left-color: var(--dark-blue);
		}
	}
	
}


/* Header CSS ---------------------------- */

#menu-btn {
  background: none;
  border: 0;
  display: block;
  cursor: pointer; /* Added for better UX */
  padding: 10px; /* Optional: adds clickable area */

  span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: var(--dark-blue, #232323); /* Fallback color */
    border-radius: 3px;
    z-index: 1;
    transform-origin: center; /* Center for consistent rotation */
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
                opacity 0.55s ease,
                background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  }

	span:last-child {
		margin-bottom: 0;
	}

  /* Remove individual transform-origin overrides for simplicity */
}

header {
	align-items: center;
	background-color: white;
	display: grid;
	grid-template-columns: auto 1fr auto;
	justify-content: space-between;
	margin: auto;
	width: 100%;
	max-width: 1320px;
	padding: .25rem .5rem;
	position: relative;
	z-index: 10;

	#logo {
		display: block;
		height: 75px;
		padding-right: .5rem;
		width: auto;
	}

	nav {
		background: linear-gradient(rgba(24, 142, 197, 0.5), rgba(24, 142, 197, 0.5)),
            linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		position: absolute;
		right: 0;
		top: 100%;
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;

		ul {
			list-style: none;
			margin: 0;
			padding: 0;
			display: flex;
			flex-direction: column;
			align-items: flex-start;

			li {
				display: inline-block;
				margin: 0;
				width: 100%;

				a {
					color: var(--dark-blue);
					display: block;
					font-family: 'Fira Sans Extra Condensed', sans-serif !important;
					font-size: 1.2rem;
					padding: 10px 20px;
					text-decoration: none;
					text-transform: uppercase;
					transition: color 0.3s ease;
					width: 100%;

					&:hover, &.active {
						color: var(--light-blue);
					}
				}
			}
		}

		& > ul {
			& > li > a {
				background: var(--light-blue);
				color: white !important;
				font-size: 1.35rem;
			}
			& > li.has-children:has(.active) > a {
				background: var(--light-blue);
				color: white !important;
			}
		}
	}

	.social-links {
		display: none;
	}

	aside {
		align-self: flex-end;
		font-size: .75rem;

		strong {
			display: block;
		}
	}
}
.menu-overlay {
	background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
	height: 100%;
	opacity: 0;
	position: fixed;
	top: 0;
	left: 0;
	transition: all 0.3s ease;
	width: 100%;
	z-index: -1;
}

body.open-menu {
  #menu-btn {
    span {
      /* First span: rotate to form top of "X" */
      &:first-child {
        transform: rotate(45deg) translate(7px, 7px); /* Adjusted for alignment */
      }

      /* Middle span: hide */
      &:nth-child(2) {
        opacity: 0; /* Hide middle line */
        transform: scale(0.2, 0.2); /* Optional: scale down */
      }

      /* Last span: rotate to form bottom of "X" */
      &:last-child {
        transform: rotate(-45deg) translate(6px, -6px); /* Adjusted for alignment */
      }
    }
  }
	header nav {
		transform: translateX(0); /* Slide in the menu */
	}
	.menu-overlay {
		opacity: 1; /* Fade in the overlay */
		z-index: 5; /* Ensure overlay is above other content */
	}
}

#page-header {
	svg {
		max-width: 75px;
		width: 100%;
	}
	h1 {
		font-size: 2.5rem;
		font-weight: 300;
	}
}

/* Footer CSS ---------------------------- */
footer {
	#footer-top {
		.slogan {
			color: var(--teal);
			font-size: 2.5rem;
			line-height: 1.1;
			padding: 3rem 0;
			text-align: center;

			p {
				font-family: 'Fira Sans', sans-serif;
			}
		}
	}

	#footer-bottom {
		background-color: var(--dark-blue);
		background-image:
			url('/images/deco-stripe-top.webp'),
			url('/images/deco-stripe-bot.webp');
		background-repeat: repeat-x, repeat-x;
		background-position: top 10px center, bottom 10px center;
		color: white;
		font-family: 'Fira Sans', sans-serif;
	}

	img {
		display: block;
		margin: 0 auto 1rem;
		width: 300px;
	}

	a {
		color: white;
		text-decoration: underline;
	}

	aside {
		margin-bottom: 1.5rem;

		h4 {
			font-size: 1rem;
			margin-bottom: 0;
		}
		h3 {
			font-size: 1.2rem;
			margin-bottom: 0;
		}
		a {
			color: white;
			text-decoration: underline;
		}
	}

	.social-links {
		margin-bottom: 1rem;

		a {
			background: white;

			svg {
				fill: var(--dark-blue);

				.fil0 {
					fill: var(--dark-blue);
				}
			}
		}
	}

	.copyright {
		font-size: .8rem;
		
		p {
			margin-bottom: .5rem;
		}
	}
}


/* Blocks ---------------------------- */
.overlay {
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 0;

	& ~ * {
		position: relative;
		z-index: 1;
	}

	&.to-back {
		z-index: -1;
	}
}
section {
	position: relative;
}
section.content-list-block {
	padding: 1rem 0;

	h4 {
		font-size: 2rem;
		margin-bottom: .5rem;
		text-transform: uppercase;
	}

	a {
		color: var(--dark-blue);
		text-decoration: underline;
	}
}

section.text-block {
	padding: 1rem 0;

	h3 {
		font-size: 2.25rem;
		margin-bottom: 1rem;
	}
}

section.cta-block {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 40vh;

	.btn {
		border-radius: 40px;
		font-size: 1.4rem;
		font-weight: 300;
		padding: .25rem 1.5rem;
	}
}

.video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
	overflow: hidden;

	iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	& + p {
		color: var(--dark-blue);
		font-size: .8rem;
		padding: .5rem 1rem;
	}
}

section.gallery-block {
	padding: 1rem 0;

	h3 {
		font-size: 2.25rem;
		margin-bottom: .5rem;
	}

	ul.gallery {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		justify-content: flex-start;
		list-style: none;
		margin-bottom: 2rem;

		a, img {
			width: 100%;
		}
	}
}
/* .modal.lightbox {
	.ratio-16x9 {
		--bs-aspect-ratio: 100%
	}
} */



/* Media Queries ---------------------------- */
@media (min-width: 600px) {
	header {
		grid-template-columns: auto 1fr auto auto;

		#logo {
			height: 90px;
			padding: .5rem;
			padding-right: 1rem;
		}

		nav ul {
			justify-content: flex-end;
		}
		nav > ul {
			width: 100%;
		}

		.social-links {
			display: flex;
			margin-left: auto;
		}

		aside {
			display: block;
			
			strong {
				display: block;
			}
		}
	}
	#page-header {
		h1 {
			font-size: 3.25rem;
		}
	}
	footer {
		#footer-top {
			.slogan br {
				display: none;
			}
		}
	}

	section.page-block {
		padding: 2rem 0;
	}

	section.gallery-block {
		ul.gallery {
			grid-template-columns: repeat(4, 1fr);
		}

		.lightbox-img {
      max-width: 90vw; /* 90% of the viewport width */
      max-height: 80vh; /* 80% of the viewport height */
      width: 100%;
      height: auto;
    }
	}
}

@media (min-width: 768px) {
	footer {
		#footer-top {
			.slogan {
				font-size: 3rem;
				padding: 5rem 0;
			}
		}

		.social-links {
			justify-content: flex-start;
			margin-left: 0;
			margin-right: 0;
			gap: 1rem;
		}
	}
}

@media (min-width: 1024px) {
	header {
		grid-template-columns: auto 1fr auto;
		grid-template-rows: auto auto;

		#logo {
			height: 120px;
			grid-row: span 2;
		}

		#menu-btn {
			display: none;
		}

		nav {
			position: static;
			transform: translateX(0);
			background: none;
			box-shadow: none;

			ul {
				flex-direction: row;
				align-items: center;

				li {
					position: relative;
					width: auto;

					a {
						font-size: 1.275rem;
						padding: 10px 15px;
						width: auto;
					}
				}

				ul {
					align-items: stretch;
					background: linear-gradient(rgba(var(--light-blue-rgb), 0.4), rgba(var(--light-blue-rgb), 0.4)),
											linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
					display: none;
					position: absolute;
					flex-direction: column;
					text-align: left;
					white-space: nowrap;

					a:hover, a:focus {
						background: rgba(0, 0, 0, 0.1);
						color: var(--dark-blue);
					}
				}
			}

			& > ul {
				& > li {
					& > a {
						background: none;
						color: var(--dark-blue) !important;
					}

					&:hover, &:focus {
						& > a {
							background: var(--light-blue);
							color: white !important;
						}

						ul {
							display: flex;
						}
					}
				}

				/* & > li:last-child > ul {
					right: 0;
				} */
			}
		}

		.social-links {
			margin-right: 0;
			margin-left: 2rem;
			order: 3;
		}

		aside {
			align-self: flex-start;
			order: 4;

			p {
				color: var(--dark-blue);
				font-size: .9rem;

				strong {
					color: gray;
					display: block;
					font-style: italic;
					font-weight: bold;
				}
			}
		}
	}
	footer {
		.social-links {
			gap: 3rem;
		}
	}

	section.page-block {
		padding: 4rem 0;
	}

	section.gallery-block {
		ul.gallery {
			grid-template-columns: repeat(6, 1fr);
		}
	}
}

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