:root {
    --primary-colour: #3653c7;
    --secondary-colour: #283593;
    --tertiary-colour: #f62626;
    --default-font: 'Ubuntu', sans-serif;
    --heading-font: 'Ubuntu', sans-serif;
    --main-padding: 15px;
}

html {
    font-size: 87.5%;
}
body {
    -moz-hyphens: none !important;
    hyphens: none !important;
    word-wrap: normal !important;
    text-rendering: optimizeLegibility;
    color: #444;
    font-family: var(--default-font) !important;
    font-weight: 300;
    font-size: 1rem;
}
h1,
h2,
h3,
h4,
h5 {
    clear: both;
}
h3 {
    font-size: 32px;
    font-weight: 800;
    color: #000000;
    margin: 1.714285714rem 0;
    line-height: 1.846153846;
}
h4 {
    color: var(--secondary-colour);
    margin: 0 0 20px 0;
    font-size: 24px;
    line-height: 1.846153846;
}
p {
    color: #444;
    font-family: var(--default-font) !important;
    font-weight: 300;
    font-size: 1rem;
    margin: 0 0 24px;
    margin: 0 0 1.714285714rem;
    line-height: 1.714285714;
}
a {
    outline: none;
    color: var(--primary-colour);
}
a:visited {
    color: #9f9f9f;
}
img {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 0;
}
body, article, aside, details, figcaption, figure, footer, header, hgroup, nav, section, p {
    display: block;
    margin: 0;
    border: 0;
    font-size: 100%;
}
.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
.row-style {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: nowrap;
    -ms-justify-content: space-between;
    justify-content: space-between;
}
header#main-header {
    background: #265dc9;
    padding: 45px 0;
}
header#main-header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
header#main-header .logo {
    font-size: 28px;
    line-height: 28px;
}
header#main-header .logo a {
    color: #ffffff;
    text-decoration: none;
}
header#main-header .logo a img {
    max-width: 250px;
}

/* DETAILS */
header#main-header .header-details {
    text-align: right;
}
header#main-header .header-details p {
    font-size: 16px;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 24px;
}
header#main-header p a {
    color: #ffffff;
    text-decoration: none;
}
header#main-header .header-details p:last-of-type {
    margin: 0;
}
header#main-header p i {
    color: var(--tertiary-colour);
    margin: 0 6px 0 0;
}
header#main-header .header-details span {
    margin: 0 15px;
    visibility: hidden;
}

/* SOCIAL */
header#main-header .header-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
header#main-header .header-social ul li:first-of-type {
    margin: 0;
}
header#main-header .header-social ul li {
    display: inline-block;
    margin: 0 0 0 5px;
}
header#main-header .header-social ul li a {
    font-size: 28px;
    color: var(--tertiary-colour);
}

/* NAVIGATION */
nav {
    background: #000000;
    z-index: 99999 !important;
}
#navigation {
    padding: 0;
    margin: 0;
}
#navigation {
    /*margin-top: 24px;*/
    /*margin-top: 1.714285714rem;*/
    text-align: center;
}
#navigation ul.main-menu {
    border: 0;
    text-align: left;
    padding: 0;
    margin: 0;
    width: 100%;
    display: inline-block !important;
    text-indent: 0;
    list-style: none;
}
#navigation ul li {
    margin: 0;
}
#navigation ul.main-menu li {
    position: relative;
    /*margin-top: 24px;
    margin-top: 1.714285714rem;*/
    font-size: 12px;
    font-size: 0.857142857rem;
    line-height: 1.42857143;
}
ul.main-menu li a, #navigation li {
    display: inline-block;
    text-decoration: none;
}
#navigation li.current-menu-item > a {
    background: var(--secondary-colour);
}
#navigation ul li a {
    padding: 0 15px;
    outline: none;
    color: #ffffff;
    font-family: var(--default-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}
#navigation li a {
    border-bottom: 0;
    color: #6a6a6a;
    line-height: 3.692307692;
    text-transform: uppercase;
    white-space: nowrap;
}
#navigation ul li a:hover {
    background: var(--secondary-colour);
}
.main-menu a {
    color: #5e5e5e;
}
#navigation li.mobile-menu-item {
    display: none;
}

/* BANNER */
#banner {
    background: url(https://www.unionsteel.co.uk/wp-content/uploads/2023/06/union-steel-tubes-stock-warehouse.jpg) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.7);
}
#banner .wrap {
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#banner h1 {
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
    color: #ffffff;
    font-size: 50px;
    font-weight: 800;
    margin: 0;
    line-height: 54px;
}
@-webkit-keyframes fadeIn {
	from { opacity: 0; }
	  to { opacity: 1; }
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
#banner p {
    position: relative;
    animation: fadeIn 1s ease-out 1.5s forwards;
    font-weight: 300;
    opacity: 0;
    color: #ffffff;
    font-size: 22px;
    margin: 28px 0;
    line-height: 30px;
}
#banner p a:hover {
    border-color: var(--tertiary-colour);
    color: var(--tertiary-colour);
}

#banner p a {
    border: 2px solid var(--tertiary-colour);
    padding: 15px;
    text-decoration: none;
    color: var(--tertiary-colour);
    text-shadow: none;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 16px;
    margin: 0 4px;
}

/* PAGE */
#page-content #home-welcome-text {
    align-items: flex-start;
    margin: 90px 0 30px 0;
}
#home-welcome-text {
    text-align: center;
}
#home-welcome-text h3 {
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    margin: 1.714285714rem 0;
    line-height: 1.846153846;
    margin-top: 0;
}
#home-welcome-text p {
    font-size: 20px;
    font-weight: 300;
    color: #444444;
    margin: 0 0 24px;
    margin: 0 0 1.714285714rem;
    line-height: 1.714285714;
}

/* CONTENT */
#home-text h3 {
    font-size: 32px;
    font-weight: 800;
    color: #000000;
    margin: 0;
    line-height: 1.846153846;
    margin-top: 0;
}
#home-text h4 {
    color: var(--secondary-colour);
    margin: 0 0 20px 0;
    font-size: 24px;
    line-height: 1.846153846;
}
#home-text p {
    font-size: 16px;
    margin: 0 0 24px;
    margin: 0 0 1.714285714rem;
    line-height: 1.714285714;
}

/* SIDE */
#home-text .content-left {
    width: 70%;
    width: calc(70% - ( 0.3 * 30px ) );
}
#home-text .content-right {
    width: 30%;
    width: calc(30% - ( 0.7 * 30px ) );
}
#home-text .side {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 30px;
}
#home-text ul.service-list {
    padding: 0;
    margin: 0;
}
#home-text ul.service-list li {
    font-size: 16px;
    list-style: none;
    line-height: 1.714285714;
    margin: 10px 0;
}
#home-text ul.service-list li::before {
    margin: 0 10px 0 0;
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: bold;
    color: var(--tertiary-colour);
}
#home-text .side-block {
    background: var(--secondary-colour);
    padding: 25px;
}
#home-text .side-block h5 {
    color: #ffffff;
    font-size: 20px;
    line-height: 25px;
    margin: 0 0 10px 0;
    text-transform: none;
}
#home-text .side-block p {
    color: #ffffff;
    margin: 0 0 24px;
    margin: 0 0 1.714285714rem;
    line-height: 1.714285714;
}
#home-text .side-block p a {
    color: #ffffff;
}

/* BOXES */
#home-boxes > div {
    box-sizing: border-box;
    background: var(--primary-colour);
    padding: 20px;
    width: calc(25% - ( 0.75 * 30px ) );
}
#home-boxes {
    text-align: center;
    align-items: stretch;
    margin: 54px 0;
    align-content: center;
}
#home-boxes span {
    color: var(--tertiary-colour) !important;
    font-size: 40px;
}
#home-boxes .service-icon {
    margin: 0 0 10px 0;
}
#home-boxes h3 {
    color: #ffffff;
    margin: 0 0 5px 0;
    line-height: 24px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
#home-boxes p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.714285714;
}
#home-boxes p a {
    background: #000000;
    color: #ffffff;
    padding: 12px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
}

/* FOOTER */
footer {
    background: #f9f9f9;
    padding: 25px 0;
    margin: 54px 0 0 0;
}
footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
footer .wrap aside {
    width: 23%;
}
#footer h3.footer-title {
    letter-spacing: 1px;
    color: #000000;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 800;
    line-height: 2.181818182;
    margin: 0;
}
#footer p {
    color: #444444;
    line-height: 24px;
    margin: 0 0 20px 0;
    font-size: 15px;
}
#footer ul {
    list-style: square;
    margin: 0 0 0 13px;
    padding: 0;
}
#footer ul li {
    font-size: 15px;
    list-style: square;
    color: var(--secondary-colour);
    margin: 13px 0;
}
#footer ul.service-list {
    margin: 0;
    padding: 0;
}
#footer ul.service-list li {
    list-style: none;
    color: #444444;
}
#footer ul.service-list li::before {
    margin: 0 10px 0 0;
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: bold;
    color: var(--secondary-colour);
}
#footer a {
    color: #000000;
    text-decoration: none;
}
#footer strong {
    font-weight: 800;
    color: var(--secondary-colour);
}

/* COPYRIGHT */
#copyright {
    background: var(--secondary-colour);
    padding: 15px 0;
}
#copyright .wrap {
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#copyright p {
    color: rgba(255, 255, 255, 0.45);
}
#copyright a {
    color: #ffffff;
    text-decoration: none;
}

/* BACK TO TOP */
#back-to-top {
    z-index: 77777;
    position: fixed;
    bottom: 5px;
    right: 5px;
    background: var(--tertiary-colour);
    color: #ffffff;
}
#back-to-top a {
    display: block;
    padding: 2px 7px;
    outline: none;
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
}
#back-to-top .fa-fw {
    text-align: center;
    width: 1.25em;
}

@media (max-width: 900px) {

header#main-header .wrap, .row-style {
    flex-direction: column;
}
header#main-header .wrap .header-details {
    margin: 20px 0 10px 0;
    text-align: center;
}
header#main-header .wrap .header-social {
    margin: 8px 0 20px;
}
#banner {
    height: auto;
    padding: 10px 0;
}
#banner h1 {
    font-size: 28px;
    line-height: 30px;
}
#banner p {
    font-size: 18px;
    line-height: 26px;
}
#banner p a {
    font-size: 14px;
    line-height: 26px;
}
#home-text .content-left {
    width: 100%;
}
#home-text .content-right {
    width: 100%;
}
}

@media (max-width: 780px) {
#navigation ul.main-menu {
    text-align: center;
}
#home-boxes {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}
#home-boxes > div {
    width: 100%;
}
.service-box {
    margin: 20px 0;
}

footer .wrap aside {
    width: 40%;
    padding: 0px 20px;
}

}

@media (max-width: 700px) {

#main-header .header-details span {
    display: block;
    height: 0;
}

/* NAV */
nav .wrap {
    padding: 0 20px;
    position: relative;
}
#navigation {
    min-height: 50px;
}
#navigation ul li {
    display: block;
}
#navigation ul.main-menu {
    text-align: center;
    margin: 51px 0 0px;
}
#navigation .main-menu li.menu-item:first-of-type {
    margin-top: 20px;
}
#navigation .main-menu li.menu-item:nth-last-child(2) {
    margin-bottom: 20px;
}
#navigation .main-menu li.menu-item {
    display: none;
}
#navigation .main-menu li.mobile-menu-item {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 999;
    display: block;
    left: 0%;
}
#navigation.mobile .main-menu li.menu-item {
    display: block !important;
}
#navigation i {
    font-size: 20px;
}

/* BANNER */
#banner .wrap p:last-of-type {
    line-height: 60px;
}

/* FOOTER */
#footer aside {
    width: 100% !important;
    margin: 25px 0;
}

/* COPYRIGHT */
#copyright {
    padding: 20px 0;
}
#copyright .wrap {
    justify-content: center;
}
#copyright .wrap p {
    line-height: 20px;
    margin: 5px 0;
    text-align: center;
    width: 100%;
}
}