:root {
	
	--font-family: "Montserrat", "Mulish", sans-serif;
	
	--base-size: 62.5%;				/* 62.5% of 16px (default browser font) = 10px, therefore 1rem = 10px, BUT allows user browser zoom to work */
	--font-size: 1.8rem;
	--line-height: 1.6;
	--font-weight: 300;
	
	--h1-size: 3rem;				/* size for h1 also sets root size for remaining headings */
	--h1-height: 1.6;				/* line spacing -- as above */
	--la-icon-size: 3rem;			/* line awesome icon size */
	--la-colour: #c0deff;			/* line awesome icon colour */
	
	--fade-style: fade-up;
	
	--max-width: 1170px; 			/* max of all sections and images etc. */
	--home-width: 100% !important;	/* override for home section */
	--mob-pad: 10px;				/* extra padding on portrait mobile devices */
		
	--bg-colour: white;				/* body background colour */
	--home-bg: #f7f6f0;				/* home background colour */
	--footer-bg: #4353ce; 			/* footer background colour */

	--bubble-colour: #c0deff; 		/* contrast colour for rounded edge box content */
	
	--para-colour: #1e1e1e; 		/* generic text colour */
	--heading-colour: #222222;		/* h1, h2, h3 etc. text colour */
	--heading-underline: #305f7e6e;	/* h1, h2, h3 etc. UNDERLINE colour */
    --foottxt-colour: #f7f6f0; 		/* footer text colour */
	--foottxt-size: 1.35rem;		/* footer text size */
	
	--a-colour: blue;				/* link & visited link colour */
	--a-hover: #39b54a;				/* hover over link colour */
	
}
		
html { 
  font-size: var(--base-size); 
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  line-height: var(--line-height); 
  color: var(--para-colour); 
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  font-style: normal;
}

html, body { 
  height: 100%;
}

html, div {
	scroll-margin-top: 0; 			/* Offsets all anchor jumps to accommodate the nav bar (if used) */
	scroll-behavior: smooth;
}

body { 
  font-family: var(--font-family);
  background: var(--bg-colour); 
  margin: 0 auto; 
  padding: 0; 
  font-size: var(--base-size);  	/* Best practice is to apply base font-size to the body so it inherits correctly */
}

.bodycontent { 						/* Wraps content below the head and above the footer */
	max-width: var(--max-width); 
	margin: 0 auto;
}

@media (max-width: 500px) { 		/* Allow extra margins on portrait mobile device screens */
	.bodycontent {
		padding: 0 var(--mob-pad);
	}
}

section { 
	min-height: 10rem; 
	padding: 6rem 0;
	overflow: hidden;
}

.row {
	width: 94%;
	margin: 0 auto 5rem;
	overflow: hidden;
}
	
*, *::before, *::after {
  box-sizing: border-box;
}

*:not(i) { font-family: var(--font-family); }

.las, .lab, .lar {
  font-family: "Line Awesome Free" !important;
  font-size: var(--la-icon-size);
  color: var(--la-colour);
}

span.icon {							/* Styles line awesome icons */
	display: block;
	text-align: left;
}

.keep-together {					/* Use with <span> to force no-wrap of white space */
  white-space: nowrap;
}

.centered {							/* Centre contents of any div */
	display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
	margin-left: auto;
	margin-right: auto;
}

/* ===================================================================
 *  Key section styles
 * ------------------------------------------------------------------- */

#home { 
  position: relative;
  height: 100%; 
  width: var(--home-width);
  background: var(--home-bg);
  min-height: 360px; 
  /* background-image: url("../images/hub-exterior.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; */
  padding: 0 0;
}

@media (max-height: 400px) {
#home .page-title {
    margin: 12vh auto 0 auto;
}
}

.at-symbol {
	font-size: 0.85em;
    position: relative;
    top: -8px;
    display: inline-block;
}

p, a {
	color: var(--para-colour);
	font-size: var(--font-size);	/* Set rem */
    margin: 0;
}

p {
	margin-bottom: 1.5rem;
}

footer { 							/* NB not a section so no # */
	padding-top: 4rem;
	padding-bottom: 5rem;
	overflow: hidden;
    background-image: linear-gradient(transparent, black), url(https://co-work.crosscrakecommunityhub.org/images/footerbackground.png);
    height: fit-content;
    min-height: 490px;
    background-size: cover;
    background-position: center top;
}

/* ===================================================================
 *  Flex box controls
 * ------------------------------------------------------------------- */

.flex-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem; 
    width: 100%;
	flex-wrap: wrap;
}

/* Equal columns by default (1 1 0%), customizable via --col-flex in HTML */
.flex-1,
.flex-2,
.flex-3 {
    flex: var(--col-flex, 1 1 0%);
    min-width: 0; /* Prevents long text or images from breaking equal widths */
	margin: 0;
}

#amenities .flex-container {
	align-items: stretch;
}

.about-features .flex-1,
.about-features .flex-2,
.about-features .flex-3 {
	flex: 0 0 calc(33.333% - 2.9rem);
	min-width: calc(33.333% - 2.9rem);
	}

footer .flex-1,
footer .flex-2,
footer .flex-3 {
	padding: 0 9rem 0 0;
	flex: 0 0 calc(33.333% - 1.25rem)
}

/* Responsive Fallback: About section drops to a single clean column below 900px */
@media (max-width: 900px) {
    .flex-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .flex-1, 
    .flex-2, 
    .flex-3 {
        flex: 1 1 100%;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    h2.left-header {
        text-align: center;
    }
}

/* Responsive Fallback: Drops down to a single clean column on mobile screens */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .flex-1, 
    .flex-2, 
    .flex-3 {
        flex: 1 1 100%;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    h2.left-header {
        text-align: center;
    }
}

/* Responsive Fallback: Footer drops down to single clean column on narrow screens */
@media (max-width: 900px) {
    .flex-container {
        flex-direction: column;
    }
    
	footer .flex-1,
	footer .flex-2,
	footer .flex-3  {
        flex: 1 1 100%;
        width: 100%;
        align-items: center;
        text-align: center;
		padding-right: 0rem;
    }

    h3.left-header {
        text-align: center;
    }
}	

/* Responsive Fallback: Drops down to a 2 column and 1 columns on tablet and mobile screens */
@media (max-width: 900px) {
  .about-features .flex-1,
  .about-features .flex-2,
  .about-features .flex-3 {
    flex: 1 1 calc(50% - 1.25rem - 20px);
	max-width: calc(100% - 1.25rem - 10px);
  }
}

/* Mobile: 1 column per row */
@media (max-width: 600px) {
  .about-features .flex-1,
  .about-features .flex-2,
  .about-features .flex-3 {
    flex: 1 1 100%;
  }
}

/* ===================================================================
 *  Generic styling - most common
 * ------------------------------------------------------------------- */

.wrapper, .overlay { /* disables clicks on background items when a modal is open */
  pointer-events: none;
}

a,
a:visited {
  color: var(--a-colour);	
  text-decoration: none;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

a:hover,
a:focus {
  color: var(--a-hover);
}

p, h1, h2, h3, h4, h5, h6 {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 2.4rem;
  color: var(--heading-colour);
}

h3, h4 {
  margin-bottom: 1.5rem;
}

h5, h6 {
  margin-bottom: 1.2rem;
}

h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-lineheight);
  letter-spacing: -.1rem;
}


h2 {
  font-size: calc(var(--h1-size) * 0.8);
  line-height: calc(var(--h1-height) * 0.8);
}

h3 {
  font-size: calc(var(--h1-size) * 0.63);
  line-height: calc(var(--h1-height) * 0.63);
}

h4 {
  font-size: calc(var(--h1-size) * 0.55);
  line-height: calc(var(--h1-height) * 0.55);
}

h5 {
  font-size: calc(var(--h1-size) * 0.45);
  line-height: calc(var(--h1-height) * 0.45);
  text-transform: uppercase;
  letter-spacing: .2rem;
}

h6 {
  font-size: calc(var(--h1-size) * 0.4);
  line-height: calc(var(--h1-height) * 0.4);
  text-transform: uppercase;
}

p b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

small {
  font-size: calc(var(--font-size) * 0.55);
  line-height: inherit;
}

hr {
  border: solid rgba(0, 0, 0, 0.1);
  border-width: 1px 0 0;
  clear: both;
  margin: 2.4rem 0 1.5rem;
  height: 0;
  width: 100%;
}

ol {
  list-style: decimal;
}

ul {
  list-style: disc;
}

li {
  display: list-item;
  margin-left: 3rem;
  margin-bottom: 3rem;
}

ul ul,
ul ol,
ol ol,
ol ul {
  margin: .6rem 0;
}

ol,
ul {
  margin-left: 1.7rem;
}

ul li {
  padding-left: .4rem;
}


ul.disc li {
  display: list-item;
  list-style: none;
  padding: 0 0 0 .8rem;
  position: relative;
}

ul.disc li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39b54a;
  position: absolute;
  left: -17px;
  top: 11px;
  vertical-align: middle;
}

/* Pre-loader styles */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #000;
  z-index: 100000;
  width: 0;
  animation: load 2s ease-out forwards;
}

@keyframes load {
  0% { width: 0; }
  70% { width: 80%; }
  100% { width: 100%; opacity: 0; }
}

/* End pre-loader */


/* ===================================================================
 *  Image handling and layout tools
 * ------------------------------------------------------------------- */
 
img {
  max-width: 100%;
  height: auto;
  display: block; /* Often recommended to remove the bottom whitespace of inline elements */
}

.inset {
	width: 94%;
}

.bubble {
	background-color: var(--bubble-colour);
    border-radius: 24px;
    padding: 40px;
}

@media (max-width: 500px) {
	.bubble {
		padding: 15px;
	}
}

/* ===================================================================
 *  Section specific headings
 * ------------------------------------------------------------------- */

section:not(#home) h1 {
  position: relative;
  text-align: center;
  padding-bottom: 5.4rem;
  margin: auto;
}

section:not(#home) h1::before {
  position: absolute;
  display: block;
  content: "";
  height: 2px;
  width: 310px;
  background-color: var(--heading-underline);
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
}

#about h2 {
	margin-top: 0;
}

@media (max-width: 720px) {
	#about p {
		font-size: calc(var(--font-size) * 0.96);
	}
	#about .number-list p {
		font-size: var(--font-size);
	}
}

/* ===================================================================
 *  Header (navigation)
 * ------------------------------------------------------------------- */
 
/* Navigation (mini nav) */

.nav-is-visible #header-nav-wrap {
  display: block;
  opacity: 1;
  visibility: visible;
  background: none;
}

.header-menu-toggle {
  display: none;
  font-size: var(--font-size);
  top: 20px;
  right: 20px;
  left: auto;
  bottom: auto;
  z-index: 9999;
  height: 42px;
  width: 42px;
  line-height: 42px;
  text-transform: uppercase;
  letter-spacing: .2rem;
  color: rgba(255, 255, 255, 0.5);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.header-menu-toggle:hover,
.header-menu-toggle:focus {
  color: #FFFFFF;
}

.header-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-top: -1px;
  position: absolute;
  left: 9px;
  top: 50%;
  right: auto;
  bottom: auto;
  background-color: white;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  font: 0/0 a;
  text-shadow: none;
  color: transparent;
}

.header-menu-toggle span::before,
.header-menu-toggle span::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: inherit;
  position: absolute;
  left: 0;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.header-menu-toggle span::before {
  top: -9px;
}

.header-menu-toggle span::after {
  bottom: -9px;
}

.header-menu-toggle.is-clicked span {
  background-color: rgba(255, 255, 255, 0);
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

.header-menu-toggle.is-clicked span::before,
.header-menu-toggle.is-clicked span::after {
  background-color: white;
}

.header-menu-toggle.is-clicked span::before {
  top: 0;
  -webkit-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
}

.header-menu-toggle.is-clicked span::after {
  bottom: 0;
  -webkit-transform: rotate(225deg);
  -ms-transform: rotate(225deg);
  transform: rotate(225deg);
}
 
/* Navigation (header-main-nav) */

header {
  position: relative;
  margin-top: 10vh;
  width: auto; /* important */
  display: flex;
  justify-content: center;
  height: 74px;
  background-color: unset;
  z-index: 2;
}

#header-nav-wrap {
	position: absolute;
	top: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
	padding: 0 40px;
}

#header-nav-wrap {
    border-top: 1px solid rgb(255, 255, 255);
    border-bottom: 1px solid rgb(255, 255, 255);
}

#header-nav-wrap .header-main-nav { /* Allow it to fit content */
  display: inline-block;
  list-style: none;
  height: 72px;
  margin: 0;
  padding: 0;
}

#header-nav-wrap .header-main-nav ul {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
    align-items: center;
    height: 100%; /* Match the header height */
	list-style: none;
}

#header-nav-wrap .header-main-nav li {
	display: inline-flex;
    align-items: center;
    height: 100%;
	margin: 0 3rem;
}

#header-nav-wrap .header-main-nav li a {
	display: flex;
    align-items: center;
	color: rgba(255, 255, 255, 0.45);
    height: 72px; /* Standard header height */
    line-height: 1; /* Reset line height when using flex centering */
    padding: 0 12px;
}

#header-nav-wrap .header-main-nav li a,
#header-nav-wrap .header-main-nav li a:visited {
  color: rgba(255, 255, 255, 0.45);
}

#header-nav-wrap .header-main-nav li a:hover,
#header-nav-wrap .header-main-nav li a:focus {
  color: #ffffff;
}

#header-nav-wrap .header-main-nav li.current a {
  color: #ffffff;
}

#header-nav-wrap .nav-button {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0; /* Prevent it from being squeezed out */
  float: none;
  height: 3.6rem;
  line-height: calc(3.6rem - .6rem);
  padding: 0 1.5rem;
  margin: 0;
}

@media (max-width: 990px) { 
	#header-nav-wrap .header-main-nav li {
		margin: 0 1.25rem;
	}
	.header-menu-toggle {
		top: 50vh;
	}
}

@media (max-width: 820px) { 
	#header-nav-wrap .header-main-nav a {
		  font-size: calc(var(--font-size) * 0.8);
	}
}

@media (max-width: 730px) { 
	.header-menu-toggle {
		display: block;
		position: absolute;
		top: 40vh;
		left: 50%;
		transform: translateX(-50%);
		right: auto;
		z-index: 9999;
	}

	header {
	  height: 260px;
	  top: 0;
	  right: 0;	
	  bottom: auto;
	  left: auto;
	  z-index: 501;
	}

	#header-nav-wrap {
		display: none;
		left: auto;
		bottom: auto;
		z-index: 9999;
		border-top: 0;
		border-bottom: 0;
	}
	
	#header-nav-wrap .header-main-nav {
		display: block;
		margin: 2rem;
		height: 25px;
	}
	
	#header-nav-wrap .header-main-nav ul {
		margin: 0;
		padding: 0;
	}
	
	#header-nav-wrap .header-main-nav li {
		display: block;
		margin: 0;
		padding: 0;
		margin-bottom: 15px;
	}
	
	#header-nav-wrap .header-main-nav li a {
		justify-content: center;
		text-align: center;
	}
	
	#header-nav-wrap .cta {
		height: 42px;
		line-height: calc(42px - .6rem);
		padding: 0 30px;
	}
	
}

@media (max-width: 600px) {
		#header-nav-wrap {
			margin-top: 5vh;
		}
}

/* ===================================================================
 *  Home
 * ------------------------------------------------------------------- */

/* only needed if video background and need a no-js browser option */
.no-js #home {
  background: #151515;
}

.home-content {
  width: 100%;
  height: 100%;
  z-index: 2;
  vertical-align: bottom;
}

.page-title {
	position: relative;
    display: flex;
	justify-content: center;
    background-color: unset;
    margin: 35vh auto 0 auto;
}

.page-title h1 {
  font-size: 10rem;
  letter-spacing: 1rem;
  font-weight: 700;
  line-height: 0.8;
  color: #ffffff;
  margin: 0;
}

.sub-title {
	position: relative;
    display: flex;
	justify-content: center;
    background-color: unset;
    margin: 1vh auto 0 auto;
}

.sub-title h2 {
  font-size: 6rem;
  text-align: center;
  letter-spacing: 0rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  margin: 0;
}

@media (max-width: 900px) {
	.page-title h1 {
		font-size: 7rem;
	}
	.sub-title h2 {
		font-size: 4rem;
	}
}

@media (max-width: 790px) {
    .page-title {
        margin: 20vh auto 0 auto;
    }
}

@media (max-width: 500px) {
	.page-title h1 {
	font-size: 7rem;
	}
	.sub-title h2 {
	font-size: 4rem;
	}
}

@media (max-width: 400px) {
	.page-title h1 {
	font-size: 4rem;
	}
	.sub-title h2 {
	font-size: 2rem;
	}
}

/* ===================================================================
 *  About section
 * ------------------------------------------------------------------- */
 
 /* Numbered list in about section */

.number-list p {
	counter-increment: para-counter;
    position: relative;
    padding-left: 3rem;
    text-align: left !important;
	width: 100%;
}

.number-list p::before {
    content: counter(para-counter);
    position: absolute;
    left: 0;
    top: -5px;
    font-size: calc(var(--font-size) * 1.5);
    font-weight: bold;
    color: currentColor;
    opacity: 0.5;
}

.number-list p:nth-of-type(1)::before {
	left: 2px !important; 
}

/* ===================================================================
 *  Amenities section
 * ------------------------------------------------------------------- */

.about-features {
	padding-bottom: 20px;
}

.feature {
	background-color: transparent;
    border: 2px solid var(--bubble-colour);
    border-radius:16px;
    padding: 24px;
    margin: 10px;											/* May need to add to show shading correctly */
    box-sizing: border-box;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px;
}

.feature h3 {
	text-align: left;
}

.feature p {
	font-size: calc(var(--font-size) * 0.8);
    line-height: 1.6;
    color: rgb(85, 85, 85);
	text-align: left;
}

.feature a {
	font-size: calc(var(--font-size) * 0.8);
}

/* ===================================================================
 *  FOOTER
 * ------------------------------------------------------------------- */

footer {
	background-color: var(--footer-bg);
}

footer p,
footer h4 {
	color: var(--foottxt-colour) !important;
}

footer,
footer p,
footer a {
	font-size: var(--foottxt-size);
}

footer a {
  color: white;
}

footer a:hover,
footer a:focus,
footer a:visited {
	color: var(--a-hover);
}
	
footer ul {
  list-style: none;
  margin: 0;
}

footer ul li {
  padding-left: 0;
}

.footer-bottom {
  margin-top: 1rem;
  text-align: center;
}

.footer-bottom .copyright span {
  display: inline-block;
}

.footer-bottom .copyright span::after {
  content: "|";
  display: inline-block;
  padding: 0 1rem 0 1.2rem;
  color: #444444;
}

.footer-bottom .copyright span:last-child::after {
  display: none;
}

@media only screen and (max-width: 1024px) {
  .footer-main .row {
    max-width: 850px;
  }
  .footer-info,
  .footer-contact,
  .footer-site-links {
    margin-bottom: 1.2rem;
  }
  .footer-subscribe {
    clear: both;
  }
}

@media only screen and (max-width: 768px) {
  .footer-main .row {
    max-width: 600px;
  }
  .footer-main p {
    text-align: center;
  }
  #go-top {
    bottom: 0;
    right: 0;
  }
  #go-top a,
  #go-top a:visited {
    border-radius: 5px 0 0 0;
  }
}

@media only screen and (max-width: 600px) {
  .footer-main .row {
    max-width: 480px;
  }
  .footer-main p {
    text-align: center;
  }
  .footer-bottom {
    padding-bottom: .6rem;
  }
  .footer-bottom .copyright span {
    display: inline-block;
  }
  .footer-bottom .copyright span::after {
    display: none;
  }
}

/* ===================================================================
 *  Video as background
 * ------------------------------------------------------------------- */

@keyframes videoFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes videoFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* 1. Apply the animations and layout to the parent element */
.twp-video-foreground {
    opacity: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Keeps the scaled video inside the parent bounds */
}

/* Triggered on play / loop reset */
.twp-video-foreground.is-playing {
    animation: videoFadeIn 1.5s ease-in-out forwards;
}

/* Triggered during synchronized tracking switch */
.twp-video-foreground.is-fading {
    animation: videoFadeOut 1.5s ease-in-out forwards;
}

/* 2. Target the inner video element specifically for sizing */
.twp-video-foreground video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps video responsive and filling the parent container */
}

.twp-video-background {
  /* This ensures the container fills the parent section */
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000; /* Fallback */
  z-index: 0; /* Keep it behind other section content */
}

.twp-video-foreground {
	position: absolute;
	z-index: 1000;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	padding-bottom: 55%;
	box-sizing: border-box;
}

.twp-video-foreground.is-playing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%); /* Center the video */
  z-index: 1;
}

.twp-video-layer { /* video overlay */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Layer stays above the video */
  pointer-events: none; /* Allows clicks to pass through to the video if needed */
  /* Vertical linear gradient: top (0% opacity) to bottom (30% opacity) */
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.twp-video-foreground video {
	position: absolute;
	top: 0;
	height: 100%;	/* Force full vertical screen height coverage */
	width: 100%;	/* Let the width scale proportionally without breaking the aspect ratio */
	object-fit: cover;	/* Keeps media filling the frame neatly without stretching distortion */
}


/* ===================================================================
 *  Share icons and text
 * ------------------------------------------------------------------- */
 
.share-text {
	justify-content: center;
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
}

.share-text svg {
	width: 24px;
	height: 24px;
	margin-right: 8px;
}

.social-share {
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	gap: 15%;
	margin: 20px auto 0 auto;
}

.share-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 90px;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: transform 0.3s ease;
	position: relative;
	padding: 0;
	margin: 0;
}

.share-button:hover {
	transform: scale(1.05);
}

.share-button:active {
	transform: scale(0.95);
}

.share-icon {
	height: 56px;
	margin-bottom: 8px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.share-icon img {
	width: 100%;
	height: 100%;
	transition: all 0.3s ease;
}

		
.share-button {
	background-color: #FFFFFF !Important;
	border-color: #FFFFFF !Important;
	color: #FFFFFF;
	outline: 0;
}

.share-button:hover .share-icon img {
	animation: wobble 0.8s ease infinite;
}

.share-name {
	font-size: 1rem;
	color: #555;
}

/* ===================================================================
 *  Buttons
 * ------------------------------------------------------------------- */

.button,
	button,
	input[type="submit"],
	input[type="reset"],
	input[type="button"] {
		display: inline-block;
		height: 4rem;
		line-height: 3.7rem;
		padding: 0 3rem;
		margin: 0.8rem .3rem 1.2rem 0;
		color: #222222;
		text-decoration: none;
		cursor: pointer;
		text-align: center;
		white-space: nowrap;
		border-radius: .5rem;
		-webkit-transition: all 0.3s ease-in-out;
		transition: all 0.3s ease-in-out;
		background-color: #c5c5c5;
		border: .3rem solid #c5c5c5;
}

.button:hover,
	button:hover,
	input[type="submit"]:hover,
	input[type="reset"]:hover,
	input[type="button"]:hover,
	.button:focus,
	button:focus,
	input[type="submit"]:focus,
	input[type="reset"]:focus,
	input[type="button"]:focus {
	  background-color: #b8b8b8;
	  border-color: #b8b8b8;
	  color: #000000;
	  outline: 0;
}

.button.button-primary,
	button.button-primary,
	input[type="submit"].button-primary,
	input[type="reset"].button-primary,
	input[type="button"].button-primary {
	  background-color: #39b54a;
	  border-color: #39b54a;
	  color: #FFFFFF;
}

.button.button-primary:hover,
	button.button-primary:hover,
	input[type="submit"].button-primary:hover,
	input[type="reset"].button-primary:hover,
	input[type="button"].button-primary:hover,
	.button.button-primary:focus,
	button.button-primary:focus,
	input[type="submit"].button-primary:focus,
	input[type="reset"].button-primary:focus,
	input[type="button"].button-primary:focus {
	  background: #309a3f;
	  border-color: #309a3f;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* ------------------------------------------------------------------- 
 * go to top
 * ------------------------------------------------------------------- */

#go-top {
  display: flex !important; /* Ensure it's not hidden by old styles */
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #000;
  border-radius: 20%;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: transform 0.2s ease;
  
  /* Reveal on scroll logic */
  opacity: 0;
  visibility: hidden;
  animation: fade-in linear both;
  animation-timeline: scroll();
  animation-range: 10vh 30vh;
}

#go-top a {
  color: #fff !important;
  font-size: 18px;
  line-height: 1;
}

#go-top:hover {
  transform: scale(1.1);
}

@keyframes fade-in {
  to { opacity: 1; visibility: visible; }
}

.fa-arrow-up::before {
	position:relative;
    content: "";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
	top: 2px;
    left: 1px;
    background-color: #ffffff; /* This controls the icon color */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.fa-arrow-up {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fa-arrow-up:hover {
	color: #FFFFFF;
	transform: translateY(-3px);
	transition: all 0.2s ease;
}
	
/* =================================================================== 
 * MISCELLANEOUS
 * ------------------------------------------------------------------- */
	
/** 
 * Pull quotes and block quotes
 * -----------
 * markup:
 *
 * <aside class="pull-quote">
 *		<blockquote>
 *			<p></p>
 *		</blockquote>
 *	</aside>
 *
 * --------------------------------------------------------------------- */

blockquote {
  margin: 3rem 0;
  padding-left: 5rem;
  position: relative;
}

blockquote:before {
  content: "\201C";
  font-size: var(--font-size);
  line-height: 0px;
  margin: 0;
  color: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 3.6rem;
  left: 0;
}

blockquote p {
  padding: 0;
  font-size: var(--font-size);
}

blockquote cite {
  display: block;
  font-size: calc(var(--font-size) * 0.8);
  font-style: normal;
  line-height: 1.615;
}

blockquote cite:before {
  content: "\2014 \0020";
}

blockquote cite a,
blockquote cite a:visited {
  color: #838383;
  border: none;
}

.pull-quote {
  position: relative;
  padding: 2.1rem 3rem 2.1rem 0px;
}

.pull-quote:before,
.pull-quote:after {
  height: 1em;
  position: absolute;
  font-size: calc(var(--font-size) * 4);
  color: rgba(0, 0, 0, 0.3);
}

.pull-quote:before {
  content: "\201C";
  top: -3.6rem;
  left: 0;
}

.pull-quote:after {
  content: '\201D';
  bottom: 3.6rem;
  right: 0;
}

.pull-quote blockquote {
  margin: 0;
}

.pull-quote blockquote:before {
  content: none;
}


/* ------------------------------------------------------------------- 
 * additional typo styles
 * ------------------------------------------------------------------- */

/* drop cap 
 * ----------------------------------------------- */

.drop-cap:first-letter {
  float: left;
  margin: 0;
  padding: 1.5rem .6rem 0 0;
  font-size: 8.4rem;
  line-height: 6rem;
  text-indent: 0;
  background: transparent;
  color: #151515;
}

/* line definition style 
 * ----------------------------------------------- */

.lining dt,
.lining dd {
  display: inline;
  margin: 0;
}

.lining dt+dt:before,
.lining dd+dt:before {
  content: "\A";
  white-space: pre;
}

.lining dd+dd:before {
  content: ", ";
}

.lining dd+dd:before {
  content: ", ";
}

.lining dd:before {
  content: ": ";
  margin-left: -0.2em;
}

/* dictionary definition style 
 * ----------------------------------------------- */

.dictionary-style dt {
  display: inline;
  counter-reset: definitions;
}

.dictionary-style dt+dt:before {
  content: ", ";
  margin-left: -0.2em;
}

.dictionary-style dd {
  display: block;
  counter-increment: definitions;
}

.dictionary-style dd:before {
  content: counter(definitions, decimal) ". ";
}

/* more misc styles */

abbr {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: .05rem;
  color: #838383;
}

var, kbd, samp, code, pre {
  font-family: Consolas, "Andale Mono", Courier, "Courier New", monospace;
}

pre {
  padding: 2.4rem 3rem 3rem;
  background: #F1F1F1;
}

code {
  font-size: 1.4rem;
  margin: 0 .2rem;
  padding: .3rem .6rem;
  white-space: nowrap;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: 3px;
}

pre>code {
  display: block;
  white-space: pre;
  line-height: 2;
  padding: 0;
  margin: 0;
}

pre.prettyprint>code {
  border: none;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
  text-decoration: none;
}

mark {
  background: #FFF49B;
  color: #000;
}

dt { /* definition term */
  margin: 0;
  color: #39b54a;
}

dd { /* definition description */
  margin: 0 0 0 2rem;
}

/* ===================================================================
 *  iframe Modal 
 *
 * ------------------------------------------------------------------- */

#myModal1.modal-overlay.is-active {
	display: flex;
	align-items: center;
}

#myModal1.modal-overlay.is-active .modal-content {
	animation: modalEntrance 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	opacity: 1 !important;
}

#myModal1.modal-overlay {
	display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

#myModal1 .modal-content {
	position: relative;
	display: flex;
    flex-direction: row; /* option of separate panels in model */
	opacity: 0;
	transform: none;
	margin: 0;
	top: 0;
    padding: 35px 25px 35px 35px; /* right padding smaller to allow space for scroll bar */
    overflow: hidden;
	background-color: #ffffff;
	color: #111111;
    border-radius: 16px;
	border: 1px solid #e0e0e0;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

iframe#modalFrame {
    border-width: 0;
    border-style: inset;
    border-color: currentcolor;
    border-image: none;
	width: 100%;
	height: 100%;
	background: white;
}

iframe#modalFrame.clip {
	overflow-clip-margin: content-box !important;	/* permits clipping of iframe content if needed */
    overflow: clip !important;						/* permits clipping of iframe content if needed */
	clip-path: inset(75px 0px 0px);
    margin-top: -75px;
    height: calc(100% + 75px);
}

.scroll-content {
	padding-right: 10px;
}

.scroll-content.privacy p,
.scroll-content.privacy a,
.scroll-content.privacy li {						/* inside iframe (no iframe# selector) */
	font-family: var(--font-family);
	font-size: calc(var(--font-size) * 0.8);
    color: rgb(0, 0, 0);
    margin-bottom: 10px;
    margin-left: 0px;
    font-weight: 300;
}

.scroll-content.privacy a {						/* inside iframe (no iframe# selector) */
	color: var(--a-colour) !important;				
}

.scroll-content.privacy a:hover {
	color: var(--a-hover);	
}

@media only screen and (min-width: 601px) { 		/* can be re-used for multiple modals */
	.modal-content {
	  width: 94%; 									/* occupy almost full screen but no wider than 1200px (below) */
	  height: 94%; 									/* occupy almost full height */
      max-width: 1200px;
	}
}

@media only screen and (max-width: 600px) {
	.modal-overlay {
		position: fixed; 							/* Fixes mobile devices cutoff */
		padding: 0;									/* Remove padding for mobile devices */
	}

	.modal-content {
		margin: 0;
		top: 30px;
		padding: 35px;
		width: 90%;
		min-width: 90%;
		max-width: 90% !Important; 					/* Use percentage for mobile responsiveness */
		height: 94%;
	}
}

#myModal1 .modal-content h3 {
	margin: 0 0 6px 0;
	font-weight: bold;
	color: #111111;
	text-align: center;
}

#myModal1 .modal-content p {
	margin: 0 0 25px 0;
	text-align: center;
	color: #222222;
	font-size: 1.45rem;
}

#myModal1 .modal-content .left-column, 
#myModal1 .modal-content .right-column {
  flex: 1;           /* Each takes 50% width */
  padding: 35px;     /* Re-applying your original padding */
}

#myModal1 .modal-content .left-panel {
	 flex: 1 1 0%;
	 padding: 35px;
	 box-sizing: border-box;
}

#myModal1 .modal-content .right-panel {
	flex: 1 1 0%;
	padding: 35px;
	background-color: #ffffff);
	box-sizing: border-box;
}

@media (max-width: 960px) { 
  
  /* 1. Stack the panels vertically */
  #myModal1 .modal-content {
    flex-direction: column !important;
    width: 96% !important; /* Slightly wider for mobile */
    margin-top: 20px;       /* Spacing from the very top of the screen */
    margin-bottom: 20px;    /* Spacing from the bottom */
  }

  /* 2. Fix the container to start at the top (instead of center) */
  #myModal1 .modal-overlay {
    align-items: flex-start !important; 
    overflow-y: auto; /* Enable scrolling if the modal is taller than the screen */
  }

  /* 3. Ensure panels take full width when stacked */
  #myModal1 .modal-content .left-panel, 
  #myModal1 .modal-content .right-panel {
    width: 100% !important;
    flex: none !important;
  }
  
  /* 4. Remove unnecessary padding between panels when stacked */
  #myModal1 .modal-content .left-panel {
  padding: 35px 35px 0 35px;
  }
  #myModal1 .modal-content .right-panel {
  padding: 0 35px 35px 35px;
  }
  
}

/* Close button */
#myModal1 .close-Btn1 {
	position: absolute;
	top: 0;
	right: 20px;
	background: none;
	border: none;
	color: #777777;
	font-size: 1.8rem;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color 0.2s;
	z-index: 10000;
}

#myModal1 .close-Btn1:hover {
	color: #111111;
}

/* ===================================================================
 *  iframe content styles
 *
 * ------------------------------------------------------------------- */

.scroll-wrapper { 									/* Scrolling content section inside the iframe */
	position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
	border: 0;
    gap: 2.25rem;
    padding-right: 18px; 							/* Adds some space to right of content before iframe scroll bar */
    box-sizing: border-box;
}

/* ===================================================================
 *  iframe content: embedded Google Form 
 *
 * ------------------------------------------------------------------- */
 
.iframe-container {
  height: 500px; /* Desired viewable height */
  overflow: hidden;
  width: 100%;
  max-width: 750px;
}

.iframe-scroll-container {
  height: 100%;
  overflow-y: auto;
  width: 100%;
  padding: 0px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
.iframe-container.bubble {
  padding: 10px;
}

.iframe-scroll-container {
  padding: 10px;
}
}

/* ===================================================================
 *  Image specific 
 *
 * ------------------------------------------------------------------- */

.inline-section {
	display: flex;
	column-gap: 20px;
}

.image-inline {
	display: block;
    height: auto;
	width: 100%;
	max-width: 420px;
	flex: 1;
	background-repeat: no-repeat;
	background-size: 100% auto;
	padding-top: 7px;
	/* Image will start shifting down from where the padding ends */
	background-origin: content-box;
	background-position: top left;
	margin-bottom: 2.2rem;
}

/* ===================================================================
 *  Banner image with parallax scroll 
 *
 * ------------------------------------------------------------------- */

/* 1. Base Banner Styles */
.banner.bubble {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

/* 2. Image Selection Logic */
.banner[data-src="window"] {
    background-image: url("../images/window-view.jpg");
}

.banner[data-src="interior1"] {
    background-image: url("../images/interior-view.jpg");
}

.banner[data-src="interior2"] {
    background-image: url("../images/interior-view-2.jpg");
}

/* 3. Cleanup: Ensure pseudo-elements are disabled */
.banner.bubble::before {
    content: none;
}


.banner h2 {
	width: 94%;
	font-size: calc(var(--font-size) * 3);
	color: white;
	line-height: 1;
	text-align: center;
	padding-top: 55px;
	padding-bottom: 55px;
	margin-left: auto;
	margin-right: auto;
	text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

.banner sup {
	font-size: calc(var(--font-size) * 0.9);
	top: -3.6rem;
	margin-right: 3px;
}

/* Mobile Handling */
@media (max-width: 768px) { 
  .banner h2 {
	font-size: calc(var(--font-size) * 2);
  }
  .banner sup {
	font-size: calc(var(--font-size) * 0.5);
	top: -1.75rem;
	margin-right: 0px;
}
}
	
/* ===================================================================
 *  Cookie banner
 *
 * ------------------------------------------------------------------- */
 
/* Banner Container */
#cookie-banner {
  position: fixed !important;
  display: none; /* Toggled to 'flex' via JS */
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 90% !important;
  max-width: 750px !important;
  background: #ffffff !important;
  color: #333333 !important;
  padding: 24px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  z-index: 999999 !important;
  flex-direction: column !important;
  gap: 16px !important;
  text-align: center !important;
}

#cookie-banner p {
	font-size: var(--font-size);
}

/* Common Button Styles */
#cookie-reject,
#cookie-accept {
  padding: 0px 20px !important;
  border-radius: 6px !important;
  border: none !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin: 0 4px !important;
  transition: opacity 0.2s ease;
}

/* Secondary Action (Reject) */
#cookie-reject {
  background: #eeeeee !important;
  color: #666666 !important;
}

/* Primary Action (Accept) */
#cookie-accept {
  background: #007bff !important;
  color: #ffffff !important;
}

#cookie-reject:hover,
#cookie-accept:hover {
  opacity: 0.9;
}