@charset "utf-8";

/* ==========================================================================
   Zypher site styles (Bootstrap 5.3)
   Replaces main.css, contact-us.css, portfolio.css and whatwedo.css.
   Page-specific rules are scoped by the body class set in index.php,
   e.g. <body class="page-portfolio">.
   ========================================================================== */


/* Brand colours
   -------------------------------------------------------------------------- */
:root {
	--zypher-navy: #080530;
	--zypher-grey: #999999;
	--zypher-purple: #9409FF;
	--zypher-blue: #0B22D2;
	--zypher-off-white: #FAFAFA;
	--zypher-footer-bg: #333333;

	/* Bootstrap overrides (body background is set on body so cards and form fields stay white).
	   The font is Bootstrap 5's default system font stack. */
	--bs-body-color: var(--zypher-navy);
	--bs-body-line-height: 1.6;
	--bs-primary: var(--zypher-blue);
	--bs-primary-rgb: 11, 34, 210;
	/* Links: brand blue (9.3:1 on the off-white background), underlined */
	--bs-link-color: var(--zypher-blue);
	--bs-link-color-rgb: 11, 34, 210;
	--bs-link-hover-color: #07168A;
	--bs-link-hover-color-rgb: 7, 22, 138;
}

.btn-primary {
	--bs-btn-bg: var(--zypher-blue);
	--bs-btn-border-color: var(--zypher-blue);
	--bs-btn-hover-bg: #091CAD;
	--bs-btn-hover-border-color: #091CAD;
	--bs-btn-active-bg: #07168A;
	--bs-btn-active-border-color: #07168A;
}


/* Base
   -------------------------------------------------------------------------- */
body {
	background-color: var(--zypher-off-white);
}
.navbar {
	--bs-navbar-color: #000;
	--bs-navbar-hover-color: #333;
}
a:hover {
	text-decoration-thickness: 2px;
}
/* Links used as headings stay un-underlined until hovered */
h1 a, h2 a, h3 a {
	text-decoration: none;
}
h1 a:hover, h2 a:hover, h3 a:hover {
	text-decoration: underline;
}

/* Keep lines of text to a comfortable reading length */
.container p,
.container ul,
.container ol {
	max-width: 70ch;
}


/* Hero banner (replaces the Bootstrap 4 jumbotron)
   -------------------------------------------------------------------------- */
.hero {
	background-image: url(../images/grey_100px.png);
	background-repeat: repeat;
	color: #FCFCFC;
}

.header-title h1 {
	/* scales from 36px on phones to 64px on desktop */
	font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
	text-align: center;
	margin-top: 10px;
	margin-bottom: 10px;
}
.header-title p {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

/* Home page carousel: caption and indicators sit below the image */
#homeCarousel .carousel-text {
	text-align: center;
	margin: 1rem auto 0;
	min-height: 3.2em;	/* keeps the height steady between slides */
	max-width: 70ch;
}
@media (max-width: 575.98px) {
	#homeCarousel .carousel-text {
		min-height: 4.8em;
	}
}
#homeCarousel .carousel-indicators {
	position: static;
	margin: 1rem 0 0;
}
#homeCarousel .carousel-control-prev,
#homeCarousel .carousel-control-next {
	width: 8%;
	bottom: 4.5rem;	/* centre the arrows on the image, not the caption */
}


/* Footer
   -------------------------------------------------------------------------- */
footer {
	border-top: 3px solid #222;
	background-color: var(--zypher-footer-bg);
	color: var(--zypher-off-white);
	margin-top: 50px;
	padding-top: 25px;
}
footer a,
footer a:visited {
	margin: 0 2px;
	text-decoration: underline;
	color: var(--zypher-off-white);
}
footer a:hover {
	text-decoration: none;
	color: #CCCCCC;	/* 7.9:1 on the footer background */
}
footer address {
	margin-bottom: 1rem;
}
.footer-links li {
	margin-bottom: 0.4rem;
}
footer .footer-copyright {
	max-width: none;
	border-top: 1px solid #555555;
	margin: 1.5rem 0 0;
	padding: 1rem 0;
	font-size: 0.875rem;
}


/* What We Do pages
   -------------------------------------------------------------------------- */
#whatwedo h2 {
	text-align: center;
	padding: 0;
}
#whatwedo a,
#whatwedo a:visited {
	color: var(--zypher-off-white);
}
#whatwedo a {
	text-decoration: none;
}
#whatwedo a:hover {
	/* light blue + underline: purple on the grey banner was only 2:1 contrast */
	color: #CFD6FF;
	text-decoration: underline;
}

.page-whatwedo article h1 {
	color: var(--zypher-blue);
}
.page-whatwedo article h2,
.page-whatwedo article h3 {
	color: var(--zypher-purple);
}

/* What We Do landing page: service cards */
.service-card {
	transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}
.service-card:hover,
.service-card:focus-within {
	box-shadow: 0 0.5rem 1rem rgba(8, 5, 48, 0.15);
	transform: translateY(-2px);
}
.service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background-color: var(--zypher-purple);
	color: #FFFFFF;
}
.page-whatwedo .service-card h2 {
	color: var(--zypher-navy);
}
.service-price {
	font-weight: 600;
	color: var(--zypher-purple);
}
/* Coloured boxes: How we work steps (What We Do) and feature boxes (service pages) */
.container ol.how-steps {
	max-width: none;
}
.how-step,
.feature-box {
	--step-colour: var(--zypher-blue);
	height: 100%;
	padding: 1.5rem;
	background-color: #fff;
	border: 1px solid rgba(8, 5, 48, 0.12);
	border-top: 5px solid var(--step-colour);
	border-radius: 0.5rem;
	box-shadow: 0 0.25rem 0.75rem rgba(8, 5, 48, 0.06);
}
li:nth-child(2) > .how-step { --step-colour: var(--zypher-purple); }
li:nth-child(3) > .how-step { --step-colour: var(--zypher-navy); }
li:nth-child(4) > .how-step { --step-colour: #5B4BD6; }
.box-blue   { --step-colour: var(--zypher-blue); }
.box-purple { --step-colour: var(--zypher-purple); }
.box-navy   { --step-colour: var(--zypher-navy); }
.box-violet { --step-colour: #5B4BD6; }
.page-whatwedo .how-step h3,
.page-whatwedo .feature-box h2,
.page-whatwedo .feature-box h3 {
	color: var(--step-colour);
}
.how-step p,
.feature-box p:last-child {
	margin-bottom: 0;
}
.price-card[class*="box-"] {
	border-top: 5px solid var(--step-colour);
}
.how-step .step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.75rem;
	border-radius: 50%;
	background-color: var(--step-colour);
	color: #fff;
	font-weight: 700;
}
.cta-banner h2 {
	color: inherit;
}
@media (prefers-reduced-motion: reduce) {
	.service-card { transition: none; }
	.service-card:hover, .service-card:focus-within { transform: none; }
}

/* Website design: pricing cards */
.price-card .price {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--zypher-navy);
	margin-bottom: 0.75rem;
}
.price-card .price-from,
.price-card .price-small {
	font-size: 1rem;
	font-weight: 400;
	color: var(--bs-secondary-color);
}
.price-card .price-small {
	white-space: nowrap;
}
.price-card .price-includes {
	font-weight: 600;
	margin-bottom: 0.5rem;
}
.price-features {
	list-style: none;
	padding-left: 0;
	margin-bottom: 1.5rem;
}
.price-features li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.4rem;
}
.price-features li::before {
	content: "\2713";	/* tick */
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--zypher-purple);
}
.price-card.featured {
	border: 2px solid var(--zypher-purple);
}
.price-card.featured .card-header {
	background-color: var(--zypher-purple);
	color: #FFFFFF;
	font-weight: 600;
}


/* Portfolio
   -------------------------------------------------------------------------- */
.page-portfolio .card img {
	max-height: 200px;
	width: auto;
}
.page-portfolio .card-text {
	font-size: 0.9375rem;
}
.page-portfolio .container > .row > .col-12 > h2 {
	margin-top: 2.5rem;
}
