/* ============================================================
   4D CLEANING APPROACH PAGE — page-specific styles
   Relies on styles.css for variables, layout utilities, nav, footer
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.fd-hero {
  background: linear-gradient(135deg, #050f08 0%, #001a09 35%, #003a14 70%, #00632b 100%);
  padding: 36px 0 72px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.fd-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 75% 60%, rgba(0,99,43,0.3) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 30%, rgba(0,50,20,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.fd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
}
.fd-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.fd-breadcrumb a:hover { color: #fff; }
.fd-breadcrumb span { color: rgba(255,255,255,0.3); }

.fd-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.fd-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.fd-hero-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 18px;
}

.fd-hero-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin: 0 0 28px;
  max-width: 480px;
}

.fd-hero-dimensions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.fd-dim-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 5px 12px;
  border: 1px solid;
}

.fd-dim-num {
  font-size: 0.65rem;
  font-weight: 800;
  opacity: 0.7;
}

.fd-dim-name {
  font-size: 0.78rem;
  font-weight: 600;
}

.fd-dim-1 { background: rgba(110,230,158,0.15); border-color: rgba(110,230,158,0.3); color: #6ee69e; }
.fd-dim-2 { background: rgba(0,180,216,0.12); border-color: rgba(0,180,216,0.25); color: #7dd9f0; }
.fd-dim-3 { background: rgba(240,165,0,0.12); border-color: rgba(240,165,0,0.25); color: #f5c430; }
.fd-dim-4 { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.8); }

.fd-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   QUADRANT VISUAL
   ============================================================ */
.fd-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fd-quadrant {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 320px;
  height: 320px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.fd-quad-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  position: relative;
  transition: opacity 0.2s;
}

.fd-q1 { background: rgba(110,230,158,0.12); border: 1px solid rgba(110,230,158,0.2); }
.fd-q2 { background: rgba(0,180,216,0.1); border: 1px solid rgba(0,180,216,0.18); }
.fd-q3 { background: rgba(240,165,0,0.1); border: 1px solid rgba(240,165,0,0.18); }
.fd-q4 { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }

.fd-quad-icon {
  font-size: 1.6rem;
}

.fd-quad-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.fd-quad-sub {
  font-size: 0.67rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}

.fd-quad-centre {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: #00632b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 0 6px rgba(0,0,0,0.5);
  z-index: 2;
}

.fd-quad-logo {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.fd-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.fd-section-label.text-green { color: var(--green); }

/* ============================================================
   TRIATHLETE INTRO
   ============================================================ */
.fd-intro-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.fd-intro-pull p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--dark);
  margin-bottom: 18px;
}

.fd-intro-pull p:first-child {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
}

.fd-attribution {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}

.fd-triathlete-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.fd-tri-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.fd-triathlete-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px;
}

.fd-triathlete-card p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 10px;
}
.fd-triathlete-card p:last-child { margin-bottom: 0; }

/* ============================================================
   THE FOUR DIMENSIONS
   ============================================================ */
.fd-dims {
  background: #fff;
}

.fd-dims-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fd-dim-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.fd-dim-card-header {
  padding: 24px 24px 20px;
  color: #fff;
}

.fd-dh-1 { background: linear-gradient(135deg, #006b2e, #00a847); }
.fd-dh-2 { background: linear-gradient(135deg, #0077a8, #00b4d8); }
.fd-dh-3 { background: linear-gradient(135deg, #a06800, #f0a500); }
.fd-dh-4 { background: linear-gradient(135deg, #1a1a2e, #2d4a3e); }

.fd-dim-card-num {
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 6px;
}

.fd-dim-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.fd-dim-card-sub {
  font-size: 0.8rem;
  opacity: 0.75;
}

.fd-dim-card-body {
  background: #fff;
  padding: 20px 24px 22px;
}

.fd-dim-card-body p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 12px;
}
.fd-dim-card-body p:last-of-type { margin-bottom: 14px; }

.fd-dim-tech-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #444;
  font-weight: 500;
}

/* ============================================================
   CO2 SECTION
   ============================================================ */
.fd-co2-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.fd-co2-content h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin: 0 0 18px;
}

.fd-co2-content p {
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 14px;
}

.fd-co2-note {
  background: #fff8e6;
  border: 1px solid #f0d87a;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: #6b5c2e;
  line-height: 1.6;
}

.fd-co2-note-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a07800;
  margin-bottom: 6px;
}

/* CO2 meter mock */
.fd-co2-meter {
  background: #111a12;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.2);
  margin-bottom: 14px;
}

.fd-co2-meter-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.fd-co2-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.fd-co2-level-row:last-child { margin-bottom: 0; }

.fd-co2-ppm {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  width: 56px;
  flex-shrink: 0;
  text-align: right;
}

.fd-co2-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.fd-co2-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.fd-co2-bar-fill.good  { background: #27c93f; }
.fd-co2-bar-fill.ok    { background: #6ee69e; }
.fd-co2-bar-fill.warn  { background: #f0a500; }
.fd-co2-bar-fill.poor  { background: #e84848; }

.fd-co2-status {
  font-size: 0.68rem;
  font-weight: 600;
  width: 80px;
  flex-shrink: 0;
}

.fd-co2-status.good  { color: #27c93f; }
.fd-co2-status.ok    { color: #6ee69e; }
.fd-co2-status.warn  { color: #f0a500; }
.fd-co2-status.poor  { color: #e84848; }

.fd-co2-meter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.68rem;
}

.fd-co2-live {
  color: #6ee69e;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.fd-co2-reading {
  color: rgba(255,255,255,0.5);
}

.fd-co2-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--green-light);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
}

.fd-co2-callout span {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fd-co2-callout p {
  font-size: 0.83rem;
  color: #1a3d26;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   HOW TECHNOLOGIES CONNECT
   ============================================================ */
.fd-connect {
  background: #fff;
}

.fd-connect-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 48px;
}

.fd-connect-tech {
  background: #f7f9f7;
  border: 1px solid #eaf0ea;
  border-radius: 14px;
  padding: 28px;
}

.fd-ct-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.fd-ct-dims {
  margin-bottom: 12px;
}

.fd-ct-dim {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
}

.fd-dim-1-tag { background: rgba(0,168,71,0.1); border-color: rgba(0,168,71,0.25); color: var(--green); }
.fd-dim-3-tag { background: rgba(240,165,0,0.1); border-color: rgba(240,165,0,0.25); color: #a06800; }
.fd-dim-4-tag { background: rgba(45,74,62,0.08); border-color: rgba(45,74,62,0.2); color: #2d4a3e; }

.fd-connect-tech h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}

.fd-connect-tech p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.6;
  margin: 0 0 14px;
}

.fd-ct-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.fd-ct-link:hover { text-decoration: underline; }

.fd-connect-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  margin-top: 60px;
}

.fd-connect-arrow-inner {
  width: 28px;
  height: 28px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #888;
}

/* Summary stats */
.fd-connect-sum {
  background: var(--dark);
  border-radius: 14px;
  padding: 28px 32px;
}

.fd-sum-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.fd-sum-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.fd-sum-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 24px;
}
.fd-sum-stat:first-child { padding-left: 0; }

.fd-sum-num {
  font-size: 2rem;
  font-weight: 800;
  color: #6ee69e;
  line-height: 1;
}

.fd-sum-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.45;
}

.fd-sum-divider {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.fd-video {
  background: var(--off-white, #f7f9f7);
}

.fd-video-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.fd-video-content h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin: 0 0 16px;
}

.fd-video-content p {
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 14px;
}

.fd-video-frame {
  position: relative;
}

.fd-video-placeholder {
  background: #111a12;
  border-radius: 14px;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 6px 32px rgba(0,0,0,0.2);
}

.fd-video-placeholder:hover { opacity: 0.9; }

.fd-video-play {
  width: 56px;
  height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fd-video-play svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

.fd-video-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.fd-video-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   CASE STUDY
   ============================================================ */
.fd-case {
  background: #fff;
}

.fd-case-inner {
  max-width: 960px;
  margin: 0 auto;
}

.fd-case-header {
  margin-bottom: 40px;
}

.fd-case-header h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin: 0 0 14px;
}

.fd-case-intro {
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

.fd-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.fd-case-card {
  border-radius: 12px;
  padding: 22px;
  color: #fff;
}

.fd-case-card.fd-dh-1 { background: linear-gradient(135deg, #006b2e, #00a847); }
.fd-case-card.fd-dh-2 { background: linear-gradient(135deg, #0077a8, #00b4d8); }
.fd-case-card.fd-dh-3 { background: linear-gradient(135deg, #a06800, #f0a500); }
.fd-case-card.fd-dh-4 { background: linear-gradient(135deg, #1a1a2e, #2d4a3e); }

.fd-case-card-dim {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.7;
  margin-bottom: 8px;
}

.fd-case-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.fd-case-card p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0;
}

.fd-case-quote {
  background: #f7f9f7;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 0;
}

.fd-case-quote p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  font-style: italic;
  margin: 0 0 12px;
}

.fd-case-quote cite {
  font-size: 0.8rem;
  color: var(--green);
  font-style: normal;
  font-weight: 600;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.fd-cta {
  background: var(--green);
}

.fd-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.fd-cta-actions {
  flex-shrink: 0;
}

/* ============================================================
   TECH NAV GRID
   ============================================================ */
.fd-tech-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fd-tech-nav-card {
  display: block;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.fd-tech-nav-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--green);
}

.fd-tech-nav-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.fd-tech-nav-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.fd-tech-nav-card p {
  font-size: 0.83rem;
  color: var(--grey);
  line-height: 1.55;
  margin: 0 0 12px;
}

.fd-tech-nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

/* ============================================================
   RESPONSIVE — 960px
   ============================================================ */
@media (max-width: 960px) {
  .fd-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fd-hero-visual {
    order: -1;
  }

  .fd-quadrant {
    width: 280px;
    height: 280px;
  }

  .fd-intro-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fd-dims-grid {
    grid-template-columns: 1fr;
  }

  .fd-co2-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fd-connect-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fd-connect-arrow {
    margin-top: 0;
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .fd-sum-stats {
    flex-direction: column;
    gap: 20px;
  }

  .fd-sum-stat {
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
  }

  .fd-sum-stat:last-child { border-bottom: none; padding-bottom: 0; }

  .fd-sum-divider { display: none; }

  .fd-video-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fd-case-grid {
    grid-template-columns: 1fr;
  }

  .fd-tech-nav-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fd-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — 600px
   ============================================================ */
@media (max-width: 600px) {
  .fd-hero {
    padding: 24px 0 48px;
  }

  .fd-hero-dimensions {
    gap: 6px;
  }

  .fd-dim-badge {
    padding: 4px 10px;
  }

  .fd-hero-ctas {
    flex-direction: column;
  }

  .fd-hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .fd-quadrant {
    width: 240px;
    height: 240px;
  }

  .fd-tech-nav-grid {
    grid-template-columns: 1fr;
  }

  .fd-dims-grid {
    grid-template-columns: 1fr;
  }

  .fd-case-grid {
    grid-template-columns: 1fr;
  }
}
