/* Ajans GN v7.1.1 — Critical Renderer & State Hotfix
   Final guard layer after modular CSS split. Fixes service-detail visibility,
   Organizasyon blank page risk, CTA/contact state contrast and reveal screenshot safety. */

.agn-v711-critical-renderer-state-hotfix .agn-site .agn-reveal,
.agn-v711-critical-renderer-state-hotfix .agn-site .agn-reveal:not(.is-visible){
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  filter:none!important;
  clip-path:none!important;
}

.agn-v711-critical-renderer-state-hotfix .agn-site :where(h1,h2,h3,h4,p,li,span,strong,a,b,summary){
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  clip-path:none!important;
}

/* CTA: no more white text on pale/transparent CTA surfaces. */
.agn-v711-component-contrast-fix .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta,.agn-v602-contact-note){
  background:
    radial-gradient(circle at 8% 100%, rgba(255,116,73,.22), transparent 32%),
    linear-gradient(135deg, #171313 0%, #2a1b16 58%, #5a2a18 100%)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  color:#fff7f1!important;
  overflow:visible!important;
  min-height:0!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta,.agn-v602-contact-note) :where(h2,h3,p,span,strong,a){
  color:inherit!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta,.agn-v602-contact-note) .agn-eyebrow{
  color:#ff7449!important;
}

/* Service cards placed inside dark editorial bands remain light, readable cards. */
.agn-v711-component-contrast-fix .agn-site :where(.agn-service-card a,.agn-v52-service-card a,.agn-v53-index-card a,.agn-v53-detail-row,.agn-v583-usage-grid article,.agn-v583-output-grid article,.agn-v583-faq__items details,.agn-v53-decision__grid article){
  background:rgba(255,250,245,.94)!important;
  color:#211f22!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.agn-service-card a,.agn-v52-service-card a,.agn-v53-index-card a,.agn-v53-detail-row,.agn-v583-usage-grid article,.agn-v583-output-grid article,.agn-v583-faq__items details,.agn-v53-decision__grid article) :where(h3,h4,b,summary,strong){
  color:#211f22!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.agn-service-card a,.agn-v52-service-card a,.agn-v53-index-card a,.agn-v53-detail-row,.agn-v583-usage-grid article,.agn-v583-output-grid article,.agn-v583-faq__items details,.agn-v53-decision__grid article) :where(p,li,span){
  color:#5f5752!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.agn-service-card img,.agn-v52-service-card img,.agn-v53-index-card img,.agn-v53-detail-row img,.agn-v54-hero__visual img,.agn-v602-contact-hero__visual img){
  opacity:1!important;
  visibility:visible!important;
  display:block!important;
  filter:saturate(1.02) contrast(1.02)!important;
}

/* Known dark editorial bands: force readable on-dark text. */
.agn-v711-component-contrast-fix .agn-site :where(.is-dark,.agn-v52-service-stage,.agn-v52-process,.agn-v53-services-intro,.agn-v53-service-details,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq,.agn-v602-contact-grid){
  color:#fff7f1!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.is-dark,.agn-v52-service-stage,.agn-v52-process,.agn-v53-services-intro,.agn-v53-service-details,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq,.agn-v602-contact-grid) :where(h1,h2,h3,h4,strong,summary){
  color:#fff7f1!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.is-dark,.agn-v52-service-stage,.agn-v52-process,.agn-v53-services-intro,.agn-v53-service-details,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq,.agn-v602-contact-grid) :where(p,li,span){
  color:rgba(255,247,241,.76)!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.is-dark,.agn-v52-service-stage,.agn-v52-process,.agn-v53-services-intro,.agn-v53-service-details,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq,.agn-v602-contact-grid) .agn-eyebrow{
  color:#ff7449!important;
}

/* But nested light cards inside dark bands should not inherit white text. */
.agn-v711-component-contrast-fix .agn-site :where(.is-dark,.agn-v52-service-stage,.agn-v53-service-details,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq,.agn-v602-contact-grid) :where(.is-light,.agn-v54-capabilities article,.agn-v583-workflow__steps article,.agn-v602-contact-info,.agn-v602-contact-row){
  background:rgba(255,250,245,.92)!important;
  color:#211f22!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.is-dark,.agn-v52-service-stage,.agn-v53-service-details,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq,.agn-v602-contact-grid) :where(.is-light,.agn-v54-capabilities article,.agn-v583-workflow__steps article,.agn-v602-contact-info,.agn-v602-contact-row) :where(h2,h3,h4,b,strong,span,p){
  color:inherit!important;
}
.agn-v711-component-contrast-fix .agn-site :where(.agn-v54-capabilities article,.agn-v583-workflow__steps article,.agn-v602-contact-row) p{
  color:#5f5752!important;
}

/* Contact: left card light, right card dark. */
.agn-v711-component-contrast-fix .agn-site .agn-v602-contact-info{
  background:rgba(255,250,245,.94)!important;
  color:#211f22!important;
}
.agn-v711-component-contrast-fix .agn-site .agn-v602-contact-info :where(h2,h3,b,strong,span,p){
  color:#211f22!important;
}
.agn-v711-component-contrast-fix .agn-site .agn-v602-contact-info p{
  color:#5f5752!important;
}
.agn-v711-component-contrast-fix .agn-site .agn-v602-contact-form{
  background:linear-gradient(135deg,#151315,#251916)!important;
  color:#fff7f1!important;
}
.agn-v711-component-contrast-fix .agn-site .agn-v602-contact-form :where(h2,h3,p,span,a){
  color:inherit!important;
}

/* Service detail integrity: all service detail pages must render visible content, especially Organizasyon/event. */
.agn-v711-service-detail-integrity .agn-service-page--v54,
.agn-v711-service-detail-integrity .agn-service-page--v583,
.agn-v711-service-detail-integrity .agn-v711-service-detail-page{
  color:#211f22;
}
.agn-v711-service-detail-integrity .agn-v711-service-detail-page :where(.agn-v54-hero__copy,.agn-v54-hero__visual,.agn-v54-approach__copy,.agn-v54-capabilities,.agn-v583-section-title,.agn-v583-usage-grid,.agn-v54-outputs__head,.agn-v583-output-grid,.agn-v54-workflow__intro,.agn-v583-workflow__steps,.agn-v54-faq__head,.agn-v583-faq__items,.agn-big-cta){
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  filter:none!important;
  clip-path:none!important;
}
.agn-v711-service-detail-integrity .agn-service-page--event :where(.agn-v54-hero,.agn-v54-approach,.agn-v583-usage-map,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq){
  min-height:0!important;
  background-clip:padding-box!important;
}
.agn-v711-service-detail-integrity .agn-service-page--event .agn-v54-hero__visual img,
.agn-v711-service-detail-integrity .agn-service-page--event .agn-v52-world__gallery img,
.agn-v711-service-detail-integrity .agn-service-page--event .agn-service-card img{
  opacity:1!important;
  visibility:visible!important;
  display:block!important;
}
.agn-v711-service-detail-integrity .agn-service-page--event .agn-v54-hero__copy :where(h1,p,span),
.agn-v711-service-detail-integrity .agn-service-page--event .agn-v583-usage-map :where(h2,h3,p,span,b),
.agn-v711-service-detail-integrity .agn-service-page--event .agn-v54-faq :where(h2,h3,p,span,summary){
  opacity:1!important;
  visibility:visible!important;
  color:inherit;
}

/* Headings that were visually clipped in full-page screenshots. */
.agn-v711-critical-renderer-state-hotfix .agn-site :where(.agn-v52-direction,.agn-v53-service-index,.agn-v53-faq,.agn-v602-contact-note,.agn-v583-usage-map,.agn-v54-faq){
  overflow:visible!important;
  padding-top:max(36px, var(--agn-section-safe-top, 0px))!important;
}
.agn-v711-critical-renderer-state-hotfix .agn-site :where(.agn-v52-direction h2,.agn-v53-service-index h2,.agn-v53-faq h2,.agn-v602-contact-note h2,.agn-v583-usage-map h2,.agn-v54-faq h2){
  overflow:visible!important;
  clip-path:none!important;
  margin-top:0!important;
}

@media (max-width: 860px){
  .agn-v711-component-contrast-fix .agn-site :where(.agn-v52-process,.agn-v53-process,.agn-v54-workflow,.agn-v602-contact-grid){
    grid-template-columns:1fr!important;
  }
  .agn-v711-component-contrast-fix .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta){
    gap:18px!important;
  }
}
