/*
 * IMPACT CVD Suite page styles, carried over from the WordPress page template (page-template-cvd).
 * Note: some rules (header, h1, section, footer, a) are global, exactly as on the old site.
 */

:root { --bg:#f8fafc; --surface:#ffffff; --ink:#0f172a; --muted:#475569; --line:#e2e8f0; --blue:#1d4ed8; --indigo:#4338ca; --slate:#334155; }
    * { box-sizing: border-box; }
    a { color: inherit; text-decoration: none; }
    header { position:sticky; top:0; z-index:10; backdrop-filter: blur(8px); background: rgba(255,255,255,.75); border-bottom:1px solid var(--line); }
    .container { max-width:1200px; margin:0 auto; padding:0 16px; } 
    .nav { display:flex; align-items:center; justify-content:space-between; padding:12px 0; }
    .brand { display:flex; align-items:center; gap:10px; font-weight:600; }
    .brand-logo { width:34px; height:34px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,#2563eb,#22d3ee); color:#fff; font-weight:800; font-size:18px; }
    .menu { display:none; gap:20px; font-size:14px; } @media (min-width:820px){ .menu{ display:flex; } }
    .cta-group{ display:flex; gap:10px; }
    .btn{ display:inline-flex; align-items:center; justify-content:center; padding:7px 14px; border-radius:10px; border:1px solid transparent; font-weight:600; cursor:pointer; transition:.2s; }
    .btn-primary{ background:var(--blue); color:#fff; } .btn-primary:hover{ background:#0d5f7d; }
    .btn-outline{ background:transparent; border-color:var(--line); color:#0d5f7d; } .btn-outline:hover{ border-color:var(--blue); color:#0d5f7d; }

    .hero{ padding:60px 0 30px; } .hero-grid{ display:grid; gap:30px; } @media (min-width:920px){ .hero-grid{ grid-template-columns:1.1fr 1fr; align-items:center; } }
    h1{ font-size:38px; line-height:1.12; color:var(--ink); margin:0; } @media (min-width:920px){ h1{ font-size:50px; } }
    .hero p{ margin:14px 0 0; font-size:18px; color:var(--muted); }
    .stat-grid{ margin-top:24px; display:grid; gap:12px; grid-template-columns:repeat(3,1fr); }

    .card{ background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:0 1px 0 rgba(15,23,42,.03); }
    .card .pad{ padding:14px; }
    .stat-value{ font-size:22px; font-weight:700; color:var(--ink); }
    .stat-label{ font-size:12px; color:var(--muted); }

    .img-frame{ border-radius:16px; background:#fff; border:1px solid var(--line); padding:8px; box-shadow:0 10px 30px rgba(2,6,23,.06); }

    /* Image placeholder slots */
    .img-slot { position: relative; width: 100%; border: 2px dashed var(--line); border-radius: 10px; background: #f8fafc; display: grid; place-items: center; color: var(--muted); }
    .img-slot[aria-label]::after { content: attr(aria-label); font-size: 13px; padding: 8px 10px; background: #fff; border:1px solid var(--line); border-radius: 999px; }
    .slot-hero { aspect-ratio: 16 / 9; } /* hero */
    .slot-wide { aspect-ratio: 7 / 4; }  /* product/how */
    .slot-thumb { aspect-ratio: 5 / 3; } /* blog */
    .slot-logo { aspect-ratio: 8 / 3; }  /* logos */

    section{ padding:50px 0; }
    .two{ display:grid; gap:16px; } @media (min-width:920px){ .two{ grid-template-columns:1fr 1fr; } }
    .three{ display:grid; gap:16px; } @media (min-width:920px){ .three{ grid-template-columns:repeat(3,1fr); } }
    .card h3{ margin:10px 0 6px; font-size:20px; color:var(--ink); }
    .muted{ color:var(--muted); font-size:14px; }
    .list{ margin:12px 0 0; padding-left:20px; }
    .badge{ display:inline-block; padding:6px 10px; border-radius:999px; font-size:12px; border:1px solid var(--line); }
    .row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

    .compare-wrap{ background:#f1f5f9; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
    table{ width:100%; border-collapse:collapse; font-size:14px; } thead{ background:#f8fafc; }
    th,td{ padding:14px; text-align:left; border-top:1px solid var(--line); vertical-align:top; }
    th:first-child,td:first-child{ width:24%; }

    .steps{ display:grid; gap:16px; } @media (min-width:920px){ .steps{ grid-template-columns:repeat(3,1fr); } }
    .step-ico{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:#eef2ff; color:#fbb800; font-weight:800; }

    .logos{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; justify-items:center; } @media (min-width:700px){ .logos{ grid-template-columns:repeat(6,1fr); } }

    .blog-card .meta{ font-size:12px; color:var(--muted); margin-top:6px; }
    .blog-card h4{ margin:8px 0 6px; font-size:18px; color:var(--ink); }
    .blog-card p{ margin:0; font-size:14px; color:var(--muted); }

    #faq .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-q {
  padding: 14px;
  cursor: pointer;
  background: #f8fafc;
  font-weight: 600;
}

.faq-a {
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  padding: 14px;
  max-height: 500px; /* large enough to accommodate content */
}

    footer{ border-top:1px solid var(--line); }
    .foot{ display:grid; gap:16px; } @media (min-width:820px){ .foot{ grid-template-columns:1fr auto; align-items:center; } }


           #support-mentoring .wrap{max-width:1200px;margin:0 auto;padding:0 16px}
          #support-mentoring .shell{border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 1px 0 rgba(15,23,42,.04)}
          #support-mentoring .pad{padding:18px}
          #support-mentoring .lead{margin:6px 0 14px;color:#475569;font-size:15px;line-height:1.55}
          #support-mentoring .usp{display:grid;gap:10px;margin:12px 0 18px}
          @media (min-width:900px){#support-mentoring .usp{grid-template-columns:repeat(3,1fr)}}
          #support-mentoring .usp-item{border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:12px}
          #support-mentoring .usp-item h4{margin:0 0 6px;font-size:14px;color:#0f172a}
          #support-mentoring .usp-item p{margin:0;color:#475569;font-size:13px}
          #support-mentoring .chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
          #support-mentoring .chip{display:inline-block;padding:6px 10px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;font-size:12px;color:#334155}
          #support-mentoring .grid{display:grid;gap:16px}
          @media (min-width:900px){#support-mentoring .grid{grid-template-columns:1fr 1fr}}
          #support-mentoring .tool{border:1px dashed #e2e8f0;border-radius:12px;background:#f9fafb}
          #support-mentoring .tool h3{margin:0;font-size:18px;color:#0f172a}
          #support-mentoring .icon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;font-weight:800}
          /* Image frame */
          #support-mentoring .img-frame{
              border:2px dashed #e2e8f0;border-radius:14px;background:#fff;padding:10px;
              min-height:300px;display:flex;align-items:center;justify-content:center;position:relative;
              background-size:cover;
              background-repeat: no-repeat;
          }
          #support-mentoring .img-frame img{width:100%;height:auto;display:block;border-radius:10px}
          @media(max-width: 700px) {
          #support-mentoring .img-frame {
            min-height: 240px !important;
            background-size:contain !important;
            height: auto !important;
          }
          }
          #support-mentoring .img-hint{
              position:absolute;bottom:12px;left:12px;right:12px;
              display:inline-flex;align-items:center;justify-content:center;
              font-size:13px;color:#334155;background:#f8fafc;border:1px solid #e2e8f0;
              padding:8px 12px;border-radius:999px
          }
          #support-mentoring .img-frame[data-hasimg="true"] .img-hint{display:none}
          /* CTA */
          #support-mentoring .btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:10px;border:1px solid transparent;font-weight:600;text-decoration:none}
          #support-mentoring .btn-primary{background:#1d4ed8;color:#fff}
          #support-mentoring .btn-outline{background:transparent;border-color:#e2e8f0;color:#334155}

.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
}

#testimonials .grid{display:grid;gap:16px}
@media (min-width:900px){#testimonials .grid{grid-template-columns:repeat(3,1fr)}}
#testimonials .card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 1px 0 rgba(15,23,42,.04)}
#testimonials .pad{padding:14px}
#testimonials h2{margin:0 0 8px;font-size:22px;color:#0f172a}
#testimonials .muted{color:#475569;font-size:14px}
#testimonials blockquote{margin:8px 0 10px;color:#0f172a;font-size:15px;line-height:1.55}
#testimonials .cite{color:#475569;font-size:13px}

/* Circular headshot */
#testimonials .avatar-frame{
    margin:12px auto 10px; width:120px; aspect-ratio:1/1;
    border-radius:999px; border:2px dashed #e2e8f0; background:#fff;
    position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center;
}
/* Hide the img until it actually loads */
#testimonials .avatar-img{display:none;width:100%;height:100%;object-fit:cover}
#testimonials .avatar-frame.hasimg .avatar-img{display:block}

/* Sticky Footer */
#sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 999;
    transition: transform 0.3s ease;
    border-top: solid 1px lightgrey;
}
#sticky-footer.hidden {
    transform: translateY(100%);
}

/* Modal Overlay */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999999999999999;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}

/* Modal Box */
.modal-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    padding: 20px;
}
.modal-box h2 {
    margin-top: 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}
.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    cursor: pointer;
}
.product-item:hover {
    background: #f8f8f8;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    gap: 10px;
}
.modal-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.modal-btn.cancel {
    background: #eee;
}
.modal-btn.continue {
    background: #0D5F7D;
    color: white;
}

/* Enquiry form in the product modal */
#productModal .modal-box { max-width: 480px; max-height: 90vh; overflow-y: auto; }
#productModal [data-css-form~=text] { margin-bottom: .6rem; }
#productModal .ics-group-invalid { outline: 1px solid #c23521; border-radius: 5px; }
#productModal .ics-group-tip { display: block; margin-top: .4rem; }
