/*!
Theme Name: ResChem
Theme URI: https://reschem.co.uk
Author: Unbranded Digital
Author URI: https://unbranded.digitalf
Description: Custom theme for ResChem — Chemical Resistant Bund Lining Solutions.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: reschem
*/

/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
  --dark: #0f1923;
  --dark-card: #1c2535;
  --blue: #00adee;
  --blue-bg: #e8f7fd;
  --grey-bg: #f0f4f8;
  --text-dark: #0f1923;
  --text-body: #4a5565;
  --text-muted: #6a7282;
  --text-light: #d1d5dc;
  --text-check: #364153;
  --border: #f3f4f6;
  --border-card: #e2e8f0;
  --font-heading: 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1472px;
  --container-padding: 5%;
}

/* ============ BASE RESET ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-body); background: #fff; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; border-style: none; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.2; }
p { margin: 0; }
button { font: inherit; }

/* WP core injected classes */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  color: var(--blue);
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* ============ ANIMATIONS ============ */

/* Visible by default — crawlers / no-JS see content */
.reveal { opacity: 1; }

/* Only hide for the animation when JS is confirmed running */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Stagger delays only matter while JS animation is active */
html.js .reveal[data-delay="1"] { transition-delay: 0.15s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal[data-delay="1"],
  .reveal[data-delay="2"] {
    opacity: 1; transform: none; transition: none;
  }
}

/* ============ SHARED SHARED UI ============ */


.section-badge {
  display: inline-block;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-badge--light { color: var(--blue); }
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 36px;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title--light { color: #fff; }
.section-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
}
.section-desc--light { color: var(--text-light); }
.section-body {
  font-size: 16px;
  line-height: 1.625;
  color: var(--text-body);
  margin-bottom: 16px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header--left { margin-bottom: 32px; text-align: left; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.2px;
  padding: 16px 28px;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { box-shadow: 0 6px 20px -4px rgba(0,173,238,0.4); }
.btn--outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { box-shadow: 0 6px 20px -4px rgba(0,0,0,0.15); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { box-shadow: 0 6px 20px -4px rgba(0,0,0,0.3); }
.btn--sm { font-size: 14px; padding: 12px 24px; }
.btn__icon, .btn__icon-left { width: 16px; height: 16px; }
.btn--underline {color: var(--blue); text-decoration: none; text-transform: uppercase; padding: 0; background: none; border-radius:0; border-bottom: 1px solid;}

/* Link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  transition: gap 0.25s ease;
}
.link-arrow:hover { gap: 12px; }
.link-arrow__icon { width: 15px; height: 15px; }
.link-arrow--top-right {
  position: absolute;
  right: var(--container-padding);
  top: 0;
}

/* Check list */
.check-list { margin: 16px 0 24px; }
.check-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-check);
}
.check-list__icon {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-list__icon img { width: 13px; height: 13px; }




section.overview-section.archive-overview {
    padding: 50px 0;
}

section.overview-section.archive-overview h3 {
    margin: 10px 0;
}

section.overview-section.archive-overview h2{
	margin: 20px 0 10px;
}

section.overview-section.archive-overview strong {
    color: var(--blue);
}

section.overview-section.archive-overview  .intro-section__body {
    max-width: 900px;
}

.case-studies-grid {
	background: #F0F4F8;
	padding: 50px 0;
}

.home .case-studies-grid{
	padding-top:0;
}

.case-studies-grid .container{
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
	margin: 0 auto;
	max-width: var(--max-width);
}
	
.case-card {
    background: white;
    border-radius: 20px;
	width: calc(33% - 11px);
}
	
img.case-card__img.wp-post-image{
	border-radius: 20px 20px 0 0;
	height: 300px;
	width: 100%;
	object-fit: cover;
}

.case-card__body {
    padding: 24px;
}

p.news-card__excerpt {
    margin-bottom: 15px;
}

span.case-card__industry {
    color: #00ADEE;
    background: #E8F7FD;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

h3.case-card__title {
    margin: 12px 0 8px;
    font-size: 1.35rem;
}

p.case-card__challenge {
    background: #F0F4F8;
    padding: 10px;
    border-radius: 5px;
    margin: 12px 0;
    font-size: 0.8rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--blue);
    transition: gap 0.25s ease;
}

.link-arrow__icon {
    width: 15px;
    height: 15px;
}

.cs-meta-bar .wrapper {
    background: #f7fdff;
    padding: 25px;
    border-radius: 15px;
	margin: 30px 0;
	display: flex;
    flex-direction: column;
    gap: 20px;
}

.cs-meta-bar__grid{
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    row-gap: 15px;
    margin: 0 0 30px;
}

.cs-meta-bar__item {
    background: #e8f7fd;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
}

span.cs-meta-bar__label {
    font-weight: 500;
    color: var(--blue);
    margin-right: 5px;
}

.blt-image-banner {
    margin: 35px 0;
    width: 100%;
}

.blt-image-banner img{
    height:200px;
	border-radius:16px;
	object-fit:cover;
    width: 100%;
}

.blt-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 32px;
}

.blt-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
}

.blt-gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
	aspect-ratio: 3 / 2;
}

.single-build_method .case-studies-grid,
.single-lining_type .case-studies-grid,
.single-material .case-studies-grid,
.single-industry .case-studies-grid{
    background: transparent;
    padding: 0;
}

.single-build_method .case-studies-grid .container,
.single-lining_type .case-studies-grid .container,
.single-material .case-studies-grid .container,
.single-industry .case-studies-grid .container{
	margin: 0;
	padding: 0;
}

.single-build_method img.case-card__img,
.single-lining_type img.case-card__img,
.single-material img.case-card__img,
.single-industry  img.case-card__img{
    border-radius: 20px 20px 0 0;
}

.single-build_method .case-card__body,
.single-lining_type .case-card__body,
.single-material .case-card__body,
.single-industry .case-card__body{
    padding: 24px 24px 40px;
    background: #f5faff;
    border-radius: 0 0 20px 20px;
}

.single-build_method .case-studies-section,
.single-lining_type  .case-studies-section,
.single-material   .case-studies-section,
.single-industry   .case-studies-section{
    background: transparent;
}

.single-case_study .blt-content-section h3{
	margin-top: 30px;
}

.single-case_study .blt-content-section h4{
	margin-top: 15px;
}

.gform_wrapper.gravity-theme .gfield_label{
	color:var(--blue)!important;
}

section.overview-section.archive-overview .intro-section__body ul, .blt-section-body ul{
    margin-top:15px;
    margin-bottom: 20px;
}

section.overview-section.archive-overview .intro-section__body ul li, .blt-section-body ul li{
    list-style-type: disc;
    margin-left: 17px;
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .case-card {
    	width: calc(50% - 10px);
	}
}


@media (max-width: 640px) {
    .case-card {
    	width: 100%;
	}
}

header.single-news-insight__header {
    position: relative;
    min-height: 382px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f1923 0%, #1c2535 60%, #0f1923 100%);
}

header.single-news-insight__header h1{
   font-family: var(--font-heading);
    font-weight: 800;
    font-size: 48px;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 10px;
	max-width: 800px;
}

.single-news-insight__excerpt {
    font-size: 18px;
    line-height: 1.625;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 800px;
}

.single-news-insight .content-wrapper{
    padding: 50px 0;
    max-width: 800px;
    margin: auto;
}

.single-news-insight .content-wrapper .container{
	 display: flex;
    flex-direction: column;
    gap: 30px;
}

figure.single-news-insight__image img{
	width: 100%;
	object-fit: cover;
	border-radius: 10px;
	height: 400px;
}

.single-news-insight__breadcrumb {
display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.875rem;
    color: var(--blue);
}

.single-news-insight__breadcrumb a {
	text-decoration: none;
}

.single-news-insight__breadcrumb [aria-current="page"] {
	color: #ffffff85;
}

.related-news__header {
    padding: 0 var(--container-padding);
    margin: 0 auto 30px;
    max-width: var(--max-width);
}

h2.related-news__title {
    font-size: 1.8em;
}
