/*
Theme Name: Renowohn Boosche
Theme URI: https://example.com/
Author: Renowohn Boosche
Description: Custom theme based on the original Renowohn Boosche website design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: renowohn-boosche
*/

/* Service images: fixed-size thumbnails preserve the existing card layout. */
.service .service-icon{display:block;width:100%;height:132px;max-height:132px;object-fit:contain;object-position:center;margin:0 0 12px;background:#f7f9fc;border-radius:7px}


/* Final cursor compatibility fix: prevent prohibited/no-drop cursor on usable controls. */
html body, html body * { cursor: auto !important; }
html body input:not([disabled]):not([readonly]),
html body textarea:not([disabled]):not([readonly]) { cursor: text !important; }
html body select:not([disabled]),
html body button,
html body a[href],
html body [role="button"] { cursor: pointer !important; }
html body input:disabled,
html body textarea:disabled,
html body select:disabled,
html body button:disabled { cursor: pointer !important; }

/* Targeted fix: quote-request submit button must never show the prohibited cursor. */
html body #quoteForm button[type="submit"], html body #quoteForm button[type="submit"]:hover, html body #quoteForm button[type="submit"]:focus { cursor: pointer !important; pointer-events: auto !important; }


/* Footer-only adjustment requested: keep the logo above the company name and description. */
footer.footer .footergrid > div:first-child .footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: left !important;
  width: 100%;
}
footer.footer .footergrid > div:first-child .footer-brand .brand-logo {
  display: block;
  margin: 0;
  object-fit: contain;
}
footer.footer .footergrid > div:first-child .footer-brand > span {
  display: block;
  text-align: left !important;
  width: 100%;
}
footer.footer .footergrid > div:first-child .footer-brand small {
  display: block;
  text-align: left !important;
}
footer.footer .footergrid > div:first-child > p {
  text-align: left !important;
  margin-top: 12px;
}

/* Footer brand lockup: keep the tagline directly beneath the logo and its wordmark. */
footer.footer .footergrid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
footer.footer .footergrid > div:first-child .footer-brand {
  align-items: flex-start !important;
  width: max-content;
  max-width: 100%;
  margin: 0;
}
footer.footer .footergrid > div:first-child .footer-brand .brand-logo {
  width: 170px;
  max-width: 100%;
  height: auto;
}
footer.footer .footergrid > div:first-child .footer-brand > span {
  width: 100%;
  line-height: 1.35;
}
footer.footer .footergrid > div:first-child > p {
  width: 100%;
  max-width: 300px;
  margin: 10px 0 0;
  text-align: left !important;
  line-height: 1.6;
}


/* Final footer alignment fix: keep the brand lockup centered in both LTR and RTL languages. */
footer.footer .footergrid > div:first-child {
  align-items: center !important;
  text-align: center !important;
}
footer.footer .footergrid > div:first-child .footer-brand {
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
footer.footer .footergrid > div:first-child .footer-brand .brand-logo {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
footer.footer .footergrid > div:first-child .footer-brand > span,
footer.footer .footergrid > div:first-child .footer-brand small,
footer.footer .footergrid > div:first-child > p {
  display: block !important;
  width: 100% !important;
  max-width: 300px !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
[dir="rtl"] footer.footer .footergrid > div:first-child,
[dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand,
[dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand > span,
[dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand small,
[dir="rtl"] footer.footer .footergrid > div:first-child > p {
  direction: rtl !important;
  text-align: center !important;
}

/* Footer placement refinement: keep the logo/name/tagline stacked, but anchor the brand block to the outer corner. */
footer.footer .footergrid > div:first-child {
  align-items: flex-start !important;
  justify-self: start !important;
  width: 100% !important;
  text-align: center !important;
}
footer.footer .footergrid > div:first-child .footer-brand {
  align-self: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: min(100%, 300px) !important;
}
footer.footer .footergrid > div:first-child > p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center !important;
}
[dir="rtl"] footer.footer .footergrid > div:first-child {
  justify-self: end !important;
  align-items: flex-end !important;
}
[dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand,
[dir="rtl"] footer.footer .footergrid > div:first-child > p {
  align-self: flex-end !important;
}
@media (max-width: 650px) {
  footer.footer .footergrid > div:first-child,
  [dir="rtl"] footer.footer .footergrid > div:first-child {
    align-items: center !important;
    justify-self: center !important;
  }
  footer.footer .footergrid > div:first-child .footer-brand,
  [dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand,
  footer.footer .footergrid > div:first-child > p,
  [dir="rtl"] footer.footer .footergrid > div:first-child > p {
    align-self: center !important;
  }
}


/* Final correction: anchor the company logo block to the outer footer corner, not the center. */
@media (min-width: 651px) {
  html[lang^="fa"] footer.footer .footergrid,
  html[lang^="ar"] footer.footer .footergrid,
  body[dir="rtl"] footer.footer .footergrid,
  footer.footer[dir="rtl"] .footergrid {
    direction: rtl !important;
  }
  html[lang^="fa"] footer.footer .footergrid > div:first-child,
  html[lang^="ar"] footer.footer .footergrid > div:first-child,
  body[dir="rtl"] footer.footer .footergrid > div:first-child,
  footer.footer[dir="rtl"] .footergrid > div:first-child {
    justify-self: end !important;
    align-items: flex-end !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
  }
  html[lang^="fa"] footer.footer .footergrid > div:first-child .footer-brand,
  html[lang^="ar"] footer.footer .footergrid > div:first-child .footer-brand,
  body[dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand,
  footer.footer[dir="rtl"] .footergrid > div:first-child .footer-brand {
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    align-self: flex-end !important;
  }
}


/* Footer brand placement: keep logo and its text stacked at the left edge on desktop,
   regardless of the selected language; keep it slightly higher within the footer. */
@media (min-width: 651px) {
  footer.footer .footergrid > div:first-child {
    align-items: flex-start !important;
    justify-self: start !important;
    align-self: start !important;
    text-align: left !important;
    margin-top: -8px !important;
    width: 100% !important;
  }
  footer.footer .footergrid > div:first-child .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    align-self: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 8px !important;
  }
  footer.footer .footergrid > div:first-child .footer-brand .brand-logo {
    display: block !important;
    width: 170px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }
  footer.footer .footergrid > div:first-child .footer-brand > span,
  footer.footer .footergrid > div:first-child .footer-brand small,
  footer.footer .footergrid > div:first-child > p {
    display: block !important;
    width: 100% !important;
    max-width: 300px !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  [dir="rtl"] footer.footer .footergrid > div:first-child,
  [dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand,
  [dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand > span,
  [dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand small,
  [dir="rtl"] footer.footer .footergrid > div:first-child > p {
    align-items: flex-start !important;
    justify-self: start !important;
    align-self: flex-start !important;
    text-align: left !important;
  }
}

/* Persian-only footer repair: preserve the same column order and left-side brand
   placement as English/German. Keep Persian text direction RTL without reversing
   the footer grid or pushing the brand block to the right. */
@media (min-width: 651px) {
  html[lang^="fa"] footer.footer .footergrid,
  html[lang^="fa"] body footer.footer .footergrid,
  body[dir="rtl"] footer.footer .footergrid {
    direction: ltr !important;
  }
  html[lang^="fa"] footer.footer .footergrid > div:first-child,
  body[dir="rtl"] footer.footer .footergrid > div:first-child {
    justify-self: start !important;
    align-items: flex-start !important;
    text-align: left !important;
    direction: ltr !important;
  }
  html[lang^="fa"] footer.footer .footergrid > div:first-child .footer-brand,
  body[dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand {
    direction: ltr !important;
    align-items: flex-start !important;
    align-self: flex-start !important;
    text-align: left !important;
    margin: 0 !important;
  }
  html[lang^="fa"] footer.footer .footergrid > div:first-child .footer-brand > span,
  html[lang^="fa"] footer.footer .footergrid > div:first-child .footer-brand small,
  html[lang^="fa"] footer.footer .footergrid > div:first-child > p,
  body[dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand > span,
  body[dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand small,
  body[dir="rtl"] footer.footer .footergrid > div:first-child > p {
    direction: rtl !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 650px) {
  html[lang^="fa"] footer.footer .footergrid,
  body[dir="rtl"] footer.footer .footergrid {
    direction: ltr !important;
  }
  html[lang^="fa"] footer.footer .footergrid > div:first-child,
  body[dir="rtl"] footer.footer .footergrid > div:first-child {
    align-items: center !important;
    justify-self: center !important;
    text-align: center !important;
  }
  html[lang^="fa"] footer.footer .footergrid > div:first-child .footer-brand,
  body[dir="rtl"] footer.footer .footergrid > div:first-child .footer-brand {
    align-items: center !important;
    text-align: center !important;
  }
}


/* Service cards open their matching detail page. */
.service-link{display:block;color:inherit;text-decoration:none;min-width:0;border-radius:12px}
.service-link:focus-visible{outline:3px solid #e9ad43;outline-offset:3px}
.service-link .service{height:100%;cursor:pointer}
.service-link .service:hover{border-color:var(--gold)}
/* Let the service detail text sit directly over the supplied full-screen photo. */
body.service-detail .service-article a{color:#f5c463;text-decoration:underline;text-underline-offset:3px}

.custom-logo-link{display:inline-flex;align-items:center;flex:0 0 auto}.custom-logo-link img.custom-logo{display:block;width:auto;height:auto;max-width:170px;max-height:62px;object-fit:contain}.header-brand .custom-logo-link img.custom-logo{max-width:100px;max-height:56px}.footer-brand .custom-logo-link img.custom-logo{max-width:170px;max-height:70px}
