/* madebymills.co.uk: all styling, plain CSS, no frameworks.
   Replaces Bootstrap 3 / bootsnav / animate.css / Font Awesome / owl.carousel from the old ThemeSine "Browny" template.
   Layout numbers (container 1170/970/750, paddings, font sizes, colours) were taken from the old computed styles so the page looks the same. */

@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(/assets/fonts/poppins-300.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700.woff2) format("woff2"); }

:root {
  --mauve: #a280a0;
  --gold: #c4975c;
  --ink: #43485c;
  --muted: #999fb3; /* borders only: too light for text */
  --muted-text: #6d7692; /* same hue as --muted, darkened to 4.5:1 on white (WCAG AA) */
  --line: #e5ebf2;
  --pale: #f9fbfd;
}

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

html { font-size: 10px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; height: 100%; }

body {
  font: 400 16px/1.42857143 Poppins, sans-serif;
  color: #676a81;
  background: #fff;
  max-width: 1920px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100%;
}

a, a:hover, a:focus { display: inline-block; color: #6a708e; font-size: 16px; text-decoration: none; }
h1, h2, h3 { color: var(--ink); font: inherit; font-size: 16px; line-height: 1.1; text-transform: capitalize; }
p { color: var(--ink); font-size: 14px; line-height: 1.8; }
img { border: 0; max-width: 100%; vertical-align: middle; }
ul { list-style: none; }
button { background: transparent; border: 0; font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mauve); outline-offset: 2px; }

.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }
.icon-wide { width: 0.875em; }

/* Bootstrap-style grid, only what the page uses */
.container { width: 100%; padding: 0 15px; margin: 0 auto; }
.row { margin: 0 -15px; } /* block on phones so stacked columns collapse their margins like Bootstrap floats did */
.col { width: 100%; padding: 0 15px; }
.text-center { text-align: center; }
@media (min-width: 768px) {
  .container { max-width: 750px; }
  .row { display: flex; flex-wrap: wrap; }
  .brand { margin-left: -15px; }
  .site-nav ul { margin-right: -15px; }
  .col-6 { width: 50%; }
  .col-5 { width: 41.66666667%; }
  .col-4 { width: 33.33333333%; }
  .off-1 { margin-left: 8.33333333%; }
}
@media (min-width: 992px) { .container { max-width: 970px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }

/* Header (fixed bar over the hero) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  max-width: 1920px; margin: 0 auto;
  background: #fff; box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}
.site-header .container { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.brand { display: block; padding: 20.5px 0 19.5px; }
.brand img { width: 50px; height: 50px; display: block; }
.nav-toggle {
  display: none; border: 1px solid var(--mauve); padding: 10px; margin-top: 21px;
  font-size: 18px; line-height: 25.7142857px; color: var(--mauve);
}
.nav-toggle .icon { width: 0.857em; height: 1em; vertical-align: -0.125em; }
.site-nav ul { display: flex; margin: 0; }
.site-nav a {
  padding: 35px 20px; line-height: 20px; color: #6f6f6f; text-transform: uppercase; font-weight: 400;
  transition: color 0.3s linear;
}
.site-nav a:hover, .site-nav a:focus, .site-nav a.active { color: var(--mauve); }
@media (max-width: 1199px) { .site-nav a { padding: 35px 8px; } }
@media (max-width: 992px) {
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; display: none; padding-bottom: 30px; }
  .site-nav.open { display: block; }
  .site-nav ul { display: block; }
  .site-nav a { display: block; padding: 15px 0; }
}

/* Hero */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 890px; background: url(/assets/img/welcome-banner.jpg) center / cover no-repeat;
}
.hero::before { position: absolute; inset: 0; content: ""; background: rgba(31, 44, 108, 0.65); }
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: #fff; font-size: 54px; font-weight: 700; line-height: 1.5; text-transform: uppercase; }
.hero h1 span { color: var(--mauve); }
.hero p { margin: 30px 0 60px; color: var(--gold); font-size: 20px; font-weight: 300; line-height: 36px; text-transform: uppercase; letter-spacing: 1px; }
.hero h1, .hero p { animation: fade-in-up 1s both; }
@keyframes fade-in-up { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 1199px) { .hero { height: 768px; } }

/* Sections */
section[id] { scroll-margin-top: 40px; }
.section-heading h2 { padding-bottom: 50px; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 600; text-transform: uppercase; }

.about { padding: 50px 0 100px; }
.about-content { padding-top: 100px; }
.about .lead { color: #3c4258; font-size: 18px; font-weight: 500; line-height: 1.8; text-transform: none; }
.about .copy { padding: 0 0 25px; color: var(--muted-text); font-size: 16px; }
.about .copy-first { padding-top: 35px; }
.about .copy-last { padding-bottom: 43px; border-bottom: 1px solid var(--muted); }
.tag { margin: 35px 0; }
.tag p { margin-top: 3px; color: var(--muted-text); font-size: 16px; font-weight: 300; text-align: center; }
.about-logo img { display: block; width: 100%; max-width: 468px; height: auto; }
@media (max-width: 767px) { .about-logo { max-width: 450px; } }

.profiles, .portfolio { padding: 50px 0 100px; border: 1px solid var(--line); }
.profiles-content, .portfolio-content { padding-top: 100px; }
.profile {
  position: relative; overflow: hidden; height: 150px;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid #b2c1ce;
}
.profile::before {
  position: absolute; inset: 0; content: "";
  background: linear-gradient(to right, var(--mauve) 0%, var(--gold) 100%);
  transform: scale(0); transition: 0.5s;
}
.profile:hover::before { transform: scale(1); }
.profile a { position: relative; display: flex; flex-direction: column; align-items: center; }
.profile img { display: block; width: 50px; height: 50px; }
.profile span { padding-top: 5px; color: #636a82; font-size: 16px; text-align: center; text-transform: capitalize; }
.profile:hover span { color: #fff; }
@media (max-width: 767px) { .profile { max-width: 350px; margin: 30px auto; border: 0; } }

.item { position: relative; overflow: hidden; margin-bottom: 30px; }
.item img { display: block; width: 100%; height: auto; transition: 0.5s; }
.item:hover img { transform: scale(1.5); }
@media (max-width: 767px) { .item { max-width: 350px; margin: 0 auto 30px; } }

.contact { padding: 50px 0 100px; background: var(--pale); }
.contact .container { padding-bottom: 30px; }
.contact .col { text-align: center; }
.contact a { color: #6a708e; }
.contact a .icon { font-size: 50px; }

.site-footer p { padding: 38px 0; color: var(--muted-text); text-align: center; text-transform: capitalize; }
.site-footer a { color: var(--muted-text); }

.to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 2; display: none;
  width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%;
  background: var(--gold); color: #fff; font-size: 20px; line-height: 40px; text-align: center;
  transition: 0.5s;
}
.to-top.show { display: block; }
.to-top:hover { background: #fff; color: var(--gold); }
.to-top .icon { position: relative; width: 0.625em; animation: bounce 1s alternate infinite; }
@keyframes bounce { from { bottom: 0; } to { bottom: 7px; } }

/* 404 */
.not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 100vh; padding: 120px 15px 60px; text-align: center; }
.not-found h1 { font-size: 24px; font-weight: 600; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
