/* documents.css — Documents page with hero, orbs, bold headers, and animated grid */

/* ===== HERO ===== */
.hero-docs{
  position: relative;
  min-height: clamp(260px, 38vh, 440px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #e7edf1;
}
.hero-docs .hero-bg{
  position: absolute; inset: 0;
  background-image: var(--src);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02) brightness(.98);
  transform: scale(1.02);
}
.hero-docs::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(4,18,28,.45), rgba(4,18,28,.55) 28%, rgba(4,18,28,.65));
}
.hero-docs .hero-overlay{
  position: relative; z-index: 1; text-align: center; color:#fff;
  padding: 40px 16px;
}
.hero-docs h1{
  margin:0 0 6px;
  font: 900 clamp(1.6rem, 4vw, 2.6rem)/1.1 system-ui, Segoe UI, Inter;
  text-transform: uppercase;
  letter-spacing: .6px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-docs p{
  margin:0;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0,0,0,.28);
}

/* ===== Decorative orbs (background) ===== */
.has-orbs { position: relative; }
.has-orbs .bg-orbs{
  position: absolute;
  inset: -80px 0 auto 0;
  height: 420px;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
  opacity: .55;
  mix-blend-mode: screen;
  background:
    radial-gradient(180px 180px at 12% 40%, rgba(17,157,184,.28), transparent 60%),
    radial-gradient(220px 220px at 84% 28%, rgba(8,28,52,.28), transparent 62%),
    radial-gradient(160px 160px at 52% 70%, rgba(17,157,184,.20), transparent 58%);
  animation: orbs-float 14s ease-in-out infinite alternate;
}
@keyframes orbs-float{
  0%   { transform: translateY(0) translateX(0) scale(1); }
  100% { transform: translateY(-16px) translateX(6px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce){
  .has-orbs .bg-orbs{ animation: none; }
}

/* ===== Section base ===== */
.docs{
  background:#fff;
  border-top:1px solid #e7edf1;
  padding:48px 0 60px;
  position: relative;
}
.docs .container{ position: relative; z-index: 1; }

.docs-head{ margin-bottom:18px; }
.docs-title{
  margin:0;
  font: 900 1.6rem/1.15 system-ui, Segoe UI, Inter;
  color:#0e2a3d;
  letter-spacing:.3px;
  text-transform: uppercase;
}
.docs-title::after{
  content:"";
  display:block;
  width:72px; height:4px; margin-top:8px;
  border-radius:999px;
  background: linear-gradient(90deg, #119DB8, #0e2a3d);
}
.docs-sub{
  margin:6px 0 0;
  font-size: .98rem;
  color:#546b79;
  font-weight: 650;
}

/* ===== Grid ===== */
.docs-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(260px, 1fr));
  gap:22px;
}

/* Card link */
.doc-card{
  position:relative;
  display:block;
  text-decoration:none;
  color:inherit;
  border-radius:14px;
}

/* Preview */
.doc-preview{
  margin:0;
  background:#f3f6f9;
  border:1px solid #e6edf3;
  border-radius:14px;
  overflow:hidden;
  height:210px;
  display:grid;
  place-items:center;
  transition: border-color .25s ease, transform .25s ease;
}
.doc-preview::after{
  content:"";
  position:absolute; inset:auto 0 0 0; height:46px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 70%, #fff 100%);
}
.doc-preview img{
  width:100%; height:100%;
  object-fit:contain;
  display:block;
  filter:brightness(.98);
}

/* Info bar */
.doc-bar{
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:#fff;
  border:1px solid #e6edf3;
  border-radius:12px;
  padding:12px 14px;
  width:calc(100% - 24px);
  margin:0 12px;
  transform:translateY(-16px);
  box-shadow:0 8px 18px rgba(0,0,0,.06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.doc-folder{
  color:#12b2e8;
  display:inline-flex;
  line-height:0;
}
.doc-info h4{
  margin:0 0 4px;
  font-size:1rem;
  letter-spacing:.25px;
  font-weight:900;
  color:#102c3f;
}
.doc-info small{
  color:#6b7e8a;
  font-size:.85rem;
  font-weight:600;
}
.badge{
  margin-left:auto;
  padding:6px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.25px;
  color:#0e2a3d;
  background: linear-gradient(180deg, rgba(17,157,184,.16), rgba(17,157,184,.08));
  border:1px solid rgba(17,157,184,.35);
}

/* Hover */
.doc-card:hover .doc-preview{ border-color:#dbe6ef; transform: translateY(-1px); }
.doc-card:hover .doc-bar{ box-shadow:0 12px 28px rgba(0,0,0,.10); transform:translateY(-18px); }

/* ===== Reveal animation ===== */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .docs-grid{ grid-template-columns:repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 560px){
  .docs-grid{ grid-template-columns:1fr; }
  .doc-preview{ height:200px; }
}
