/* ============================================================
   JOSEQUAL — Added sections
   Tech stack · case-study metrics · blog/news · FAQ · contact
   Loads after motion.css, before polish.css. Reversible.
   ============================================================ */

/* ============================================================
   GLOBAL SECTION SIZING — tighter vertical rhythm
   (was clamp(80px, 11vw, 160px); headers had 60px gap)
   ============================================================ */
.section { padding-block: clamp(52px, 6.5vw, 104px); }
.sec-head { margin-bottom: clamp(36px, 4vw, 48px); }

/* Centered section header variant */
.sec-head.center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.sec-head.center h2 { max-width: 20ch; }
.sec-head.center p { margin-top: 14px; }

/* ============================================================
   BANNER  (gradient call-out strip)
   ============================================================ */
.section.banner-sec {
  position: relative; overflow: hidden;
  padding-block: clamp(52px, 7vw, 96px);
  background: linear-gradient(125deg, #1a3bb0 0%, #12307e 42%, #0c1b54 100%);
  border-block: 1px solid rgba(120, 150, 255, 0.28);
}
.banner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
}
/* decorative glow (full-bleed) */
.banner-glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 560px; height: 560px; top: -300px; right: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 170, 255, 0.45), transparent 60%);
  filter: blur(34px);
}
/* faint grid texture */
.banner-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 90% at 75% 20%, #000, transparent 75%);
}
.banner-content { position: relative; z-index: 1; max-width: 60ch; }
.banner-eyebrow {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase;
  color: #a9c2ff; margin-bottom: 14px;
}
.banner-title {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05; letter-spacing: -0.02em;
}
.banner-text {
  color: rgba(234, 240, 255, 0.82);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6; margin-top: 16px; max-width: 52ch;
}
.banner-cta { position: relative; z-index: 1; flex: none; white-space: nowrap; }
@media (max-width: 760px) { .banner-cta { width: 100%; } }

/* ============================================================
   WORK — reduced height
   ============================================================ */
#work { padding-bottom: clamp(48px, 7vw, 96px); }
#work .sec-head { margin-bottom: 40px; }
/* shorter image cards so the whole grid is less tall */
#work .work .shot { aspect-ratio: 16/11; }
.section-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
}
.home-work-empty {
  grid-column: 1 / -1;
  padding: clamp(30px, 5vw, 52px);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: 0 28px 60px -40px rgba(18,38,86,.35);
}
.home-work-empty h3 {
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
}
.home-work-empty p {
  max-width: 58ch;
  margin: 12px auto 0;
  color: var(--text-dim);
}

/* ============================================================
   CASE-STUDY METRIC  (on .work cards)
   ============================================================ */

/* ============================================================
   BLOG / NEWS
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .5s, border-color .4s;
}
.post:hover { transform: translateY(-6px); border-color: rgba(47,107,255,0.4); }
.theme-light .post:hover, .theme-tint .post:hover { box-shadow: 0 28px 56px -30px rgba(18,38,86,0.34); }
.post-img {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  display: grid; place-items: center;
}
.post:nth-child(1) .post-img { background: linear-gradient(135deg, #2f6bff, #6d3bff); }
.post:nth-child(2) .post-img { background: linear-gradient(135deg, #0ea5e9, #2f6bff); }
.post:nth-child(3) .post-img { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.post-img::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 75%);
}
.post-img svg { width: 46px; height: 46px; color: rgba(255,255,255,0.92); position: relative; z-index: 1; }
.post-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.post-meta .cat {
  font-family: var(--display); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue-bright);
}
.post-meta .date { color: var(--text-faint); }
.post h3 { font-size: 20px; margin-top: 14px; line-height: 1.25; }
.post-body p { color: var(--text-dim); font-size: 15px; margin-top: 10px; flex: 1; }
.post .read {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--blue-bright);
  transition: gap .3s;
}
.post:hover .read { gap: 13px; }

/* ============================================================
   FAQ  (accordion)
   ============================================================ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); margin-bottom: 14px; overflow: hidden;
  transition: border-color .3s, box-shadow .4s;
}
.faq-item.open { border-color: rgba(47,107,255,0.45); }
.theme-tint .faq-item.open, .theme-light .faq-item.open { box-shadow: 0 18px 40px -26px rgba(18,38,86,0.3); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text);
}
.faq-q .chev {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  position: relative; border: 1px solid var(--line-2);
  transition: transform .4s var(--ease-spring), background .3s, border-color .3s;
}
.faq-q .chev::before, .faq-q .chev::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--blue-bright);
  transform: translate(-50%,-50%); border-radius: 2px;
}
.faq-q .chev::before { width: 11px; height: 2px; }
.faq-q .chev::after  { width: 2px; height: 11px; transition: transform .4s var(--ease-spring); }
.faq-item.open .faq-q .chev { background: rgba(47,107,255,0.12); border-color: rgba(47,107,255,0.5); transform: rotate(180deg); }
.faq-item.open .faq-q .chev::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 26px 24px; color: var(--text-dim); font-size: 15.5px; line-height: 1.6; max-width: 70ch; }

/* ============================================================
   CONTACT  (dark)
   ============================================================ */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; pointer-events: none;
  width: 560px; height: 560px; left: -160px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,59,255,0.22), transparent 65%); filter: blur(40px);
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.contact h2 { font-size: clamp(30px, 4.2vw, 52px); margin-top: 16px; }
.contact .lead { color: var(--text-dim); margin-top: 18px; max-width: 42ch; }
.contact-methods { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.cmethod {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .35s var(--ease-spring), border-color .3s, background .3s;
}
.cmethod:hover { transform: translateX(4px); border-color: rgba(90,141,255,0.5); background: var(--card-2); }
.cmethod .cm-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: rgba(47,107,255,0.12); border: 1px solid rgba(90,141,255,0.3); color: var(--blue-bright);
}
.cmethod .cm-ico svg { width: 22px; height: 22px; }
.cmethod .cm-lab { font-size: 12.5px; color: var(--text-faint); letter-spacing: .04em; text-transform: uppercase; font-family: var(--display); font-weight: 600; }
.cmethod .cm-val { font-size: 16px; color: var(--text); margin-top: 2px; }

.contact-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--card-2), var(--navy-850));
  border: 1px solid var(--line-2); border-radius: 24px;
  padding: clamp(30px, 4vw, 46px);
}
.contact-card h3 { font-size: 26px; }
.contact-card p { color: var(--text-dim); margin-top: 12px; font-size: 15.5px; }
.contact-card .cc-list { margin: 24px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.contact-card .cc-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; }
.contact-card .cc-list svg { width: 20px; height: 20px; color: #36d399; flex: none; margin-top: 1px; }
.contact-card .btn-primary { width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
}
