﻿/* Case Studies shared styles */
:root {
  --teal: #009b7e;
  --teal-mid: #00b894;
  --teal-light: #e0f5f0;
  --teal-xlight: #f0faf7;
  --bg-hero: #e8f4f8;
  --bg-mid: #f0f8fb;
  --bg-white: #ffffff;
  --bg-soft: #f7fbfc;
  --bg-dark-section: #0f2535;
  --navy: #0b1f35;
  --navy2: #1a3650;
  --navy-light: #2d4d6e;
  --text-body: #3d5a70;
  --text-muted: #7a96a8;
  --text-light: #a8bfcc;
  --border: rgba(0,100,130,0.1);
  --border2: rgba(0,100,130,0.18);
  --border-teal: rgba(0,155,126,0.25);
  --shadow-card: 0 2px 16px rgba(0,80,110,0.07);
  --shadow-card-hover: 0 8px 32px rgba(0,80,110,0.13);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--bg-white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.25s ease;
  will-change: transform;
}
.nav-hidden {
  transform: translateY(-100%);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.btn-nav {
  background: var(--teal);
  color: white !important;
  font-weight: 600 !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px !important;
  transition: all 0.2s;
}
.btn-nav:hover { background: #007a64 !important; transform: translateY(-1px); }

/* Layout */
.section { padding: 80px 5%; }
.section-soft { background: var(--bg-soft); }
.section-mid { background: var(--bg-mid); }
.section-dark { background: var(--bg-dark-section); color: white; }
.container { max-width: 1200px; margin: 0 auto; }
.center { text-align: center; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #daeef5 0%, #e8f4f8 40%, #d5edf5 100%);
  padding: 120px 5% 70px;
  position: relative;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,184,148,0.12) 0%, transparent 70%);
  top: -140px; right: -120px;
}
.hero-blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,100,150,0.08) 0%, transparent 70%);
  bottom: -120px; left: 5%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-teal);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,155,126,0.1);
}
.hero-title {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}
.hero-sub {
  color: var(--text-body);
  font-size: 17px;
  max-width: 560px;
}
.hero-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.hero-media {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(6, 50, 80, 0.18);
  border: 1px solid rgba(0, 120, 150, 0.12);
  background: #eef7f9;
}
.hero-media-img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

/* Filters */
.filters {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  background: white;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.filter-chip:hover {
  border-color: var(--border-teal);
  color: var(--teal);
  background: var(--teal-xlight);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 120, 150, 0.12);
}
.filter-chip.active {
  border-color: var(--border-teal);
  color: var(--teal);
  background: var(--teal-xlight);
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 14px rgba(0, 20, 40, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card.is-hidden { display: none !important; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0, 20, 40, 0.12); border-color: var(--border-teal); }
.card-logo {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  border: none;
}
.card-logo-img {
  max-height: 41px;
  max-width: 204px;
  width: auto;
  object-fit: contain;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.4;
  min-height: 76px;
}
.card-text { color: var(--text-body); font-size: 14.5px; }
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  background: #efe9dc;
  padding: 5px 10px;
  border-radius: 6px;
  line-height: 1;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
}
.card-divider {
  height: 1px;
  background: #ececec;
  margin-top: auto;
  margin-bottom: 12px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  width: fit-content;
}
.card-link:hover { background: #007a64; }

/* Metrics strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.metric {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.metric-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--teal);
}
.metric-label { color: var(--text-body); font-size: 13px; }

/* Detail layout */
.detail-hero {
  background: linear-gradient(160deg, #f3fbff 0%, #eaf4f8 60%, #f6fbfc 100%);
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}
.detail-hero::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -30%;
  height: 380px;
  background: radial-gradient(circle at 50% 40%, rgba(0,155,126,0.10), transparent 65%);
  pointer-events: none;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.lead {
  color: var(--text-body);
  font-size: 16.5px;
}

/* HubSpot-style hero */
.cs-hero {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cs-hero-top {
  display: grid;
  gap: 12px;
  justify-items: center;
}
.cs-logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}
.cs-hero-title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}
.cs-hero-lead {
  color: var(--text-body);
  font-size: 16.5px;
  max-width: 680px;
}
.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}
.cs-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: white;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.cs-hero-media {
  margin-top: 28px;
  position: relative;
}
.cs-hero-media::before {
  content: '';
  position: absolute;
  inset: auto -12% -24% -12%;
  height: 260px;
  background: radial-gradient(circle at 50% 0%, rgba(0,155,126,0.12), transparent 70%);
  z-index: 0;
}
.cs-hero-image {
  height: 360px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background-image:
    linear-gradient(135deg, rgba(6, 40, 70, 0.18), rgba(0, 155, 126, 0.12)),
    var(--cs-hero-image, linear-gradient(135deg, rgba(0,155,126,0.18), rgba(13,60,100,0.1)));
  background-size: cover;
  background-position: var(--cs-hero-position, center);
  background-repeat: no-repeat;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}
.cs-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}
.cs-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: min(820px, 96%);
  z-index: 2;
}
.cs-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  box-shadow: 0 10px 24px rgba(0, 60, 90, 0.15);
}
.cs-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.cs-stat-arrow {
  display: inline-block;
  margin-right: 6px;
}
.cs-stat-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-body);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 36px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.story-main h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
}
.story-main h3 {
  font-size: 18px;
  margin: 18px 0 8px;
}
.story-main p {
  color: var(--text-body);
  font-size: 14.8px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.6;
}
.story-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.story-point {
  color: var(--text-body);
  font-size: 14.5px;
}
.story-side {
  display: grid;
  gap: 16px;
}
.side-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.side-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.side-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.side-list li {
  font-size: 14px;
  color: var(--text-body);
  padding-left: 16px;
  position: relative;
}
.side-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-mid);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-xlight);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-teal);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.result-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.result-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 6px;
}
.result-text {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
}
.summary-box {
  border: 1px solid var(--border-teal);
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  gap: 10px;
}
.summary-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
}
.summary-row span { color: var(--text-muted); font-weight: 600; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 980px;
  margin: 0 auto;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: white;
  box-shadow: var(--shadow-card);
}
.panel h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.panel p { color: var(--text-body); font-size: 14.5px; }

.timeline {
  display: grid;
  gap: 14px;
}
.timeline-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg-white);
}
.timeline-item strong { color: var(--teal); font-size: 12px; letter-spacing: 0.06em; }

.quote {
  border: 1px solid var(--border-teal);
  background: var(--teal-xlight);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-size: 16px;
  color: var(--navy2);
}
.quote .by {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.testimonial-block {
  max-width: 980px;
  margin: 0 auto;
}
.testimonial-layout {
  display: flex;
  align-items: center;
  gap: 36px;
}
.testimonial-photo {
  width: var(--testimonial-photo-size, 72px);
  height: var(--testimonial-photo-size, 72px);
  border-radius: 50%;
  background: #e9eef2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  flex: 0 0 var(--testimonial-photo-size, 72px);
}
.testimonial-layout .quote {
  flex: 1 1 auto;
}
.testimonial-block h2 {
  text-align: center;
}

.cta {
  padding: 70px 5%;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal));
  color: white;
  text-align: center;
}
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: white;
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}

/* Boxed CTA */
.cta-box {
  padding: 70px 5%;
  background: var(--bg-soft);
}
.cta-box-grid {
  max-width: 980px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 40, 60, 0.08);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  overflow: hidden;
}
.cta-visual {
  min-height: 240px;
  background-image: var(--cta-image, linear-gradient(135deg, #e9f6f4, #f7fbfd));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-content {
  padding: 32px 36px;
  display: grid;
  align-content: center;
  gap: 14px;
}
.cta-content h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
}
.cta-content p {
  color: var(--text-body);
  font-size: 15.5px;
}
.cta-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
}
.cta-content a:hover { background: #007a64; }

/* Related case studies */
.related-section {
  background: var(--bg-soft);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

/* Back to top */
.back-to-top {
  text-align: center;
  padding: 18px 5% 8px;
  background: var(--bg-soft);
}
.back-to-top a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.back-to-top a::before {
  content: '↑';
  font-size: 14px;
}

/* Footer */
footer {
  background: #0b1f35;
  color: white;
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 26px;
}
.foot-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.65; margin: 12px 0 18px; max-width: 260px; }
.foot-company { font-size: 12px; color: rgba(255,255,255,0.3); margin-bottom: 6px; }
.foot-email { font-size: 13px; color: var(--teal-mid); text-decoration: none; }
.foot-col-h { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.foot-links { list-style: none; display: grid; gap: 8px; }
.foot-links a { font-size: 13.5px; color: rgba(255,255,255,0.6); text-decoration: none; }
.foot-links a:hover { color: rgba(255,255,255,0.9); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .story-grid,
  .two-col,
  .grid-2,
  .grid-3,
  .metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .card-title,
  .card-meta {
    min-height: 0;
  }
  .cta-box-grid {
    grid-template-columns: 1fr;
  }
  .detail-hero { padding-top: 110px; }
  .cs-hero { text-align: center; }
  .cs-hero-stats {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 18px;
  }
}

@media (max-width: 960px) {
  .nav-links li:not(:last-child) { display: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: 110px; }
  .detail-hero { padding-top: 105px; }
  .cs-hero-title { font-size: clamp(26px, 7vw, 36px); }
  .cs-hero-image { height: 260px; }
  .cs-hero-stats {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
  .cta-content { padding: 28px; }
  .testimonial-layout {
    flex-direction: column;
    align-items: center;
  }
  .testimonial-photo {
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
