/* =========================================================
   WORDPRESS / ELEMENTOR ADDITIONS
   style.css, forms.css and inner-pages.css are the original site's stylesheets,
   unchanged. This file only adds what WordPress and Elementor need on top.
   ========================================================= */

/* ---- Each section sits in its own Elementor container ("smw-wrap"): no padding,
   gaps or widths of its own, so the section looks exactly as on the original site. ---- */
.e-con.smw-wrap,
.e-con.smw-group {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --gap: 0px;
  --row-gap: 0px;
  --column-gap: 0px;
  --content-width: 100%;
  --container-max-width: 100%;
  --widgets-spacing: 0px;
  --kit-widget-spacing: 0px;
  padding: 0;
  gap: 0;
  max-width: 100%;
}
.smw-wrap > .e-con-inner { max-width: 100%; padding: 0; gap: 0; }
.smw-wrap .elementor-widget,
.smw-wrap .elementor-widget-container { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.elementor-widget[class*="elementor-widget-smw-"] { margin-block-end: 0; }

/* On the live page, Elementor's wrapper boxes step aside entirely, so the site's own layout
   rules apply as written (e.g. the services page's sub-menu sticks while its sections
   scroll past). In the editor they stay, so sections can be clicked and moved. */
body:not(.elementor-editor-active) .e-con.smw-wrap,
body:not(.elementor-editor-active) .smw-wrap > .elementor-widget,
body:not(.elementor-editor-active) .smw-wrap > .elementor-widget > .elementor-widget-container {
  display: contents;
}
/* The services page's sub-menu area: a plain block, like the original div.subnav-scope. */
.e-con.smw-group { display: block; --display: block; }

/* Elementor's `.elementor img { height: auto; max-width: 100% }` is more specific than the
   site's single-class image rules, so restore them. */
.elementor .hero__bg,
.elementor .contact__bg { height: 100%; }
.elementor .lightbox__img { max-width: min(92vw, 1200px); }
/* …and `.elementor a { text-decoration: none }` would remove the underline of text links. */
.elementor .text-link { text-decoration: underline; }

/* ---- Posts, pages, archives and search written in WordPress (page.php, single.php,
   index.php: the inner pages' title area and article text), and the 404 page ---- */
.smw-plain-page .site-header {
  background: rgba(11, 11, 12, 0.92);
  border-color: var(--color-line-dark);
}
.error404 main { padding-top: var(--header-height); }
.smw-404 { min-height: 70vh; display: flex; align-items: center; }
.article-body img { max-width: 100%; height: auto; }
.article-body a:not(.btn) { color: inherit; text-decoration: underline; text-decoration-color: var(--color-accent, #f76500); }
.article-body h3 { font-family: var(--font-heading); font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; margin-top: 1.4em; }
.article-body blockquote { border-left: 3px solid var(--color-accent, #f76500); padding-left: 20px; }
.smw-comments { margin-top: 60px; }
.smw-comments .comment-list { list-style: none; padding: 0; }
.smw-comments .avatar { border-radius: 50%; margin-right: 10px; }
.smw-comments textarea,
.smw-comments input:not([type="submit"]):not([type="checkbox"]),
.article-body .search-field { width: 100%; max-width: 560px; padding: 12px 14px; border: 1px solid #ccc; font: inherit; }
.smw-comments input[type="submit"],
.article-body .search-submit { margin-top: 12px; padding: 12px 24px; border: 0; background: var(--color-accent, #f76500); color: #fff; font: inherit; cursor: pointer; }
.navigation.pagination { margin-top: 50px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.navigation.pagination .page-numbers { padding: 8px 14px; border: 1px solid #ccc; text-decoration: none; color: inherit; }
.navigation.pagination .current { background: var(--color-accent, #f76500); border-color: transparent; color: #fff; }
.smw-404 .text-body { max-width: 560px; margin: 26px 0 36px; }

/* ---- iPhone/iPad Safari: keep text at its size when the phone is turned sideways ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ---- Logged-in users: keep the fixed header below the 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; } }
.admin-bar.inner-page .subnav { top: calc(var(--header-height) + 32px); }
@media (max-width: 782px) { .admin-bar.inner-page .subnav { top: calc(var(--header-height) + 46px); } }
@media (max-width: 600px) { .admin-bar.inner-page .subnav { top: var(--header-height); } }
