/* ── Services ── */
#services {
  border-top: 1px solid var(--border-color);
}

/*
         * AUTO-FIT grid: cards are at least 280px wide.
         * On a 1200px container  → 3 columns
         * On ~700px (tablet)     → 2 columns
         * On ~560px (mobile)     → 1 column
         * Add/remove cards freely — no spans to manage.
         */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 16px;
  transition:
    transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
/* Subtle radial glow follows cursor on desktop */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 107, 53, 0.09),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.service-card:hover::after {
  opacity: 1;
}

/* Assessment cards — visually elevated, but still auto-fit */
.assessment-card {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.09) 0%,
    rgba(255, 107, 53, 0.02) 100%
  );
  border: 1px solid rgba(255, 107, 53, 0.28);
}
.assessment-card:hover {
  border-color: var(--accent-amber);
  box-shadow: 0 12px 50px rgba(255, 107, 53, 0.18);
}

.start-here-badge {
  display: inline-block;
  background: var(--accent-amber);
  color: var(--primary-dark);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.service-icon {
  color: var(--accent-amber);
  margin-bottom: 0.9rem;
  display: flex;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--accent-cyan);
  line-height: 1.3;
}
.service-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9rem;
}
/* ── Credentials page ── */
#credentials-hero {
  min-height: auto;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 2rem;
  text-align: left;
}
#credentials-hero .container {
  max-width: 820px;
}
#credentials-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.creds-lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.creds-section {
  border-top: 1px solid var(--border-color);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.creds-section .container {
  max-width: 820px;
}
.creds-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.creds-section .section-subtitle {
  margin-bottom: 2.5rem;
}
.creds-section > .container > p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

/* Testimonial placeholder card (visible — distinct from the homepage testimonials toggle) */
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 4rem;
  color: var(--accent-amber);
  opacity: 0.25;
  line-height: 1;
}
.testimonial-quote {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-light);
  margin: 0 0 1.5rem;
  font-weight: 300;
}
.testimonial-quote em {
  color: var(--accent-amber);
  font-style: normal;
  font-weight: 500;
}
.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}
.testimonial-attribution .who {
  color: var(--text-light);
  font-weight: 600;
}
.testimonial-attribution .role {
  color: var(--text-muted);
}
.testimonial-attribution .sep {
  color: var(--text-muted);
  opacity: 0.4;
}
.testimonial-attribution a {
  color: inherit;
  text-decoration: none;
}
.testimonial-attribution a:hover .who {
  color: var(--accent-cyan);
}

/* Career credentials cards */
.career-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.career-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}
.career-card .career-yrs {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--accent-amber);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.career-card h3 {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.career-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* Certification grid — adapted from homepage */
.creds-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.creds-cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.creds-cert img {
  height: clamp(80px, 10vw, 100px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.15));
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}
.creds-cert:hover img {
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
  transform: translateY(-3px);
}
.creds-cert p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}
.creds-cert .cert-placeholder {
  width: clamp(80px, 10vw, 95px);
  height: clamp(80px, 10vw, 95px);
  background: var(--glass-bg);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-amber);
}
.creds-cert-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

.creds-cta-row {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
