/* Blog, Case Studies, Testimonials, Landing Pages, Cookie banner — additional styles */

.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ===== Blog ===== */
.blog-cat-nav { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-200, #e5e7eb); }
.blog-cat-nav a { padding: 6px 14px; border-radius: 20px; background: #f4f6fa; color: var(--gray-700, #334155); font-size: 14px; font-weight: 500; text-decoration: none; transition: all .2s; }
.blog-cat-nav a:hover, .blog-cat-nav a.active { background: var(--orange); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.blog-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.blog-card h3 a { color: var(--navy); text-decoration: none; }
.blog-card h3 a:hover { color: var(--orange); }
.blog-card p { color: var(--gray-600, #64748b); font-size: 14px; flex: 1; margin-bottom: 12px; }
.blog-card-meta { font-size: 12px; color: var(--gray-500, #94a3b8); margin-top: auto; }

/* ===== Article (single blog/case study) ===== */
.article-hero { height: 380px; background-size: cover; background-position: center; }
.article-page { padding: 40px 0 60px; }
.article-cat { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin: 16px 0 8px; text-decoration: none; }
.article-page h1 { font-size: 36px; line-height: 1.2; color: var(--navy); margin-bottom: 14px; }
.article-meta { color: var(--gray-500, #94a3b8); font-size: 14px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200, #e5e7eb); }
.article-meta i { margin-right: 4px; }
.article-body { font-size: 17px; line-height: 1.8; color: var(--gray-800, #1e293b); }
.article-body h2 { font-size: 26px; color: var(--navy); margin: 36px 0 14px; }
.article-body h3 { font-size: 20px; color: var(--navy); margin: 24px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body a { color: var(--orange); }
.article-body img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 4px solid var(--orange); padding: 10px 20px; margin: 20px 0; background: #fff7ed; font-style: italic; color: var(--gray-700); }
.article-body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.article-body pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-body th, .article-body td { padding: 10px 14px; border: 1px solid var(--gray-200, #e5e7eb); text-align: left; }
.article-body th { background: #f8fafc; font-weight: 600; }
.article-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.article-tags span { display: inline-block; background: #f1f5f9; color: var(--gray-700); padding: 4px 12px; border-radius: 12px; font-size: 13px; margin-right: 6px; }

/* ===== Case Studies ===== */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.case-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.case-card-img { aspect-ratio: 16/10; overflow: hidden; background: #f1f5f9; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-body { padding: 20px; }
.case-card-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.case-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 18px; }
.case-client { color: var(--orange); font-weight: 600; font-size: 14px; }
.case-size { color: var(--gray-600); font-size: 13px; margin-top: 4px; }
.case-meta-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 18px; background: #f8fafc; border-radius: 8px; margin: 24px 0; font-size: 14px; }
.case-meta-bar div { padding: 6px 0; }
.case-meta-bar strong { color: var(--navy); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; opacity: .7; }
.case-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 20px 0; }
.case-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }

/* ===== Testimonials ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.testimonial-card { background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: relative; }
.testimonial-card.featured { border: 2px solid var(--orange); }
.testimonial-stars { color: #f59e0b; font-size: 18px; margin-bottom: 14px; }
.testimonial-card blockquote { font-size: 15px; line-height: 1.7; color: var(--gray-700); margin-bottom: 18px; font-style: italic; }
.testimonial-card blockquote::before { content: '"'; font-size: 60px; color: var(--orange); line-height: 0; vertical-align: -20px; opacity: .2; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img, .ph-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ph-avatar { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.testimonial-author .name { font-weight: 700; color: var(--navy); }
.testimonial-author .role { font-size: 13px; color: var(--gray-600); }

/* ===== Landing Pages ===== */
.lp-page > section + section { margin-top: 0; }
.lp-hero { padding: 100px 0 110px; color: #fff; background-size: cover; background-position: center; text-align: center; }
.lp-hero-tag { display: inline-block; background: rgba(255,255,255,.15); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.lp-hero h1 { font-size: 48px; line-height: 1.1; margin-bottom: 20px; max-width: 900px; margin-left: auto; margin-right: auto; }
.lp-hero p { font-size: 19px; opacity: .9; max-width: 720px; margin: 0 auto 30px; }
.lp-features { padding: 70px 0; }
.lp-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 40px; }
.lp-feature { text-align: center; padding: 20px; }
.lp-feature-icon { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light, #0a3a72)); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 18px; }
.lp-feature h3 { color: var(--navy); margin-bottom: 8px; font-size: 18px; }
.lp-feature p { color: var(--gray-600); font-size: 14px; line-height: 1.6; }
.lp-cta { background: linear-gradient(135deg, var(--navy), var(--navy-light, #0a3a72)); color: #fff; padding: 70px 0; text-align: center; }
.lp-cta h2 { color: #fff; font-size: 36px; margin-bottom: 14px; }
.lp-cta p { font-size: 18px; opacity: .85; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.lp-form-section { background: #f8fafc; }
.lp-testimonial { font-size: 22px; line-height: 1.5; color: var(--gray-800); padding: 30px 40px; border-left: 4px solid var(--orange); background: #fff; border-radius: 4px; }
.lp-testimonial cite { display: block; margin-top: 16px; font-size: 14px; color: var(--gray-600); font-style: normal; font-weight: 600; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ===== Empty state ===== */
.empty-state { text-align: center; padding: 80px 20px; color: var(--gray-500); }
.empty-state i { font-size: 60px; margin-bottom: 16px; opacity: .3; display: block; }

/* ===== Before / After Slider ===== */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 30px; }
.ba-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ba-card.featured { border: 2px solid var(--orange); }
.ba-slider { position: relative; aspect-ratio: 16/10; overflow: hidden; cursor: ew-resize; user-select: none; background: #000; }
.ba-slider img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { position: absolute; inset: 0; }
.ba-before-wrap { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.ba-before-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,.3); }
.ba-handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ba-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--navy); font-size: 14px; z-index: 1; }
.ba-label { position: absolute; top: 12px; padding: 4px 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; pointer-events: none; }
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }
.ba-body { padding: 20px; }
.ba-body h3 { color: var(--navy); margin-bottom: 8px; }
.ba-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--gray-600); margin-bottom: 10px; }
.ba-meta span i { margin-right: 4px; color: var(--orange); }
.ba-body p { color: var(--gray-700); font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.ba-size { font-size: 13px; color: var(--gray-700); padding-top: 10px; border-top: 1px solid #f1f5f9; }

/* ===== Hero carousel ===== */
.hero-carousel { position: relative; overflow: hidden; min-height: 600px; background: var(--navy); }
.hero-carousel-track { position: relative; min-height: 600px; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 80px 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; opacity: .35; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,40,85,.85) 0%, rgba(0,40,85,.7) 60%, rgba(0,40,85,.5) 100%); z-index: 1; }
.hero-slide .container { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.hero-slide-tag { display: inline-block; background: rgba(255,122,0,.2); border: 1px solid rgba(255,122,0,.4); color: #ff7a00; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.hero-slide h1 { font-size: 56px; line-height: 1.1; font-weight: 800; margin-bottom: 18px; color: #fff; }
.hero-slide h1 .accent { color: var(--orange); }
.hero-slide p { font-size: 18px; line-height: 1.7; opacity: .95; margin-bottom: 32px; max-width: 600px; }
.hero-slide-cta { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-video-btn { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; }
.hero-video-btn .play { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.hero-video-btn:hover .play { background: var(--orange); border-color: var(--orange); transform: scale(1.05); }
.hero-badge { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); width: 160px; height: 160px; border-radius: 50%; background: linear-gradient(135deg, var(--orange) 0%, #ff8c39 100%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(255,122,0,.4); z-index: 3; border: 4px dashed rgba(255,255,255,.3); padding: 18px; text-align: center; }
.hero-badge .num { font-size: 38px; font-weight: 800; line-height: 1; }
.hero-badge .lbl { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 4; transition: all .2s; backdrop-filter: blur(4px); }
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
.hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 4; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; transition: all .2s; padding: 0; }
.hero-dots button.active { background: var(--orange); width: 30px; border-radius: 5px; }

@media (max-width: 768px) {
  .hero-carousel, .hero-carousel-track { min-height: 480px; }
  .hero-slide { padding: 50px 0 90px; }
  .hero-slide h1 { font-size: 26px; line-height: 1.15; }
  .hero-slide p { font-size: 14px; }
  .hero-slide-cta { gap: 10px; }
  .hero-slide-cta .btn { font-size: 13px; padding: 10px 16px; }
  .hero-badge {
    width: 80px; height: 80px;
    right: 12px;
    top: auto;
    bottom: 90px;
    transform: none;
    padding: 10px;
    border-width: 3px;
  }
  .hero-badge .num { font-size: 20px; }
  .hero-badge .lbl { font-size: 8px; margin-top: 3px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 13px; }
  .hero-arrow.prev { left: 6px; }
  .hero-arrow.next { right: 6px; }
  .hero-dots { bottom: 16px; }
}
@media (max-width: 480px) {
  .hero-badge { display: none; }
}

/* ===== Sticky header on scroll ===== */
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); backdrop-filter: blur(10px); background: rgba(255,255,255,.96); }

/* ===== Stats strip ===== */
.stats-strip { background: linear-gradient(135deg, var(--navy) 0%, #001a3a 100%); color: #fff; padding: 20px 0; font-size: 15px; font-weight: 600; text-align: center; letter-spacing: .5px; }
.stats-strip .stats-inner { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.stats-strip span { color: #fff; }
.stats-strip .sep { color: var(--orange); font-weight: 700; }

/* ===== Floating widgets =====
   Right rail, callback button, chat widget, WhatsApp — all stack independently */

.floating-stack { position: fixed; right: 20px; bottom: 20px; z-index: 9000; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab-btn { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 28px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: all .2s; border: none; }
.fab-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.24); }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-callback { background: #fff; color: var(--navy); border: 1.5px solid var(--orange); }
.fab-callback:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.fab-chat { background: linear-gradient(135deg, var(--orange) 0%, #ff8c39 100%); color: #fff; width: 56px; height: 56px; border-radius: 50%; padding: 0; justify-content: center; font-size: 22px; }

/* Vertical sticky right rail (callback) */
.callback-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%) rotate(0deg);
  z-index: 8500; background: var(--orange); color: #fff;
  padding: 14px 12px; border-radius: 8px 0 0 8px; cursor: pointer;
  font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px;
  box-shadow: -4px 0 16px rgba(0,0,0,.15); transition: all .2s; border: none;
}
.callback-rail:hover { padding-right: 18px; background: #e55a00; }
.callback-rail i { font-size: 16px; }

/* Modal panel for callback / chat */
.fab-panel { position: fixed; right: 20px; bottom: 90px; width: 360px; max-width: calc(100vw - 40px); max-height: calc(100vh - 120px); background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); z-index: 9100; display: none; flex-direction: column; overflow: hidden; }
.fab-panel.open { display: flex; animation: panelIn .25s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fab-panel-header { background: linear-gradient(135deg, var(--orange) 0%, #ff8c39 100%); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.fab-panel-header h3 { color: #fff; margin: 0; font-size: 17px; }
.fab-panel-header .close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 4px; opacity: .85; }
.fab-panel-header .close:hover { opacity: 1; }
.fab-panel-body { padding: 20px; flex: 1; overflow-y: auto; font-size: 14px; }
.fab-panel-body label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.fab-panel-body input, .fab-panel-body textarea, .fab-panel-body select { width: 100%; padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 14px; margin-bottom: 12px; outline: none; transition: border-color .15s; font-family: inherit; }
.fab-panel-body input:focus, .fab-panel-body textarea:focus, .fab-panel-body select:focus { border-color: var(--orange); }
.fab-panel-body .submit { width: 100%; background: var(--orange); color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 14px; }
.fab-panel-body .submit:hover { background: #e55a00; }
.fab-panel-body .submit:disabled { opacity: .5; cursor: wait; }
.fab-panel-success { text-align: center; padding: 30px 20px; }
.fab-panel-success i { font-size: 48px; color: #10b981; margin-bottom: 12px; }
.fab-panel-success h4 { color: var(--navy); margin-bottom: 8px; }
.fab-panel-success p { color: #64748b; font-size: 14px; }

/* Chat widget specific */
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 420px; min-height: 280px; }
.chat-msg { padding: 10px 14px; border-radius: 14px; max-width: 85%; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.chat-msg.user { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.assistant { background: #f1f5f9; color: var(--navy); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.system { background: #fff7ed; color: var(--orange); align-self: center; font-size: 12px; font-style: italic; }
.chat-input-bar { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e2e8f0; background: #fff; }
.chat-input-bar input { flex: 1; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 22px; font-size: 14px; outline: none; }
.chat-input-bar input:focus { border-color: var(--orange); }
.chat-input-bar button { background: var(--orange); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.chat-input-bar button:disabled { opacity: .5; }

/* Exit intent popup */
.exit-intent-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.exit-intent-backdrop.show { display: flex; }
.exit-intent-modal { background: #fff; border-radius: 16px; padding: 36px; max-width: 480px; width: 100%; text-align: center; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.exit-intent-modal .close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 26px; color: #94a3b8; cursor: pointer; }
.exit-intent-modal h2 { color: var(--navy); margin-bottom: 12px; font-size: 26px; }
.exit-intent-modal p { color: #64748b; margin-bottom: 24px; }

@media (max-width: 768px) {
  .callback-rail { display: none; }
  .fab-panel { right: 10px; bottom: 80px; width: calc(100vw - 20px); }
  .stats-strip .stats-inner { font-size: 12px; gap: 12px; }
}

/* ===== Scroll-reveal animations =====
   Elements with .ps-reveal start hidden (slightly down + faded) and animate
   into place when scrolled into view. Auto-applied via JS to common sections. */
html { scroll-behavior: smooth; }
.ps-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.ps-reveal.in { opacity: 1; transform: translateY(0); }
/* Stagger child cards in grids */
.ps-reveal.in > * { animation: psFadeUp .6s cubic-bezier(.2,.7,.2,1) backwards; }
.ps-reveal.in > *:nth-child(1) { animation-delay: .05s; }
.ps-reveal.in > *:nth-child(2) { animation-delay: .12s; }
.ps-reveal.in > *:nth-child(3) { animation-delay: .19s; }
.ps-reveal.in > *:nth-child(4) { animation-delay: .26s; }
.ps-reveal.in > *:nth-child(5) { animation-delay: .33s; }
.ps-reveal.in > *:nth-child(6) { animation-delay: .40s; }
.ps-reveal.in > *:nth-child(n+7) { animation-delay: .45s; }
@keyframes psFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Variants — admin/devs can add these classes to fine-tune any element */
.ps-reveal-left  { transform: translateX(-32px); }
.ps-reveal-right { transform: translateX(32px); }
.ps-reveal-zoom  { transform: scale(.92); }
.ps-reveal-left.in, .ps-reveal-right.in, .ps-reveal-zoom.in { transform: none; }

/* Hover-lift utility for cards (purely visual polish) */
.ps-hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.ps-hover-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.12); }

/* Back-to-top button */
.ps-back-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 8800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility 0s .25s, background .2s;
}
.ps-back-top.show { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s, 0s, 0s, 0s; }
.ps-back-top:hover { background: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ps-reveal { opacity: 1 !important; transform: none !important; }
  .ps-reveal.in > * { animation: none !important; }
  .ps-back-top { transition: none; }
}

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy); color: #fff; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.cookie-text { flex: 1; min-width: 280px; font-size: 14px; line-height: 1.5; }
.cookie-text a { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); }
.cookie-actions .btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Mobile: stack cookie banner and push floating CTA above it */
@media (max-width: 720px) {
  .cookie-banner { padding: 12px 14px; gap: 10px; flex-direction: column; align-items: stretch; }
  .cookie-text { min-width: 0; font-size: 13px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
  /* When cookie banner is visible (display:flex), lift the floating callback stack */
  .cookie-banner[style*="flex"] ~ .floating-stack,
  .cookie-banner:not([style*="none"]) ~ .floating-stack { bottom: 140px; }
}

@media (max-width: 768px) {
  .article-page h1 { font-size: 28px; }
  .article-hero { height: 240px; }
  .lp-hero h1 { font-size: 32px; }
  .lp-hero p { font-size: 16px; }
  .case-meta-bar { grid-template-columns: 1fr 1fr; }
}
