/* ============================================================
   DELIVERABLES SECTION STYLES
   Incline Agency — What you receive
   ============================================================ */

/* ---- Scoped CSS variables ---- */
.deliverables-section {
  --del-accent:      rgba(255, 255, 255, 0.75);
  --del-accent-2:    rgba(255, 255, 255, 0.5);
  --del-btn-bg:      #ffffff;
  --del-btn-text:    #0B1A20;
  --del-btn-hover:   rgba(255, 255, 255, 0.88);
  --del-focus:       3px solid rgba(255, 255, 255, 0.3);
}

/* ---- Section layout ---- */
.deliverables-section {
  background: var(--bg);
  padding: clamp(80px, 10vh, 120px) clamp(24px, 5vw, 64px);
  position: relative;
}

.deliverables-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Eyebrow / headline / intro ---- */
.deliverables-headline {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 20px 0;
  max-width: 700px;
  text-align: left;
  line-height: 1.12;
}

.deliverables-intro {
  font-family: var(--font-main);
  font-size: clamp(0.93rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 60px 0;
}

/* ---- Grid ---- */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .deliverables-section {
    padding: clamp(52px, 7vh, 80px) clamp(16px, 5vw, 24px);
  }

  .deliverables-intro {
    margin-bottom: 36px;
  }

  .deliverables-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .del-card {
    min-height: 0;
    padding: 20px 16px 18px;
    gap: 0;
  }

  .del-card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }

  .del-card-body {
    flex: 0 0 auto;
    gap: 4px;
  }

  .del-card-caption {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .del-card-actions {
    margin-top: 12px;
  }

  .del-modal {
    padding: 24px 18px 24px;
  }

  .del-modal-title {
    font-size: 1.1rem;
  }

  .del-modal-actions {
    flex-direction: column;
  }

  .del-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Cards ---- */
.del-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.065) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.015) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius, 16px);
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  min-height: 300px;
  box-shadow:
    0 6px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
  position: relative;
  animation: del-fadeUp 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}

/* Top-edge shimmer for glass feel */
.del-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  pointer-events: none;
}

/* Subtle ambient glow in corner */
.del-card::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.del-card:nth-child(1) { animation-delay: 100ms; }
.del-card:nth-child(2) { animation-delay: 200ms; }
.del-card:nth-child(3) { animation-delay: 300ms; }
.del-card:nth-child(4) { animation-delay: 400ms; }

/* Hover */
.del-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ---- Card document icon ---- */
.del-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--del-accent, rgba(255, 255, 255, 0.88));
  flex-shrink: 0;
  margin-bottom: 16px;
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---- Card body ---- */
.del-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  width: 100%;
}

/* ---- Card title ---- */
.del-card-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

/* ---- Card caption ---- */
.del-card-caption {
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
  max-width: 180px;
}

/* ---- Card actions ---- */
.del-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}

/* ---- Buttons base ---- */
.del-btn {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  line-height: 1;
}

/* ---- Primary button ---- */
.del-btn-primary {
  background: var(--del-btn-bg, #DCEEFF);
  color: var(--del-btn-text, #0B1A20);
  border: none;
}

.del-btn-primary:hover {
  background: var(--del-btn-hover, #CFE8FF);
  transform: translateY(-1px);
}

/* ---- Secondary button ---- */
.del-btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.del-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

/* ---- Focus-visible on all interactive ---- */
.del-btn:focus-visible,
.del-modal-close:focus-visible {
  outline: var(--del-focus, 3px solid rgba(207, 232, 255, 0.45));
  outline-offset: 3px;
}

/* ---- Backdrop ---- */
.del-backdrop {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(10, 14, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.del-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Modal ---- */
.del-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 900;
  width: min(640px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #181b1f 0%, #121417 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 36px 32px 32px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.del-modal[hidden] {
  display: none;
}

.del-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Mobile: full-screen sheet */
@media (max-width: 600px) {
  .del-modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
  }

  .del-modal.is-open {
    transform: none;
  }
}

/* ---- Modal close button ---- */
.del-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-main);
  line-height: 1;
}

.del-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* ---- Modal header ---- */
.del-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* ---- Modal icon ---- */
.del-modal-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--del-accent, #CFE8FF);
  flex-shrink: 0;
}

/* ---- Modal title ---- */
.del-modal-title {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

/* ---- Modal short paragraph ---- */
.del-modal-short {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

/* ---- Modal included section ---- */
.del-modal-included {
  margin: 0 0 18px;
}

.del-modal-included h4 {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.del-modal-included ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.del-modal-included li {
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Modal why / checks ---- */
.del-modal-why,
.del-modal-checks {
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.del-modal-why strong,
.del-modal-checks strong {
  color: var(--text);
}

/* ---- Modal actions ---- */
.del-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Toast ---- */
.del-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #181b1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 18px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.del-toast[hidden] {
  display: none;
}

.del-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---- Fade-up animation for cards ---- */
@keyframes del-fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .del-card,
  .del-modal,
  .del-backdrop {
    animation: none !important;
    transition: none !important;
  }

  .del-card:hover {
    transform: none;
  }
}
