/* Live parity — Certifications, Project, Download Brochure (from tandheef.com chunks) */

/* --- Certifications --- */
section.certs {
  padding: 48px 0 72px;
  background: #fff;
}
section.certs .container {
  width: min(1150px, 92%);
  margin: 0 auto;
}
section.certs .pageHeading {
  text-align: center;
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 18px;
  font-weight: 700;
}
section.certs .block {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 14px;
  padding: 20px 18px;
  margin: 18px 0 26px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}
section.certs .blockTitle {
  font-size: 1.05rem;
  color: #111827;
  margin: 0 0 14px;
  font-weight: 700;
  display: flex;
  gap: 6px;
  align-items: center;
}
section.certs .blockTitle span {
  color: #0ea5e9;
  font-weight: 800;
}
section.certs .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 300px));
  gap: 18px;
  justify-content: center;
}
section.certs .desc {
  color: #374151;
  margin: 4px 0 8px;
}
section.certs .bulletList {
  margin: 6px 0 0 18px;
  color: #374151;
  line-height: 1.7;
}
section.certs .bulletList li {
  margin: 4px 0;
}
section.certs .logoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
  gap: 22px;
  justify-content: center;
}
section.certs .logoCard {
  text-align: center;
}
section.certs .logoBox {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
section.certs .logoBox img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}
section.certs .logoCaption {
  margin-top: 8px;
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
}
.cert-live-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
a.cert-live-card {
  text-decoration: none;
  color: inherit;
}
a.cert-live-card:hover,
a.cert-live-card:focus {
  color: inherit;
  text-decoration: none;
}
.cert-live-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 300px;
  margin: 0 auto;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  box-shadow: none;
  background: #fafafa;
  overflow: hidden;
}
.cert-live-card .thumbInner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 12px;
}
.cert-live-card .thumbInner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cert-live-card .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cert-live-card .thumbInner:hover .overlay,
.cert-live-card:focus-visible .overlay {
  opacity: 1;
}
.cert-live-card .cardTitle {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  max-width: 300px;
  margin: 6px auto 0;
  text-align: center;
}
.pdfOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
}
.pdfOverlay[hidden] {
  display: none !important;
}
.pdfCard {
  width: min(1000px, 96vw);
  height: min(86vh, 920px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pdfHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #f9fafb;
}
.pdfTitle {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 80px);
  margin: 0;
}
.pdfClose {
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
}
.pdfBody {
  position: relative;
  flex: 1;
  min-height: 0;
}
.pdfFrame {
  width: 100%;
  height: 100%;
  border: 0;
}
.pdfDownload {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
}

/* --- Project --- */
.project-live.section-padding {
  padding-top: 32px !important;
  padding-bottom: 48px !important;
}
.project-scroll-nav {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.project-scroll-nav:active {
  cursor: grabbing;
}
.project-scroll-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.project-tab-pill {
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 6px 12px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 0.875rem;
  cursor: pointer;
}
.project-tab-pill:hover {
  border-color: #cbd5e1;
}
.project-anchor {
  scroll-margin-top: 90px;
  height: 0;
  overflow: hidden;
}
.project-live-acc .project-live-acc-btn {
  background: transparent;
  border: 0;
  padding: 14px 16px;
  font-weight: 700;
  width: 100%;
  text-align: left;
  outline-offset: 2px;
}
.project-live-acc-panel {
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.project-live-acc-panel[aria-hidden="true"] {
  max-height: 0 !important;
}
.project-live-acc-panel .card-body {
  padding-top: 0;
}

/* --- Download brochure --- */
section.download {
  padding: 32px 0 56px;
  background: #fff;
}
section.download .container {
  width: min(720px, 92%);
  margin: 0 auto;
}
section.download .brochure-live-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  position: relative;
}
section.download .form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}
section.download .acic-logo {
  width: 140px;
  height: auto;
  margin-bottom: 12px;
}
section.download .title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}
section.download .subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin: 4px 0 0;
}
section.download .brochure-live-card iframe {
  width: 100%;
  height: 420px;
  border: none;
  background: transparent;
}

/* Native brochure form (matches live Tally layout) */
section.download .brochure-native-form {
  text-align: left;
  max-width: 100%;
}
section.download .brochure-field {
  margin-bottom: 18px;
}
section.download .brochure-field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
section.download .brochure-req {
  color: #dc2626;
  font-weight: 700;
}
section.download .brochure-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  color: #111827;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
section.download .brochure-input::placeholder {
  color: #9ca3af;
}
section.download .brochure-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
  background: #fff;
}
section.download .brochure-field.is-invalid .brochure-input {
  border-color: #fca5a5;
  background: #fff;
}
section.download .brochure-error {
  display: none;
  margin-top: 6px;
  font-size: 0.875rem;
  color: #dc2626;
}
section.download .brochure-field.is-invalid .brochure-error {
  display: block;
}
section.download .brochure-form-actions {
  margin-top: 8px;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
section.download .brochure-tally-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
section.download .brochure-tally-badge:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1d4ed8;
  text-decoration: none;
}
section.download .brochure-tally-icon {
  font-size: 0.85rem;
  line-height: 1;
  color: #2563eb;
}
section.download .brochure-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
section.download .brochure-download-btn:hover {
  background: #000;
}
section.download .brochure-download-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
section.download .brochure-download-arrow {
  font-size: 1.15rem;
  line-height: 1;
}
section.download .brochure-form-message {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #dc2626;
}
section.download .brochure-form-message.is-success {
  color: #059669;
}
section.download .success-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 10;
}
section.download .success-message[hidden] {
  display: none !important;
}
section.download .success-content {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  position: relative;
  border: 1px solid #e5e7eb;
}
section.download .success-content h3 {
  color: #059669;
  margin: 0 0 12px;
  font-size: 1.5rem;
}
section.download .success-content p {
  color: #4b5563;
  margin: 0 0 20px;
}
section.download .pdf-link {
  display: inline-block;
  background: #059669;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
section.download .pdf-link:hover {
  background: #047857;
  color: #fff;
}
section.download .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  width: 32px;
  height: 32px;
  line-height: 1;
}
section.download .close-btn:hover {
  color: #4b5563;
}
@media (max-width: 640px) {
  section.download .acic-logo {
    width: 120px;
  }
  section.download .title {
    font-size: 1.2rem;
  }
  section.download .success-content {
    padding: 24px;
    margin: 16px;
  }
}
