﻿@import url('text-style.css');
@import url('alignment.css');

body, html { margin:0; }
html { height:100%; width:100%; }
body { padding-top:1in; display:flex; flex-direction:column; width:100%; }
#alerts,
#internal-main { flex-grow:1; flex-shrink:0; }
#internal-main { min-height:4in; }
.layout { width:14in; display:flex; height:inherit; align-items:center; justify-content:space-between; margin:0 auto; }
.button { display:inline-flex; background:#012a4a; color:#ffffff; text-decoration:none; text-transform:uppercase; font-weight:bold; padding:1em 2em; transition:background-color 0.2s; align-items:center; justify-content:center; }
.button span { display:block; }
.button:hover { background:#025484; }
.button:active { box-shadow:0 1px 1px 1px rgba(0,0,0,0.15) inset; }
.button:active span { margin-top:1px; margin-bottom:-1px; }
.subtitle { font-size:120%; text-transform:uppercase; color:#ffffff; text-align:center; }

#masthead { position:fixed; left:0; right:0; top:0; height:1in; background:#f7f4f0; z-index:1000; }
#masthead-logo { display:block; height:80%; }
#masthead-logo-image { display:block; height:100%; }
#masthead-phone { color:#585871; font-weight:bold; margin-right:0.25in; }
#masthead-nav { display:block; margin-left:auto; margin-right:0.25in; }
#masthead-nav-root { display:flex; justify-content:space-around; align-items:center; list-style-type:none; margin:0; padding:0; gap:0.1em; }
#masthead-nav-root > li { display:block; margin:0; padding:0; }
#masthead-nav-root > li > a { display:flex; align-items:center; justify-content:space-around; color:#585871; text-decoration:none; text-transform:uppercase; font-weight:bold; padding:0.225em 0.8em; transition:background-color 0.2s, color 0.2s; }
#masthead-nav-root > li > a:hover { background:#ffffff; color:#1a294a; }

#promo { display:block; background:#666666 center no-repeat; background-size:cover; aspect-ratio:1920/770; }
#promo-layout { flex-direction:column; height:100%; justify-content:center; gap:1em; }
#promo * { color:#ffffff; }
#promo h1 { margin:0 auto; text-transform:uppercase; text-shadow:0 0 1em #000000; background:#000000; padding:0.5em 2em; }
#promo p { text-shadow:0 0 1em #000000; background:#000000; padding:0.5em 2em; }
#promo p:last-child { padding:0; background:none; margin-top:0; }
/*
#promo h1 img { display:block; height:100%; }
*/

#intro { padding:0.5in; }
#intro-layout { align-items:flex-start; justify-content:center; gap:5%; }
#intro-content { width:35%; }
#intro-content h1 { font-size:200%; }
#intro-video { aspect-ratio:885/526; aspect-ratio:16/9; width:35%; background:url('../img/layout/video.placeholder.jpg') center no-repeat; background-size:cover; }
#intro-video > video { /* width:100%; height:100%; */ position:absolute; left:0; right:0; top:0; bottom:0; }
#intro-content .button { width:48%; display:flex; }
#intro-content p:last-child { display:flex; justify-content:space-between; align-items:flex-start; }

#features { background:#f5f5f5; padding:0.5in; }
#features-layout { justify-content:center; align-items:flex-start; gap:5%; }
#features-content { width:30%; }
#features-content .button { width:48%; }
#features-content p:last-child { margin-top:3em; margin-bottom:0; }
#features-links { width:50%; display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; margin:-0.25in 0; }
#features-links a { display:block; text-decoration:none; color:inherit; text-align:center; width:45%; background:rgba(0,0,0,0); transition:background-color 0.2s; border-radius:5%; margin-bottom:5%; padding:5% 0; }
#features-links a:hover { background:rgba(0,0,0,0.15); }
#features-links img, #features-links strong, #features-links p { display:block; margin:0 auto; }
#features-links strong { font-size:120%; color:#1a294a; }
#features-links img { width:20%; }
#features-links p { width:80%; }
#features-content h1 { border-bottom:0.1em #0880f8 solid; width:auto; margin-right:auto; padding-bottom:0.75em; margin-bottom:0.75em; }

#portfolio { padding:0.5in; }
#portfolio h1 { width:auto; margin:0 auto; border-bottom:0.1em #0880f8 solid; padding-bottom:0.75em; margin-bottom:0.75em; }
#portfolio-layout { flex-direction:column; align-items:center; }
#call-today { font-family:'Lumios Marker'; color:#ffffff; font-size:300%; background:#1a294a; padding:0.25em 1em; }
#call-today .button { padding:0.25em 0.5em 0.2em; margin-left:1em; position:relative; top:-0.25em; font-size:50%; padding-left:1em; padding-right:1em; }
#call-today .button i { margin-right:1em; }

#main-footer { background:#f7f4f0; padding:1em 0; box-sizing:border-box; }
#main-footer-layout { justify-content:space-between; gap:2em; height:6em; }
#footer-logo { height:80%; display:block; }
#footer-logo-image { display:block; height:100%; width:auto; }
#footer-address { display:flex; justify-content:space-around; align-items:center; width:80%; font-weight:bold; flex-wrap:wrap; }
#footer-address span { display:block; color:#585871; }
#footer-address a { color:#585871; text-decoration:none; }
#footer-address a:hover { text-decoration:underline; }
#footer-address div { width:50%; margin-bottom:0; }
#footer-address div:nth-child(3),
#footer-address div:nth-child(4) { margin-bottom:0; }
#footer-nav { background:#0d2749; padding:2em; }
#footer-nav-layout { justify-content:center; }
#footer-nav-root,
#footer-nav-root li,
#footer-nav-root a { display:flex; list-style-type:none; margin:0; padding:0; align-items:center; justify-content:center; color:#ffffff; text-decoration:none; font-weight:bold; }
#footer-nav-root a { padding:1em 2em; }
#copyright { background:#f7f4f0; color:#585871; padding:1em 0; }

#mobile-nav { display:none; height:100%; margin-left:auto; margin-right:0; gap:0.1in; z-index:1001; }
#mobile-nav > a { aspect-ratio:1/1; display:flex; align-items:center; justify-content:space-around; font-size:250%; color:#585871; text-decoration:none; text-align:center; }
#mobile-nav > a:hover, #mobile-nav > a:active, .mobile-nav-expanded #mobile-nav-toggle { background:#585871; color:#f7f4f0; }
#mobile-nav > a > i { display:block; line-height:1; }
#mobile-nav-root { display:flex; align-items:stretch; list-style-type:none; flex-direction:column; position:fixed; z-index:-1; right:-100%; top:1in; bottom:0; transition:right 0.5s; width:auto; overflow:auto; background:#585871; margin:0; padding:0; box-shadow:0 0 0.5in 0.1in rgba(0,0,0,0.5); }
#mobile-nav-root > li { display:block; margin:0; padding:0; flex:1; }
#mobile-nav-root a { display:flex; align-items:center; justify-content:flex-start; text-decoration:none; color:#f7f4f0; font-weight:bold; height:100%; font-variant:small-caps; padding:0 0.25in; font-size:3vh; font-size:max(0.15in, 3vh); border-bottom:0.1em #ffffff solid; }
#mobile-nav-root a:hover { background:#000000; }
#mobile-nav-root > li:last-child a { border-bottom:none; }
#mobile-nav-shroud { display:none; position:fixed; left:0; right:0; top:0; bottom:0; background:rgba(0,0,0,0.001); z-index:-2; }

#main-header { aspect-ratio:2500/605; background:url('../img/layout/main-header.bkg.jpg') center no-repeat; background-size:cover; }
#main-header-layout { height:100%; }
#main-header h1 { color:#ffffff; text-shadow:0 0 1em #000000; font-family:'Lumios Marker'; font-size:5vh; font-size:max(5vw, 0.4in); }

#internal-main { padding-top:0.5in; padding-bottom:0.5in; }
#internal-main-layout { justify-content:stretch; }
#internal-content { justify-self:stretch; flex:1; }
#internal-content + .photo-strip.stack-right { justify-self:stretch; flex:0.5; max-width:4in; }
#internal-content + .photo-strip.stack-right:empty { display:none; }

@media (max-width:15in) {
	.layout { width:auto; margin-left:0.5in; margin-right:0.5in; }
	
	#main-footer-layout { flex-wrap:wrap; justify-content:space-between; height:auto; }
	#footer-logo { height:3em; }
	#footer-address { width:100%; justify-content:space-between; align-items:flex-start; }
	#footer-address div { width:25%; }
	#footer-address div:last-child { width:fit-content; }
}

@media (max-width:12.5in) {
	#intro-content p:last-child { flex-direction:column; align-items:center; }
	#intro-content .button { margin-bottom:0.25in; width:80%; }
	#call-today { text-align:center; }
	#main-footer { height:auto; padding:0.25in; }
	#footer-address { flex-direction:column; width:auto; }
	#footer-logo { height:1in; }
	/*
	#promo h1 { width:5.75in; text-align:center; }
	#promo p { width:5.75in; text-align:center; line-height:1; margin-top:0.25in; }
	*/
	#masthead-nav, #masthead-phone, #masthead-estimate { display:none; }
	#masthead-layout { margin-right:0; margin-left:0.25in; }

	#mobile-nav { display:flex; }
	.mobile-nav-expanded #mobile-nav-root { right:0; }
	.mobile-nav-expanded #mobile-nav-shroud { display:block; }
	#mobile-nav-root { height:calc(100vh - 1in); }
	
	#main-footer-layout,
	#footer-address { flex-direction:column; justify-content:center; align-items:center; gap:1em; }
	#main-footer-layout { margin-left:0; margin-right:0; }
	#main-footer-layout > * { width:50%; min-width:3in; margin:0 auto; text-align:center; }
	#footer-address div { width:100%; text-align:center; }
}

@media (max-width:10in) {
	#intro-layout { flex-direction:column; }
	#intro-content { width:100%; }
	#intro-video { width:100%; margin-bottom:0.5in; }
	#intro, #features, #portfolio { padding-left:0; padding-right:0; }
	#features-layout { flex-direction:column; }
	#features-content { width:100%; }
	#features-content p:last-child { text-align:center; margin-bottom:0.5in; }
	#features-links { width:100%; justify-content:center;}
	#masthead { height:0.75in; }
	body { padding-top:0.75in; }

	#mobile-nav-root { top:0.75in; }
	#mobile-nav-root { height:calc(100vh - 0.75in); }
	#footer-nav-root { flex-direction:column; }
	#copyright-layout { justify-content:center; text-align:center; }
}

@media (max-width:7in) {
	/*
	#promo h1 { width:unset; max-width:5.75in; }
	#promo p { width:unset; max-width:5.75in; font-size:400%; }
	*/
	#masthead { height:0.5in; }
	body { padding-top:0.5in; }
	#mobile-nav-root { top:0.5in; }
	#mobile-nav-root { height:calc(100vh - 0.5in); }
	/*
	#promo h1 { font-size:80%; }
	#promo p { font-size:200%; }
	*/
	#features-content h1 { font-size:200%; }
	#features-links a { width:90%; }
	#masthead-layout { margin-left:0.1in; margin-right:0in; }
}

@media (max-width:5.5in) {
	#main-footer-layout { flex-direction:column; }
/*
	#footer-address span:first-child { display:none; }
*/
}




	#services { background:#0d2749; padding:2em; }
	#services h1 { color:#ffffff; text-align:center; }
	#services h2 { line-height:1; }
	#services-layout { justify-content:space-between; gap:2em; }
	#services-layout > div { display:flex; background:#ffffff; margin:2em 0; }
	#services-layout > div > div { margin:1em 2em; }
	#services-layout img { display:block; margin:0; }
	#services .button { background-color:#ffffff; color:#0d2749; }
	#services .button:hover { background-color:#f7f4f0; }
	
	@media (max-width:12.5in) {
		#services-layout { flex-direction:column; margin:2em auto; }
		#services-layout > div { width:60%; min-width:3in; margin:0 auto; }
		#services-layout > div:last-child { flex-direction:row-reverse; }
		.carousel-slide-layout { margin-top:10%; }
		.carousel-slide-layout > * { min-width:3in; margin-left:auto; margin-right:auto; text-align:center; }
		.carousel-slide-layout h1 { font-size:150%; }
	}
	
	@media (max-width:10in) {
		#services-layout > div { flex-direction:column !important; }
		#services-layout * { text-align:center; }
		#footer-logo { margin:0 auto; height:auto; }
		#footer-logo-image { width:100%; }
	}
	
	@media (max-width:7in) {
		.carousel-slide-layout { margin-top:5%; }
		.carousel-slide-layout > * { margin:0 auto; }
		.carousel-slide-layout p { margin:1em auto; }
		#promo { aspect-ratio:4/3; }
	}