/* =========================================================
   SERVICE DETAIL PAGE — RELATED SERVICES SECTION
   Editorial index: images curved on the top two sides,
   hairline frame under the image, no radius below.
   ========================================================= */

.sd-related {
  background: #ffffff;
  padding: 0 0 clamp(48px, 6vw, 90px);
}

.sd-related .sd-section-head {
  padding-top: clamp(48px, 6vw, 90px);
}

.sd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px) clamp(24px, 3vw, 44px);
}

.sd-related-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.sd-related-card:hover {
  opacity: 0.68;
}

.sd-related-img {
  height: clamp(190px, 24vw, 300px);
  background-size: cover;
  background-position: center;
  border-radius: 18px 18px 0 0;
  filter: saturate(0.92);
}

.sd-related-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 0 0;
  margin-top: 20px;
  border-top: 1px solid #17173a;
}

.sd-related-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3b5;
}

.sd-related-body h3 {
  margin: 0;
  font-family: "Geist", "Inter", sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #17173a;
}

.sd-related-body .svc-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .sd-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .sd-related-card {
    transition: none;
  }
}

/* ==========================================================================
   Project Discussion Form — section container
   Matches sd-container width, head spacing, and sd-section-title scale
   used elsewhere on the service detail page.
   ========================================================================== */

.pdf-section {
    padding: clamp(60px, 8vw, 100px) 24px;
    background: #ffffff;
}

.pdf-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Head — mirrors sd-section-head */
.pdf-head {
    text-align: center;
    margin-bottom: 40px;
}

.pdf-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.pdf-sub {
    font-size: 16px;
    color: #5a5a5a;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Form card — soft panel to echo the sd-why card look
   ========================================================================== */

.pdf-form {
    max-width: 880px;
    margin: 0 auto;
    background: #f6f7fb;
    border: 1px solid #e5e7ef;
    border-radius: 16px;
    padding: clamp(24px, 4vw, 44px);
}

.pdf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.pdf-field {
    display: flex;
    flex-direction: column;
}

.pdf-field-full {
    grid-column: 1 / -1;
}

/* ==========================================================================
   Labels & inputs
   ========================================================================== */

.pdf-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pdf-required {
    color: #d94444;
    margin-left: 2px;
}

.pdf-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid #d7dae3;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdf-input::placeholder {
    color: #9aa0ad;
}

.pdf-input:hover {
    border-color: #b9bdca;
}

.pdf-input:focus {
    border-color: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.pdf-input:invalid:not(:placeholder-shown) {
    border-color: #d94444;
}

/* Select — custom caret so it reads consistent across browsers */
.pdf-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235a5a5a'%3e%3cpath d='M5.5 7.5l4.5 5 4.5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
    cursor: pointer;
}

/* Textarea */
.pdf-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}

/* ==========================================================================
   Submit — matches wdi-cta / svc-btn-primary feel
   ========================================================================== */

.pdf-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
}

.pdf-submit {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #0a0a0a;
    border: 1px solid #0a0a0a;
    border-radius: 999px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.pdf-submit:hover {
    background: #1f1f1f;
    transform: translateY(-1px);
}

.pdf-submit:active {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 720px) {
    .pdf-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .pdf-form {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .pdf-actions {
        justify-content: stretch;
    }

    .pdf-submit {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Submission status
   ========================================================================== */

.pdf-status {
    min-height: 20px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

.pdf-status-pending {
    color: #5a5a5a;
}

.pdf-status-ok {
    color: #137a3a;
}

.pdf-status-err {
    color: #c0392b;
}

.pdf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Enquire now button inside capability cards
   ========================================================================== */

.sd-cap-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    text-decoration: none;
    background: transparent;
    border: 1px solid #0a0a0a;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.sd-cap-cta:hover {
    background: #0a0a0a;
    color: #ffffff;
    transform: translateY(-1px);
}

.sd-cap-cta:active {
    transform: translateY(0);
}

.sd-cap-cta::after {
    content: "→";
    font-size: 15px;
    line-height: 1;
}

/* ==========================================================================
   Overview CTAs — paired primary + ghost
   ========================================================================== */

.wdi-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
}

.wdi-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wdi-btn:hover {
    transform: translateY(-1px);
}

.wdi-btn:active {
    transform: translateY(0);
}

/* Icon sizing */
.wdi-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Primary: solid dark fill, arrow on the right -------------------------- */

.wdi-btn-primary {
    background: #0a0a0a;
    color: #ffffff;
    border-color: #0a0a0a;
    padding-right: 20px;
}

.wdi-btn-primary .wdi-btn-icon {
    transition: transform 0.2s ease;
}

.wdi-btn-primary:hover {
    background: #1f1f1f;
    box-shadow: 0 8px 20px rgba(10, 10, 10, 0.18);
}

.wdi-btn-primary:hover .wdi-btn-icon {
    transform: translateX(3px);
}

/* --- WhatsApp: solid green pill ------------------------------------------- */

.wdi-btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    padding: 12px 20px 12px 22px;
}

.wdi-btn-whatsapp .wdi-btn-icon {
    transition: transform 0.2s ease;
}

.wdi-btn-whatsapp:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.wdi-btn-whatsapp:hover .wdi-btn-icon {
    transform: translateX(3px);
}

/* --- Mobile: stack full-width ---------------------------------------------- */

@media (max-width: 520px) {
    .wdi-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wdi-btn {
        justify-content: center;
    }

    .wdi-btn-whatsapp {
        padding: 12px 18px;
    }
}

/* ==========================================================================
   Floating WhatsApp button — fixed bottom-right, with pulse + tooltip
   ========================================================================== */

.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    background: #25D366;
    color: #ffffff;
    text-decoration: none;

    border-radius: 50%;
    box-shadow:
        0 8px 20px rgba(37, 211, 102, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.12);

    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wa-float:hover {
    background: #1ebe57;
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 12px 24px rgba(37, 211, 102, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.wa-float:active {
    transform: translateY(0) scale(1);
}

.wa-float-icon {
    width: 30px;
    height: 30px;
    display: block;
}

/* --- Soft pulse ring to draw attention without flashing ------------------- */

.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.55;
    z-index: -1;
    animation: wa-pulse 2.2s ease-out infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    80% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* --- Tooltip on hover (desktop only) -------------------------------------- */

.wa-float-tip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);

    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #0a0a0a;
    white-space: nowrap;

    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-float-tip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #ffffff;
    box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.04);
}

.wa-float:hover .wa-float-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* --- Mobile: shrink slightly and hide the tooltip ------------------------- */

@media (max-width: 520px) {
    .wa-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .wa-float-icon {
        width: 28px;
        height: 28px;
    }

    .wa-float-tip {
        display: none;
    }
}

/* --- Respect reduced-motion preference ------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .wa-float::before {
        animation: none;
    }

    .wa-float,
    .wa-float-tip {
        transition: none;
    }
}
