/*
Theme Name: Wincanton DG
Description: WordPress theme built by Source 17
Author: Source 17
Author URI: https://source17.co.uk
Version: 1.0
*/

/*
================================================================================

  Reset

================================================================================
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*
================================================================================

  Base

================================================================================
*/

/* Typography */
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { font-family: "Ubuntu", sans-serif; font-size: 18px; line-height: 1em; color: #313131; font-weight: 400; }
h1, h2, h3, h4, h5, h6 { font-weight: bold; line-height: 1.2em; margin-bottom: 0.75em; }
h1 { font-size: 52px; }
h2 { font-size: 52px; }
h3 { font-size: 44px; }
h4 { font-size: 28px; }
h5 { font-size: 22px; }
h6 { font-size: 18px; font-weight: 400; }
p { line-height: 1.5em; margin-bottom: 1.5em; }
b, strong { font-weight: 700; }
i, em { font-style: italic; }
small { font-size: 0.8em; }

/* Lists */
ul { list-style-type: disc; margin: 0 0 1.5em 2em; }
ol { list-style-type: decimal; margin: 0 0 1.5em 2em; }
ul li, ol li { margin-bottom: 0.75em; line-height: 1.5em; }
ul.no-list, ol.no-list, nav ul, ul.gform_fields { list-style-type: none; margin: 0px; padding: 0px; }
ul.no-list li, ol.no-list li, nav ul li, ul.gform_fields li { margin: 0px; padding: 0px; }

/* Navigation */
a { outline: none; text-decoration: none; transition: 0.3s; color: #313131; }

/* Forms */
input[type=text], input[type=email], input[type=password], input.text, input.search, textarea { font-family: inherit; font-size: inherit; -webkit-appearance: none; outline: none; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
label { cursor: pointer; }

/* Buttons */
input[type=submit], input.submit, button, input.button, a.button, .button { cursor: pointer; border-radius: 6px; background: #DE772E; color: #fff; display: inline-block; padding: 11px 20px 13px; font-size: 16px; line-height: 1em; text-transform: uppercase; font-weight: 500; -webkit-font-smoothing: antialiased; border: none; appearance: none; font-family: inherit; transition: 0.3s; }
input[type=submit]:hover, input.submit:hover, button:hover, input.button:hover, a.button:hover, .button:hover { background: #f2f2f2; color: #000; }

/* Text Selection */
::-moz-selection { background: #333; color: #fff; text-shadow: none; }
::selection { background: #333; color: #fff; text-shadow: none; }

/* Misc */
img { max-width: 100%; height: auto; border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/* Enable Box Sizing */
*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }


/*
================================================================================

  Page

================================================================================
*/

html { scroll-behavior: smooth; }
body { background: #fff; }
.wrapper { max-width: 1440px; margin: 0 auto; padding: 0 80px; }

.alignright { margin: 0 0 30px 30px; }
.alignleft { margin: 0 30px 30px 0; }

.mobile-only { display: none; }

/*
================================================================================

  Header

================================================================================
*/

.page-header { position: fixed; top: 0; left: 0; right: 0; z-index: 5; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.page-header .site-logo { margin-right: auto; min-width: 200px; }
.page-header .main-nav { margin: 0 auto; }
.page-header .site-button { margin-left: auto; min-width: 200px; text-align: right; }

.header-main { background: #fff; padding: 16px 0; height: 72px; }
.header-main .wrapper { display: flex; justify-content: space-between; align-items: center; }

.main-nav ul { display: flex; gap: 2em; }
.main-nav ul li { font-size: 16px; line-height: 1.5em; }
.main-nav a:hover { color: #DE772E; }

#btn-win a { background: #f2f2f2; color: #313131; }
#btn-win a:hover { background: #DE772E; color: #fff; }

.site-logo a { display: block; width: 180px; }

#btn-nav {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    transform: rotate(0deg);
    transition: 0.3s;
    cursor: pointer;
    background: none;
    -webkit-appearance: none;
    display: none;
    z-index: 99999;
    border: none;
    outline: none;
    border-radius: 0;
}

#btn-nav span {
    display: block;
    position: absolute;
    height: 2px;
    width: 18px;
    background: #041E42;
    border-radius: 1px;
    opacity: 1;
    right: 12px;
    transform: rotate(0deg);
    transition: 0.3s;
}

#btn-nav span:nth-child(1) {
    top: 15px;
}

#btn-nav span:nth-child(2) {
    top: 20px;
}

#btn-nav span:nth-child(3) {
    top: 25px;
}

#btn-nav.open span {  }

#btn-nav.open span:nth-child(1) {
    top: 19px;
    transform: rotate(-135deg);
}

#btn-nav.open span:nth-child(2) {
    opacity: 0;
    right: -10px;
}

#btn-nav.open span:nth-child(3) {
    top: 19px;
    transform: rotate(135deg);
}

/*
================================================================================

  Main

================================================================================
*/

#page { padding-top: 72px; }

.page-section { padding: 112px 0; }

.section-notification { display: none; position: absolute; top: 0; left: 0; right: 0; z-index: 4; background: #041E42; color: #fff; padding: 12px 0; font-size: 16px; line-height: 1.5em; text-align: center; }
.section-notification .wrapper { position: relative; }
.section-notification p { margin: 0; }
.section-notification a { color: #fff; text-decoration: underline; }
.section-notification a:hover { text-decoration: none; }
#notification-close { text-decoration: none; position: absolute; top: 50%; right: 80px; display: block; width: 14px; height: 15px; background: url(images/icon-close.svg) center center no-repeat; background-size: 100% auto; margin-top: -7px; }
#notification-close:hover { opacity: 0.5; }

.section-banner { background: #666; position: relative; }
.section-banner > .wrapper { height: 625px; }
.section-banner .content { display: flex; justify-content: flex-start; align-items: center; height: 100%; width: 50%; color: #fff; position: relative; z-index: 3; }
.section-banner .content-inner { padding-top: 50px; }
.section-banner h1 { font-size: 72px; line-height: 1.1em; margin-bottom: 0.25em; }
.banner-image { position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 2; background-size: cover !important; }
.banner-image::before { content: ''; display: block; position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 3; background: rgba(0,0,0,0.5); }

.cols2 { display: grid; grid-template-columns: 1fr 44%; grid-gap: 80px; }
.cols3 { display: grid; grid-template-columns: repeat(3,1fr); grid-gap: 32px; }

.intro { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.intro h2, .section-contact h2, .page-main h1 { position: relative; padding-bottom: 20px; margin-bottom: 48px; }
.intro h2::after, .section-contact h2::after { content: ''; display: block; background: #0085CA; width: 65px; height: 5px; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.page-main h1::after { content: ''; display: block; background: #0085CA; width: 65px; height: 5px; position: absolute; bottom: 0; left: 0; }
.intro p:last-child { margin-bottom: 0; }

.content { padding: 64px 0; }
.content p:last-child, p.readmore, .col p:last-child { margin-bottom: 0; }

.image { border-radius: 8px; overflow: hidden; background: #eee; }
.image img { width: 100%; height: 100%; object-fit: cover; }

.section-services, .section-news { background: #EFEFEF; }
.section-services .col { background: #fff; border-radius: 8px; padding: 32px; }
.service-icon { width: 48px; height: 48px; margin-bottom: 24px; }
.service-content p { font-size: 16px; margin-bottom: 0; }
.section-services .footer { text-align: center; padding-top: 64px; }
.section-services .footer p:last-child { margin-bottom: 0; }
.section-services .footer a { color: #004995; text-decoration: underline; }
.section-services .footer a:hover { text-decoration: none; }

.section-leadership .intro { margin-bottom: 0; }

.section-contact { background: #041E42; }
.section-contact .content { color: #fff; }
.section-contact h2::after { left: 0; transform: none; }
.section-contact .form { background: #fff; border-radius: 8px; padding: 32px; }
p.contact-location { font-size: 16px; background: url(images/icon-location.png) 0 0 no-repeat; background-size: 24px auto; padding-left: 34px; min-height: 24px; }

.scroll-offset, body.page-id-127 .page-content h2 { scroll-margin-top: 72px; }
body.page-id-127 .page-content h4 { scroll-margin-top: 100px; }

.post-listing { display: flex; gap: 32px; justify-content: center; align-items: stretch; }
.post-item { border-radius: 8px; overflow: hidden; background: #041E42; flex: 1; max-width: 405px; }
.post-item a { display: block; color: #fff; height: 100%; position: relative; }
.post-thumb { position: relative; overflow: hidden; }
.post-thumb img { position: relative; z-index: 1; transition: 1s; }
.post-cat { position: absolute; top: 0; left: 0; z-index: 2; background: #313131; color: #fff; text-transform: uppercase; padding: 6px 10px; font-size: 14px; line-height: 1em; }
.post-intro { padding: 24px 24px 70px; }
.post-intro h5 { line-height: 1.4em; margin-bottom: 0; }
.post-item a:hover .post-thumb img { transform: scale(1.05); }
.post-item p.readmore { font-size: 16px; position: absolute; bottom: 24px; left: 24px; }
.post-item p.readmore span { position: relative; padding-right: 26px; }
.post-item p.readmore span::after { content: ''; display: block; width: 14px; height: 2px; background: #0085CA; position: absolute; top: 50%; right: 0; }

.page-intro { max-width: 800px; margin: 0 auto 84px; text-align: left; }
.page-intro p:last-child { margin-bottom: 0; }

.page-content { text-align: left; }
.page-content h2 { text-align: left; font-size: 36px; padding-top: 1em; text-wrap: balance; }
.page-content h3 { font-size: 28px; }
.page-content h4 { font-size: 22px; }
.page-content h5 { font-size: 18px; }
.page-content a { text-decoration: underline; }
.page-content a:hover { text-decoration: none; }

.page-intro ul ul { list-style-type: circle; padding-top: 1em; }
.page-intro ul ul ul { list-style-type: square; }

.intro-block { margin-bottom: 48px; padding: 24px; background: #f2f2f2; border-radius: 8px; }
.intro-block p:last-child { margin-bottom: 0; }

body.error404 .page-content { text-align: center; }

ul.team-list li { margin-bottom: 64px; display: grid; grid-template-columns: 405px 1fr; grid-gap: 24px; }
ul.team-list li:last-child { margin-bottom: 0; }
.team-photo-inner { border-radius: 8px; overflow: hidden; }
.team-desc h5 { margin-bottom: 0.25em; }
.team-desc p { font-size: 16px; }
.team-desc p:last-child { margin-bottom: 0; }

/*
================================================================================

  Gravity Forms

================================================================================
*/

.gform_validation_container, .gfield_required { display: none !important; }
.gfield { margin-bottom: 24px; }
.gfield input, .gfield textarea { display: block; appearance: none; background: #f2f2f2; border: none; border-radius: 6px; padding: 12px; margin: 0; width: 100%; font-size: 16px; outline: none; }
.gfield_label { font-size: 16px; display: block; margin-bottom: 8px; }
.gfield input.gfield-choice-input { width: 20px; height: 20px; padding: 0; border-radius: 2px; cursor: pointer; }
.gfield input.gfield-choice-input:checked { background: red; }
.gfield--type-checkbox .ginput_container_checkbox { float: left; margin-right: 8px; }
.gfield_description { font-size: 14px; }
.gfield_description a { text-decoration: underline; }
.gfield_description a:hover { text-decoration: none; }
.gform_footer { text-align: right; position: relative; }
.gform_footer .button { position: relative; z-index: 1; outline: none !important; box-shadow: none !important; border: none !important; }
.gform_ajax_spinner { position: absolute; bottom: 12px; right: 110px; z-index: 2; }

.gform_validation_errors { background: #0085CA; padding: 24px; border-radius: 6px; margin-bottom: 24px; }
.gform_validation_errors h2 { color: #fff; font-size: 20px; margin: 0; padding: 0; }
.section-contact .gform_validation_errors h2::after { display: none; }
.gfield_validation_message { color: #0085CA; padding-top: 5px; font-size: 14px; }

#field_1_6 legend, #label_1_6_1 { display: none; }

/*
================================================================================

  Footer

================================================================================
*/

.footer-main { padding: 64px 0; }
.footer-main .wrapper { display: flex; justify-content: space-between; }

.footer-nav { padding: 8px 0 0 24px; }
.footer-nav ul { display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-nav ul li { font-size: 14px; white-space: nowrap; }
.footer-nav a { font-weight: 700; -webkit-font-smoothing: antialiased; }
.footer-nav a:hover { color: #DE772E; }

.footer-bottom { background: #EFEFEF; padding: 12px 0; }
.footer-bottom p { font-size: 14px; text-align: center; margin: 0; }

/*
================================================================================

  Media Queries

================================================================================
*/

@media only screen and (max-width: 1220px) {
	.page-header .site-logo { min-width: 0; }
  .footer-nav { padding-left: 24px; }
  ul.team-list li { grid-template-columns: 1.2fr 2fr; }
}

@media only screen and (max-width: 1023px) {
  .wrapper { padding: 0 24px; }
}

@media only screen and (max-width: 880px) {
  body, .service-content p, .post-item p.readmore, p.contact-location, .gfield_label, .team-desc p { font-size: 14px; }
  h1, h2 { font-size: 40px; }
  h3 { font-size: 32px; }
  h4 { font-size: 20px; }
  h5 { font-size: 18px; }
  #btn-nav { display: block; margin-right: -12px; }
  #nav { display: none; position: fixed; top: 72px; bottom: 0; left: 0; right: 0; z-index: 9; background: #041E42; }
  #nav ul { display: block; text-align: center; padding: 24px; }
  #nav ul li { font-size: 20px; margin-top: 0.5em; }
  #nav a { color: #fff; -webkit-font-smoothing: antialiased; }
  #btn-win { display: none; position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 10; }
  #btn-win .button { display: block; text-align: center; }
  #notification-close { right: 24px; }
  .section-notification { text-align: left; }
  .section-notification p { font-size: 12px; margin-right: 24px; text-wrap: balance; }
  .section-banner { padding: 64px 0; }
  .section-banner > .wrapper { height: auto; }
  .section-banner h1 { font-size: 44px; }
  .section-banner .content { width: 100%; }
  .section-banner .content p { font-size: 12px; }
  input[type=submit], input.submit, button, input.button, a.button, .button { font-size: 12px; padding: 11px 48px 13px; }
  .cols2, .cols3 { display: block; }
  .cols2 .content { margin-bottom: 48px; }
  .page-section { padding: 48px 0; }
  .content { padding: 0; }
  .col { margin-bottom: 24px; }
  .col:last-child { margin-bottom: 0; }
  .section-services .col { padding: 24px; }
  #overview p { font-size: 16px; }
  .intro { margin-bottom: 48px; }
  .intro h2, .section-contact h2:not(.gform_submission_error), .page-main h1 { margin-bottom: 36px; }
  .section-services .footer { padding-top: 48px; }
  .post-listing { display: block; }
  .post-item { margin: 0 auto 36px; }
  .post-item:last-child { margin-bottom: 0; }
  .section-contact .form { padding: 24px; }
  .footer-main { padding: 48px 0; }
  .footer-main .wrapper { display: block; }
  .footer-nav { padding-left: 0; padding-top: 36px; }
  .footer-nav ul { display: block; }
  .footer-nav ul li { margin-bottom: 1em; }
  .footer-nav ul li:last-child { margin-bottom: 0; }
  .footer-bottom span { display: block; }
  .gform_validation_errors h2 { font-size: 18px; }
  .gfield_validation_message { font-size: 12px; }
  .page-intro { margin-bottom: 48px; }
}

@media only screen and (max-width: 600px) {
  ul.team-list li { display: block; }
  .team-photo { max-width: 405px; margin: 0 auto 24px; }
}

@media only screen and (min-width: 881px) {
  #nav, #btn-win { display: block !important; }
}

/*
================================================================================

  Print Styles

================================================================================
*/

@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}