/* CSS Document */
/*
This applies only to index.html to style the background, hero text, boxes, and about us.
It also handles responsive styling based on screen width.
Rules written here will overwrite rules in main.css
*/
h1 {
	font-size: 100%;
}

#indexPageContent {
	position: relative;
	width: inherit;
	background: transparent;
	border: solid;
	border-color:#000;
	border-width: 0px;
	padding: 0;
	top: 0px;
}

#Title {
	/* Add new column to put socials in */
	grid-template-columns: 65px minmax(0,.7fr) minmax(0,.3fr);
}

#SiteTitle2 {
	/* Keep subtitle anchored below title */
	grid-column:2;
	grid-row:2;
}

.socials {
	display: flex;
	flex-direction:row;
	flex-wrap:nowrap;
	/* 1rem is the default font-size of the page */
	gap:.25rem;
	position:absolute;
	right:15px;
	text-decoration:underline;
}

.socials img {
	height: 20px;
	width: 30px;
	object-fit:contain;
}

.socials a {
	/* Keep phone number from wrapping */
	text-wrap: nowrap;
}

.inTitle {
	/* lock this in the bottom right cell of the grid */
	grid-column:3;
	grid-row:2;
}

.inNav {
	/* hide this until hamburger menu appears */
	display:none;
}

/*Background image*/
.backgroundContainer {
	width: 100%;
	height: 100vw;
	background-color: white;
	background: linear-gradient(
			to bottom, /*From top to bottom*/
			rgba(255,255,255, .65) 0%, /*Put white layer over full image at 65% opacity*/
			rgba(255, 255, 255, .75) 25%, /*Start gradient*/
			rgba(255, 255, 255, 1) 30%, /*Reach full opacity*/
			white 100%), url("../images/temp-background2.jpg");
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: center 150px;
	position: relative;
}
/*Upper section*/
.upperInfo { /*This holds the mantra and the membership button*/
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	margin: auto;
	min-height: 10rem;
	height: auto;
}
		
/*Contains full mantra (heroTitle+heroText) and membership button, makes vertical space between each element even*/
.mantra {
	display: flex;
	flex-direction: column;
	max-width: 930px;
	margin: auto;
	min-height: 9rem;
	height: auto;
	justify-content: space-between;
	text-align: center;
}

/*Slogan text*/
#heroTitle p {
	font-size: 125%;
	font-weight: bold;
	color: #223c45;
	text-shadow: 1px 1px 4px white; /*White shadow increases contrast, makes this more readable on multicolored background*/
	padding-bottom: 5px;
}

/*Longer description of services*/
#heroText p {
	height: auto;
	font-size: 100%;
	/*font-weight: bold;*/
	color: #223c45;
	text-shadow: 1px 1px 4px white; /*White shadow increases contrast, makes this more readable on multicolored background*/
	margin-top: 15px;
}

#heroImage img{
	
}

#indexPagePane{
	/*This is an invisible pane that simply centers the content and acts as a parent.
	It was originally designed to handle the box-shadow, but that proved problematic.*/
	position:relative;/*relative allows it to be centered. Default of static won't work because child elements can't then be absolute.*/
	/*background-color:#FFFFFF;White*/
	/*box-shadow:5px 5px 7px 0px #222222;right 5px, down 5p, dither 7px, enlarge 0px, color:#222222*/
	margin:2px auto 0px auto;/*T R B L, Outside of white box. Centers content in browser.*/
	width: 100%;
	max-width:1280px;/*Usable inside space.*/
	justify-content: center;
	/*border:1px; put on elements instead.
	border-color:#000;*/
}

/*Info Blocks*/
/*The blocks are based on opendental.com/index.html*/
.flexBox1 {
	display: flex;
	width: 100%;
	justify-content:space-around;
	align-content: center;
	flex-wrap: wrap;
	margin: 10px;
	gap: 10px;
}

.flexBox1 > div{
	position:relative;
	display:flex;
	flex-direction:column;
	margin: auto;
	text-align: center;
	
}
.roundedBorder{
	background-color:#FFFFFF;
	border:1px solid #244743;
	border-radius:4px;
}

.subSection ul {
	list-style: none;
	margin-left: 15px;
	margin-bottom: 7px;
}

.subSection li {
	margin-top: 6px;
	margin-left: 10px;
	line-height: 14pt;
}

.subSection h1 {
	margin-left: 15px;
}

.subSection p {
	margin: 0 15px 7px 15px;
}

.subSection #protocol{
	list-style: circle;
}

.subSection img {
	display: block;
	border: 1px solid #000;
	border-radius: 4px;
	margin: 7px auto;
	width: 85%;
}

/*Hero section START*/
#flexBoxHero {
	display:flex;
	flex-direction:row;
	flex-wrap:nowrap;
	justify-content: center;
	max-width:1280px;
	width:80%;
	margin-top:16px;
}
#heroTextAndButton {
	margin:auto 16px;
	max-width:515px;
}
#heroTextAndButton .button {
	background-color:inherit;
}
#heroImage img {
	margin: auto;
	min-width:275px;
	max-width: 450px;
	width: 100%;
	aspect-ratio: 450/330;
}
/*Hero section END*/

/*Banner section START*/
#banner {
	width:calc(80% - 32px);
	background-color:white;
	border-radius:8px;
	border: 2px solid #cc0000;
	margin:auto;
	padding:16px;
}
#banner h2 {
	margin-bottom:8px;
	color:#cc0000;
}
#banner p {
	font-size:105%;
}
/*Banner section END*/

/*Metrics section START*/
#metrics {
	border-top: 1px solid #dfdfdf;
	border-top-left-radius:0px;
	border-top-right-radius:0px;
	border-bottom-left-radius:4px;
	border-bottom-right-radius:4px;
	width: 80%;
	margin: 16px auto;
	display: flex;
	flex-direction:row;
	justify-content:center;
	background:rgba(255,255,255,.65);
	padding:10px 0px;
}
.metric {
	position:relative;
	text-align:center;
	margin:0 auto;
	height:auto;
}
.metricCount {
	position:relative;
	font-size:125%;
	font-weight:bold;
	color:#263959;
}
.metricName {
	position:relative;
	color:#6c6c6c;
	bottom:0px;
}
/*Metrics section END*/

/*WhySBP section START*/
#WhySBP {
	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	justify-content:center;
	gap:16px;
}
.whyInfoBlock {
	border: 1px solid #f5f5f5;
	border-radius: 8px;
	background-color:white;
	padding:16px;
	max-width:300px;
	margin:8px 0px;
}
#WhySBP h2 {
	margin-bottom:8px;
}
/*WhySBP section END*/

/*imageCard START*/
.imageCard {
	container-type: inline-size;
	position:relative;
	max-width:400px;
	margin:auto;
	width:100%;
	height:auto;
	img {
		width:100%;
		object-fit:cover;
		aspect-ratio:400/266;
	}
	@container (width > 49vw) {
		height:450px;
		max-width:400px;
		img {
			height:450px;
		}
	}
}

.cardText {
	position:absolute;
	inset:auto;
	bottom:0px;
	left:0;
	width:100%;
	padding:7px;
	box-sizing:border-box;
	background-color:rgb(0,0,0,.6);
	color:white;
	text-align:left;

	@container (width > 49vw) {
		bottom:0;
	}
}

.cardText h4 {
    padding:7px 0;
	color:white;
	
	@container (width > 49vw) {
		padding:7px;
	}
}

.cardText p {
	margin:0;
}

/*imageCard END*/

@media screen and (max-width:850px) {
	#flexBoxHero {
		flex-wrap:wrap;
		max-width:450px;
	}
	#heroTextAndButton {
		margin:auto 0px;
	}
	#heroTextAndButton > p, h2 {
		padding: 0;
	}
	#heroTextAndButton .button {
		display:block;
		margin:auto;
	}
}

@media screen and (max-width: 768px) {
	#Title {
		/* Go back to template from main.css */
		grid-template-columns: 65px 1fr;
	}
	.inTitle {
		display:none;
	}
	.inNav {
		display:flex;
		position:absolute;
		/* height 70% + top 15% = bottom is 15% */
		height:70%;
		top:15%;
	}
	.inNav a {
		color:white;
	}
}

/*Media Queries*/
@media screen and (max-width: 730px) {

}

@media screen and (max-width: 600px) {
	.indexContentBlock {
		height: auto;
	}
}

@media screen and (max-width: 505px) {
	.AboutUsProfile img {
		max-width: 110px;
		max-height: 144px;
		width: 100%;
		height: auto;
		aspect-ratio: 110 / 144;
	}
}
		
/*This is what most phones will see*/
@media screen and (max-width: 445px) {
	
}