/* =========================================================
   WordPress + Elementor adjustments for the R. S. Weck theme.
   The design itself lives in site.css (unchanged from the static site).
   ========================================================= */

/* Sticky header below the WordPress admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* Custom (uploaded) logo, shown without the original PNG's crop */
.logo-custom { display: flex; align-items: center; height: 70px; }
.logo-custom img { max-height: 70px; width: auto; }
.logo-custom--footer { height: 96px; }
.logo-custom--footer img { max-height: 96px; }

/* Elementor wrappers: our widgets render full-width sections with their own containers */
.elementor-widget[class*="elementor-widget-rsweck-"] { margin-bottom: 0 !important; }
.elementor-widget[class*="elementor-widget-rsweck-"] > .elementor-widget-container { margin: 0; padding: 0; }
.elementor-section.elementor-section-full_width > .elementor-container > .elementor-column > .elementor-widget-wrap:has(> .elementor-widget[class*="elementor-widget-rsweck-"]) { padding: 0; }
.e-con:has(> .elementor-widget[class*="elementor-widget-rsweck-"]) { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }

/* Keep Elementor's generic image rules from overriding the design */
.elementor .hero-bg img,
.elementor .about-intro__photo img,
.elementor .about-tabs__photo img,
.elementor .feature__img img,
.elementor .post-card img,
.elementor .post-detail__img img { height: 100%; }
.elementor .service-card__icon img { max-width: none; }
.elementor .service-card__icon--custom img { position: static; width: 100%; height: 100%; object-fit: contain; }
.elementor .exp-panel ul,
.elementor .feature__body ul { margin-top: 0; }

/* WYSIWYG content inside panels */
.exp-panel > p:empty,
.acc-panel__inner > p:empty { display: none; }
.acc-panel__inner a,
.exp-panel p a { text-decoration: underline; }

/* Elementor editor: show AOS-animated elements without waiting for scroll */
.elementor-editor-active [data-aos] { opacity: 1 !important; transform: none !important; }

/* Plain WordPress content (posts, non-Elementor pages, 404) */
.wp-entry { padding-block: clamp(60px, 7vw, 120px); }
.wp-entry__title { margin-bottom: 32px; }
.wp-entry__content > * + *,
.wp-entry__item + .wp-entry__item { margin-top: 1.2em; }
.wp-entry__content a,
.wp-entry a { text-decoration: underline; }
.wp-entry__content ul,
.wp-entry__content ol { padding-left: 1.4em; }
.wp-entry__content img { height: auto; }
.wp-entry__item h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin-bottom: 8px; }

/* Screen-reader text (WordPress core class) */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
