/* Global brand-wide layout for header + footer (site-wide, not page-specific) */

/* Sitewide typeface: Noto Sans Hebrew everywhere, icon fonts excluded */
html, body,
body :not(i):not([class*="fa-"]):not([class*="fas"]):not([class*="far"]):not([class*="fab"]):not([class*="ti-"]):not([class*="dashicons"]):not([class*="icon"]):not([class*="owp-icon"]){
  font-family:'Noto Sans Hebrew', sans-serif !important;
}

.agc-social-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; min-width:32px; min-height:32px; max-width:32px; max-height:32px;
  flex-shrink:0; box-sizing:border-box; border-radius:50%; overflow:hidden;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18);
  color:#dfe3e9; font-size:12px; font-weight:700; text-decoration:none; line-height:1;
  transition:background .25s, color .25s, border-color .25s, transform .25s;
}
.agc-social-icon:hover{
  background:var(--agc-brand-gradient, linear-gradient(135deg,#6ea3cf,#2f5d8f));
  color:#fff; border-color:transparent; transform:translateY(-2px);
}
.agc-social-row{ display:flex; align-items:center; gap:8px; flex-shrink:0; flex-wrap:nowrap; }

#site-header, #masthead, .site-header, #site-header-wrap, #site-header-inner{
  background-color:#07090d !important;
}

/* Footer wrapper itself needs an explicit background, otherwise gaps reveal the page's white body bg */
#site-footer, .site-footer, #wrap #site-footer{
  background-color:#07090d !important;
}

/* Mobile slide-out menu: soften the backdrop from pure black to the brand's dark navy */
.oceanwp-sidr-overlay{
  background-color:rgba(7,9,13,.75) !important;
}
#site-header{
  position:-webkit-sticky !important;
  position:sticky !important;
  top:0 !important;
  z-index:9999 !important;
}
#site-header-inner .agc-header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  width:100%; padding:14px 0; flex-wrap:wrap;
}
.agc-header-logo{ display:flex; align-items:center; }
.agc-header-logo img{ transition:opacity .25s; }
.agc-header-nav-wrap{ display:flex; align-items:center; gap:16px; flex:1; justify-content:center; }
.agc-header-actions{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.agc-phone-pill{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 20px; border-radius:30px; font-weight:500; font-size:14px;
  background:var(--agc-brand-gradient, linear-gradient(135deg,#6ea3cf,#2f5d8f));
  color:#fff !important; text-decoration:none; white-space:nowrap;
  box-shadow:0 4px 14px rgba(47,93,143,.35);
  transition:transform .25s, box-shadow .25s;
}
.agc-phone-pill:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(47,93,143,.4); }

@media (max-width:768px){
  body:not(.elementor-editor-active) #site-header,
  body:not(.elementor-editor-active) #masthead{ background-color:#07090d !important; }

  #site-header-inner .agc-header-inner{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "logo social"
      "burger phone";
    align-items:center;
    row-gap:12px;
    padding:12px 16px;
  }

  .agc-header-logo{ grid-area:logo; justify-self:start; }
  .agc-header-logo img{
    max-height:40px !important; height:40px !important; width:auto !important;
  }

  .agc-header-nav-wrap{ grid-area:burger; justify-self:start; display:flex; }

  .agc-header-actions{ display:contents; }

  .agc-phone-pill{
    grid-area:phone; justify-self:end;
    padding:9px 16px; font-size:13px;
  }

  .agc-social-row{ grid-area:social; justify-self:end; gap:6px; flex-wrap:nowrap; }
  .agc-social-icon{
    width:30px; height:30px; min-width:30px; min-height:30px; max-width:30px; max-height:30px;
    font-size:11px;
  }
}

@media (max-width:400px){
  .agc-phone-pill{ padding:8px 10px; font-size:12px; }
}

/* ================================================================
   Sitewide dark theme for every non-homepage page (posts/pages),
   so the whole site matches the homepage's background + gradients.
   Homepage itself is untouched (its .agc-home sections already set
   their own backgrounds with higher-specificity classes).
   ================================================================ */
body:not(.home){
  background:#07090d !important;
}
body:not(.home) #wrapper,
body:not(.home) #main,
body:not(.home) #content,
body:not(.home) .site-content,
body:not(.home) .content-area,
body:not(.home) #primary,
body:not(.home) .entry-content,
body:not(.home) article,
body:not(.home) .elementor,
body:not(.home) .elementor-section,
body:not(.home) .elementor-container,
body:not(.home) .elementor-column,
body:not(.home) .elementor-widget-wrap,
body:not(.home) .elementor-element{
  background-color:#07090d !important;
  background-image:none !important;
}
body:not(.home) .entry-content,
body:not(.home) .elementor-widget-text-editor,
body:not(.home) .elementor-widget-heading .elementor-heading-title,
body:not(.home) p,
body:not(.home) li,
body:not(.home) span,
body:not(.home) td,
body:not(.home) th{
  color:#c7ccd6 !important;
}
body:not(.home) h1,
body:not(.home) h2,
body:not(.home) h3,
body:not(.home) h4,
body:not(.home) h5,
body:not(.home) h6{
  color:#ffffff !important;
}
body:not(.home) h1,
body:not(.home) h2{
  background:var(--agc-brand-gradient-text) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
}
/* Cards/boxes that were designed with a light card background (testimonials, image-box, etc.)
   get a dark card treatment instead of pure white, so they still read as "cards" on the dark page */
body:not(.home) .elementor-widget-image-box .elementor-image-box-wrapper,
body:not(.home) .elementor-icon-box-wrapper,
body:not(.home) .elementor-widget-call-to-action .elementor-cta__bg{
  background-color:#12161f !important;
}

/* Modern, consistent page/post title banner across the whole site:
   no boxed background, title text uses the same brand gradient as the homepage. */
body:not(.home) .elementor-section:has(.elementor-widget-theme-post-title){
  background:transparent !important;
  padding:56px 24px 28px !important;
  border:none !important;
  box-shadow:none !important;
}
body:not(.home) .elementor-section:has(.elementor-widget-theme-post-title) .elementor-background-overlay{
  background:transparent !important;
  opacity:0 !important;
  display:none !important;
}
body:not(.home) .elementor-widget-theme-post-title .elementor-heading-title{
  background:var(--agc-brand-gradient-text) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
  font-weight:700 !important;
}

/* ================================================================
   One-off custom pages that shipped with their own inline light-theme
   <style> blocks (debtor bimonthly form, directions page) - repainted dark.
   ================================================================ */
body:not(.home) .ag-ddh-link-page h2,
body:not(.home) .ag-directions-page h2,
body:not(.home) .ag-directions-page h3{
  color:#ffffff !important;
}
body:not(.home) .ag-ddh-card,
body:not(.home) .ag-directions-card{
  background:#12161f !important;
  border-color:rgba(255,255,255,.12) !important;
  color:#c7ccd6 !important;
  box-shadow:none !important;
}
body:not(.home) .ag-ddh-card strong{ color:#ffffff !important; }
body:not(.home) .ag-ddh-card.primary{
  background:linear-gradient(160deg,#12161f,#0a0f1a) !important;
  border-color:rgba(101,154,201,.4) !important;
}
body:not(.home) .ag-ddh-card.primary strong{ color:#6ea3cf !important; }
body:not(.home) .ag-note,
body:not(.home) .ag-directions-note{
  background:#12161f !important;
  border-inline-start-color:#2f5d8f !important;
  color:#c7ccd6 !important;
}
body:not(.home) .ag-directions-page a{ color:#6ea3cf !important; }

/* Courtroom finder mini-app (haifa-magistrate-courtrooms): swap its purple gradient for the brand gradient */
body.page-id-4850{ background:#07090d !important; }
body.page-id-4850 .bg-gradient-to-r.from-indigo-600.to-purple-600,
body.page-id-4850 [class*="from-indigo"],
body.page-id-4850 [class*="to-purple"],
body.page-id-4850 [class*="from-purple"],
body.page-id-4850 [class*="to-indigo"]{
  background-image:linear-gradient(90deg, #2f5d8f, #6ea3cf) !important;
}
body.page-id-4850 .ios-card{
  background:rgba(10,15,26,.9) !important;
  color:#c7ccd6 !important;
}

/* Modern icon-only hamburger (no text labels) */
.oceanwp-mobile-menu-icon .oceanwp-text,
.oceanwp-mobile-menu-icon .oceanwp-close-text{ display:none !important; }
.oceanwp-mobile-menu-icon a.mobile-menu{
  display:inline-flex !important; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:12px;
  background:rgba(255,255,255,.08);
  transition:background .25s ease, transform .25s ease;
}
.oceanwp-mobile-menu-icon a.mobile-menu:hover{
  background:var(--agc-brand-gradient, linear-gradient(135deg,#6ea3cf,#2f5d8f));
  transform:translateY(-1px);
}
.oceanwp-mobile-menu-icon a.mobile-menu i{
  font-size:18px; color:#fff; transition:transform .3s ease;
}
.oceanwp-mobile-menu-icon a.mobile-menu:hover i{ transform:scale(1.1); }

.agc-footer-grid{
  display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:32px;
  padding:60px 0 20px;
}
.agc-footer-logo{ font-size:22px; font-weight:800; color:#fff; margin-bottom:14px; }
.agc-footer-about{ font-size:14px; line-height:1.8; color:#a9b1bd; margin-bottom:18px; }
.agc-footer-heading{ font-size:15px; font-weight:700; color:#fff; margin-bottom:16px; }
.agc-footer-menu-list,
.agc-footer-contact-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.agc-footer-menu-list a,
.agc-footer-contact-list a,
.agc-footer-contact-list li{
  color:#a9b1bd; text-decoration:none; font-size:14px; transition:color .2s;
}
.agc-footer-menu-list a:hover,
.agc-footer-contact-list a:hover{ color:#6ea3cf; }

@media (max-width:900px){
  .agc-footer-grid{ grid-template-columns:1fr 1fr; padding:40px 0 10px; }
}
@media (max-width:560px){
  .agc-footer-grid{ grid-template-columns:1fr; gap:28px; padding:36px 0 10px; }
}

/* ---------- Brand consistency for all other (Elementor/native) content pages ---------- */
.entry-content a,
.elementor-widget-text-editor a,
.elementor-widget-heading a,
#content a:not(.agc-btn):not(.agc-phone-pill):not(.agc-social-icon):not(.agc-chip){
  color:#2f5d8f;
  text-decoration-color:rgba(47,93,143,.35);
}
.entry-content a:hover,
.elementor-widget-text-editor a:hover,
.elementor-widget-heading a:hover,
#content a:not(.agc-btn):not(.agc-phone-pill):not(.agc-social-icon):not(.agc-chip):hover{
  color:#6ea3cf;
}
.elementor-button,
.elementor-button-wrapper .elementor-button{
  background:var(--agc-brand-gradient, linear-gradient(135deg,#6ea3cf,#2f5d8f)) !important;
  border-color:transparent !important;
  color:#fff !important;
  transition:transform .25s, box-shadow .25s;
}
.elementor-button:hover{ transform:translateY(-2px); }

/* No underline on any button, anywhere */
.agc-btn, .agc-btn:hover, .agc-btn:focus,
.agc-phone-pill, .agc-phone-pill:hover, .agc-phone-pill:focus,
.elementor-button, .elementor-button:hover, .elementor-button:focus,
.elementor-button-link, .elementor-button-link:hover,
button, button:hover, button:focus,
input[type="submit"], input[type="submit"]:hover,
.elementor-widget-form button, .elementor-widget-form button:hover,
a.elementor-button, a.elementor-button:hover,
.theme-button, .theme-button:hover,
.ag-ddh-card, .ag-ddh-card:hover,
.ag-directions-card, .ag-directions-card:hover{
  text-decoration:none !important;
}

.page-header-bg-image,
.page-header-title-wrap{
  background-color:#07090d !important;
}

/* ================================================================
   Modern blog post cards (Elementor "Posts" widget, classic skin)
   ================================================================ */
.elementor-posts-container.elementor-grid{
  display:grid !important;
  grid-template-columns:repeat(3, 1fr) !important;
  gap:28px !important;
}
.elementor-post{
  display:flex !important;
  flex-direction:column !important;
  background:linear-gradient(160deg, #12161f, #0a0f1a) !important;
  border:1px solid rgba(255,255,255,.06) !important;
  border-radius:18px !important;
  overflow:hidden !important;
  padding:0 !important;
  margin:0 !important;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.elementor-post:hover{
  transform:translateY(-6px);
  border-color:rgba(101,154,201,.35) !important;
  box-shadow:0 16px 32px rgba(0,0,0,.35);
}
.elementor-post__thumbnail__link{
  display:block !important;
  aspect-ratio:16/9;
  overflow:hidden;
}
.elementor-post__thumbnail{
  height:100% !important;
  margin:0 !important;
}
.elementor-post__thumbnail img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  transition:transform .4s ease;
}
.elementor-post:hover .elementor-post__thumbnail img{
  transform:scale(1.06);
}
.elementor-post__text{
  padding:22px 22px 26px !important;
  display:flex !important;
  flex-direction:column !important;
  flex:1 !important;
}
.elementor-post__title{
  font-size:18px !important;
  line-height:1.4 !important;
  margin:0 0 10px !important;
  background:none !important;
  -webkit-text-fill-color:unset !important;
}
.elementor-post__title a{
  color:#ffffff !important;
  text-decoration:none !important;
  transition:color .2s ease;
}
.elementor-post__title a:hover{
  color:#6ea3cf !important;
}
.elementor-post__meta-data{
  order:-1;
  margin-bottom:10px !important;
}
.elementor-post-date{
  display:inline-block;
  font-size:12px !important;
  font-weight:600;
  letter-spacing:.03em;
  color:#6ea3cf !important;
  text-transform:uppercase;
}
.elementor-post__excerpt{
  flex:1;
  margin-bottom:16px !important;
}
.elementor-post__excerpt p{
  font-size:14.5px !important;
  line-height:1.75 !important;
  color:#a9b1bd !important;
  margin:0 !important;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.elementor-post__read-more{
  align-self:flex-start !important;
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  font-size:13.5px !important;
  font-weight:600 !important;
  color:#6ea3cf !important;
  text-decoration:none !important;
  border:none !important;
  padding:0 !important;
  background:none !important;
  transition:gap .2s ease;
}
.elementor-post__read-more:hover{
  gap:10px;
  color:#a9c9e6 !important;
}

@media (max-width:1024px){
  .elementor-posts-container.elementor-grid{ grid-template-columns:repeat(2, 1fr) !important; }
}
@media (max-width:640px){
  .elementor-posts-container.elementor-grid{ grid-template-columns:1fr !important; }
}
