:root {
	--blue_1_color : #6d93a0;
	--blue_2_color : #4c6a74;
	--blue_3_color : #49646d;
	
	--yellow_color : #F9DC7F;

	--white_color : #f5f2e1;
	--lightgray_color : #363738;
	--darkgray_color : #282829;
	--black_color : #1f2020;

	--success_color : #74F083;
	--error_color : #F97676;
}

@font-face {
    font-family: 'poppinsbold';
    src: url('../fonts/poppins-bold-webfont.woff2') format('woff2'),
         url('../fonts/poppins-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'georgiaregular';
    font-style: normal;
    font-weight: normal;
    src: local('Georgia Regular'), url('../fonts/georgia.woff') format('woff');
}

html { scroll-behavior: smooth; }
body {
	position: relative;
	background-color: var(--blue_3_color);
	color: var(--white_color);
	font-family: verdana, sans-serif;
	overflow-x: hidden;
	width: 100%;
}

h1, h2, h3, h4, p { max-width: Min(90%, 590px); }
h1, h2, h3, h4, a, button { font-family: 'poppinsbold'; }
h1 { font-size: clamp(80px, 7.5vw, 120px); line-height: 0.9; text-transform: uppercase; color: var(--yellow_color); }
h2 { font-size: clamp(28px, 7.5vw, 38px); }
h3 { font-size: clamp(20px, 3vw, 24px); }
h4 { font-size: clamp(16px, 3vw, 20px); line-height: 1.4; letter-spacing: .5px; }
p { font-size: clamp(16px, 2.3vw, 20px); line-height: 1.3; }
img { pointer-events: none; user-select: none; }

button, #landing_header a[href="#signup_section"], a[id="bookTime"] { 
	cursor: pointer;
	text-decoration: none;
	background-color: transparent;
	color: var(--white_color);
	border: var(--white_color) 2.5px solid;
	padding: 10px 30px;
	font-size: clamp(16px, 2.3vw, 20px);
	border-radius: 15px;
	transition: border-color 300ms;
}

button:hover, #landing_header a[href="#signup_section"]:hover, a[id="bookTime"]:hover { 
	border-color: var(--success_color);
	transition: border-color 300ms;
}

.content_container {
	width: 85vw;
	max-width: 1200px;
	box-sizing: border-box;
	margin-left: auto;
    margin-right: auto;
}

.flex { display: flex; }
.wrap { flex-wrap: wrap; }

section { margin-bottom: 80px; }
section p:first-of-type:not(.resource_item p) { margin-bottom: 40px; }

section h2 { 
	color: var(--yellow_color);
	text-transform: uppercase;
	margin-bottom: 15px;
}

.arrow {
	display: block;
	width: 24px;
	height: 24px;
	border-right: 6px solid var(--yellow_color);
	border-bottom: 6px solid var(--yellow_color);
	border-radius: 6px;
	transform: rotate(45deg);
	cursor: pointer;
}

.arrow.up    { transform: rotate(-135deg); }
.arrow.down  { transform: rotate(45deg); }
.arrow.left  { transform: rotate(135deg); }
.arrow.right { transform: rotate(-45deg); }

/* TOP NAVIGATION */
#top_nav {
	position: fixed;
	z-index: 10;
	top: 10px;
	height: 50px;
	left: 50%;
    transform: translateX(-50%);
	box-sizing: border-box;
}

#top_nav button, #top_nav a {
	border: none;
	text-decoration: none;
	cursor: pointer;
	color: inherit;
}

#top_nav #focused {
	display: flex;
	align-items: center;
	padding: 7.5px 30px;
	border-radius: 15px;
	background-color: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	color: var(--black_color);
}

#top_nav #nav_options {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 50px;
}

#top_nav #unfocused {
	margin-left: auto;
	width: Min(25%, 200px);
	margin-top: 20px;
	padding: 7.5px 30px;
	border-radius: 15px;
	background-color: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	color: var(--black_color);
}

#top_nav #unfocused div:first-of-type { margin-top: 20px; }
#top_nav #unfocused div { padding-bottom: 20px; }

#top_nav #unfocused h4 { color: var(--yellow_color); line-height: 2; }

#top_nav #unfocused a { 
	display: block; 
	text-decoration: none; 
	color: var(--white_color);
	font-family: verdana, sans-serif;
	line-height: 2;
}

#top_nav #unfocused a:hover { text-decoration: underline; }

.hidden {
    display: none;
}

.show {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* LANDING PAGE HEADER */
@media (min-aspect-ratio: 16/10) {
    #landing_header img {
        width: 110%;
        height: auto;
    }
}

#landing_header {
	position: relative;
	width: 100%;
	height: 100vh;
	background-color: rgba(89, 123, 134, 0.4);
	overflow: hidden;
}

#landing_header img {
    position: absolute;
    top: 0;
    left: 50%;
    height: 110%;
    width: 100%;
    object-fit: cover;
    z-index: -1;
    transform: translateX(-50%) scale(1.1);
    transform-origin: top center;
    filter: contrast(75%);
}

#landing_wrapper { 
	position: absolute;
	bottom: 30vh;
	left: 50%;
    transform: translateX(-50%);
}

#landing_header h4 { line-height: 1.3; }
#landing_header h1 { line-height: 0.95; }
#landing_header h3 { line-height: 1.5; margin-bottom: 30px; }
#landing_header button:first-of-type { margin-right: 20px; }

#landing_header > a {
	position: absolute;
	display: block;
	bottom: 10vh;
	left: 50%;
	transform: translateX(-50%) rotate(45deg) scale(1);
	transition: transform 300ms;
}

#landing_header a:hover {
	transform: translateX(-50%) rotate(45deg) scale(1.2);
	transition: transform 300ms;
}

/* OUR MISSION SECTION */
#mission_section { 
	background-color: var(--darkgray_color);
	padding-top: 40px;
	padding-bottom: 80px;
}

/* RATES SECTION */
.rate_items {
    display: flex;
    justify-content: space-evenly;
    gap: 2rem;
}

#rate_section .flex div { min-width: 300px; max-width: Min(90%, 590px); }

#rate_section h4 { margin-bottom: 10px; }

#rate_section .flex { margin-top: 40px; }

/* REFERENCES SECTION */
#reference_section { margin-top: -50px; }

#ref_slider {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
}

#ref_slider .arrow.left  { transform: rotate(135deg); }
#ref_slider .arrow.right { transform: rotate(-45deg); }

#desktop_arrow_left { display: block; }
#mobile_arrow_left { display: none; }

#display_box { 
	position: relative; 
	background-color: var(--darkgray_color);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 70%;
	padding: 30px;
	border-radius: 20px;
	overflow: hidden;
	overflow-y: auto;
	height: 350px;
	transition: height 1000ms, padding 200ms;
}

#display_box .arrow {
  position: absolute;
  bottom: 15px;
  transform: scale(0.8);
}

#display_box .arrow.left {
  left: 25%;
}

#display_box .arrow.right {
  right: 25%;
}

#display_box h4 { 
	flex-grow: 1;
  	display: flex;
  	align-items: center; 
}

#display_box .flex p { margin-bottom: 0; }

#next_slider {
	background-color: var(--lightgray_color);
	position: relative;
	width: Min(50%, 300px);
	height: 20px;
	margin-left: auto;
	border-radius: 15px;
	overflow: hidden;
	margin-bottom: 20px;
}

#progress_bar {
  background-color: var(--yellow_color);
  position: absolute;
  width: 0%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 15px;
  transition: width linear;
}

/* SIGN UP SECTION */
#signup_section { 
	background-color: var(--darkgray_color); 
	padding-top: 40px;
	padding-bottom: 80px;
}

#signup_info { padding-bottom: 60px; }
#signup_info h4 { margin-bottom: 5px; }
#signup_info p { margin-bottom: 30px; }
#signup_info a[id="bookTime"] { margin-bottom: 30px; }

.times_grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time_card {
    background-color: var(--darkgray_color);
    color: var(--white_color);
    font-family: verdana, sans-serif;
    font-size: clamp(16px, 2.3vw, 20px);
    line-height: 1.4;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--lightgray_color);
}

.time_card::before {
    content: attr(data-day);
    display: block;
    font-family: 'poppinsbold';
    font-size: clamp(16px, 3vw, 20px);
    line-height: 1.2;
    letter-spacing: .35px;
    color: var(--yellow_color);
    margin-bottom: 8px;
}

	@media only screen and (max-width: 767px) {
		.times_grid {
			grid-template-columns: repeat(2, 1fr);
		}
	}

	@media only screen and (max-width: 400px) {
		.times_grid {
			grid-template-columns: 1fr;
		}
	}

/* CONTACT FORM */
form {
    background-color: var(--lightgray_color);
    border-radius: 20px;
    width: 100%;
	padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form h3 {
    margin-bottom: 5px;
    color: var(--yellow_color);
}

form div {
    margin-bottom: 10px;
}

form .flex.wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

form .flex.wrap > div {
    flex: 1;
    min-width: 250px;
}

form input,
form select,
form textarea {
	font-family: verdana, sans-serif;
    background-color: var(--lightgray_color);
    border: 2px solid var(--white_color);
	box-sizing: border-box;
	display: block;
	width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: clamp(16px, 2vw, 18px);
    color: var(--white_color);
    outline: none;
    transition: border-color 300ms, background-color 300ms;
}

form input,
form select,
form textarea {
    border-color: var(--white_color);
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--yellow_color);
}

form input:valid:not(:placeholder-shown):not([type="date"]),
form select:valid,
form textarea:valid:not(:placeholder-shown) {
	background-color: var(--lightgray_color);
    border-color: var(--success_color);
}

form input:invalid:not(:placeholder-shown):not([type="date"]),
form textarea:invalid:not(:placeholder-shown) {
    border-color: var(--error_color);
}

form input[type="date"] {
    border-color: var(--white_color);
}

form input[type="date"]:focus {
    border-color: var(--yellow_color);
}

form input[type="date"]:required:valid:not(:placeholder-shown) {
    border-color: var(--success_color);
}

form button[type="submit"] {
    background-color: var(--lightgray_color);
    color: var(--error_color);
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
	margin-top: 20px;
}

form:has(:invalid) button[type="submit"] {
    background-color: var(--lightgray_color);
    cursor: not-allowed;
    opacity: 0.6;
}

form:has(:valid):not(:has(:invalid)) button[type="submit"] {
    background-color: var(--success_color);
    color: var(--lightgray_color);
    cursor: pointer;
    opacity: 1;
}

form input:-webkit-autofill,
form textarea:-webkit-autofill,
form select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--lightgray_color) inset !important;
    -webkit-text-fill-color: var(--white_color) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* FOOTER SECTION */
footer {
	position: relative;
	z-index: -1;
	margin-top: -200px;
	padding-top: 200px;
	padding-bottom: 100px;
	height: 30vh;
    background-color: var(--yellow_color);
	color: var(--darkgray_color);
	display: flex;
	align-items: flex-end;
}

footer .content_container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	line-height: 2;
}

footer .content_container h4 a[href^="tel"] {
  color: var(--darkgray_color) !important;
  text-decoration: none !important;
}

footer > * { line-height: 2; }

/* SVG  */
svg {
    display: block;
    width: 100vw;
    height: 200px;
    margin-top: -5px;
}

#mission_section, #signup_section { margin-bottom: 0; }

/* MOBILE */
@media only screen and (max-width: 767px) { 
    .content_container { width: 90vw; }
	#desktop_option { display: none; }

	.rate_items {
        flex-direction: column;
        align-items: flex-start;
    }

	#display_box { height: 480px; padding: 15px; width: calc(100% - 50px); }
	#display_box .flex { flex-wrap: wrap; }

	#ref_slider {
        display: flex;
        flex-direction: column;
        align-items: center;
		margin: 0;
	}

	#arrows-mobile { margin-top: 40px;}

	#ref_slider::after {
		content: "";
		display: block;
	}

	#ref_slider .arrows-mobile {
		display: flex;
		justify-content: space-between;
		width: 50%;
	}

	#next_slider { 
		width: 100%; 
		margin-top: 20px;
		margin-bottom: 50px;
		display: flex;
		flex-direction: column;
	}

	#top_nav #unfocused { width: calc(100% - 65px); }

	svg { height: 100px; }

	#rate_section .flex div { min-width: none; }

	#about_us_welcome .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    #about_us_welcome #desktop_image {
        display: none;
    }

    #about_us_welcome #mobile_image {
        display: block;
        width: 90%;
        height: auto;
        margin: 20px 0;
		border-radius: 20px;
        position: static !important;
        top: auto !important;
    }

    #about_us_welcome p {
        width: 100% !important;
    }

    .resources_section .resource_item {
        border: 2px solid var(--white_color);
    }
}

/* TINY MOBILE */
@media only screen and (max-width: 360px) { 
    h1 { font-size: clamp(60px, 7.5vw, 120px); }
    .content_container { width: 95vw; }
}
@media only screen and (max-width: 400px) {
	#display_box { height: auto; min-height: 500px; }
}

/* TABLET */
@media only screen and (min-width: 768px) and (max-width: 991px) { 
	#desktop_option { display: none; }
	#display_box { height: 400px; padding: 20px; width: 80%; }
	#display_box .flex { flex-wrap: wrap; }
	#next_slider { width: 100%; margin-top: 20px;}
	svg { height: 100px; }
}

/* SECONDARY PAGE HEADER */
@media (min-aspect-ratio: 16/10) {
    #secondary_header img {
        width: 110%;
        height: auto;
    }
}

#secondary_header {
	position: relative;
	width: 100%;
	height: Min(calc(45vh - 120px), 300px);
	background-color: rgba(89, 123, 134, 0.4);
	overflow: hidden;
}

#secondary_header img {
    position: absolute;
    top: 0;
    left: 50%;
    height: 110%;
    width: 100%;
    object-fit: cover;
    z-index: -1;
    transform: translateX(-50%) scale(1.1);
    transform-origin: top center;
    filter: contrast(75%);
}

#secondary_wrapper { 
	position: absolute;
	bottom: Min(40%, 40px);
	left: 50%;
    transform: translateX(-50%);
}

#secondary_header h4 { line-height: 1.3; }
#secondary_header h1 { line-height: 0.95; font-size: clamp(40px, 10vw, 90px); }
#secondary_header h3 { line-height: 1.5; margin-bottom: 30px; }
#secondary_header button:first-of-type { margin-right: 20px; }

#about_us_welcome .flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#desktop_image {
    display: block;
    position: sticky;
    top: 90px;
    width: 40%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

#mobile_image {
    display: none;
    position: static;
}

#about_us_welcome p {
    width: 55%;
}

/* RESOURCES PAGE */
.resources_section .link_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.resources_section .content_container:not(.link_container) {
    margin-bottom: 40px;
}

.resource_item {
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, border 0.3s;
    flex: 1 1 calc((100% - 6%) / 3);
    box-sizing: border-box;
    min-width: 300px;
    overflow: hidden;
    cursor: pointer;
}

.resources_section .resource_item:hover {
    border: 2px solid var(--white_color);
}

.resources_section .resource_item h3 {
    margin-bottom: 15px;
    font-size: clamp(20px, 3vw, 24px);
    color: var(--yellow_color);
}

.resources_section .resource_item p {
    font-size: clamp(16px, 2.3vw, 18px);
    line-height: 1.5;
    color: var(--white_color);
    margin-bottom: 10px;
}

.resources_section .resource_item a {
    color: var(--white_color);
    text-decoration: none;
}

.resource_item .item_button {
	display: inline-block;
	background-color: transparent;
	color: var(--white_color);
	border: var(--white_color) 2.5px solid;
	padding: 10px 20px;
	font-size: clamp(16px, 2.3vw, 20px);
	border-radius: 15px;
	transition: border-color 300ms;
    user-select: none;
}

    @media only screen and (max-width: 767px) {
        .resources_section .resource_item { min-width: 100%; }
    }

/* FAQ PAGE */
.faq_item {
   display: flex;
   flex-direction: row;
   align-items: flex-start;
   gap: 2rem;
   margin-bottom: 1.5rem;
}

.faq_item h4 {
    flex: 0 0 40%;
    margin-right: 10%;
    margin-bottom: 10px; 
    color: var(--yellow_color);
}

.faq_item p {
    flex: 1;
    margin: 0;
    margin-bottom: 50px;
}

    @media only screen and (max-width: 767px) {
        .faq_item {
            flex-direction: column;
            gap: 0.5rem;
        }
        .faq_item h4, 
        .faq_item p {
            flex: unset;
        }
    }
