/* XTV MEDIA V2.0.6 — Cairo site-wide; Arabic Poetry reserved for hero title. */

:root{
  --xtv-font-body:"Cairo",Tahoma,Arial,sans-serif;
  --xtv-font-heading:"Cairo",Tahoma,Arial,sans-serif;
}

/*
 * Typography-only lock. Keep this stylesheet last in the theme queue so old
 * Elementor-saved family values cannot restore Arabic Poetry outside the hero.
 * Sizes, spacing, colors and layout fall back to the approved production CSS.
 */
html body,
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body p,
html body a,
html body button,
html body input,
html body textarea,
html body select,
html body option,
html body label,
html body legend,
html body li,
html body dt,
html body dd,
html body th,
html body td,
html body figcaption,
html body blockquote,
html body strong,
html body b,
html body em,
html body small,
html body span,
html body div,
html body .elementor .elementor-element .elementor-widget-container,
html body .elementor .elementor-element .elementor-widget-container h1,
html body .elementor .elementor-element .elementor-widget-container h2,
html body .elementor .elementor-element .elementor-widget-container h3,
html body .elementor .elementor-element .elementor-widget-container h4,
html body .elementor .elementor-element .elementor-widget-container h5,
html body .elementor .elementor-element .elementor-widget-container h6,
html body .elementor .elementor-element .elementor-widget-container p,
html body .elementor .elementor-element .elementor-widget-container a,
html body .elementor .elementor-element .elementor-widget-container span,
html body .elementor .elementor-element .elementor-widget-container div{
  font-family:"Cairo",Tahoma,Arial,sans-serif!important;
  font-kerning:normal;
  letter-spacing:0!important;
  text-rendering:optimizeLegibility;
}

/* Approved exception: only the hero identity phrase keeps Arabic Poetry. */
html body.home .hero.xtv-hero-single h1,
html body.home .hero.xtv-hero-single h1 > span,
html body.home .xtv-hero-copy h1,
html body.home .xtv-hero-copy h1 > span{
  font-family:"Arabic Poetry","Cairo",Tahoma,Arial,sans-serif!important;
  font-synthesis:weight!important;
  letter-spacing:0!important;
}

/* Preserve the current 2.0.5 hero-title scale and rhythm exactly. */
html body.xtv-appearance-light :is(.hero.xtv-hero-single,.xtv-hero-copy) h1{
  font-size:clamp(84px,6.6vw,102px)!important;
  line-height:.88!important;
  margin-bottom:4px!important;
  padding-block:0!important;
  text-wrap:balance;
}
html body.xtv-appearance-light :is(.hero.xtv-hero-single,.xtv-hero-copy) h1>span{
  font-size:inherit!important;
  line-height:inherit!important;
}
html body.xtv-appearance-light .xtv-hero-copy h1>span{
  padding:0 .14em 0!important;
  margin-inline:0!important;
  overflow:visible!important;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
html body.xtv-appearance-light .xtv-hero-actions{margin-top:16px!important}
html body.xtv-appearance-light .xtv-brand-accent{white-space:nowrap}

/* Keep WordPress and Elementor icon/control fonts outside the text override. */
html body #wpadminbar,
html body #wpadminbar *{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
}
html body #wpadminbar .ab-icon,
html body #wpadminbar .dashicons,
html body #wpadminbar .dashicons-before:before,
html body #wpadminbar .ab-icon:before,
html body #wpadminbar .ab-item:before{
  font-family:dashicons!important;
  font-style:normal!important;
  font-weight:400!important;
  speak:never!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
}
html body [class^="eicon-"],
html body [class*=" eicon-"]{font-family:eicons!important}
html body .fa,
html body .fas,
html body .far{font-family:"Font Awesome 5 Free"!important}
html body .fab{font-family:"Font Awesome 5 Brands"!important}
html body .site-header .menu-btn{font-family:Arial,sans-serif!important}
html body input::placeholder,
html body textarea::placeholder{
  font-family:"Cairo",Tahoma,Arial,sans-serif!important;
  letter-spacing:0!important;
}

/* Structural/mobile refinements retained from 2.0.4/2.0.5. */
html body.xtv-appearance-light .xtv-editorial-showcase.xtv-ref-light>.xtv-reference-shell{
  width:var(--xtv-page-wide)!important;
  margin-inline:auto!important;
}

@media(max-width:980px){
  html body.xtv-appearance-light .xtv-hero-art{height:auto!important;min-height:0!important;aspect-ratio:16/9}
  html body.xtv-appearance-light .xtv-hero-art :is(picture,img){width:100%!important;height:100%!important;object-fit:cover!important}
  html body.xtv-appearance-light .xtv-hero-copy{width:100%!important;min-width:0!important;margin:0 auto!important;padding:12px 20px 32px!important}
  html body.xtv-appearance-light .xtv-hero-copy h1{white-space:normal!important}
}
@media(max-width:900px){
  html body.xtv-appearance-light :is(.hero.xtv-hero-single,.xtv-hero-copy) h1{font-size:82px!important}
}
@media(max-width:640px){
  html body.xtv-appearance-light .site-header .nav-wrap{width:calc(100% - 24px)!important;max-width:100%!important;grid-template-columns:44px minmax(0,1fr)!important;gap:12px!important}
  html body.xtv-appearance-light .site-header .brand{width:180px!important;max-width:100%!important}
  html body.xtv-appearance-light .site-header .brand img{width:100%!important;max-width:100%!important;height:auto!important}
  html body.xtv-appearance-light .site-header .menu-btn{margin:0!important}
  html body.xtv-appearance-light :is(.hero.xtv-hero-single,.xtv-hero-copy) h1{font-size:72px!important;line-height:.78!important;display:block!important;margin-bottom:4px!important;padding:0!important}
  html body.xtv-appearance-light .xtv-hero-copy h1>span{display:block!important;line-height:.78!important;margin-top:0!important;padding-block:0!important}
  html body.xtv-appearance-light .xtv-service-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* XTV 2.0.5 mobile corrections retained, recalibrated for Cairo text metrics. */
@media (max-width:767px){
  html body.xtv-appearance-light .xtv-reference-why .xtv-reference-copy{padding:24px 16px!important}
  html body.xtv-appearance-light .xtv-reference-why .xtv-reference-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;min-width:0!important}
  html body.xtv-appearance-light .xtv-reference-why .xtv-reference-list li:nth-child(n){grid-column:auto!important;grid-row:auto!important;width:auto!important;min-width:0!important;height:auto!important;min-height:156px!important;padding:14px 10px!important;gap:8px!important;align-items:center!important;justify-content:center!important}
  html body.xtv-appearance-light .xtv-reference-why .xtv-reference-list li:last-child{grid-column:1/-1!important;min-height:136px!important}
  html body.xtv-appearance-light .xtv-reference-why .xtv-reference-list li span{width:100%!important;min-width:0!important;font-size:16px!important;line-height:1.55!important;text-align:center!important;overflow-wrap:break-word}
  html body.xtv-appearance-light .xtv-reference-why .xtv-reference-list li .xtv-reference-icon{width:40px!important;height:40px!important;flex:0 0 40px!important}
  html body.xtv-appearance-light .xtv-reference-why .xtv-reference-list li .xtv-reference-icon svg{width:34px!important;height:34px!important}

  html body.xtv-appearance-light .xtv-editorial-showcase .xtv-editorial-nav{display:none!important}

  html body.xtv-appearance-light .xtv-ref-light.xtv-reference-partners .section-title h2{font-size:40px!important;line-height:1.15!important;margin:0 0 18px!important;padding:0!important}
  html body.xtv-appearance-light .xtv-reference-partners .section-title h2 span{display:block!important;font-size:inherit!important;line-height:inherit!important;margin:0!important;padding:0!important}
  html body.xtv-appearance-light .xtv-reference-partners .xtv-reference-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.xtv-appearance-light .xtv-reference-partners .xtv-reference-partner-card{min-width:0!important;min-height:136px!important;height:auto!important;padding:14px 8px!important}
  html body.xtv-appearance-light .xtv-reference-partners .xtv-reference-partner-card h3{font-size:17px!important;line-height:1.45!important;margin:8px 0 0!important;overflow-wrap:break-word}
  html body.xtv-appearance-light .xtv-reference-ai .xtv-ai-card-grid .xtv-reference-value-card{min-height:0!important;height:auto!important;padding:18px 16px!important}

  html body.xtv-appearance-light .xtv-reference-contact .xtv-contact-form-wrap{padding:22px 12px!important;min-width:0!important}
  html body.xtv-appearance-light .xtv-reference-contact .contact-form{padding:0!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  html body.xtv-appearance-light .xtv-reference-contact .contact-type-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.xtv-appearance-light .xtv-reference-contact .contact-type-options>label{min-width:0!important;min-height:90px!important;padding:14px 8px!important}
  html body.xtv-appearance-light .xtv-reference-contact .xtv-contact-form-wrap .contact-form textarea{min-height:150px!important}

  html body.xtv-appearance-light .xtv-works-archive{padding-top:74px!important}
  html body.xtv-appearance-light .xtv-works-archive-hero{padding:24px 0 18px!important}
  html body.xtv-appearance-light .xtv-works-archive .container{width:calc(100% - 32px)!important;max-width:100%!important}
  html body.xtv-appearance-light .xtv-works-archive .kicker{font-size:14px!important;line-height:1.4!important;margin-bottom:8px!important}
  html body.xtv-appearance-light .xtv-works-archive-hero h1{font-size:40px!important;line-height:1.15!important;margin:0 0 12px!important;text-wrap:balance}
  html body.xtv-appearance-light .xtv-works-archive-hero h1 span{display:block!important;font-size:inherit!important;line-height:inherit!important;padding-inline:.12em;overflow:visible!important}
  html body.xtv-appearance-light .xtv-works-archive p{font-size:16px!important;line-height:1.85!important;color:#454751!important}
  html body.xtv-appearance-light .xtv-works-archive p :is(span,b,strong,em,a){line-height:inherit!important}
  html body.xtv-appearance-light .xtv-works-archive .xtv-archive-work-copy{padding:16px!important}
  html body.xtv-appearance-light .xtv-works-archive .xtv-archive-work-copy h2{font-size:22px!important;line-height:1.35!important;margin:0 0 8px!important}
  html body.xtv-appearance-light .xtv-works-archive-grid-section{padding:12px 0 36px!important}
  html body.xtv-appearance-light .xtv-works-archive .xtv-archive-work-media{aspect-ratio:4/3!important}
  html body.xtv-appearance-light .xtv-works-archive .xtv-archive-pagination .page-numbers{font-size:15px!important;line-height:1!important;min-width:44px!important;min-height:44px!important}
}
