/* Ajans GN v7.1.3 — CTA & Nested Card State Fix
   Purpose: final targeted state layer after v7.1.2 screenshots.
   Fixes pale CTA bands, nested light cards inside dark sections, service-card descriptions,
   Organizasyon service-detail cards, contact-info paragraphs and footer bridge readability. */

/* 1) CTA bands: never allow white text on pale/glass backgrounds. All final action bands become intentionally dark. */
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-cta-band,.agn-big-cta,.agn-footer-cta),
body.agn-v713-cta-nested-state-fix .agn-site section.agn-v52-cta-band,
body.agn-v713-cta-nested-state-fix .agn-site section.agn-big-cta{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:clamp(22px,3vw,52px)!important;
  min-height:0!important;
  padding:clamp(34px,4.2vw,68px)!important;
  border-radius:clamp(28px,3vw,44px)!important;
  overflow:visible!important;
  background:
    radial-gradient(circle at 12% 104%, rgba(255,116,73,.30), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(255,178,142,.15), transparent 34%),
    linear-gradient(135deg, #151315 0%, #241714 52%, #5b2b1a 100%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 28px 84px rgba(39,23,15,.18)!important;
  color:#fff8f2!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-cta-band,.agn-big-cta,.agn-footer-cta) :where(h1,h2,h3,h4,p,span,strong,b,a){
  color:inherit!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  text-shadow:none!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-cta-band,.agn-big-cta,.agn-footer-cta) :where(h2,h3){
  max-width:900px!important;
  font-size:clamp(30px,3.15vw,52px)!important;
  line-height:1.05!important;
  letter-spacing:-.052em!important;
  margin:0!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-cta-band,.agn-big-cta,.agn-footer-cta) .agn-eyebrow{
  color:#ffb28e!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-cta-band,.agn-big-cta,.agn-footer-cta) .agn-btn{
  justify-self:end!important;
  white-space:nowrap!important;
  background:#0f0e10!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.16)!important;
}

/* 2) Dark sections: outer copy is on-dark, but nested light cards must reset themselves. */
body.agn-v713-cta-nested-state-fix .agn-site :where(.is-dark,.agn-v52-services-stage,.agn-v53-services-intro,.agn-v53-service-details,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-faq){
  color:#fff7f1!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(.is-dark,.agn-v52-services-stage,.agn-v53-services-intro,.agn-v53-service-details,.agn-v53-process,.agn-v54-approach,.agn-v54-outputs,.agn-v54-faq) > :where(div,article,header) :where(h1,h2,h3,h4,strong,b):not(.agn-btn *){
  opacity:1!important;
  visibility:visible!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-services-stage,.agn-v53-services-intro,.agn-v53-service-details,.agn-v54-approach,.agn-v54-outputs,.agn-v54-faq) :where(.agn-v52-section-head h2,.agn-v53-section-head h2,.agn-v54-approach__copy h2,.agn-v54-outputs__head h2,.agn-v54-faq__head h2){
  color:#fff7f1!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-services-stage,.agn-v53-services-intro,.agn-v53-service-details,.agn-v54-approach,.agn-v54-outputs,.agn-v54-faq) :where(.agn-v52-section-head p,.agn-v53-section-head p,.agn-v54-approach__copy p,.agn-v54-outputs__head p,.agn-v54-faq__head p){
  color:rgba(255,247,241,.76)!important;
}

/* 3) Light cards inside dark/editorial bands. */
body.agn-v713-cta-nested-state-fix .agn-site :where(
  .agn-service-card a,
  .agn-v52-service-card a,
  .agn-v53-index-card,
  .agn-v53-index-card a,
  .agn-v53-detail-row,
  .agn-v53-decision__grid article,
  .agn-v54-capabilities article,
  .agn-v583-output-grid article,
  .agn-v583-usage-grid article,
  .agn-v583-faq__items details,
  .agn-v602-contact-info,
  .agn-v602-contact-row
){
  background:linear-gradient(135deg,rgba(255,252,248,.98),rgba(255,247,241,.94))!important;
  border-color:rgba(33,24,18,.10)!important;
  color:#211f22!important;
  opacity:1!important;
  visibility:visible!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(
  .agn-service-card a,
  .agn-v52-service-card a,
  .agn-v53-index-card,
  .agn-v53-index-card a,
  .agn-v53-detail-row,
  .agn-v53-decision__grid article,
  .agn-v54-capabilities article,
  .agn-v583-output-grid article,
  .agn-v583-usage-grid article,
  .agn-v583-faq__items details,
  .agn-v602-contact-info,
  .agn-v602-contact-row
) :where(h2,h3,h4,b,strong,summary,span:not(.agn-eyebrow)){
  color:#211f22!important;
  opacity:1!important;
  visibility:visible!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(
  .agn-service-card a,
  .agn-v52-service-card a,
  .agn-v53-index-card,
  .agn-v53-index-card a,
  .agn-v53-detail-row,
  .agn-v53-decision__grid article,
  .agn-v54-capabilities article,
  .agn-v583-output-grid article,
  .agn-v583-usage-grid article,
  .agn-v583-faq__items details,
  .agn-v602-contact-info,
  .agn-v602-contact-row
) :where(p,li,small){
  color:#5d554f!important;
  opacity:1!important;
  visibility:visible!important;
}

/* 4) Home service cards: descriptions should feel premium, not disabled. */
body.agn-v713-service-card-readable .agn-home :where(.agn-v52-service-card a,.agn-service-card a) :where(p,li),
body.agn-v713-service-card-readable .agn-services-page--v53 :where(.agn-v53-index-card p,.agn-v53-detail-row p),
body.agn-v713-service-card-readable .agn-site :where(.agn-service-card p,.agn-v52-service-card p){
  color:#5a514b!important;
  opacity:1!important;
}
body.agn-v713-service-card-readable .agn-home :where(.agn-v52-service-card a,.agn-service-card a) :where(h3,b,strong),
body.agn-v713-service-card-readable .agn-services-page--v53 :where(.agn-v53-index-card h3,.agn-v53-detail-row h3){
  color:#211f22!important;
  opacity:1!important;
}

/* 5) Process/workflow cards are intentionally dark cards inside dark sections. */
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-process__steps article,.agn-v53-process__steps article,.agn-v583-workflow__steps article){
  background:linear-gradient(135deg,rgba(34,31,33,.92),rgba(71,43,31,.86))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  color:#fff7f1!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-process__steps article,.agn-v53-process__steps article,.agn-v583-workflow__steps article) :where(h3,h4,b,strong,span:not(.agn-eyebrow)){
  color:#fff7f1!important;
}
body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-process__steps article,.agn-v53-process__steps article,.agn-v583-workflow__steps article) :where(p,li){
  color:rgba(255,247,241,.72)!important;
}

/* 6) Service detail: approach/output/FAQ heading contrast; nested cards readable. */
body.agn-v713-cta-nested-state-fix .agn-service-page :where(.agn-v54-approach,.agn-v54-outputs,.agn-v54-faq){
  background:radial-gradient(circle at 94% 0%,rgba(255,116,73,.12),transparent 34%),linear-gradient(135deg,#1a1210,#3b2419 62%,#5a2b1a)!important;
  color:#fff7f1!important;
}
body.agn-v713-cta-nested-state-fix .agn-service-page :where(.agn-v54-approach,.agn-v54-outputs,.agn-v54-faq) :where(.agn-v54-approach__copy,.agn-v54-outputs__head,.agn-v54-faq__head) :where(h2,h3,p,span,strong){
  color:inherit!important;
  opacity:1!important;
}
body.agn-v713-cta-nested-state-fix .agn-service-page :where(.agn-v583-usage-map,.agn-v602-contact-note){
  color:#211f22!important;
}
body.agn-v713-cta-nested-state-fix .agn-service-page :where(.agn-v583-usage-map,.agn-v602-contact-note) :where(h2,h3,strong,b,summary){
  color:#211f22!important;
}
body.agn-v713-cta-nested-state-fix .agn-service-page :where(.agn-v583-usage-map,.agn-v602-contact-note) :where(p,li,span:not(.agn-eyebrow)){
  color:#5d554f!important;
}

/* 7) Contact: left info card is light and readable, right project card remains premium dark. */
body.agn-v713-cta-nested-state-fix .agn-contact-page--v602 .agn-v602-contact-info{
  background:linear-gradient(135deg,rgba(255,252,248,.98),rgba(255,247,241,.94))!important;
  color:#211f22!important;
}
body.agn-v713-cta-nested-state-fix .agn-contact-page--v602 .agn-v602-contact-info :where(h2,h3,b,strong,span:not(.agn-eyebrow)){
  color:#211f22!important;
}
body.agn-v713-cta-nested-state-fix .agn-contact-page--v602 .agn-v602-contact-info :where(p,li){
  color:#5d554f!important;
  opacity:1!important;
}
body.agn-v713-cta-nested-state-fix .agn-contact-page--v602 .agn-v602-contact-form{
  background:radial-gradient(circle at 100% 0%,rgba(255,116,73,.14),transparent 32%),linear-gradient(135deg,#151315,#241716 64%,#3b1b13)!important;
  color:#fff7f1!important;
}
body.agn-v713-cta-nested-state-fix .agn-contact-page--v602 .agn-v602-contact-form :where(h2,h3,p,span,a,strong){
  color:inherit!important;
  opacity:1!important;
}

/* 8) Footer bridge: keep final CTA and footer separated with clear visual hierarchy. */
body.agn-v713-footer-cta-bridge .agn-site :where(.agn-v52-cta-band,.agn-big-cta){
  margin-bottom:clamp(38px,5vw,72px)!important;
}
body.agn-v713-footer-cta-bridge .agn-footer{
  margin-top:0!important;
  background:radial-gradient(circle at 88% 0%,rgba(255,116,73,.10),transparent 34%),linear-gradient(135deg,#100f10,#171112 58%,#24120e)!important;
  color:#fff7f1!important;
}
body.agn-v713-footer-cta-bridge .agn-footer :where(h2,h3,p,a,span,li,strong){
  opacity:1!important;
  visibility:visible!important;
}

@media (max-width: 980px){
  body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-cta-band,.agn-big-cta,.agn-footer-cta){
    grid-template-columns:1fr!important;
  }
  body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-cta-band,.agn-big-cta,.agn-footer-cta) .agn-btn{
    justify-self:start!important;
  }
}

@media (max-width: 760px){
  body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-cta-band,.agn-big-cta,.agn-footer-cta){
    padding:28px 22px!important;
    border-radius:28px!important;
  }
  body.agn-v713-cta-nested-state-fix .agn-site :where(.agn-v52-cta-band,.agn-big-cta,.agn-footer-cta) :where(h2,h3){
    font-size:clamp(27px,8.4vw,38px)!important;
  }
}
