/* ═══════════════════════════════════════════
   services.css — CADDynOmics Lab Services Page
   Place in: /static/style/services.css
   ═══════════════════════════════════════════ */

/* ── PAGE VARIABLES ── */
:root {
  --green:    #0b7840;
  --green-lt: #13a356;
  --green-dim:#07522c;
  --navy:     #071c2e;
  --navy-lt:  #0d2a42;
  --card-bg:  #ffffff;
  --text:     #1a2e3b;
  --muted:    #5a7a8a;
  --border:   #dde8ee;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(7,28,46,.10);
  --shadow-h: 0 10px 40px rgba(7,28,46,.18);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: #f4f8fb;
}

/* ── HERO BANNER ── */
.services-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0e3450 55%, var(--green-dim) 100%);
  padding: 72px 40px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b7840' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}

.services-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  position: relative;
}

.services-hero h1 span {
  color: #2ecc71;
}

.services-hero p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
  position: relative;
}

.hero-breadcrumb {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  position: relative;
}

.hero-breadcrumb a {
  color: #2ecc71;
  text-decoration: none;
}

.hero-breadcrumb a:hover {
  text-decoration: underline;
}

/* ── SECTION WRAPPER ── */
.services-section {
  max-width: 1180px;
  margin: 60px auto 80px;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 120, 64, .1);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 16px;
}

.section-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-heading span {
  color: var(--green);
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ── SERVICE CARD ── */
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-h);
  border-color: rgba(11, 120, 64, .35);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* ── CARD HEADER ── */
.card-header {
  background: linear-gradient(135deg, #f0faf5 0%, #e8f4fb 100%);
  padding: 28px 28px 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(7, 28, 46, .08);
}

.card-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.card-icon-d{
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(7, 28, 46, .08);
}

.card-icon-d img {
    width: 70px;
  height: 70px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: rgba(11, 120, 64, .1);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}

/* ── CARD BODY ── */
.card-body {
  padding: 22px 28px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}

.card-features li i {
  color: var(--green);
  font-size: 11px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── CARD FOOTER ── */
.card-footer {
  padding: 16px 28px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: #fafcfe;
}

.btn-pricing {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: .3px;
  transition: background .2s ease, transform .15s ease;
}

.btn-pricing:hover {
  background: var(--green-lt);
  transform: translateX(2px);
}

.btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.btn-learn:hover {
  color: var(--green);
  background: rgba(11, 120, 64, .06);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green-dim) 100%);
  border-radius: 18px;
  padding: 52px 48px;
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(11, 120, 64, .18);
}

.cta-banner::after {
  content: '';
  position: absolute;
  left: 30%;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
}

.cta-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.cta-text p {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  max-width: 460px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-btn-primary {
  background: #2ecc71;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
  white-space: nowrap;
}

.cta-btn-primary:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background .2s ease;
  white-space: nowrap;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, .2);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .services-hero {
    padding: 52px 20px 40px;
  }

  .services-section {
    margin: 40px auto 60px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 36px 24px;
  }
}
