/*!
Theme Name: ResChem
Theme URI: https://reschem.co.uk
Author: Unbranded Digital
Author URI: https://unbranded.digital
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 ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.15s; }
.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; }

/* 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-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-list__icon img { width: 13px; height: 13px; }
