/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Elementor's fixed anchor offset cannot measure the changing legal-page header.
   The page-scoped variable also accounts for the collapsed TOC on stacked views. */
body:is(.page-id-3, .page-id-587) .shenouda-legal-copy :is(h2, [id^="elementor-toc__heading-anchor-"]) {
    scroll-margin-top: var(--sl-legal-anchor-offset, 160px) !important;
}

/* Native Heading controls cannot give a mixed-text italic span its own weight.
   The face, weight and style remain editable in the shared Site Settings token. */
.shenouda-italic-heading .elementor-heading-title :is(em, i) {
    font-family: var(--e-global-typography-slheadingitalic-font-family);
    font-weight: var(--e-global-typography-slheadingitalic-font-weight);
    font-style: var(--e-global-typography-slheadingitalic-font-style);
}


ul.elementor-nav-menu--dropdown a, ul.elementor-nav-menu--dropdown a:focus, ul.elementor-nav-menu--dropdown a:hover{
    border-inline-start: 0 !important;
}

@media (max-width: 1200px){
    ul.elementor-nav-menu--dropdown a, ul.elementor-nav-menu--dropdown a:focus, ul.elementor-nav-menu--dropdown a:hover{
        border-inline-start: 10px solid transparent !important;
    }
}

/* Uploaded call SVG uses an outline; native Icon List color controls affect fill only. */
.elementor-element-a190012 .elementor-icon-list-item:hover svg path,
.elementor-element-a190012 .elementor-icon-list-item a:focus-visible svg path {
    stroke: var(--e-global-color-accent);
}

/* The Button widget has no SVG size control; keep the original arrow/text proportion. */
.shenouda-consultation-button .elementor-button-icon svg {
    width: 1.722222em;
}

/* Let native accordion/icon color controls recolor the exported SVG paths. */
.shenouda-approach-accordion .e-n-accordion-item-title-icon svg [fill]:not([fill="none"]),
.shenouda-approach-arrow svg [fill]:not([fill="none"]),
.shenouda-approach-open-arrow svg [fill]:not([fill="none"]) {
    fill: currentColor;
}

/* The decorative arrow passes clicks to the native accordion summary beneath it. */
.shenouda-approach-arrow,
.shenouda-approach-open-heading,
.shenouda-approach-outline,
.shenouda-button-outline {
    pointer-events: none;
}

.shenouda-approach-card:not(:has(.e-n-accordion-item[open])) .shenouda-approach-outline {
    visibility: hidden;
}

#our-approach .shenouda-approach-card:has(.e-n-accordion-item[open]) > .shenouda-approach-arrow,
#our-approach .shenouda-approach-card:not(:has(.e-n-accordion-item[open])) .shenouda-approach-open-heading {
    /* Remove the inactive visual tree so descendant visibility cannot reveal a second arrow. */
    display: none;
}
#our-approach .shenouda-approach-card:not(:has(.e-n-accordion-item[open])) {
    box-shadow: none;
}
.shenouda-approach-open-icon img {
    filter: brightness(0) invert(1);
}

/* Native Button controls do not expose an independent SVG width or stroke color. */
.shenouda-practice-more .elementor-button-icon svg {
    width: 1.125em;
}
.shenouda-practice-more .elementor-button-icon svg [stroke] {
    stroke: currentColor;
}
.shenouda-practice-more .elementor-button-icon svg [fill]:not([fill="none"]) {
    fill: currentColor;
}

/* Parent-card hover/focus cannot target these nested widgets through native controls. */
#areas-of-practice .shenouda-practice-card:is(:hover, :focus-within) .shenouda-practice-title .elementor-heading-title,
#areas-of-practice .shenouda-practice-card:is(:hover, :focus-within) .shenouda-practice-excerpt {
    color: var(--e-global-color-slwhite);
}
#areas-of-practice .shenouda-practice-card:is(:hover, :focus-within) .shenouda-practice-circle,
#areas-of-practice .shenouda-practice-card:focus-within {
    background-color: var(--e-global-color-secondary);
}
#areas-of-practice .shenouda-practice-card:focus-within {
    border-color: transparent;
}
#areas-of-practice .shenouda-practice-card:is(:hover, :focus-within) .shenouda-practice-baseline {
    background-color: transparent;
}
#areas-of-practice .shenouda-practice-card:is(:hover, :focus-within) .shenouda-practice-icon img {
    filter: brightness(0) invert(1);
}
#areas-of-practice .shenouda-practice-card:is(:hover, :focus-within) .shenouda-practice-more .elementor-button {
    color: var(--e-global-color-accent);
}
.shenouda-practice-outline {
    pointer-events: none;
}
.shenouda-practice-card:not(:hover):not(:focus-within) .shenouda-practice-outline {
    visibility: hidden;
}
#areas-of-practice .shenouda-practice-card:focus-within::before {
    opacity: 1;
}
#areas-of-practice .shenouda-practice-card:focus-within .shenouda-practice-more .elementor-button {
    outline: 2px solid var(--e-global-color-accent);
    outline-offset: 5px;
}

/* Gravity Forms' shortcode exposes no Elementor field-style controls. Typography
   follows the responsive PX tokens in Site Settings; Gravity Forms owns behavior. */
#consultation-form #gform_wrapper_1 {
    font-family: var(--e-global-typography-slformtext-font-family), sans-serif;
    font-size: var(--e-global-typography-slformtext-font-size);
    line-height: var(--e-global-typography-slformtext-line-height);
    color: var(--e-global-color-primary);
    --gf-font-family: var(--e-global-typography-slformtext-font-family), sans-serif;
    --gf-font-size-primary: var(--e-global-typography-slformtext-font-size);
    --gf-font-size-secondary: var(--e-global-typography-slformtext-font-size);
    --gf-ctrl-font-size: var(--e-global-typography-slformtext-font-size);
    --gf-ctrl-label-color-primary: var(--e-global-color-primary);
    --gf-ctrl-label-color-secondary: var(--e-global-color-primary);
    --gf-ctrl-border-radius: 0;
    --gf-ctrl-choice-size: 1em;
    --gf-ctrl-choice-check-color: var(--e-global-color-primary);
    margin: 0;
}
#consultation-form #gform_wrapper_1 .gform_required_legend {
    display: none;
}
#consultation-form #gform_wrapper_1 .gform_fields {
    row-gap: 1.333333em;
    column-gap: 1.333333em;
}
#consultation-form #gform_wrapper_1 :is(.gfield_label, .gform-field-label, .gfield_consent_label) {
    font-family: inherit;
    font-size: inherit;
    line-height: var(--e-global-typography-slformtext-line-height);
    font-weight: 400;
    color: var(--e-global-color-primary);
}
#consultation-form #gform_wrapper_1 .gfield_label {
    margin-bottom: .555556em;
}
#consultation-form #gform_wrapper_1 .gfield_required {
    color: inherit;
    font-size: inherit;
}
#consultation-form #gform_wrapper_1 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: .916667em 1.388889em;
    border: 1px solid #EFEFEF;
    border-radius: 0;
    background-color: var(--e-global-color-slwhite);
    box-shadow: none;
    font: inherit;
    line-height: var(--e-global-typography-slformtext-line-height);
    color: var(--e-global-color-primary);
}
#consultation-form #gform_wrapper_1 textarea {
    min-height: 6em;
}
#consultation-form #gform_wrapper_1 :is(input, textarea)::placeholder {
    color: #898989;
    opacity: 1;
}
#consultation-form #gform_wrapper_1 select:has(option[value=""]:checked) {
    color: #898989;
}
#consultation-form #gform_wrapper_1 select option {
    color: var(--e-global-color-primary);
}
#consultation-form #gform_wrapper_1 .ginput_container_consent {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
#consultation-form #gform_wrapper_1 .ginput_container_consent input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: .25em 0 0;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}
#consultation-form #gform_wrapper_1 .gfield_consent_label {
    min-inline-size: 0;
    max-inline-size: 464px;
    margin: 0;
}
@media (max-width: 640px) {
    #consultation-form #gform_wrapper_1 .gform_fields {
        column-gap: 0;
    }
}
@media (min-width: 1800px) {
    #consultation-form #gform_wrapper_1 .gfield_consent_label {
        max-inline-size: 580px;
    }
}
#consultation-form #gform_wrapper_1 .gfield_consent_label a {
    color: inherit;
    text-decoration: underline;
}
#consultation-form #gform_wrapper_1 .gform_footer {
    margin-top: 1.333333em;
    padding: 0;
}
#consultation-form #gform_submit_button_1 {
    width: 100%;
    margin: 0;
    padding: .972222em 1em;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-slwhite);
    font-family: var(--e-global-typography-slherocta-font-family), sans-serif;
    font-size: var(--e-global-typography-slherocta-font-size);
    font-weight: 500;
    line-height: var(--e-global-typography-slformtext-line-height);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
#consultation-form #gform_submit_button_1:is(:hover, :focus-visible) {
    background-color: var(--e-global-color-secondary);
}
#consultation-form #gform_wrapper_1 :is(input, select, textarea):is(:focus, :focus-visible),
#consultation-form #gform_submit_button_1:is(:focus, :focus-visible),
#consultation-form #gform_wrapper_1 .ginput_container_consent input[type="checkbox"]:is(:focus, :focus-visible) {
    outline: none;
    box-shadow: none;
    border-color: var(--e-global-color-accent);
}

/* HTML has no iframe-height control: fill the native responsive map container. */
.shenouda-contact-map,
.shenouda-contact-map > .elementor-widget-container,
.shenouda-contact-map iframe {
    height: 100%;
}
.shenouda-contact-map iframe {
    display: block;
}

/* Native parent-card hover cannot recolor a nested Read More button. */
#latest-insights .shenouda-insight-card:is(:hover, :focus-within) .shenouda-insight-more .elementor-button {
    color: var(--e-global-color-accent);
}

/* The original calendar is an outline; Post Info's native fill control must not fill it. */
#latest-insights .elementor-element-f161504 svg {
    fill: none;
}

/* Keep the original footer outline icons unfilled when native Icon List applies its color. */
#shenouda-footer .shenouda-footer-contact .elementor-icon-list-icon svg {
    fill: none;
}

/* Native overlay blending is isolated inside its container. Blend the complete
   original leather layer with the native base/secondary layer beneath it. */
.shenouda-cta-leather-layer {
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Insights reuses the native card; nested colors require the parent state. */
#insights-archive .shenouda-insight-card:is(:hover, :focus-within) .shenouda-insight-more .elementor-button,
#related-articles .shenouda-insight-card:is(:hover, :focus-within) .shenouda-insight-more .elementor-button {
    color: var(--e-global-color-accent);
}
#insights-archive .elementor-element-f161504 svg,
#related-articles .elementor-element-f161504 svg,
#insight-article-banner .shenouda-article-date [itemprop="datePublished"] svg {
    fill: none;
}
/* Original outlined tab SVGs inherit the native Tabs control's state colors. */
#notary-options .e-n-tab-icon svg {
    fill: none;
}
#notary-options .e-n-tab-icon svg [fill]:not([fill="none"]) {
    fill: currentColor;
}
#notary-options .e-n-tab-icon svg [stroke]:not([stroke="none"]) {
    stroke: currentColor;
}
/* Loop Grid exposes pagination type/spacing, but no number-box decoration. */
#insights-archive .elementor-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 2.222222em;
    min-height: 2.222222em;
    background: #F0F0F0;
}
#insights-archive .elementor-pagination .current,
#insights-archive .elementor-pagination a:is(:hover, :focus-visible),
#insights-archive .elementor-pagination a.next {
    background: #762536;
    color: #FFFFFF;
}
/* Loading uses the existing native geometry, with no additional responsive layout. */
#insights-archive .is-loading .shenouda-insight-card {
    pointer-events: none;
    box-shadow: none;
}
#insights-archive .is-loading .shenouda-insight-card > .elementor-element {
    background-image: none !important;
    background-color: #ECEAE6;
    position: relative;
    overflow: hidden;
}
#insights-archive .is-loading .shenouda-insight-card > .elementor-element::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 25%, #FFFFFF99 50%, transparent 75%);
    animation: shenouda-insights-skeleton 1.3s ease-in-out infinite;
}
#insights-archive .is-loading .shenouda-insight-card > .elementor-element > * {
    visibility: hidden;
}
#insights-archive .is-loading .shenouda-insight-card > .elementor-element:last-child {
    background-color: transparent;
}
#insights-archive .is-loading .shenouda-insight-card > .elementor-element:last-child > .elementor-element {
    visibility: visible;
    /* Post Excerpt can contain a bare text node, without a child wrapper. */
    color: transparent;
    background-color: #ECEAE6;
    background-clip: content-box;
    border-radius: 2px;
}
#insights-archive .is-loading .shenouda-insight-card > .elementor-element:last-child > .elementor-element > * {
    visibility: hidden;
    /* Descendant visibility rules must not reveal button labels or arrows. */
    opacity: 0;
    transition: none;
}
#insights-archive .is-loading .elementor-pagination {
    visibility: hidden;
}
@keyframes shenouda-insights-skeleton {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    #insights-archive .is-loading .shenouda-insight-card > .elementor-element::after {
        animation: none;
    }
}

/* The native FAQ widgets own sizing and styling. Coordinate their open-state
   decorative layers, which native parent controls cannot observe directly. */
.shenouda-practice-faq-decoration {
    pointer-events: none;
}
.shenouda-practice-faq .shenouda-practice-faq-card:not(:has(.e-n-accordion-item[open])) {
    box-shadow: none;
    border-color: #E0E0E0;
}
.shenouda-practice-faq .shenouda-practice-faq-card:not(:has(.e-n-accordion-item[open])) .shenouda-practice-faq-open,
.shenouda-practice-faq .shenouda-practice-faq-card:has(.e-n-accordion-item[open]) .shenouda-practice-faq-closed {
    display: none;
}


.inner-accordions .e-n-accordion .e-n-accordion-item{
    background-color: #FFFFFF;
    outline: 1px solid #E0E0E0;
    transition: all 0.4s ease-in-out;
}
.inner-accordions .e-n-accordion-item[open]{
    outline-color: #6D2533;
    box-shadow: 0 4px 44px #9D7C7C;
}
.inner-accordions .e-n-accordion-item[open] .e-n-accordion-item-title{
    padding: 62px 53px 32px 53px !important;
}
.inner-accordions .e-n-accordion-item[open]::after{
    content: '';
    height: calc(100% - 40px);
    width: calc(100% - 40px);
    background: transparent;
    border: 1px solid #DADADA;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media only screen and (max-width: 1440px){
    .inner-accordions .e-n-accordion-item[open] .e-n-accordion-item-title{
        padding: 45px 45px 30px 45px !important;
    }
    .inner-accordions .e-n-accordion-item[open]::after{
        height: calc(100% - 30px);
        width: calc(100% - 30px);
    }
}

@media only screen and (max-width: 1024px){
    .inner-accordions .e-n-accordion-item[open] .e-n-accordion-item-title{
        padding: 25px 25px 20px 25px !important;
    }
    .inner-accordions .e-n-accordion-item[open]::after{
        height: calc(100% - 20px);
        width: calc(100% - 20px);
    }
}

@media only screen and (max-width: 767px){
    .inner-accordions .e-n-accordion-item[open] .e-n-accordion-item-title{
        padding: 25px 25px 20px 25px !important;
    }
    .inner-accordions .e-n-accordion-item[open]::after{
        height: calc(100% - 20px);
        width: calc(100% - 20px);
    }
}