@charset "UTF-8";

/* ==========================================================================
   Sally Anne Shand — Counselling & Therapy Cardiff
   Static rebuild of the original Avada / WPBakery WordPress theme.

   Palette
     #72c400  accent green (nav, h1, footer, to-top)
     #a0ce4e  button green (#96c346 on hover)
     #747474  body copy
     #333333  headings and links
     #ebebeb  separator rule
     #dadada  mobile menu borders / burger icon
   Layout
     1100px boxed wrapper, 30px gutters, 1040px content, 15px column gutters
   Breakpoints
     1023px  desktop nav -> burger, boxed layout -> fluid
      800px  two columns -> stacked
   ========================================================================== */

/* --------------------------------------------------------------- fonts --- */

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/lato-400.ttf) format("truetype");
}

@font-face {
	font-family: "PT Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/ptsans-400.ttf) format("truetype");
}

/* --------------------------------------------------------------- reset --- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #ffffff url(../images/bg-page.png) repeat 0 0;
	font-family: Lato, Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.43;
	color: #747474;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: middle;
}

iframe {
	border: 0;
	max-width: 100%;
}

a {
	color: #333333;
	text-decoration: none;
	transition: color .2s;
}

a:hover {
	color: #72c400;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

/* ------------------------------------------------------------ typography - */

h1, h2, h3, h4, h5, h6 {
	font-family: Lato, Arial, Helvetica, sans-serif;
	font-weight: 400;
	color: #333333;
}

/* Avada scales the h1 down on narrow viewports (site width 1100, sensitivity
   0.6, factor 1.5). Its JS curve is `35 * min(1, 0.4 + 0.00075 * width)`,
   i.e. full size at >= 800px and 40% of it at 0px. Reproduced with min(). */
h1 {
	margin: .67em 0 0;
	font-size: min(35px, calc(14px + 2.625vw));
	line-height: min(47.95px, calc(18.8px + 3.525vw));
	color: #72c400;
}

h2 {
	margin: 0 0 1.1em;
	font-size: 18px;
	line-height: 1.5;
}

h3 {
	margin: 1em 0;
	font-size: 16px;
	line-height: 1.5;
}

h4 {
	margin: 1.33em 0 0;
	font-size: 13px;
	line-height: 20.02px;
}

p {
	margin: 0 0 20px;
}

strong {
	font-weight: 700;
}

ul {
	margin: 1em 0 0;
	padding: 0 0 0 40px;
	list-style: disc outside;
}

hr {
	height: 0;
	border: 0;
	color: inherit;
}

/* ------------------------------------------------------------- skeleton -- */

#wrapper {
	width: 1100px;
	max-width: 100%;
	margin: 0 auto;
	background-color: #ffffff;
}

.row {
	max-width: 1100px;
	margin: 0 auto;
}

.row::after {
	content: "";
	display: table;
	clear: both;
}

/* --------------------------------------------------------------- header -- */

.site-header {
	position: relative;
	z-index: 10010;
	background-color: #ffffff;
	padding: 0 30px;
	box-shadow: 0 4px 3px -3px rgba(0, 0, 0, .12);
}

/* Sticky header: fixed to the top and shrunk to the 65px nav height, with a
   spacer holding the vacated space so the page doesn't jump. Desktop only —
   the original carries `no-tablet-sticky-header no-mobile-sticky-header`. */
#header-spacer[hidden] {
	display: none;
}

.site-header.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

.site-header.is-sticky .logo {
	margin: 5px 0;
}

.site-header.is-sticky .logo img {
	width: auto;
	height: 55px;
}

.site-header .logo,
.site-header .logo img {
	transition: margin .2s, height .2s;
}

/* Logo left, nav hard right. The two want 500px + 330px + gutters = 890px;
   between the 800px breakpoint and that, the logo shrinks rather than
   colliding with the nav. */
.site-header .row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

/* The generic .row clearfix would count as a third flex item and steal the
   space-between slot the nav needs. */
.site-header .row::after {
	display: none;
}

.logo {
	flex: 0 1 500px;
	min-width: 0;
	margin: 31px 0;
}

.logo-link {
	display: block;
	max-width: 100%;
}

.logo img {
	display: block;
	width: 500px;
	max-width: 100%;
	height: auto;
}

.main-menu {
	flex: 0 0 auto;
}

.menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu > li {
	float: left;
	padding-right: 30px;
}

.menu > li:last-child {
	padding-right: 0;
}

.menu > li > a {
	display: block;
	height: 65px;
	line-height: 60px;
	border-top: 5px solid transparent;
	font-size: 14px;
	color: #72c400;
	transition: border-color .2s;
}

.menu > li > a:hover,
.menu > li > a.is-current {
	color: #72c400;
	border-top-color: #72c400;
}

/* burger — Avada draws this from its icomoon font; three rules are identical
   at 21px and drop the webfont entirely. */

.mobile-menu-icons {
	display: none;
	text-align: right;
}

.icon-bars {
	display: inline-block;
	width: 21px;
	height: 21px;
	padding: 3px 0;
	vertical-align: middle;
}

.icon-bars span {
	display: block;
	height: 3px;
	background-color: #dadada;
	transition: background-color .2s;
}

.icon-bars span + span {
	margin-top: 3px;
}

.mobile-nav {
	clear: both;
	margin: 0 -30px;
}

.mobile-nav[hidden] {
	display: none;
}

.mobile-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #dadada;
}

.mobile-nav a {
	display: block;
	height: 35px;
	line-height: 35px;
	padding: 0 12px 0 30px;
	font-size: 12px;
	color: #333333;
	background-color: #f9f9f9;
	border-bottom: 1px solid #dadada;
	text-align: left;
}

.mobile-nav a:hover {
	background-color: #f6f6f6;
	color: #333333;
}

/* ----------------------------------------------------------------- main -- */

#main {
	background-color: #ffffff;
	padding: 55px 30px 40px;
}

/* Rows bleed 15px into the 30px gutter so that column padding lines the
   content back up with the 1040px measure. */
.band,
.content-row {
	margin: 0 -15px;
}

.content-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.col {
	padding: 35px 15px 0;
}

.col-half {
	width: 50%;
}

.col-full {
	width: 100%;
}

/* Nested rows sit flush — only the outermost row pays the 35px top gutter.
   Width stays `auto` so the -15px margins widen it back out to the gutter. */
.inner-row > .col {
	padding-top: 0;
}

/* `flow-root` keeps child margins inside the block, matching the block
   formatting context Avada gets from its floated columns. */
.band-inner {
	display: flow-root;
	padding: 35px 15px 0;
}

.text-block {
	margin: 0 0 35px;
}

.empty-space {
	clear: both;
	width: 100%;
}

/* --------------------------------------------------------------- bands --- */

.band {
	background: rgba(255, 255, 255, .3) url(../images/bg-band.png) repeat 0 0;
}

/* The section headings sit on a pale blossom tile. White gave 1.32:1 median
   contrast (1.0:1 at worst) — effectively invisible in the bright areas. The
   site's own heading colour clears WCAG large-text 3:1 everywhere on the tile
   (4.45:1 worst, 9.57:1 median) without needing a scrim, so the bands keep
   their airiness. A green heading was tried and rejected: it fails at 2.23:1
   against the darker branches. */
.band h1 {
	color: #333333;
}

.separator {
	margin: 0 0 35px;
	border-top: 1px solid #ebebeb;
}

/* ------------------------------------------------------------- content --- */

/* Most body copy is justified; `.plain` marks the blocks that were left
   aligned in the original. */
.text-block p,
.text-block h2,
.text-block h3,
.text-block h4 {
	text-align: justify;
}

.text-block ul.justify li {
	text-align: justify;
}

.text-block .plain,
.text-block .plain h3 {
	text-align: left;
}

.single-image {
	margin: 0 0 35px;
	text-align: center;
}

.single-image img {
	border-radius: 4px;
}

img.alignnone {
	margin: 0;
}

img.alignright {
	float: right;
	margin: 0 0 0 15px;
}

/* --------------------------------------------------------------- slider -- */

.slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	background-color: #e9e9e9;
	/* Revolution Slider was configured 450x300 and never scaled past 1:1, so
	   the box is 300px tall from 450px up and shrinks proportionally below. */
	aspect-ratio: 450 / 300;
	max-height: 300px;
}

.slides {
	margin: 0;
	padding: 0;
	list-style: none;
	height: 100%;
}

.slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .3s ease-in-out;
}

.slide.is-active {
	opacity: 1;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.slider-arrow {
	position: absolute;
	top: 50%;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	transition: background .2s;
	z-index: 3;
}

.slider-arrow:hover {
	background: rgba(0, 0, 0, 1);
}

.slider-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid #ffffff;
	border-right: 2px solid #ffffff;
}

.slider-prev {
	left: 20px;
}

.slider-prev::before {
	transform: translate(-30%, -50%) rotate(-135deg);
}

.slider-next {
	right: 20px;
}

.slider-next::before {
	transform: translate(-70%, -50%) rotate(45deg);
}

.slider-bullets {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 0;
	z-index: 3;
}

.slider-bullet {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin: 0 2.5px;
	border: 3px solid #e5e5e5;
	border-radius: 50%;
	background: linear-gradient(to bottom, rgb(153, 153, 153) 0%, rgb(225, 225, 225) 100%);
}

.slider-bullet:hover,
.slider-bullet.is-active {
	background: rgb(102, 102, 102);
}

/* ----------------------------------------------------------------- form -- */

.contact-form p {
	margin: 0 0 20px;
	text-align: left;
}

.contact-form label {
	display: inline;
}

.contact-form .field {
	position: relative;
	display: inline;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 0 15px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #747474;
	background-color: #ffffff;
	border: 1px solid #d2d2d2;
	border-radius: 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
	height: 29px;
}

.contact-form textarea {
	height: 150px;
	padding: 8px 15px;
	resize: vertical;
	display: block;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: #aaa9a9;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid #72c400;
	outline-offset: 1px;
	border-color: #72c400;
}

.contact-form .submit-row {
	padding-top: 10px;
}

.contact-form .submit {
	display: inline-block;
	padding: 13px 29px;
	font-family: "PT Sans", Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 17px;
	text-align: center;
	text-transform: uppercase;
	color: #ffffff;
	background: #a0ce4e;
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	transition: all .2s;
}

.contact-form .submit:hover {
	background: #96c346;
	color: #ffffff;
}

.contact-form .invalid {
	border-color: #c0392b;
}

.form-response {
	margin: 0;
	min-height: 20px;
	font-size: 13px;
}

.form-response.is-error {
	color: #c0392b;
}

/* ------------------------------------------------------------------ map -- */

.map-widget {
	margin: 0 0 35px;
	padding: 5px;
	background-color: #f7f7f7;
}

.map-wrap iframe {
	display: block;
	width: 100%;
	height: 450px;
	border: none;
	margin-bottom: 0;
	padding: 0;
}

/* --------------------------------------------------------------- footer -- */

#footer {
	padding: 5px 30px;
	background-color: #72c400;
	border-top: 1px solid #72c400;
}

.copyright-notice {
	font-size: 12px;
	line-height: 1.43;
	color: #ffffff;
}

.copyright-notice a {
	color: #e0e0e0;
}

.copyright-notice a:hover {
	color: #ffffff;
}

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

#to-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	background-color: #72c400;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s, background-color .2s;
}

#to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

#to-top:hover {
	background-color: #333333;
}

#to-top::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid #ffffff;
	border-right: 2px solid #ffffff;
	transform: translate(-50%, -30%) rotate(-45deg);
}

/* ---------------------------------------------------------- breakpoints -- */

/* Anchor targets clear the sticky header. */
@media only screen and (min-width: 801px) {

	#welcome,
	#about,
	#services,
	#news,
	#contact {
		scroll-margin-top: 65px;
	}
}

/* Columns stack, and the burger takes over. The original split these at
   800px and 1023px, which left a band of two narrow columns under a mobile
   header; one breakpoint keeps the nav and the layout in step. */
@media only screen and (max-width: 800px) {

	#wrapper {
		width: 100%;
	}

	.site-header {
		padding: 20px 30px;
	}

	.site-header .row {
		display: block;
	}

	.logo {
		margin: 0;
		width: 100%;
	}

	.logo img {
		margin: 0 auto;
	}

	.main-menu {
		display: none;
	}

	.mobile-menu-icons {
		display: block;
		clear: both;
	}

	.col-half,
	.col-full,
	.inner-row > .col-half {
		width: 100%;
	}

	.copyright-notice {
		text-align: center;
	}

	img.alignright {
		float: none;
		margin: 0;
	}
}

/* Justified text opens up ugly word gaps in a narrow measure. */
@media only screen and (max-width: 600px) {

	.text-block p,
	.text-block h2,
	.text-block h3,
	.text-block h4,
	.text-block ul.justify li {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}

	.slide {
		transition: none;
	}
}
