/* CSS Document */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The variable pool */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Every variable the site's CSS uses, in one place - change a value here
   and every sheet follows ( core, nav, footer, custom … ). The colours
   come from the Colours step; the rest are this template's own. */

:root
{
    /* - - - the colours: the five picked on the Colours step, and the
       roles and shades the pieces use - - - */

    --colour1: #f52d2a;
    --colour2: #6f6f6f;
    --colour3: #413c3c;
    --colour4: #e6e6e6;
    --colour5: #222222;

    /* white or near-black, whichever reads on the fill */
    --on-colour1: #ffffff;
    --on-colour2: #ffffff;

    /* the roles the pieces use */
    --ink: var( --colour3 );
    --ink-soft: color-mix( in srgb, var( --colour3 ) 93%, #fff );
    --accent: var( --colour1 );
    --accent-text: #e60e0b;
    --accent-dark: #f64a47;
    --on-accent: var( --on-colour1 );
    --on-accent-dark: #ffffff;
    --tint: var( --colour4 );
    --tint-line: color-mix( in srgb, var( --colour4 ) 88%, var( --colour3 ) );

    --text: var( --colour5 );
    --text-soft: color-mix( in srgb, var( --colour5 ) 85%, #fff );
    --text-muted: color-mix( in srgb, var( --colour5 ) 68%, #fff );

    /* white - change these, never a #fff further down */
    --paper: #fff;                              /* cards, panels, light buttons */
    --on-ink: #fff;                             /* text and icons on the dark */
    --on-ink-soft: rgba( 255, 255, 255, .8 );   /* body copy on the dark */
    --on-ink-muted: rgba( 255, 255, 255, .68 ); /* small print, outline buttons */

    /* see-through black, laid over the page or a photograph */
    --shade-faint: rgba( 0, 0, 0, .05 );        /* a wash, the lightest shadow */
    --shade-light: rgba( 0, 0, 0, .1 );         /* hairlines, soft shadows */
    --shade: rgba( 0, 0, 0, .28 );              /* lifted cards, dotted leaders */
    --shade-deep: rgba( 0, 0, 0, .45 );         /* over photographs, deep shadows */

    /* see-through white, on the dark */
    --glow-faint: rgba( 255, 255, 255, .06 );   /* a panel on the dark */
    --glow-line: rgba( 255, 255, 255, .14 );    /* hairlines */
    --glow: rgba( 255, 255, 255, .3 );          /* dotted leaders */
    --glow-edge: rgba( 255, 255, 255, .6 );     /* button outlines on hover */

    /* - - - Temp-4's own - - - */

    /* Temp-4's own greys - change them here, not further down */
    --grey-900: #111111;
    --grey-200: #e8e8e8;

    --line-width: 95%;
    --line-colour: var( --colour2 );

    /* - - - the set pieces' look: corners, heading weights - - - */

    --piece-radius-media: 0;
    --piece-radius-card: 0;
    --piece-radius-btn: 0;
    --piece-radius-icon: 0;

    /* the space between the page's sections */
    --page-gap: 32px;

    /* the template font's heading weights - a heading font chosen on
       the Template or Font choice step is written in here at build */
    --heading-light: 200;
    --heading-regular: 400;
    --heading-strong: 500;
    --heading-italic: italic;

    /* the size of the divider's ornament */
    --piece-mark: 34px;

    /* added at build */
    --trim-room-s: 24px;
    --trim-room-m: 40px;
    --trim-room-l: 56px;
    --heading-family: "hwt-republic-gothic-solid", sans-serif;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

body
{		
	font-family: 'Montserrat', sans-serif;
}


h1, h2, h3, h4, .piece-btn > span
{
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
}

p, li
{
	font-weight: 300;
	font-size: 17px;
	line-height: 23px;
	letter-spacing: .5px;
	color: #444;
}

b, strong
{
    color: var( --colour1 );
}

a
{
	text-decoration: none;
	color: var( --colour1 );
}

.heading
{
	font-weight: 400;
	width: 100%;
	border-bottom: 1px solid var( --colour1 );
	padding-bottom: 16px;
}

#page-content
{
	display: grid;
    width: 100%;
    grid-gap: 32px;
    padding: 64px 0 32px;
	background-color: var( --paper );
	z-index: 4;
}

.workspace
{
	grid-gap: 32px;
}

.secondColour
{
	color: var( --colour2 );
}

/* - */

#header
{
	display: grid;
	background-color: var( --paper );
	z-index: 4;
}

.header-inner
{
	display: grid;
	width: 100%;
	grid-gap: 16px;
	padding-bottom: 32px;
}

@media( min-width:768px)
{
	#header
	{
		
	}
}

@media( min-width:992px)
{
	#header
	{
		grid-template-columns: auto 950px auto;
	}

	.header-inner
	{
		grid-column: 2;
		grid-template-columns: repeat( 3, 33% );
		padding: 32px 0;
		grid-gap: 0;
	}
}

@media( min-width:1200px)
{
	#header
	{
		grid-template-columns: auto 1200px auto;
	}
}

/* - */

.social-container
{
	display: grid;
	justify-self: center;
	align-self: center;
	
	grid-gap: 16px;	
	margin-top:16px;	
}

@media( min-width: 992px)
{
	.social-container
	{
		justify-self: start;		
		margin: 0;
	}
}

.social-container a
{
	grid-row: 1;
}

.social-icon
{
	font-size: 40px;
}

#logo-container
{
	display: grid;
	align-self: center;
	justify-self: center;
}

#logo
{
	max-height: 92px;
	justify-self: center;
}

@media( max-width: 600px )
{
	#logo
	{
		justify-self: center;	
		max-width: 320px;	
	}
	
}

.contact-details
{	
	display: grid;
	justify-content: center;
	grid-gap: 16px;
    align-self: center;
}

.contact-details h4, .contact-details a
{	
	overflow-wrap: anywhere;
}

@media( min-width: 992px)
{
	.contact-details
	{
		justify-self: end;	
	}
}

/* - */

.contact-details a
{
	display: flex;
	/* grid-row: 1; */
	justify-self: center;
	align-content: center;
	grid-gap: 8px;
}

.contact-details-icon
{
	grid-row: 1;
	align-self: center;
}

.contact-details h4
{
	grid-row: 1;
	align-self: center;
}

/* - */


hr
{
	width: 80%;
	height: 1px;
	background-color: var( --colour1 );
	border: none;
}

@media( min-width: 768px )
{
	hr
	{
		width: 750px;
	}
}

@media( min-width: 992px )
{
	hr
	{
		width: 950px;
	}
}

@media( min-width: 1200px )
{
	hr
	{
		width: 1200px;
	}
}

/* - */

.btn
{
	display: grid;	
	justify-self: start;
	
	background-color: var( --colour1 );
}

.btn h4
{
	grid-row: 1;
	grid-column: 1;
	z-index: 2;
	
	border: none;
	color: var( --on-ink );
	padding: 16px 32px;
	text-align: center;
	font-size: 16px;	
	transition: ease .25s;
}

.btn::before
{	
	content: "";
	
	grid-row: 1;
	grid-column: 1;
	z-index: 1;
	background-color: var( --grey-900 );
	
	width: 0;
	height: 100%;
	
	transition: ease .25s;
	
	color: var( --on-ink );
	
	overflow: hidden;
	
	justify-self: end;
	align-self: center;
}

.btn:hover 
{
	cursor: pointer;
}

.btn:hover h4
{
	color: var( --on-ink );
}

.btn:hover::before
{
	height: 100%;
	width: 100%;
}

/* - */

.banner {
	display: grid;
}

#banner-image
{
	display: grid;
	grid-row: 1;
	grid-column: 1;
    z-index: 1;
	
    width: 100%;
    height: 128px;
    background-size: cover;
	background-image: url('../img/banner-bg.jpg');
	background-attachment: fixed;
	background-position: center center;
	background-repeat: no-repeat;
}

#banner-overlay
{
	display: grid;
	grid-row: 1;
	grid-column: 1;
    z-index: 2;
	
    width: 100%;
    height: 128px;
    background-size: cover;
    opacity: 0.65;
	
	background-color: #000;
}

#banner-container
{
	display: grid;
	grid-row: 1;
	grid-column: 1;
	z-index: 3;
	
	width: 100%;
	height: 128px;
	align-content: center;
	justify-content: center;
}

@media ( min-width: 768px )
{
	#banner-image
	{
		height: 256px;
	}
	#banner-overlay
	{
		height: 256px;
	}
	#banner-container
	{
		height: 256px;
	}
}

#banner-container h1
{
	color: var( --on-ink );
}

/* - */


/* - */

.contact-items
{
	grid-gap: 20px;
}

.contact-icon
{
	grid-row: 1;
	color: var( --colour1 );
	align-self: center;
	justify-self: start;
	border-right: solid 1px;
	padding-right: 12px;
	font-size: 20px;
    width: 15px;
    max-width: 15px;
}

.contact-items h3
{
	color: var( --colour1 );
	grid-row: 1;
	margin: 0;
	
	align-self: center;
	justify-self: start;
}

.contact-items p
{
	grid-row: 1;
	margin: 0;
	
	align-self: center;
	justify-self: start;
}

.contact-items p, .contact-items a
{
	overflow-wrap: anywhere;
}

.contact-items .element
{
	align-content: start;
	justify-content: start;
	grid-gap: 16px;
}


/* Testimonials */ 

.testimonial-container
{
	display: grid;
	width: 100%;
	background-image: url('../img/testimonial-bg.jpg');

	background-position: center center;
	background-color: var( --grey-900 );
	background-repeat: no-repeat;
	background-size: cover;
	
	min-height: 400px;
}

@media(min-width: 992px) {
    .testimonial-container {
        background-attachment: fixed;
    }
}

.testimonial
{
	display: grid;
	align-self: center;
	justify-self: center;
	
	grid-row: 1;
	grid-column: 1;
	
	grid-gap: 16px;
	
	width: 512px;
	max-width: 80vw;
	
	opacity: 1;
	
	transition: opacity ease .5s;
	
	z-index: 3;
}

.opacity-0
{
	opacity: 0!important;
}

.testimonial h3
{
	color: var( --on-ink );
	justify-self: center;
	font-size: 32px;
}

.testimonial p
{
	color: var( --on-ink );
	justify-self: center;
	text-align: center;
}

.star-container
{
	display: grid;
	align-content: center;
	justify-content: center;
}

.star
{
	color: var( --colour1 );
	grid-row: 1;
}


.testimonial-controls
{
	display: grid;
	z-index: 1;
	grid-row: 2;
	grid-column: 1;
	align-content: center;
	padding: 0 32px;
}

@media( min-width: 992px )
{
	.testimonial-controls
	{
		grid-row: 1;
		grid-column: 1;
	}
}


.testimonial-arrow
{
	color: var( --on-ink );
	font-size: 32px;
	grid-row: 1;
	grid-column: 1;
	
	transition: opacity .5s ease;
}

.testimonial-arrow:hover
{
	cursor: pointer;
	opacity: 0.5;
}

.testimonial-left
{
	justify-self: start;
}

.testimonial-right
{
	justify-self: end;
}

.testimonial-dots
{
	display: grid;
	grid-gap: 8px;
	justify-content: center;
	justify-self: center;
	align-self: center;
	z-index: 3;
	
	grid-row: 2;
	grid-column: 1;
}

.testimonial-dot
{
	grid-row: 1;
	width: 8px;
	height: 8px;
	border-radius: 16px;
	background-color: var( --paper );
	align-self: center;
}

.testimonial-dot:hover
{
	cursor: pointer;
	background-color: var( --colour1 );
}

.active-testimonial-dot
{
	background-color: var( --colour1 );
	/*border: none;*/
}


/* - Table - */

.w100 
{
	width: 100%;
}

.elem-table
{
	border: 1px solid var( --paper );
	background-color: var( --paper );
	width: 100%;
	text-align: left;
	border-collapse: collapse;
}

thead
{
	background-color: var( --colour1 );
	border-bottom: 2px solid var( --paper );
}

th
{
	font-size: 14px;
	font-weight: bold;
	color: var( --on-ink );
	border-left: 2px solid var( --paper );
	text-transform: uppercase;
	letter-spacing: 2px;
	border: solid 1px;
	
	height: 20px;
}

th h1
{
	font-size: 14px;
}

tr:nth-child(2n) {
    background: rgba(222,222,222,0.30);
}


/*** TABLE STYLING ***/

table {
  border: 1px solid var( --paper );
  background-color: var( --paper );
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

table td, table th {
  border: 1px solid var( --paper );
  padding: 10px 10px;
}

table tbody td {
  font-size: 13px;
}

table thead th:first-child {
  border-left: none;
}

table tfoot td {
  font-size: 14px;
}

table tfoot .links {
  text-align: right;
}

/* Catch-all Centering Class */
.cent{
justify-self:center;
text-align:center;
}

.gatehouse {
  	margin-block-start: 0px;
  	margin-block-end: 0px;
}

.roof .workspace .element {
    align-self: center;
    justify-self: center;
}

.roof .workspace .element .element h1,
.roof .workspace .element .element h3,
.roof .workspace .element .element p {
    justify-self: center;
    text-align: center;
}

@media(max-width: 768px) {
    .roof .workspace .element {
        align-self: left;
        justify-self: left;
    }

    .roof .workspace .element .element h1,
    .roof .workspace .element .element h3,
    .roof .workspace .element .element p {
        justify-self: left;
        text-align: left;
    }
} 

/* Mobihide and Mobishow */

.mobishow {
  display: none!important;
}

.mobihide {
  display: grid!important;
}

@media (max-width: 768px) {
     .mobishow {
      display: grid!important
      }
     .mobihide {
      display: none!important;
      }
}

.card
{
	padding: 32px;
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
	transition : all ease .25s;
	cursor: pointer;
}

.card:hover
{
	box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}


.cntr
{
	text-align: center;
}

.line
{
  width: 100%;
  display: grid;
  grid-gap: 32px;
  grid-template-columns: auto max-content auto;
  opacity: 0.5;
}

.line i,
.line svg
{
  align-self: center;
  font-size: 24px;
  color: #444;
}

.line::before
{
  content: "";
  height: 1px;
  align-self: center;
  justify-self: end;
  width: var(--line-width);
  background-color: var(--line-colour);
}
.line::after
{
  content: "";
  height: 1px;
  align-self: center;
  justify-self: start;
  width: var(--line-width);
  background-color: var(--line-colour);
}    	

.alt .line i, .alt .line svg
{
  color: var( --on-ink );
}

.alt .line::before
{
  background-color: var( --paper );
}

.alt .line::after
{
  background-color: var( --paper );
}    	
	

@media( min-width: 992px )
{
	.page-img
	{
		grid-row: 1;
		grid-column: 2;
	}

	.img-left
	{
		grid-column: 1;
	}

	.page-content
	{
		grid-row: 1;
	}
}

.center
{
	text-align: center;
}

.list
{
	display: grid;
	align-content: center;
}

.list p
{
	align-content: center;
	display: grid;
	grid-template-columns: max-content auto;
	margin-left: 32px;
}

.list p:before
{
	font-family: "Font Awesome 5 Pro";
    font-weight: 300;
 	color: var( --colour1 );
 	align-self: start;
 	content: "\f054";
 	margin-right: 8px;
 	font-size: 16px;
 	padding-right: 8px;
}		

/* - - - - - - - - - - - - - - - - - - - - - - - - */

.alt
{
	background-color: var(--colour3);
	padding: 64px 0!important;
}	

.alt p
{
	color: var( --colour4 );
}

.alt b
{
	color: var( --on-ink );
}

.alt :is( h1, h2, h3, h4, .piece-btn > span, .header-block )
{
	color: var( --on-ink );
}

.alt .list p:before
{
	color: var( --on-ink );
}

.sub-heading 
{
	font-size: 28px;
}

.sub-heading 
{
	font-size: 28px;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - */

.btn-fancy 
{
	background-color: transparent;
	border: 2px solid var(--colour2);
	border-radius: 0;
	box-sizing: border-box;
	color: var( --on-ink );
	cursor: pointer;
	display: inline-block;
	float: right;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin: 0;
	outline: none;
	overflow: visible;
	padding: 1.25em 2em;
	position: relative;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	transition: all 0.3s ease-in-out;
	user-select: none;
	font-size: 13px;
	margin-top:16px;

	 justify-self: start;

}

.btn-fancy::before 
{
	content: " ";
	width: 1.5625rem;
	height: 2px;
	background: var(--colour2);
	top: 50%;
	left: 1.5em;
	position: absolute;
	transform: translateY(-50%);
	transform-origin: center;
	transition: background 0.3s linear, width 0.3s linear;
}

.btn-fancy .text 
{
	font-size: 1.125em;
	line-height: 1.33333em;
	padding-left: 2em;
	display: block;
	text-align: left;
	transition: all 0.3s ease-in-out;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--colour2);
}

.btn-fancy .top-key 
{
	height: 2px;
	width: 1.5625rem;
	top: -2px;
	left: 0.625rem;
	position: absolute;
	background: var( --grey-200 );
	transition: width 0.5s ease-out, left 0.3s ease-out;
}

.btn-fancy .bottom-key-1 
{
	height: 2px;
	width: 1.5625rem;
	right: 1.875rem;
	bottom: -2px;
	position: absolute;
	background: var( --grey-200 );
	transition: width 0.5s ease-out, right 0.3s ease-out;
}

.btn-fancy .bottom-key-2 
{
	height: 2px;	
	width: 0.625rem;
	right: 0.625rem;
	bottom: -2px;
	position: absolute;
	background: var( --grey-200 );
	transition: width 0.5s ease-out, right 0.3s ease-out;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.alt .btn-fancy 
{
	border: 2px solid var( --colour4 );
}

.alt .btn-fancy::before 
{
	background: var( --colour4 );
}

.alt .btn-fancy .text 
{
	color: var( --colour4 );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.alt .btn-fancy .top-key 
{
	background: var( --colour3 );
}

.alt .btn-fancy .bottom-key-1 
{
	background: var( --colour3 );
}

.alt .btn-fancy .bottom-key-2 
{
	background: var( --colour3 );
}


.btn-fancy:hover 
{
	color: white;
	background: var(--colour2);
}


.alt .btn-fancy:hover 
{
	color: white;
	background: var(--colour2);
}

.alt .btn-fancy:hover 
{
	color: var(--colour4);
  background: var(--colour4);
}


.btn-fancy:hover::before {
 width: 0.9375rem;
 background: white;
}

.btn-fancy:hover .text {
 color: white;
 padding-left: 1.5em;
}


.alt .btn-fancy:hover::before 
{
	background: var( --colour3 );
}

.alt .btn-fancy:hover .text 
{
	color: var( --colour3 );
}


.btn-fancy:hover .top-key {
 left: -2px;
 width: 0px;
}

.btn-fancy:hover .bottom-key-1, .btn-fancy:hover .bottom-key-2 
{
	right: 0;
	width: 0;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - */

.btn-chameleon {

    background-color: var( --colour2 );
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    font-size: 16px;
    margin: 4px 2px;
    transition: 0.3s;

    justify-self: start;

    border-radius: 5px;
    box-shadow: 0 1px 1px var( --shade-faint ),
        0 2px 2px var( --shade-faint ),
        0 4px 4px var( --shade-faint ),
        0 8px 8px var( --shade-faint ),
        0 16px 16px var( --shade-faint );

}

.btn-chameleon:hover {

    background-color: var( --colour1 );
    color: var( --colour2 );
    cursor: pointer;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - */

.alt .btn-chameleon 
{
    background-color: var( --colour4 );
    color: var( --colour3 );
}

.alt .btn-chameleon:hover 
{
    background-color: var( --colour2 );
    color: var( --on-ink );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - */

.btn-thai 
{
	padding: 20px 60px;
	border: none;
	outline: none;
	position: relative;
	z-index: 1;
	border-radius: 5px;
	background: linear-gradient(to right, var( --colour1 ), var(--colour2));
	cursor: pointer;  
	text-align: center;
	color: var( --on-ink );
	justify-self: start;
}

.btn-thai::before 
{
	content: "";
  	position: absolute;
  	left: 1px;
  	right: 1px;
  	top: 1px;
  	bottom: 1px;
  	border-radius: 4px;
  	background-color: var( --grey-900 );
  	z-index: -1;
  	transition: 200ms
}

.btn-thai::after 
{
  	content: attr(data);
  	font-size: 16px;
  	background: linear-gradient(to left, var(--colour1), var(--colour2));
  	-webkit-background-clip: text;
  	color: transparent;
  	transition: 200ms
}

.btn-thai:hover::before 
{
  	opacity: 50%;
  	top: 0px;
  	right: 0px;
  	bottom: 0px;
  	left: 0px;
}

.btn-thai:hover::after
{
  	color: white;
}

.btn-speech 
{
	justify-self: start;
	padding: 12px 16px;
	border: 1px solid var( --paper );
	border-radius: 16px 16px 16px 0;
	position: relative;
	overflow: hidden;
	background-color: transparent;
	text-align: center;
	text-transform: uppercase;
	font-size: 16px;
	transition: all ease .2s;
	z-index: 1;
	color: var( --colour1 );

	border: solid 2px var( --colour1 );

	background-color: var( --paper );
}

.alt .btn-speech
{
	border: solid 2px var( --colour4 );
	background-color: #fff0;
}

.btn-speech::before 
{
	content: '';
	width: 0;
	height: 350%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	background: var( --colour1 );
	transition: .2s ease;
	display: block;
	z-index: -1;
}

.alt .btn-speech::before 
{
	background: var( --colour4 );
}

.btn-speech:hover::before 
{
	width: 110%;
}

.btn-speech:hover
{
	transform: translate( 0px, 2px) scale(0.99);
	border: solid 2px var( --paper );
}

.alt .btn-speech:hover
{
	border: solid 2px var( --colour3 );
}

.btn-speech h3 
{
	color: var( --colour1 );
	transition: all ease .2s;
}

.alt .btn-speech h3 
{
	color: var( --colour4 );
}

.btn-speech:hover h3 
{
	color: var( --colour4 );
}

.alt .btn-speech:hover h3 
{
	color: var( --colour3 );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - */

.minus-32
{
	margin-bottom: -32px;
}

.minus-64
{
	margin-bottom: -64px;
}

