/* Ajans GN v7.1.2 — Page Polish & Visibility Hardening
   Final post-v7.1.1 layer: fixes CTA readability, service-detail blanks, dark-stage card text,
   contact note state and section heading clipping without reintroducing legacy monolithic CSS. */

body.agn-v712-page-polish .agn-site,
body.agn-v712-page-polish .agn-site *{
  box-sizing:border-box;
}

body.agn-v712-page-polish .agn-site :where(.agn-reveal,.agn-reveal:not(.is-visible),.agn-v54-hero__copy,.agn-v54-hero__visual,.agn-v583-section-title,.agn-v583-usage-grid,.agn-v583-output-grid,.agn-v583-workflow__steps,.agn-v583-faq__items,.agn-services__grid,.agn-v52-world__gallery){
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  clip-path:none!important;
}

body.agn-v712-page-polish .agn-site :where(.agn-section,.agn-v52-hero,.agn-v52-statement,.agn-v52-services-stage,.agn-v52-world,.agn-v52-process,.agn-v54-hero,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq,.agn-v583-usage-map,.agn-v602-contact-note){
  overflow:visible!important;
}

body.agn-v712-page-polish .agn-site :where(h1,h2,h3,h4){
  text-wrap:balance;
  overflow:visible!important;
  clip-path:none!important;
}

body.agn-v712-page-polish .agn-site :where(.agn-section__head,.agn-v583-section-title,.agn-v54-outputs__head,.agn-v54-workflow__intro,.agn-v54-faq__head,.agn-v52-direction__head){
  padding-top:clamp(18px,2vw,34px)!important;
  min-height:0!important;
}

/* CTA: make every final action band intentionally dark and readable. */
body.agn-v712-readable-cta .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta){
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:clamp(22px,3vw,54px)!important;
  padding:clamp(34px,4.4vw,70px)!important;
  min-height:0!important;
  background:
    radial-gradient(circle at 12% 105%,rgba(255,116,73,.24),transparent 34%),
    radial-gradient(circle at 92% 0%,rgba(255,178,142,.14),transparent 32%),
    linear-gradient(135deg,#151315 0%,#261713 55%,#5b2a18 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:clamp(26px,3vw,42px)!important;
  color:#fff8f1!important;
  box-shadow:0 28px 90px rgba(32,19,15,.18)!important;
}
body.agn-v712-readable-cta .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta) :where(h2,h3,p,span,strong){
  color:inherit!important;
  opacity:1!important;
  visibility:visible!important;
}
body.agn-v712-readable-cta .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta) h2{
  font-size:clamp(30px,3.4vw,56px)!important;
  line-height:1.04!important;
  letter-spacing:-.055em!important;
  max-width:920px!important;
  margin:6px 0 0!important;
}
body.agn-v712-readable-cta .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta) .agn-eyebrow{
  color:#ffb28e!important;
}
body.agn-v712-readable-cta .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta) .agn-btn{
  justify-self:end!important;
  white-space:nowrap!important;
}

/* Brief/contact note is a light editorial note, not a dark CTA. */
body.agn-v712-page-polish .agn-site .agn-v602-contact-note{
  background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(255,247,239,.76))!important;
  border:1px solid rgba(33,24,18,.08)!important;
  color:#211f22!important;
  border-radius:clamp(28px,3vw,42px)!important;
  padding:clamp(38px,5vw,82px)!important;
}
body.agn-v712-page-polish .agn-site .agn-v602-contact-note :where(h2,h3,strong,span){color:#211f22!important;}
body.agn-v712-page-polish .agn-site .agn-v602-contact-note :where(p,li){color:rgba(33,31,34,.68)!important;}
body.agn-v712-page-polish .agn-site .agn-v602-contact-note .agn-eyebrow{color:#ff7449!important;}

/* Dark stages: keep the stage dark, but cards inside must be light and readable. */
body.agn-v712-dark-stage-readable .agn-site :where(.agn-v52-services-stage,.agn-v53-service-details,.agn-v53-services-intro,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq){
  color:#fff7f1!important;
}
body.agn-v712-dark-stage-readable .agn-site :where(.agn-v52-services-stage,.agn-v53-service-details,.agn-v53-services-intro,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq) :where(h1,h2,h3,h4,strong,summary){
  color:#fff7f1!important;
}
body.agn-v712-dark-stage-readable .agn-site :where(.agn-v52-services-stage,.agn-v53-service-details,.agn-v53-services-intro,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq) :where(p,li,span){
  color:rgba(255,247,241,.78)!important;
}
body.agn-v712-dark-stage-readable .agn-site :where(.agn-service-card a,.agn-v52-service-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:linear-gradient(135deg,rgba(255,252,248,.97),rgba(255,247,239,.92))!important;
  border:1px solid rgba(33,24,18,.09)!important;
  color:#211f22!important;
  opacity:1!important;
}
body.agn-v712-dark-stage-readable .agn-site :where(.agn-service-card a,.agn-v52-service-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,strong,summary,span){
  color:#211f22!important;
}
body.agn-v712-dark-stage-readable .agn-site :where(.agn-service-card a,.agn-v52-service-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){
  color:rgba(33,31,34,.68)!important;
}

/* Services landing: dark intro should have visible text; numeric stats remain light cards. */
body.agn-v712-page-polish .agn-site .agn-v53-services-intro{
  background:radial-gradient(circle at 90% 0%,rgba(255,116,73,.17),transparent 32%),linear-gradient(135deg,#1b1210,#3a2118 60%,#5b2a18)!important;
  color:#fff7f1!important;
}
body.agn-v712-page-polish .agn-site .agn-v53-services-intro :where(h2,h3,p,span,strong){
  color:inherit!important;
}
body.agn-v712-page-polish .agn-site .agn-v53-services-intro :where(.agn-stat,.agn-v53-stat,.agn-v53-services-intro__stat,aside article){
  background:rgba(255,250,245,.94)!important;
  color:#211f22!important;
}
body.agn-v712-page-polish .agn-site .agn-v53-services-intro :where(.agn-stat,.agn-v53-stat,.agn-v53-services-intro__stat,aside article) :where(h3,b,strong,span,p){
  color:#211f22!important;
}

/* Service detail hardening, especially Organizasyon/event. */
body.agn-v712-service-detail-stable .agn-service-page{
  color:#211f22!important;
}
body.agn-v712-service-detail-stable .agn-service-page :where(section,article,div,figure){
  opacity:1!important;
  visibility:visible!important;
}
body.agn-v712-service-detail-stable .agn-service-page :where(.agn-v54-hero,.agn-v54-approach,.agn-v583-usage-map,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq,.agn-services,.agn-big-cta){
  display:grid!important;
  min-height:0!important;
  transform:none!important;
  clip-path:none!important;
}
body.agn-v712-service-detail-stable .agn-service-page .agn-v54-hero{
  grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr)!important;
  align-items:center!important;
}
body.agn-v712-service-detail-stable .agn-service-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){
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  filter:none!important;
}
body.agn-v712-service-detail-stable .agn-service-page :where(.agn-v54-hero__visual img,.agn-v52-world__gallery img,.agn-service-card img){
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  filter:saturate(1.03) contrast(1.02)!important;
}
body.agn-v712-service-detail-stable .agn-service-page--event .agn-v54-hero:before{
  opacity:.9!important;
}
body.agn-v712-service-detail-stable .agn-service-page--event :where(.agn-v54-hero__copy h1,.agn-v54-hero__copy p,.agn-v54-hero__points span){
  color:#211f22!important;
}

/* Contact cards: left side is light, right side remains dark. */
body.agn-v712-page-polish .agn-site .agn-v602-contact-info{
  background:linear-gradient(135deg,rgba(255,252,248,.96),rgba(255,247,239,.88))!important;
  color:#211f22!important;
}
body.agn-v712-page-polish .agn-site .agn-v602-contact-info :where(h2,h3,strong,b,span){color:#211f22!important;}
body.agn-v712-page-polish .agn-site .agn-v602-contact-info :where(p,li){color:rgba(33,31,34,.68)!important;}
body.agn-v712-page-polish .agn-site .agn-v602-contact-form{
  background:linear-gradient(135deg,#161111,#241716 58%,#3b1b12)!important;
  color:#fff7f1!important;
}
body.agn-v712-page-polish .agn-site .agn-v602-contact-form :where(h2,h3,p,span,a){color:inherit!important;}
body.agn-v712-page-polish .agn-site .agn-v602-contact-row{
  background:rgba(255,255,255,.74)!important;
  color:#211f22!important;
}
body.agn-v712-page-polish .agn-site .agn-v602-contact-row :where(b,strong){color:#211f22!important;}
body.agn-v712-page-polish .agn-site .agn-v602-contact-row :where(span,p){color:rgba(33,31,34,.64)!important;}

/* Footer remains dark but less visually heavy and never clips the logo. */
body.agn-v712-page-polish .agn-footer{
  overflow:visible!important;
  background:radial-gradient(circle at 86% 8%,rgba(255,116,73,.10),transparent 32%),linear-gradient(135deg,#111010,#181112 58%,#24120e)!important;
}
body.agn-v712-page-polish .agn-footer img{
  object-fit:contain!important;
  max-height:120px!important;
}
body.agn-v712-page-polish .agn-footer :where(h2,h3,strong,p,a,span,li){
  opacity:1!important;
  visibility:visible!important;
}

@media (max-width: 1180px){
  body.agn-v712-service-detail-stable .agn-service-page .agn-v54-hero,
  body.agn-v712-service-detail-stable .agn-service-page :where(.agn-v54-approach,.agn-v54-outputs,.agn-v54-workflow,.agn-v54-faq){
    grid-template-columns:1fr!important;
  }
  body.agn-v712-readable-cta .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta){
    grid-template-columns:1fr!important;
  }
  body.agn-v712-readable-cta .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta) .agn-btn{
    justify-self:start!important;
  }
}

@media (max-width: 760px){
  body.agn-v712-page-polish .agn-site :where(.agn-v52-hero,.agn-page-hero,.agn-v54-hero,.agn-v602-contact-hero){
    padding-left:18px!important;
    padding-right:18px!important;
  }
  body.agn-v712-readable-cta .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta){
    padding:30px 22px!important;
    border-radius:28px!important;
  }
  body.agn-v712-readable-cta .agn-site :where(.agn-big-cta,.agn-v52-cta-band,.agn-footer-cta) h2{
    font-size:clamp(28px,9vw,40px)!important;
  }
}
