/* colors */
/* Blue #0e1321 */
/* Orange #ff6800 */

:root {
  --primary-color: #ff6800;
  --secondary-color: #0e1321;
  --accent-color: #ff6800;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --background: #ffffff;
  --background-alt: #f9fafb;
  --border-color: #e5e7eb;
  --nav-height: 72px;
  --main-width: 1100px;
}

html {
	background-color: #0e1321;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	color: #ffffff;
}

/* typography */
p, .p {
	margin: 0 0 15px;
	padding: 0;
	line-height: 1.6;
}

a {
	color: #ff6800;
	text-decoration: underline;
}
h1, .h1 {
	font-size: 42px;
	line-height: 1;
	font-weight: 900;
	text-align: center;
	text-transform: uppercase;
	margin: 0 0 5px;
	padding: 0;
}
h2, .h2 {
	font-size: 26px;
	line-height: 1;
	font-weight: 200;
	background-color: #ff6800;
	text-align: center;
	text-transform: uppercase;
	border-radius: 5px;
	margin: 0 0 15px;
	padding: 10px;
}
.pageTitle {
	text-align: left;
}

/* structure */
body {
	margin: 0;
	padding: 0;
}
.wrapper {
	max-width: 100%;
	margin: 70px auto 0;
	padding: 0;
}
.mainContent {
	padding: 0 25px;
	width: 100%;
	max-width: var(--main-width);
	margin: 0 auto;
}
.pageContainer {
	width: 100%;
	max-width: var(--main-width);
	margin: 25px auto 0;
	padding: 0 0 50px;
	display: block;
}
.pageContent {
	position: relative;
}

/* nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: var(--main-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  z-index: 1001;
}

.logo-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.logo-text {
  letter-spacing: -0.5px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-btn.secondary {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-color);
}

.nav-btn.secondary:hover {
  background: var(--background-alt);
}

.nav-btn.primary {
  color: #ffffff;
  background: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.nav-btn.primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}


/* pages */
.pageBanner {
	display: flex;
	/*background: url('../../assets/images/xc_middle_school_championships_20250925.jpeg') no-repeat center center / cover;*/
	height: 300px;
	width: 100%;
	background-color: #ffffff;
	align-items: center;
	opacity: 1;
	margin-bottom: 35px;
}
.bannerText {
	position: relative;
	z-index: 3;
}
.bannerTextContainer {
	width: 100%;
	max-width: var(--main-width);
	margin: 0 auto;
}
.bannerText p, .bannerText h1 {
	margin: 0 0 5px;
	padding: 0;
	text-align: left;
	line-height: 1;
	color: #0e1321;
}
.bannerText h1 {
	text-align: center;
}
.bannerText p {
	color: #ff6800;
}
.pageContainer {
	display: flex;
	gap: 25px;
}

/* homepage */
.homeContainer {
	display: flex;
	gap: 35px;
}
.resultsContainer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 35px;
}
.result {
	width: 270px;
}
h3.resultDistance {
	font-size: 20px;
	font-weight: 300;
	color: #ffffff;
	text-transform: uppercase;
	padding: 0;
	margin: 0;
}
.resultTime {
	font-size: 32px;
	font-weight: 900;
	color: #ff6800;
	padding: 0;
	margin: 0 0 5px;
}
.resultEvent {
	font-size: 16px;
	line-height: 1.3;
}
.resultLink {
	text-decoration: none;
    display: inline;
    background-position: center;
    background-size: 15px;
    background-repeat: no-repeat;
	background-image: url('../../assets/images/verified_badge.png');
	padding: 10px 15px;
}
.schoolContainer {
	margin-top: 50px;
	display: flex;
	gap: 25px;
	justify-content: center;
}
.schoolContainer img {
	width: 85px;
}
.schoolDetail {
	align-self: center;
}
.schoolDetail h2 {
	background-color: transparent;
	text-align: left;
	font-weight: 700;
	font-size: 20px;
	margin: 0 0 5px;
	padding: 0;
}
.profileImgContainer {
	/*background: -moz-linear-gradient(top, rgba(14, 19, 33, 0) 0%, rgba(14, 19, 33, 1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(14, 19, 33, 1)), color-stop(100%, rgba(14, 19, 33, 0)));
    background: -webkit-linear-gradient(top, rgba(14, 19, 33, 0) 0%, rgba(14, 19, 33, 1) 100%);
    background: -o-linear-gradient(top, rgba(14, 19, 33, 0) 0%, rgba(14, 19, 33, 1) 100%);
    background: -ms-linear-gradient(top, rgba(14, 19, 33, 0) 0%, rgba(14, 19, 33, 1) 100%);
    background: linear-gradient(to bottom, rgba(14, 19, 33, 0) 0%, rgba(14, 19, 33, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );*/
}
.profileImg {
	position: relative;
	max-width: 285px;
	z-index: -1;
}

.diagonal {
	margin: 0;
	display: block;
	position: absolute;
	width: 620px;
	height: 400px;
	top: 70px;
	left: 0;
	z-index: 1;
	background: #ffffff;
	box-sizing: border-box;
	/* box-sizing: content-box; */
	/* clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%); */
	clip-path: polygon(calc(0%) calc(0%), calc(100%) calc(0%), calc(85%) calc(100%), calc(0%) calc(100%));
	/* clip-path: polygon(calc(400px / 4 + 5px) 0%, calc(400px - 5px) 0%, calc(400px* 0.75 - 5px) 100%, calc(400px* 0 + 5px) 100%); */
	/* outline: 5px solid blue; */
	/* overflow: visible; */
}

@media screen and (max-width: 900px) {
	.wrapper {
		width: 100%;
		marging-top: 125px;
	}
	.result {
		width: 100%;
		text-align: center;
	}
	.mobileNav {
		display: block;
	}
}

@media screen and (max-width: 745px) {
	.homeContainer {
		flex-wrap: nowrap;
		flex-direction: column;
	}
	.profileImgContainer {
		margin: 0 auto -75px;
	}
}

@media screen and (max-width: 475px) {
	h1, .h1 {
		font-size: 32px;
	}
	.profileImg {
		max-width: 200px;
	}
	.schoolContainer {
		flex-direction: column;
	}
	.schoolContainer img {
		margin: 0 auto;
	}
	.schoolDetail {
		text-align: center;
	}
}

@media (max-width: 800px) {
  .hamburger {
    display: flex;
    z-index: 9999;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--background);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 100px 32px 32px;
    gap: 32px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .nav-btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-list {
    gap: 20px;
  }
}
